Is there a proper way to get heroku ffmpeg installed and running so that my users can upload videos in my rails app?
Tried the Heroku references on the topic which led to my app running the heroku error check logs page...
I know there has to be some installation I have to pass but don't seems to find anything on it - Please help with links or ideas :)
Got heroku Video uploads to work!
Make sure you already bundled:
Run the paperclip migration:
Be sure to add in post_controller.rb:
Upload form:
Show page:
At this point you should get this error:
Go to your terminal and type in:
Then run the following to install ffmpeg:
At this point video uploads will work locally
Now for remote uploads you will need to setup https://devcenter.heroku.com/articles/buildpacks
After setting up Heroku buildpacks you may get an error:
You will need to create a Procfile in the root of your app directory more information about Procfile here: https://devcenter.heroku.com/articles/procfile
Hope this helps!
We've had it working on Heroku before; we used
paperclip-ffmpeg
(which is nowpaperclip-av-transcoder
) with the actual Paperclip gem.Whilst I can't provide any information about the buildpacks, I can share how we were able to get video uploading working on Heroku...
As long as the
paperclip-av-transcoder
gem installs (ensure you've got it in yourGemfile
), this should allow you to store the videos - and images - you need.