How to Install ffmpeg and Codecs on Ubuntu


i am trying to install a video script and I need to install FFmpeg with all the codecs. I have tried many tutorials online and I didn't succeed.
FFmpeg (from SVN)

  • x264 Library for mencoder

Best Answer

To install it :

If you're using Ubuntu 14.04 :

ffmpeg was replaced in previous releases by the avconv program from the libav project.

To install avconv you need to install the libav-tools package:

sudo apt-get install libav-tools

Or use PPA :

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg

If you're using Ubuntu 15.04 :

FFmpeg Returns To The Official Ubuntu Repositories With Ubuntu 15.04 Vivid Vervet.

Just type :

sudo apt-get install ffmpeg

For more info :

Is FFmpeg missing from the official repositories in 14.04?

Install FFmpeg on Ubuntu 14.10 Using PPA