paperclip-ffmpeg 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclip-ffmpeg.rb +5 -1
- data/paperclip-ffmpeg.gemspec +1 -1
- metadata +1 -1
data/lib/paperclip-ffmpeg.rb
CHANGED
@@ -106,11 +106,15 @@ module Paperclip
|
|
106
106
|
@convert_options[:vframes] = 1
|
107
107
|
end
|
108
108
|
|
109
|
+
# Add source
|
110
|
+
@convert_options[:i] = ':source'
|
111
|
+
|
109
112
|
parameters << @convert_options.map { |k,v| "-#{k.to_s} #{v} "}
|
110
|
-
parameters << '-i :source'
|
111
113
|
parameters << ":dest"
|
112
114
|
|
113
115
|
parameters = parameters.flatten.compact.join(" ").strip.squeeze(" ")
|
116
|
+
|
117
|
+
puts "ffmpeg #{parameters}"
|
114
118
|
begin
|
115
119
|
success = Paperclip.run("ffmpeg", parameters, :source => "#{File.expand_path(src.path)}", :dest => File.expand_path(dst.path))
|
116
120
|
|
data/paperclip-ffmpeg.gemspec
CHANGED