Update ffmpeg to >= 4

Hi !!

I’m using a module of npm which it needs the last version of ffmpeg, could be possible to update the package in the containers?

Hey @tinchoz49, welcome to the Glitch forums, and thanks for the suggestion!

I’ll take this to the rest of the team to see if we can work it into our next container release, but I have to point out the 2.8.15 is the current version for the default package sources for Ubuntu 16.04, the release which our containers are currently based on.

Don’t forget to vote for your own suggestion!

1 Like

Seconded. Would love an updated ffmpeg release!

Version 2.8.15 is quite old at this stage. In case it helps others, you can use this package to upgrade to 4.1 (as of writing): https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg

If you need a later version (I needed 4.2+) you can past these commands in the terminal:

wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
tar xf ffmpeg-release-amd64-static.tar.xz

And now the ffmpeg is inside the ffmpeg-4.3-amd64-static folder that has been created (your folder name will be different if the version is different). Now wherever you’d normally use ffmpeg, you would replace it with the path to that binary. So for example, instead of this:

require('child_process').exec("ffmpeg -version", async function(error, stdout, stderr) {

You’d write this:

require('child_process').exec("./ffmpeg-4.3-amd64-static/ffmpeg -version", async function(error, stdout, stderr) {