There has been a bunch of confusion around FFMpeg installs when following the guide on Installing FFMpeg on CentOS 6 and 7.  The comments on other forums and questions revolving around installing FFMpeg continue.  Clarity is in order, in the form of answers to common errors when installing FFMpeg.


I know, I know, don't assume, it makes a huge...  Well we all know how that goes, right?  BUT, for the purpose of this guide, I am going to make a few assumptions.

Let's take it from the top

Okay, since you are still having issues with the install, and have followed the guides listed above, I will take this a few more steps across the fuzzy line.

First of all, let's see how crazy we can be.  This is an order of things you can try, and the severity of each.

  • Completely start over:  Honestly, this is an option!  Most "server" setups where you would need FFMpeg installed are virtualized, and likely have backups or snapshots that can be rolled back.  If not, shame on you for not having backups! I'll spare the rest of the lecture on backups for another time.
  • Almost Completely start over:  This is also a sane option.  You will roll back anything you did, if possible, to undo and then redo the steps.  If it didn't work, it's likely something you did - or didn't - type.  As such, undoing everything and stepping back over everything will likely produce a successful install.
  • Hopelessly give in:  This....  Is an option?  Okay, it's probably not, since one of the two above options will yield the results you are after.  Alas, rules of three have required me to have three bullet points for this, so here you are, reading my nonsense while we wait to read something helpful below.

Let's make another assumption

Honestly, I'm enjoying the wild guesses I'm making, and find continuing with said guesses could be entertaining.  With that in mind, let's assume you can completely start over.  Yeah?  Great!

Step one:  Copy the bash chained commands line for your version of CentOS, which is freshly installed, nothing else on it yet, not even the EPEL repo, because we do that for you, too!

Step two:  Paste said bash chained command into your terminal

Step three:  Press enter and know the joys of FFMpeg once more

See, I did it in three steps again, and could have compressed that to a single step :)

Let's assume one last time

Okay, this is the final assumption, I promise!  Let's take a stab in the dark here and say you didn't want to, couldn't, can't, won't, or will not blow away your install of CentOS.  That's fine, all hope is not lost.  Let's try to recover what we can, and make the best of the cold water in the face.

Step 1:  Try to undo what you did.  A good place to start is by figuring out exactly what you DID do.  Try looking at your bash history to see the commands you ran to get to the point you are at now.  vi ~/.bash_history will show you everything you typed in the terminal.

Step 2:  Redo the steps to install FFMpeg after you finish undoing what you did prior.  

For FFMpeg Installs Quick on CentOS 6, or for FFMpeg Installs Quick on CentOS 7.

Step 3:  Make sure EPEL is actually installed.  
yum install epel-release -y

Step 4:  Make sure your system is up to date.  Stranger things happen...  
yum update -y

Step 5:  Restart your system.  Kernel updates could impact your system.  
shutdown -r now

Still not working?

The cold hard reality is, you may have to start from scratch.  There are a series of reasons your install could have failed.  A lot of times it's dependency issues and conflicts from multiple repositories installed, or incompatible packages.  While fixing the issue would be ideal, a fresh install brings your system to a known state and is also fixing the issue at the same time.

We wish you the best of luck, and hope your (re)install goes smoothly!