-
-
Save coopermaruyama/3963576 to your computer and use it in GitHub Desktop.
## Get FFMpeg working on heroku by building binaries using vulcan | |
gem install vulcan | |
vulcan create foo | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
vulcan build -v -s . -c "./configure --enable-shared --disable-asm --prefix=/app/vendor/ffmpeg && make && make install" | |
## once done, you'll see something along the lines of: | |
# >> Downloading build artifacts to: /tmp/ffmpeg.tgz | |
# (available at http://foo.herokuapp.com/output/d21f6bb8-6db6-4397-b02e-347806945881) | |
# | |
# Download the .tgz via the link or cd to /tmp then: | |
tar xvf ffmpeg.tgz | |
mkdir /path/to/app/vendor/ffmpeg | |
mv ffmpeg/* /path/to/app/vendor/ffmpeg/ | |
# cd to your app then: | |
heroku config:set PATH=bin:vendor/ffmpeg/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin -a yourapp | |
#in the above, make sure you are simply appending 'vendor/ffmpeg/bin' to whatever is already set when you run 'heroku config' and look at the currently set value for PATH. overwriting it will break your app. | |
heroku config:set LD_LIBRARY_PATH=vendor/ffmpeg/lib:/usr/local/lib -a yourapp | |
git add . | |
git commit -m "vendor ffmpeg" | |
git push heroku master | |
# enjoy! |
and is there ffmpegthumbnailer, already built?
Sorry guys, I never received any notifications about your comments, I had no idea till now that you guys all commented. Since the most recent comment was a year ago I'm hoping you guys all figured it out. If not, let me know and I'll do my best to answer.
When I created this I was trying to get ruby-audio working on heroku. If anyone else is here for the same reason, a buddy and I created a ruby gem that might help your efforts: https://github.com/khurramzaman/ruby-audio-heroku
@integricho your issue looks to have something to do with vulcan. you can ssh into it I think (check the docs) and try running the commands there and debug it there. There are plenty of other forks now as well that may be more reliable than mine.
If you don'e need to compile you can just use the already compiled static library from ffmpeg download page,
more about this here:
http://pastebin.com/8SAvbdjU