title: ffmpeg on Heroku: unrecognized option 'preset'
body: <p>I'm using ffmpeg version 1.2.4 in my local Rails app to convert video files.  Everything works as expected when I run the app locally.  When I deployed to heroku, I added a buildpack for ffmpeg:</p>
  
  <p><a href="https://github.com/shunjikonishi/heroku-buildpack-ffmpeg" rel="noreferrer">https://github.com/shunjikonishi/heroku-buildpack-ffmpeg</a></p>
  
  <p>This installs ffmpeg version git-2013-06-02-5711e4f.  When I try to transcode a video to mp4, I get the following error:</p>
  
  <p><strong>Unrecognized option 'preset'. Error splitting the argument list: Option not found</strong></p>
  
  <p>Here is the complete log:</p>
  
  <pre><code>2013-11-17T19:45:05.255059+00:00 app[web.1]: Running transcoding...
  2013-11-17T19:45:05.255059+00:00 app[web.1]: ffmpeg -y -i /app/public/uploads/tmp/1384717504-2-9158/Untitled.mov -vcodec libx264 -acodec libfaac -s 640x360  -qscale 0 -preset slow -g 30 -aspect 1.7777777777777777 /app/public/uploads/tmp/1384717504-2-9158/tmpfile.mp4
  2013-11-17T19:45:05.255059+00:00 app[web.1]: 
  2013-11-17T19:45:05.317895+00:00 app[web.1]: Failed encoding...
  2013-11-17T19:45:05.317895+00:00 app[web.1]: ffmpeg -y -i /app/public/uploads/tmp/1384717504-2-9158/Untitled.mov -vcodec libx264 -acodec libfaac -s 640x360  -qscale 0 -preset slow -g 30 -aspect 1.7777777777777777 /app/public/uploads/tmp/1384717504-2-9158/tmpfile.mp4
  2013-11-17T19:45:05.317895+00:00 app[web.1]: 
  2013-11-17T19:45:05.317895+00:00 app[web.1]: ffmpeg version git-2013-06-02-5711e4f Copyright (c) 2000-2013 the FFmpeg developers
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   built on Jun  2 2013 07:38:40 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   configuration: --enable-shared --disable-asm --prefix=/app/vendor/ffmpeg
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   libavutil      52. 34.100 / 52. 34.100
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   libavcodec     55. 13.100 / 55. 13.100
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   libavformat    55.  8.102 / 55.  8.102
  2013-11-17T19:45:05.317895+00:00 app[web.1]:   libavdevice    55.  2.100 / 55.  2.100
  2013-11-17T19:45:05.318137+00:00 app[web.1]:   libavfilter     3. 74.101 /  3. 74.101
  2013-11-17T19:45:05.318137+00:00 app[web.1]:   libswscale      2.  3.100 /  2.  3.100
  2013-11-17T19:45:05.318137+00:00 app[web.1]:   libswresample   0. 17.102 /  0. 17.102
  2013-11-17T19:45:05.318137+00:00 app[web.1]: Unrecognized option 'preset'.
  2013-11-17T19:45:05.318137+00:00 app[web.1]: Error splitting the argument list: Option not found
  2013-11-17T19:45:05.318137+00:00 app[web.1]: 
  2013-11-17T19:45:05.318137+00:00 app[web.1]: Errors: no output file created. 
  </code></pre>
  
  <p>I think that the error may be a result of differences in the version of ffmpeg that I'm using locally and on Heroku.  Does anyone have suggestions for how to resolve this issue?</p>