Priority: High
Request: We’re using moviepy library (which uses ffmpeg under the hood) to generate video thumbnail/preview image during upload. Heroku does not have ffmpeg available natively. What’s the ideal solution? I can think of:
a) Adding a buildpack. This one seems promising: https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest
b) Adding ffmpeg installation command in Dockerfile. I can use some help with this!
c) Use some third-party service - seems like an overkill to me.
Our apps are set up to run on a container runtime at Heroku. The buildpacks are only available for their proprietary runtimes. This allows better portability.
Your second option (adding ffmpeg to your Dockerfile) is therefore preferred. Just add it to the list of other packages installed with apt (you’d need to use an unofficial source), or compile it as part of building the image.
If your project is using the old alpine image as a base, feel free to switch to the newer ubuntu-based Dockerfile, which is easier to expand - Crowdbotics Django Scaffold - Dockerfile
There’s plenty of documentation online, here are some links: