paperclip-ffmpeg 0.6.6 → 0.6.7
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/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