owahab/paperclip-ffmpeg — Issue #1: ArgumentError: invalid byte sequence in UTF-8
Author: atd
Created: 2011-10-24 09:11:32+00:00
State: open

When processing a song with UTF-8 metadata, paperclip-ffmpeg fails with:

```
ruby-1.9.2-p180 :001 > DelayedPaperclip.process_job "Audio", 1, "file"
Audio Load (57.4ms) SELECT `documents`.* FROM `documents` WHERE `documents`.`type` IN ('Audio') AND `documents`.`id` = ? LIMIT 1 [["id", 1]]
[paperclip] ffmpeg -i /tmp/paperclip-reprocess20111024-10174-cvvqae 2>&1
ArgumentError: invalid byte sequence in UTF-8
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-ffmpeg-0.7.0/lib/paperclip-ffmpeg.rb:135:in `block in identify'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-ffmpeg-0.7.0/lib/paperclip-ffmpeg.rb:134:in `each'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-ffmpeg-0.7.0/lib/paperclip-ffmpeg.rb:134:in `identify'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-ffmpeg-0.7.0/lib/paperclip-ffmpeg.rb:37:in `initialize'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/processor.rb:33:in `new'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/processor.rb:33:in `make'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:344:in `block (2 levels) in post_process_styles'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:343:in `each'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:343:in `inject'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:343:in `block in post_process_styles'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:339:in `each'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:339:in `post_process_styles'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:333:in `block (2 levels) in post_process'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:390:in `_run_file_post_process_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/callback_compatability.rb:54:in `run_paperclip_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:332:in `block in post_process'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:390:in `_run_post_process_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/callback_compatability.rb:54:in `run_paperclip_callbacks'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:331:in `post_process'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/paperclip-2.3.11/lib/paperclip/attachment.rb:254:in `reprocess!'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/delayed_paperclip-0.7.2/lib/delayed_paperclip.rb:149:in `process_delayed!'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/delayed_paperclip-0.7.2/lib/delayed_paperclip.rb:31:in `process_job'
from (irb):1
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in `start'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in `start'
from /home/atd/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.1/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'ruby-1.9.2-p180 :002 >
```