How to Install FFmpeg in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. tom.huang says:

    I can’t fetch update from this repo ‘ppa:mc3man/trusty-media‘.

    My environment : Ubuntu 19.04

    E: The repository ‘ disco Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    • Ravi Saive says:


      The PPA does not support your version of Ubuntu, better install FFMPEG from default repositories.

      $ sudo apt intall ffmpeg

      Make sure to remove the added PPA:

      $ sudo ppa-purge ppa:mc3man/trusty-media
  2. shair ali baig says:

    hello..the above tutorials for ffmpeg wont work with atrpms repository for centos 7…since atrpms server is dead..its no longer available..
    one can download the above commands by enabling nux desktop repository explicitely..

    sudo yum -y –enablerepo=rpmforge install ffmpeg ffmpeg-devel
    and also to the above dependency packegaes

  3. aprogrammer says:

    Thank you for the post. You can add here some additional libs and codecs for ffmpeg support all kind of audio and video formats like listed here – .

  4. Hello, people!

    I am trying to use Clip Bucket with FFPMEG conversion, but the script sent the parm ‘- aspect 0’, but the FFMPEG 2.2.4 do not recognize it.

    Some technicians talked to me for downgrade to FFMPEG 0.9.1. However, I want to use newest version.

    Look my problem:

    Converting Video
    Conversion Command : /usr/bin/ffmpeg -i /files/conversion_queue/140413494554888.mp4 -f flv -vcodec libx264 -preset normal -r 25 -s 0x0 -aspect 0 -vf pad=0:0:0:0:black -acodec libfaac -ab 128000 -an /files/videos/140413494554888.flv 2> /files/temp/140413500190db3.tmp

    Conversion Details

    ffmpeg version 2.2.4- Copyright (c) 2000-2014 the FFmpeg developers
    built on Jun 24 2014 20:49:40 with gcc 4.9 (Debian 4.9.0-7)
    configuration: –enable-gpl –enable-version3 –disable-shared –disable-debug –enable-runtime-cpudetect –enable-libmp3lame –enable-libx264 –enable-libwebp –enable-libspeex –enable-libvorbis –enable-libvpx –enable-libfreetype –enable-fontconfig –enable-libxvid –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora –enable-libvo-aacenc –enable-libvo-amrwbenc –enable-gray –enable-libopenjpeg –enable-libopus –disable-ffserver –enable-libass
    libavutil 52. 66.100 / 52. 66.100
    libavcodec 55. 52.102 / 55. 52.102
    libavformat 55. 33.100 / 55. 33.100
    libavdevice 55. 10.100 / 55. 10.100
    libavfilter 4. 2.100 / 4. 2.100
    libswscale 2. 5.102 / 2. 5.102
    libswresample 0. 18.100 / 0. 18.100
    libpostproc 52. 3.100 / 52. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/files/conversion_queue/140413494554888.mp4’:
    major_brand : isom
    minor_version : 0
    compatible_brands: isomiso2avc1
    creation_time : 2013-12-25 18:45:13
    Duration: 00:00:10.29, start: 0.000000, bitrate: 817 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640×360, 700 kb/s, 30.11 fps, 30.11 tbr, 30107 tbn, 60214 tbc (default)
    creation_time : 2013-12-25 18:45:12
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    creation_time : 2013-12-22 22:48:57
    Invalid aspect ratio: 0
    Conversion failed!

    Thanks a lot!

  5. Dennis says:

    Where is Part 2 of this article as promised? And why do you keep repeating Part 1?

    • Ravi Saive says:

      The part 2 of this series, will be published soon. The author (Oltjano Terpollari) having some serious personal issues, due to this, he may not getting time to publish the 2nd part of this series. And we not repeating it, we updating the article based on newer ffmpeg release. Please co-operate with us, will soon publish a remain part of this portion.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.