How to install ffmpeg 3.0 on Ubuntu 15.10

ffmpeg 3.0 was released in February, it solves an important bug so I want to use it.

Is there any easy way to install ffmpeg on Ubuntu Wily, for instance a PPA?

What I tried:

  • Xenial only has 2.8.6, just like Debian.
  • The static build at http://johnvansickle.com/ffmpeg/ are compiled without pulse support, and I did not manage to run it with ALSA
  • The PPA https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media is only for Trusty, and advises against using it for other versions
  • I tried compiling from source, for some reason the resulting ffmpeg records in much lower quality, videos are pixelated (console output).

Solution 1:

I found this as a working solution for 16.04.

sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo apt update
sudo apt upgrade
sudo apt install ffmpeg

More information can be found here.

Solution 2:

The only solution as of April 2016 is to compile by yourself.

The procedure is described at http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

Be sure to run the procedure described at the "libx265" paragraph too, not doing it would result in bad quality video files.