lib/bulldog/processor/ffmpeg.rb in bulldog-0.0.2 vs lib/bulldog/processor/ffmpeg.rb in bulldog-0.0.3
- old
+ new
@@ -12,11 +12,11 @@
@operation = nil
@arguments = style_list_map
@still_frame_callbacks = style_list_map
end
- def process(*args)
+ def process
return if styles.empty?
super
run_ffmpeg
run_still_frame_callbacks
end
@@ -156,10 +156,11 @@
def run_ffmpeg
@arguments.each do |style, arguments|
command = [self.class.ffmpeg_command]
command << '-i' << input_file
command.concat(arguments)
- Bulldog.run(*command)
+ Bulldog.run(*command) or
+ record.errors.add name, "convert failed (status #$?)"
end
end
def run_still_frame_callbacks
@still_frame_callbacks.each do |style, callbacks|