Home > Uncategorized > How to install FFmpeg on linux server

How to install FFmpeg on linux server

How to install FFmpeg on linux server


Create the repo file using the below command.

vi /etc/yum.repos.d/dag.repo

Insert below code in that file.

name=Dag RPM Repository for Red Hat Enterprise Linux

Then yum update and search for ffmpeg and install all ffmpeg packages including devel.

yum update
yum list ffmpeg*
yum install ffmpeg*

If it is getting the below error message.

   “Public key for imlib2-1.2.2-1.el5.rf.i386.rpm is not installed”

Then run the below command and install ffmpeg again using yum install ffmpeg*

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Run the installation command again.

yum install ffmpeg*

To check whether FFmpeg is installed properly or not.

[email protected] [/etc/yum.repos.d]# ffmpeg

It will show below output.
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 23:56:18 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: –prefix=/usr –libdir=/usr/lib –shlibdir=/usr/lib –mandir=/usr/share/man –incdir=/usr/include –disable-avisynth –extra-cflags=’-O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables’
–enable-avfilter –enable-avfilter-lavf –enable-libdirac –enable-libfaac –enable-libfaad –enable-libfaadbin –enable-libgsm –enable-libmp3lame
–enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libx264 –enable-gpl –enable-nonfree –enable-postproc –enable-pthreads –enable-shared
–enable-swscale –enable-vdpau –enable-version3 –enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…

Use -h to get full help or, even better, run ‘man ffmpeg’


Categories: Uncategorized Tags: ,
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.