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.
@@ -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
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "paperclip-ffmpeg"
6
- s.version = '0.6.6'
6
+ s.version = '0.6.7'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Omar Abdel-Wahab"]
9
9
  s.email = ["owahab@gmail.com"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paperclip-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.6
5
+ version: 0.6.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Omar Abdel-Wahab