vtranscoder 0.0.2 → 0.0.3
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.
- data/VERSION +1 -1
- data/lib/vtranscoder.rb +6 -8
- data/vtranscoder.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/vtranscoder.rb
CHANGED
@@ -40,16 +40,14 @@ class VTranscoder
|
|
40
40
|
def take_screenshot(options)
|
41
41
|
verify_ffmpeg_exists
|
42
42
|
verify_source_exists
|
43
|
-
|
44
|
-
|
43
|
+
|
45
44
|
ffmpeg_options = {
|
46
45
|
:i => @source,
|
47
|
-
:
|
46
|
+
:s => '320x240',
|
47
|
+
:vframes => 1,
|
48
48
|
:ss => options[:at],
|
49
|
-
:
|
50
|
-
|
51
|
-
:s => options[:size]
|
52
|
-
}
|
49
|
+
:an => '',
|
50
|
+
}.merge(options.has_key?(:options) ? options[:options] : {})
|
53
51
|
|
54
52
|
output = run_ffmpeg( ffmpeg_options, options[:to], true )
|
55
53
|
raise "unable to take screenshot:\n\n#{output}" unless File.exists?(options[:to])
|
@@ -77,7 +75,7 @@ class VTranscoder
|
|
77
75
|
ffmpeg_output.scan(/Stream #0.([0-9]): (.*): (.*), (.*)/).each do |match|
|
78
76
|
@meta[:streams][match[0].to_i] = { :type => match[1], :codec => match[2], :details => match[3] }
|
79
77
|
end
|
80
|
-
|
78
|
+
end
|
81
79
|
|
82
80
|
def convert_with_options(destination,options)
|
83
81
|
verify_ffmpeg_exists
|
data/vtranscoder.gemspec
CHANGED