1

I managed to install FFMPEG on Centos via WHM following this guide.

But when I run ffmpeg -version I get:

2.8.15

...whereas the official site says the latest version is 4.0.2.

How can I update my installation or install afresh with the latest version?

(Context: I'm trying to work out why a WEBM-to-MP4 conversion via FFMPEG results in a 0-bytes file and thought updating FFMPEG might help.)

Mitya
  • 231

1 Answers1

1

Forget the Nux Dextop repo. It currently only provides the FFmpeg 2.8 release branch and older (I simply viewed the package directory).

  1. Uninstall the old ffmpeg:

    sudo yum remove ffmpeg
    
  2. Remove that repository (optional but recommended). I'll leave that up to you.

  3. Download the new ffmpeg. No need for a repo as the pre-compiled binary is sufficient.

    curl -OL https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
    
  4. Extract it:

    tar xvf ffmpeg-git-64bit-static.tar.xz
    
  5. Copy or move the ffmpeg file to a location in your PATH so it is executable to all users (the date in this example is just a placeholder as it changes depending on when it was compiled):

    sudo cp ffmpeg-git-20181103-64bit-static/ffmpeg /usr/local/bin
    
  6. Verify that you are running a recent version by running the ffmpeg command. The first line should look something like:

    ffmpeg version N-92330-gd6d407d2d7 Copyright (c) 2000-2018 the FFmpeg developers
    

    ...where the d6d407d2d7 (minus the often confusing and annoying g prefix) is the partial hash of the particular commit that this ffmpeg was derived from in the master branch.

See What is a static build and how do I install it? for more details.

llogan
  • 63,280