libis-format 0.9.39 → 0.9.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/format/converter/video_converter.rb +6 -0
- data/lib/libis/format/version.rb +1 -1
- data/spec/converter_spec.rb +2 -1
- metadata +1 -19
- data/spec/data/video/sample.avi +0 -0
- data/spec/data/video/sample.flv +0 -0
- data/spec/data/video/sample.mkv +0 -0
- data/spec/data/video/sample.mov +0 -0
- data/spec/data/video/sample.mp4 +0 -0
- data/spec/data/video/sample.mpg +0 -0
- data/spec/data/video/sample.swf +0 -0
- data/spec/data/video/sample.webm +0 -0
- data/spec/data/video/sample.wmv +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf00dc25cd1899be88fa534243bad1ee8feca2f1
|
|
4
|
+
data.tar.gz: 723c92ae6cef266fde7ebe69c1a6cef8655a750e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
data/lib/libis/format/version.rb
CHANGED
data/spec/converter_spec.rb
CHANGED
|
@@ -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.
|
|
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
|
data/spec/data/video/sample.avi
DELETED
|
Binary file
|
data/spec/data/video/sample.flv
DELETED
|
Binary file
|
data/spec/data/video/sample.mkv
DELETED
|
Binary file
|
data/spec/data/video/sample.mov
DELETED
|
Binary file
|
data/spec/data/video/sample.mp4
DELETED
|
Binary file
|
data/spec/data/video/sample.mpg
DELETED
|
Binary file
|
data/spec/data/video/sample.swf
DELETED
|
Binary file
|
data/spec/data/video/sample.webm
DELETED
|
Binary file
|
data/spec/data/video/sample.wmv
DELETED
|
Binary file
|