lib/bulldog/processor/ffmpeg.rb in bulldog-0.0.6 vs lib/bulldog/processor/ffmpeg.rb in bulldog-0.0.7
- old
+ new
@@ -1,14 +1,12 @@
module Bulldog
module Processor
class Ffmpeg < Base
class << self
- attr_accessor :ffmpeg_command
+ attr_accessor :ffmpeg_path
end
- self.ffmpeg_command = Bulldog.find_in_path('ffmpeg')
-
def initialize(*args)
super
@operation = nil
@arguments = style_list_map
@still_frame_callbacks = style_list_map
@@ -153,10 +151,10 @@
end
end
def run_ffmpeg
@arguments.each do |style, arguments|
- command = [self.class.ffmpeg_command]
+ command = [self.class.ffmpeg_path]
command << '-i' << input_file
command.concat(arguments)
Bulldog.run(*command) or
record.errors.add name, "convert failed (status #$?)"
end