Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to install all possible media codecs from console?

Is there a way to load and save them for some cases without Internet connection?

Thanks in Advance!

share|improve this question

3 Answers 3

up vote 10 down vote accepted

For Ubuntu 12.04 LTS (or later)

Medibuntu (media, entertainment)

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring
sudo apt-get --quiet update && sudo apt-get -y upgrade

update Synaptic to display third party repositories:

sudo update-apt-xapian-index

[ will take 45 seconds, or more ]

multimedia codecs

sudo apt-get -y install w32codecs ubuntu-restricted-extras    (32bit)
sudo apt-get -y install w64codecs ubuntu-restricted-extras    (64bit)

enable full DVD support

sudo apt-get -y install libdvdcss2 libdvdnav4 libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

UPDATE: Medibuntu repository is now defunct .. (Feb-2014)

For Ubuntu 12.04 LTS (or later)

install CURL tool

sudo apt-get -y install curl

load VideoLAN repository

curl ftp://ftp.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -
echo "deb ftp://ftp.videolan.org/pub/debian/stable ./" | sudo tee /etc/apt/sources.list.d/libdvdcss.list && sudo apt-get update

install VLC and Mplayer, and their support elements

sudo apt-get -y install vlc vlc-plugin-pulse mozilla-plugin-vlc mplayer

install remaining Ubuntu 'restricted extras' (skip if space is critical)

sudo apt-get -y install ubuntu-restricted-extras

enable full DVD support (first two may already be installed)

sudo apt-get -y install libdvdcss2 libdvdnav4 libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
share|improve this answer
    
didn't get. for what we adding medibuntu rep? to get wide codecs range? –  skater_nex Aug 2 '12 at 7:56
1  
ubuntu did'nt include some codec's due to licence issues , mediaubuntu team packed such codecs –  Tachyons Aug 2 '12 at 8:01
1  
see: medibuntu.org "Medibuntu is a packaging project dedicated to distributing software that cannot be included in Ubuntu for various reasons, related to geographical variations in legislation regarding intellectual property, security and other issues:" –  david6 Aug 2 '12 at 8:02

Yep, I had this problem when I switched to Ubuntu a year ago lol. I only know how to install them. I then made a mirror of my Linux installation as it's a bit more complex than using just the Ubuntu Desktop. I use a Server Thin Client Environment.

Anyway the command to install codecs you need is

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-bad-multiverse

You may want to check if there is a later version of gstreamer available. The last one worked well for me and all my videos played so I stuck to this version (0.10)

I'm sure there is a way to save it too but hopefully someone will answer your the second part of your question here

share|improve this answer
1  
you can download them from the gstreamer website. Click link –  exIT Solutions Aug 2 '12 at 4:09
    
Thanks, but I don't thinks your codec list if full enough. I need almost all existing codecs. –  skater_nex Aug 2 '12 at 4:36
1  
check out this Post installation guide. It has details on installing codecs in the Multimedia section. I hope this helps link –  exIT Solutions Aug 2 '12 at 4:50

Install the ubuntu-restricted-extras for most of the codecs. To install it, click on the below image: Install via the software center

Install and run aptoncd Install aptoncd to backup all the packages you have downloaded; you can reuse them using aptoncd in any computer.

share|improve this answer
    
I really need all the codecs. How Can I obtain rare ones? –  skater_nex Aug 2 '12 at 4:34
    
i think all the codecs would come with restricted extras, still you can search in the "software centre" for any other codecs left to be installed. if you are a music professional , you can install "ubuntustudio desktop" it will fetch all the required packages for art-music professionals. –  techvish81 Aug 2 '12 at 5:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.