How do I install FFMPEG inside Heroku?

11,899

Self answering as I had this problem and wish to share what I found:

Heroku supports ffmpeg as a buildpack to your app. Simply open you app settings at https://dashboard.heroku.com/apps/[app-name]/settings and scroll down to Buildpacks, where you should add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git to it.

Alternatively you can also run the CLI command:

$ heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

Source:

https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest

Share:
11,899
Pritt Balagopal
Author by

Pritt Balagopal

Learning Java and Swift for mobile app development. I like to code Discord bots using Node.js in my free time.

Updated on June 20, 2022

Comments

  • Pritt Balagopal
    Pritt Balagopal about 2 years

    I am hosting a Discord music bot on Heroku and it seems it won't play music as the FFMPEG is not found. This is understandable as the FFMPEG is only available within my PC and not on the external cloud. What can I do to install FFMPEG on Heroku?

  • stevec
    stevec over 2 years
    Just wanted to add that the docs you link to recommend adding ffmpeg buildpack at index 1 (i.e. before the ruby buildpack). I'm not sure if it makes a difference, but it may. Here's how to add it with index 1: heroku buildpacks:add --index 1 https://github.com/jonathanong/heroku-buildpack-ffmpeg-lates‌​t.git
  • GameFromScratch
    GameFromScratch about 2 years
    Simply adding the buildpack does not do it for me. I still keep getting the error 'ffprobe' not found