libis-format 0.9.39 → 0.9.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d41852f4f00f61ffa6458f3ba0f9ce58215573d8
4
- data.tar.gz: 96158848af69ff1ad5ffafc198d6f04b30a94f9c
3
+ metadata.gz: cf00dc25cd1899be88fa534243bad1ee8feca2f1
4
+ data.tar.gz: 723c92ae6cef266fde7ebe69c1a6cef8655a750e
5
5
  SHA512:
6
- metadata.gz: 7db9b6c77b4429fa91ec099d8a10c55799050e6ca345b1af0f2273c5645841b2edb33b5be9cfe2967eedf52d0438e6bbe92e0ad499f2be3460ec8e53d7e076b1
7
- data.tar.gz: 6399b4b84f80b7e48c2c85c3390e34fe39b70c8ea1c4a096dfd33981bbcc2eca2ba88f8be9e4738ff424f0e12446f5b898b1db248206ebd080fff098c585af6b
6
+ metadata.gz: 9ca79a0638a43a5cc489359acd22e56ff670d9630ba713af7fe2f75fabb2152f875665dede48a6781db231ec27577513016013f1ec187e56a80c18f319913c38
7
+ data.tar.gz: 996664886aba6292b525874a52bce35125b18a2083351e28ce49c1c5e6f6a14efcbddfc0e419ce0206a62e44d41f85d301a6210b02b73fea5e9e2cf4d6ad5059
@@ -178,6 +178,12 @@ module Libis
178
178
  opts[:output] << '-q:a' << @options[:audio_quality] if @options[:audio_quality]
179
179
  opts[:output] << '-r' << @options[:frame_rate] if @options[:frame_rate]
180
180
  opts[:output] << '-ar' << @options[:sampling_freq] if @options[:sampling_freq]
181
+ if @options[:scale]
182
+ scale = @options[:scale].split('x')
183
+ width = scale[0]
184
+ height = scale[1]
185
+ opts[:output] << '-vf' << "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
186
+ end
181
187
  opts[:output] << '-f' << @options[:format] if @options[:format]
182
188
  opts[:output] << '-pre' << @options[:preset] if @options[:preset]
183
189
  opts[:output] << '-apre' << @options[:audio_preset] if @options[:audio_preset]
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Format
3
- VERSION = '0.9.39'
3
+ VERSION = '0.9.40'
4
4
  end
5
5
  end
@@ -409,11 +409,12 @@ describe 'Converters' do
409
409
  if tgt == 'gif'
410
410
  converter.start(1)
411
411
  converter.duration(3)
412
+ converter.scale('100x100')
412
413
  end
413
414
  result = converter.convert(src_file, tgt_file, tgt.upcase.to_sym)
414
415
  expect(result).to eq tgt_file
415
416
  expect(File.size(result)).to be > 2000
416
- FileUtils.remove tgt_file, force: true
417
+ # FileUtils.remove tgt_file, force: true
417
418
  end
418
419
  end
419
420
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.39
4
+ version: 0.9.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
@@ -301,15 +301,6 @@ files:
301
301
  - spec/data/video/SampleVideo_360x240_2mb.flv
302
302
  - spec/data/video/SampleVideo_360x240_2mb.mkv
303
303
  - spec/data/video/SampleVideo_360x240_2mb.mp4
304
- - spec/data/video/sample.avi
305
- - spec/data/video/sample.flv
306
- - spec/data/video/sample.mkv
307
- - spec/data/video/sample.mov
308
- - spec/data/video/sample.mp4
309
- - spec/data/video/sample.mpg
310
- - spec/data/video/sample.swf
311
- - spec/data/video/sample.webm
312
- - spec/data/video/sample.wmv
313
304
  - spec/identifier_spec.rb
314
305
  - spec/spec_helper.rb
315
306
  - spec/test_types.yml
@@ -437,15 +428,6 @@ test_files:
437
428
  - spec/data/video/SampleVideo_360x240_2mb.flv
438
429
  - spec/data/video/SampleVideo_360x240_2mb.mkv
439
430
  - spec/data/video/SampleVideo_360x240_2mb.mp4
440
- - spec/data/video/sample.avi
441
- - spec/data/video/sample.flv
442
- - spec/data/video/sample.mkv
443
- - spec/data/video/sample.mov
444
- - spec/data/video/sample.mp4
445
- - spec/data/video/sample.mpg
446
- - spec/data/video/sample.swf
447
- - spec/data/video/sample.webm
448
- - spec/data/video/sample.wmv
449
431
  - spec/identifier_spec.rb
450
432
  - spec/spec_helper.rb
451
433
  - spec/test_types.yml
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file