Make sure you’re using the multi-buildpack. Instructions for that here. Then in your project root:
echo "https://github.com/xrisk/ffmpeg-lame-yasm" >> .buildpacks
Voila, you’re done. You now have a ffmpeg binary in
/app/vendor. Make sure to add that to your path when running your app.
Copy the snippet above into CLI.