NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Linux > Other Tips, Tricks and Tutorials

Other Tips, Tricks and Tutorials


How to Install Multimedia Codecs in Linux

Enjoy your movies!

By Marius Nestor, Linux Editor

7th of November 2006, 11:24 GMT

Adjust text size:


Like any other operating system, e.g. Windows, most of the Linux systems come with no multimedia codecs, so you'll not be able to play AVI/DivX/XviD videos or MOV movie trailers. Luckily, someone is taking care of these codecs and they update them regularly. The MPlayer team are the ones that created this Linux codec pack and they are doing a very good job.

In this quick guide I will teach you how to install a codec pack into your Linux system. Let's begin by downloading this codec pack from here. After you have finished downloading, open a console and extract the archive with the following command:

tar -xvf all-20061022.tar.bz2

Now you need to create the directories to store the codecs in, because some players may look in different
directories. For the first directory, type the following command:

mkdir /usr/local/lib/codecs/

Now for the second directory, type the following command:

mkdir /usr/lib/win32

NOTE: You might already have this last directory, if you have installed a multimedia player like xine or kaffeine. The only thing is that this directory is empty, so you still need to fill it up with codecs.

You need now to copy all the codecs to the first directory with the following command:

cp all-20061022/* /usr/local/lib/codecs/

After you have copied the codecs, you must change their permissions to 755, typing the following command:

chmod 755 /usr/local/lib/codecs/*

And finally, copy again all the codecs from the first directory to the second directory with the following command:

cp /usr/local/lib/codecs/* /usr/lib/win32/

That's all! Now you can test them by playing your favorite movie, with your preferred multimedia player.

Let’s have a look now at the most important video and audio codecs that this package provides.

Video Codecs:

• MPEG-1 (VCD) and MPEG-2 (DVD) video
• native decoders for all DivX variants, 3ivX, M$ MPEG-4 v1, v2 and other MPEG-4 variants
• native decoder for Windows Media Video 7/8 (WMV1/WMV2), and Win32 DLL decoder for Windows Media Video 9 (WMV3), both used in .wmv files
• native Sorenson 1 (SVQ1) decoder
• native Sorenson 3 (SVQ3) decoder
• 3ivx v1, v2 decoder
• Cinepak and Intel Indeo codecs (3.1,3.2,4.1,5.0)
• MJPEG, AVID, VCR2, ASV2 and other hardware formats
• VIVO 1.0, 2.0, I263 and other H.263(+) variants
• FLI/FLC
• RealVideo 1.0 & 2.0 from libavcodec, and RealVideo 3.0 & 4.0 codecs using RealPlayer libraries
• native decoder for HuffYUV
• Various old simple RLE-like formats

Audio Codecs:

• MPEG layer 1/2/3 (MP1/2/3) audio (native code, with MMX/SSE/3DNow! optimization)
• Windows Media Audio 7 and 8 (AKA WMAv1 and WMAv2) (native code, with libavcodec)
• Windows Media Audio 9 (WMAv3) (using DMO DLL)
• AC3 Dolby audio (native code, with MMX/SSE/3DNow! optimization)
• AC3 passing through sound card hardware
• AAC
• Ogg Vorbis audio codec (native library)
• RealAudio: DNET (low bitrate AC3), Cook, Sipro and ATRAC3
• QuickTime: Qualcomm and QDesign audio codecs
• VIVO audio (g723, Vivo Siren)
• Voxware audio (using DirectShow DLL)
• alaw and ulaw, various gsm, adpcm and pcm formats and other simple old audio codecs
• Adaptive Multi-Rate (AMR) speech codecs

In conclusion, after installing this package, you'll be able to play most of the video materials out there, with sound of course!

Read by 144,535 user(s) | Add comment | Link to this article TWEET THIS


Article rating:
Very Good (4.0/5) 44 vote(s)    

Subscribe to news | Print article | Send to friend

© Copyright 2001-2010 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


How to Install XGL on Fedora Core

Fedora Desktop Customization

Debian Installation Guide

Installing A Linux Distro to An USB Drive

Flash Player for Linux

Configuring the Ethernet Interface from The Command Line

How-to Use Your Partitions in Linux

User opinions:


Comment #1 by: screew on 14 Nov 2006, 02:31 GMT reply to this comment

you can link with
ln -s /usr/local/lib/codecs/ /usr/lib/win32
instead of copy all codec to preserve some space on your hardrive to put some mΓ©dia ;)


Comment #2 by: Leroy on 24 Mar 2008, 17:52 GMT reply to this comment

You can't extract .bz2 with tar -xzf, you need -xjf


Comment #3 by: linuxnewbie on 16 Apr 2008, 23:36 GMT reply to this comment

Thanks so much for these steps! It really helped with playing my avi files on kaffeine!!!


Comment #4 by: Waqas on 06 Jun 2008, 19:28 GMT reply to this comment

Its still not working with me i have fedora 7 on my compaq (intel 845)


Comment #5 by: Busk on 31 Aug 2008, 19:24 GMT reply to this comment

Hi guys

I need some help. When I'm trying to copy all of the codecs to the first directory I get this message in the terminal window: cp: cannot stat `all-20061022/*': No such file or directory.
Can anyone help. Thanks

Busk

Comment #5.1 by: evilsupernerd on 17 Feb 2009, 13:36 GMT

simple. they updated.
for future refference look at the filename of the archive you downloaded
for me it was all-20071007


Comment #6 by: Farcash on 13 Oct 2008, 20:38 GMT reply to this comment

I have the same problem


Comment #7 by: Nuribat on 30 Dec 2008, 22:19 GMT reply to this comment

I try to this step, and my Movie Player on Mandriva Free 2009 work well. ItΕ› really help me. Thanks.


Comment #8 by: Jeroen on 25 Jan 2009, 18:46 GMT reply to this comment

It didn't work

jeroen@ubuntujeroen:~$ tar -xvf all-20061022.tar.bz2
tar: all-20061022.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

What should I do now?

any help appriciated

Comment #8.1 by: Marius Nestor on 26 Jan 2009, 07:40 GMT

There's a new version of the w32codec-all package. You can get it from here -> http://linux.softpedia.com/get/Multimedia/Video/w32codec-all-10127.shtml

Anyway.... open a terminal and paste the following commands, one by one:

wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

tar -xvf all-20071007.tar.bz2

The problem was that you forgot to CD to the folder where you saved the archive.


Comment #9 by: Wajid on 10 Feb 2009, 19:09 GMT reply to this comment

I have installed fedora 8 on intel board
i extracted the contents of folder but it is
not working


Comment #10 by: akj on 12 Feb 2009, 11:23 GMT reply to this comment

thanks for this package.
i had the following problem: when trying to play a wma file with movie player in fedora 8 i had always got the following error;

windows media video 7 decoder& windows media audio 8 decoder are not installed
although this package contain the required decoder but movie player is not able to play my wma file

Comment #10.1 by: Marius Nestor on 12 Feb 2009, 11:46 GMT

Movie Player? You mean Totem? ... Try with MPlayer :)


Comment #11 by: bond on 26 Mar 2009, 23:54 GMT reply to this comment

it's not working with linux suse11.1
can anyone tell how to play xvid,mp4,and normal mpeg compressed video files


Comment #12 by: Carlos Rendon on 10 Apr 2009, 01:33 GMT reply to this comment

I keep having this problem when i move the codec files to the filesystem... It keeps saying permission denied. How do I resolve this?

Comment #12.1 by: Marius Nestor on 10 Apr 2009, 06:37 GMT

Switch to root


Comment #13 by: albankillapi on 11 Apr 2009, 17:12 GMT reply to this comment

It would be nice if you explain how to see movies without root permission. I downloaded the file and extracted it in my home folder but I don't find how to redefine the place where Kaffeine take the codecs.


Comment #14 by: Will on 23 Jun 2009, 02:47 GMT reply to this comment

This isn't working for me at all.

I used the cp command, and it gave me the "directory does not exist" bit.
I tried copying the files manually but I don't have root access. I tried renaming the folder to ensure I got it right, and it still says it doesn't exist.

What must I do?

Comment #14.1 by: Marius Nestor on 23 Jun 2009, 12:35 GMT

What distribution do you use?


Comment #15 by: eric on 10 Jul 2009, 10:21 GMT reply to this comment

can i use that command on backtrack 3 final (live usb)?
is that the command for all distributions?


Comment #16 by: pissedoffnoob on 19 Aug 2009, 21:58 GMT reply to this comment

okay, ive done everything this says, but i still cant play anything in any music player. i get a warning that codecs are not installed, even though i have the folder with the codecs open right there in front of me. this is why linux will never become popular.

Comment #16.1 by: Siarhiej on 11 Sep 2009, 09:03 GMT

Try play you smth in SMplayer.
IMHO if you give up with linux, then buy Windows and use it :)


Comment #17 by: billy on 17 Sep 2009, 06:53 GMT reply to this comment

ok, you lost me at "open a console"? huh? like a command prompt? you're kidding me! you have to open a command prompt to get codecs? Man, no wonder linux is a far far third. come back when you can play with the big boys

Comment #17.1 by: WingCommander on 05 Dec 2009, 15:44 GMT

Billy - Come on dood! Get with the program!

Or go back to Windoze and the daily BSOD. Don't forget your credit card and make sure you purchase all the "anti-whatever" software to keep it running more than 8 hours at a time.

I've been using Linux for four years and I can tell you that an rare headache is much better than a daily one!


Comment #18 by: alisa on 22 Dec 2009, 19:22 GMT reply to this comment

the second command with creating directories isn't working for me :(
"permission dinied"
what should I do? please help!

Comment #18.1 by: Marius Nestor on 23 Dec 2009, 08:56 GMT

Put sudo in front of each command. Like this:

sudo mkdir /usr/lib/win32

Enter your password when asked.

If you are on Ubuntu, you don't need this guide, all you need is to install the ubuntu-restricted-extras package and you'll have all the codecs :)


Comment #19 by: koushik on 26 Dec 2009, 21:24 GMT reply to this comment

i have tried it in my opensuse 11.2.but it was not working.


Comment #20 by: rumi on 24 Jan 2010, 15:00 GMT reply to this comment

It didnt work for me either... o my suse 11.0

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 




Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM