Share this:

FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. Its also useful to convert multimedia files between various formats. FFmpeg includes libavcodec audio/video codec library in it.

ffmpeg-main-logo

This article will describe you to how to install FFmpeg on CentOS/RHEL 6/5 and Ubuntu 12.04/12.10 systems with easy steps. Also provides basic uses of ffmpeg. CentOS/RHEL uses must have enable atrpms rpm repository on his systems.

1. Install FFmpeg on CentOS, RHEL and Fedora

We assume that you have enabled atrpms repository in your system. Use following step to install it

Install FFmpeg

After installing atrpms repository, Use yum to install ffmpeg using following command.

# yum install ffmpeg
Check FFmpeg Version

After succufully install FFmpeg, let check the installed version of ffmpeg using below command.

# ffmpeg -version

ffmpeg version 2.0.2
built on Oct 27 2013 11:21:04 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
....

2. Install FFmpeg on Ubuntu and Debian

To install ffmpeg on ubuntu system is very easy. Just type below command from command line to install it.

$ sudo apt-get update
$ sudo apt-get install ffmpeg
3. FFmpeg Basic Commands

Here is the list of few ffmepg basic commands list.

    ffmpeg -version: show version ffmpeg -formats: show available formats ffmpeg -codecs: show available codecs ffmpeg -decoders: show available decoders ffmpeg -encoders: show available encoders ffmpeg -bsfs: show available bit stream filters ffmpeg -protocols: show available protocols ffmpeg -filters: show available filters ffmpeg -pix_fmts: show available pixel formats ffmpeg -layouts: show standard channel layouts ffmpeg -sample_fmts: show available audio sample formats

Click here to read more about ffmpeg on its official site.