I love this plugin, but AVI/MOV conversions to mp4 always errors out. Anyone know why?
Here's an example of one log file:
[AV] Found ["avconv"], using: Avconv
[AV] Running command: avconv -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" 2>&1
[paperclip] [transcoder] Transocding supported file /tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI
[AV] Adding output parameter ["acodec", "aac"]
[AV] Adding output parameter ["strict", "experimental"]
[AV] Running command: avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4"
Av::CommandError: error while running command avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4": Command 'PATH=/usr/bin:$PATH; avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4"' returned 1. Expected 0
Here is the command output:
from /var/lib/gems/1.9.1/gems/av-0.8.0/lib/av.rb:32:in `rescue in run'
from /var/lib/gems/1.9.1/gems/av-0.8.0/lib/av.rb:29:in `run'
from /var/lib/gems/1.9.1/gems/av-0.8.0/lib/av/commands/base.rb:91:in `run'
from /var/lib/gems/1.9.1/gems/av-0.8.0/lib/av/cli.rb:19:in `method_missing'
from /var/lib/gems/1.9.1/gems/paperclip-av-transcoder-0.6.2/lib/paperclip/paperclip_processors/transcoder.rb:66:in `make'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/processor.rb:33:in `make'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:522:in `block in post_process_style'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:521:in `each'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:521:in `inject'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:521:in `post_process_style'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:512:in `block in post_process_styles'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:511:in `each'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:511:in `post_process_styles'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:503:in `block (2 levels) in post_process'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:113:in `call'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:113:in `call'
... 3 levels...
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/callbacks.rb:36:in run_paperclip_callbacks' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:501:inblock in post_process'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:82:in run_callbacks' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/callbacks.rb:36:inrun_paperclip_callbacks'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:500:in post_process' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:456:inpost_process_file'
from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:108:in assign' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/has_attached_file.rb:66:inblock in define_setter'
from (irb):7
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/console.rb:90:in start' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/console.rb:9:instart'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:in console' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:inrun_command!'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:inrequire'
from bin/rails:4:in `'irb(main):008:0>
I love this plugin, but AVI/MOV conversions to mp4 always errors out. Anyone know why?
Here's an example of one log file: [AV] Found ["avconv"], using: Avconv [AV] Running command: avconv -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" 2>&1 [paperclip] [transcoder] Transocding supported file /tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI [AV] Adding output parameter ["acodec", "aac"] [AV] Adding output parameter ["strict", "experimental"] [AV] Running command: avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4" Av::CommandError: error while running command avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4": Command 'PATH=/usr/bin:$PATH; avconv -loglevel quiet -i "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry7.AVI" -acodec aac -strict experimental -y "/tmp/0cfcdbeb8752f2f04bae352148788e0020151022-3723-1hezry720151022-3723-xxgxix.mp4"' returned 1. Expected 0 Here is the command output:
... 3 levels... from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/callbacks.rb:36:in'irb(main):008:0>
run_paperclip_callbacks' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:501:in
block in post_process' from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:82:inrun_callbacks' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/callbacks.rb:36:in
run_paperclip_callbacks' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:500:inpost_process' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:456:in
post_process_file' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:108:inassign' from /var/lib/gems/1.9.1/gems/paperclip-4.2.1/lib/paperclip/has_attached_file.rb:66:in
block in define_setter' from (irb):7 from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/console.rb:90:instart' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/console.rb:9:in
start' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:inconsole' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in
run_command!' from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands.rb:17:in<top (required)>' from bin/rails:4:in
require' from bin/rails:4:in `