Enable MP3, MPEG4, AAC, and Xvid etc for FFmpeg Ubuntu 10.04

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Compiling FFmpeg from source to enable support for most restricted codecs like MP3, MPEG4, AAC, Xvid, x264 etc can be a hassle, and not for the mere mortals. Convenient ways of getting these goodies have been pointed out by FakeOutdoorsman at the UbuntuForums.org. I am listing it here for my own reference.

Two approaches have been suggested and first approach, the simpler of the two, should get you going with support for most codecs except AAC and AMR formats. If you don’t need these, then first approach should be adequate, also if you are using Ubuntu 9.04 or 8.10, then Approach 2 is not available for you.

Approach 1: Installing  libavcodec-extra-52 or appropriate codec pack.

Ubuntu Lucid Lynx 10.04 & Ubuntu Karmic Koala 9.10

sudo apt-get install ffmpeg libavcodec-extra-52

Ubuntu Jaunty Jackalope 9.04

sudo apt-get install ffmpeg libavcodec-unstripped-52

Ubuntu Intrepid Ibex 8.10

sudo apt-get install ffmpeg libavcodec-unstripped-51

Alternatively, you can search for these packages in the Synaptic Package Manager.

Approach 2: Installing libavcodec-extra-52 from Medibuntu

This approach should enable support for all restricted codecs. FYI Medibuntu is a third-party repository that contains packages that are unable to be included in the official Ubuntu repositories. To add and enable Medibuntu repository run the following command in a terminal

sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update

This will install the repository information to your computer then update and authenticate the new repository. Now install FFmpeg using the same commands as in Approach 1:

Ubuntu Lucid Lynx 10.04 & Ubuntu Karmic Koala 9.10

sudo apt-get install ffmpeg libavcodec-extra-52

Ubuntu Hardy Heron 8.04

sudo apt-get install ffmpeg

You might also like

Make Time Lapse Video from Images in Linux (ffmpeg) I have earlier...
Setup Subsonic on Ubuntu to Stream / Access Your Video Collection Subsonic is...
Enable Encrypted DVD Playback in Ubuntu 10.10 Maverick Meerkat Ubuntu doesn't...
Install HandBrake on Ubuntu 10.04 HandBrake is...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

One Comment on “Enable MP3, MPEG4, AAC, and Xvid etc for FFmpeg Ubuntu 10.04”

Trackbacks

  1. Setup Subsonic on Ubuntu to Stream / Access Your Video Collection | Hack Your Life!

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*

Copyright © 2017 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes