Why Linux don’t support mp3 and selected wifi cards out of the box?

by on November 10, 2006 · 34 comments· LAST UPDATED September 20, 2007

in , ,

This question is asked again and again. Why Linux don't support mp3, allow watching DVDs and selected wifi cards out of the box?

Short answer - copyright/IP laws prevent shipping all these software(s) and technologies/plugins with each Linux distribution. However some distribution comes with all these goodies but they are not free (try Linspire, which is not free but support is included for many common software). You need to purchase a subscription.

In the United States and many other countries, companies or developers or manufacturers must pay patent royalties to use an MP3 player or MP3 Encoder or Windows movie decoders. There is also conflicts between patent licenses and the licenses of application source code, so mp3 support is not provided out of box. This has been done for legal reasons. No one wants to get sued for breaking patent laws.

Most of these drivers are "restricted" because they are not available under a completely Free licence.

In short GNU/Linux and other distro try to follow rule:

  1. If something is proprietary, it cannot be included in Linux
  2. If it violates United States federal law (most popular distros are manufactured in USA), it cannot be included in Linux
  3. Patent-encumbered software etc

Following packages/drivers/encoder are not includes in most distros:
=> Nvidia /ATI graphics card
=> Vmware player kernel modules
=> Wifi chipsets
=> MP3 Support
=> Real Media and Player
=> CSS encrypted DVDs (DVD Playback)
=> Cryptography
=> SUN JAVA
=> Adobe Flash Player etc

The patent holder is not ready to give an unrestricted patent grant, as required by the GPL license. To get mp3 support for your distribution you must use third party repositories (or vendor site) to download application.

So how do I get working mp3 and other stuff?

You need to download RPM files or add selected repositories to your distributions. Following list summaries the work around for popular distribution:

Debian Linux

Use apt-get to install required software. However you may find Debian-multimedia repo good to install few codecs.

Add debian-multimedia.org repositories to your /etc/apt/sources.list file:
# vi /etc/apt/sources.list Append following line:
deb http://www.debian-multimedia.org sarge mainORdeb http://www.debian-multimedia.org stable mainJust update all packages list:
# apt-get update
Use apt-get command to install multimedia packages such as mp3 players, DVD players etc.

=> Download and more information available at debian-multimedia

Ubuntu Linux

Use Automatix which is a graphical interface for automating the installation of the most commonly requested applications in Debian based linux operating systems. See how to install and use automatix to run mplayer music player

For Intel Centrino wifi card and other graphics card you need to use Ubuntu binary only package called linux-restricted-modules. Common modules are:
=> nvidia-glx/ATI graphics card
=> vmware-player-kernel-modules
=> Wifi chipsets etc

Most of above are restricted formats and as an end user you need to download and install them on Linux desktop system.

Under Ubuntu Linux linux-restricted* package is installed by default. You can always update this package to get bug fix and stability via update manager or type following commands:
$ sudo apt-get update
$ sudo apt-get install package-name
$ sudo apt-get install linux-restricted-modules-x.x.xx

Always use latest kernel. Replace x.x.xx with your kernel version number. Use uname -r to find out kernel version. If kernel version number is 2.6.17 use package name linux-restricted-modules-2.6.17

Fedora Core (Red hat and friends)

Dag's RPM/ RPMforge.net repositories provides support for following Linux distributions:

  • Red Hat Enterprise Linux
  • Fedora Core
  • Old Red Hat Linux
  • Yellow Dog Linux
  • Aurora Linux
  • CentOS
  • Scientific Linux
  • TaoLinux
  • WhiteBox Linux
  • Lineox
  • BLAG

See how to play mp3 under Fedora Core Linux.

Download and more information available at following urls:
Dag's rpms
Freshrpms
Rpmforge

Don't forget to check out your distributions help documentation and official forum/mailing list :)

Please note that I am not a lawyer but just trying to answer a question which is asked by new Linux desktop users again and again. Hope this small how to provide answer and work around. If you have a better solution or thoughts on how we can help to solve this problem please comment back :)

Other possible solutions

If possible, use patent unrestricted formats such as Ogg Vorbis or FLAC.

Further readings

Updated for accuracy.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 34 comments… read them below or add one }

1 virens November 10, 2006 at 5:51 am

Don`t smoke these drugs anymore, author! :-) RPM`s? In Debian!? Huh!?
Debian supports multimedia out of the box, and you even don`t need to download any packages. Just insert distributive disk with Debian and type from root:
# apt-get install vlc xine-ui xmms amarok
and wonder! That`s not like Ubuntu ar Fedora – in Debian “batteries included”.

Reply

2 nixCraft November 10, 2006 at 6:06 am

Err…

Yes debian does include many of packages but does not include few codecs. So may need to use 3rd party repo. But in general debian has good support :D

Thanks for heads up.

Reply

3 Iscariot November 11, 2006 at 1:29 pm

Who cares about Lunix? FreeBSD supports everything i need out of the box :P

Reply

4 Gorokian Maistre November 11, 2006 at 1:49 pm

Please post more of those pig offal recipes, they’re cool man.

Reply

5 Yoyo November 11, 2006 at 3:00 pm

Some distros include support for all this out of the box, for instance, PCLinuxOS.

Reply

6 fatbloke November 11, 2006 at 3:37 pm

Some might find that certain distros, will, indeed, support these apps out of the box, but that doesn’t mean that that distro is the one for you.

BZ to the author for a nice, easily understood guide about this issue.

It’s fair too say, that most distros can be made to use these apps without too much of a problem – but this tells the new user why that might be.

Reply

7 luc November 11, 2006 at 4:14 pm

actually freespire(linspire’s community driven distribution)supports non-free multimedia amongst other things and it’s free(has also a clean “version”, whithout the proprietary stuff).

Reply

8 Kristian November 11, 2006 at 4:31 pm

This article seems to be targeting newbies, so why does the editing steps use “vi” as the editor of choice? For beginners, “nano” or “gedit” seems much more reasonable. And yes, I am in the Church of Emacs ;)

Reply

9 Kristian November 11, 2006 at 4:33 pm

For an excellent guide how to in Debian get mplayer working with all kinds of formats visit http://www.princessleia.com/MPlayer.php

Reply

10 Robert November 11, 2006 at 5:27 pm

Who cares, Microsoft can’t display XLS or PDF files without installing extra crap. And forget about X-Vid encoded AVI files. At least everything you have mentioned is GPL, and doesn’t cost a single red cent. I could care less if it doesn’t come with the distro, as long as there is http://www.google.com/linux and sourceforge, I think we will ALL survive.

P.S. Show me a Windows machine that will 100% use all your video card “extras”. You can’t, just basic driver support is there, just like every version of Linux I have ever installed. The only difference is no Direct3D on Linux without extra work, but then again, what is DirectX for Microsoft doing??? Can someone say add-on??

Reply

11 frits November 11, 2006 at 5:44 pm

For Fedora, use livna.org.

Reply

12 Keith November 11, 2006 at 6:35 pm

I always have problem using Wifi in Linux. It’s just down to the wireless card manufacturers refusing to produce drivers for Linux.

Reply

13 Kristian November 11, 2006 at 6:42 pm

Keith> Try ndiswrapper

Reply

14 X1NN November 11, 2006 at 9:21 pm

Is there a way to legally buy the licenses without buying linspire. Like say you could just pay to use mp3’s under Ubuntu??

Reply

15 Leon Brooks November 12, 2006 at 7:50 am

I use Mandriva, which has the PLF (Penguin Liberation Front) people producing RPMs to cover non-free stuff which the distro itself can’t safely ship.

It’s not perfect, but it works pretty well. I can dink around with random players of all sorts, and can read my daughter’s iPod as well.

Reply

16 Steven Brown November 12, 2006 at 8:14 am

This is the wrong approach – you are teaching users (and future developers) that the best way to deal with a proprietary roadblock is to attempt to circumvent it, and often illegally. That’s not how Free Software works.

They need to be told about truly Free media codecs like Vorbis, Speex, FLAC, and Theora, and why they should encourage authors to release in these formats rather than under patent encumbered ones that limit the number of people that can legally view them.

Reply

17 Stig November 12, 2006 at 8:56 am

Slackware comes with mp3-support by default.

Reply

18 nixCraft November 12, 2006 at 12:42 pm

@Steven,
It depends upon your view and usage. I have already suggested using Vorbis and FLAC. However in reality you may need to use one of those propriety formats out there. It will be better if we really get open format.. just one of those my XMAS wishes

@X1NN,
Commercial support available for Ubuntu contact Ubuntu’s parent company Canonical Ltd – http://www.canonical.com/ for more info.

@Keith
Can you specify your wifi chipset name?

Appreciate all of your posts and suggestions.

Reply

19 ShakaZ November 12, 2006 at 3:04 pm

“However some distribution comes with all these goodies but they are not free”

This is simply not true, there are several free distro that do include miltimedia support out of the box, with all the needed codecs & some other proprietary apps that are used commonly by linux users… just to name one i use regularly : Kanotix

Reply

20 Guess Who November 12, 2006 at 4:27 pm

Kanotix does NOT come with codecs or proprietary apps

Reply

21 Egon Spengler November 12, 2006 at 5:52 pm

For gstreamer-powered software (totem, rhythmbox, et al.), fluendo has mp3 codec available, and Ubuntu has gstreamer0.10-fluendo-mp3 – Fluendo mp3 decoder GStreamer plugin.

Reply

22 Justin Silverton November 13, 2006 at 1:27 am

“P.S. Show me a Windows machine that will 100% use all your video card extras. You cant, just basic driver support is there, just like every version of Linux I have ever installed. The only difference is no Direct3D on Linux without extra work, but then again, what is DirectX for Microsoft doing??? Can someone say add-on?? ”

The difference is that with windows, you can get video card drivers with all the “extras” directly from the manufacturer.

If linux ever wants to become as popular as windows on the desktop, there needs to be some kind of incentive for hardware manufacturers to develop drivers on it (and requiring it to be open sourced is not one of them..in fact..it is probably one of the main reasons linux is still far behind windows).

Reply

23 tktim November 14, 2006 at 4:39 am

New Linux desktop users:
Open Source/Free Software replacements:

Vorbis audio compression format digital audio intended to replace MP3.
Speex audio compression format designed for speech / VOIP intended to replace ?
FLAC audio data compression playback and audio archival intended to replace ?
Theora video compression intended to replace MPEG-4 video (e.g., H.264, Xvid and DivX),
RealVideo, WMV Windows Media Video.

Please correct/update as necessary.

Reply

24 kodok_ijo November 14, 2006 at 3:30 pm

It’s sucks I can’t play my mp3 files, my dvd collection on linux. that is the reason I not full switch to linux. Ok I can download and install the appropriate files, but what about the dependencies stuff ?? I can use apt-get, yum or other apss, but internet connection in my country is so freakin expensive, it tooks months of works before i can pay 1 month internet bill, dial up ?? I try that, but it’s so freakin slow and very expensive …. any idea how to solve this problem ?? because this kind of issue cause linux penetration in my country so low .

Reply

25 quintin December 25, 2006 at 1:37 pm

I think all the people who posted a basic ‘Who cares’ message should read http://www.catb.org/~esr/writings/world-domination/world-domination-201.html.

If Eric Raymond can’t give you a reason to care, then step asside while the rest of us get it done.

Reply

26 nixCraft December 25, 2006 at 10:28 pm

quintin,

Good read and someone really need to fix these problems.

Appreciate your post.

Reply

27 darkside9 May 8, 2007 at 1:03 am

I know that it’s a good idea to replace all that licensed crap,like mp3,avi,etc but from the point of view of the end desktop user,i think that sucks to rebuild your entire collection from scrap,even converted from mp3 to ogg.That’s one area where linux will loose,because to many this lack of playng a simple mp3 file on a computer,will eventually make others to not even bother with it!

Reply

28 Ted July 1, 2007 at 6:41 am

and so., communisim was born….

Look it’s quite simple,
STOP BUYING THEIR CRAP….

they give you a “cell phone” that cant’ connect to half the cells cause of “conflict of interest”, mp3 player’s that can only play mp3s for a month, and what’s next, Food that you can’t have cause the FDA says it promotes grass roots?

Look, lemme just say, if you wanna keep THEM happy, keep buying their JUNK “toys”… if you wanna BE happy, give it up… they got NOTHING for you!

What good are those toys? REALLY SIT DOWN AND SERIOUSLY CONSIDER, WHAT THIS CRAP DOES FOR YOU!!!!:?!?!?!?!?!?!??! what is it? and then, consider what “THEY” have to gain by charging for it…

“REBEL” no… not really, (you don’t owe them your alegience…) but if you’re reading this an you’re in america, then… GTFO if you don’t owe your country alegience! GET INVOLVED…. Happless Tecno Weenies!

Let’s start a revolt… how about just going straight linux, and providing our own shizz to OUR OWN community???? well, i’m finally ready… May God Help Us ALL! cause otherwise, we ain’t gotta prayer……

Look, it’s all smoke and mirrors,
i do not lie,
it’s all a flashy flim flam SHOW….
that’s the truth,
These toys do NOTHING for our good…,
move beyond
Ted concurs.

Reply

29 bjb_nyj101 September 4, 2007 at 4:28 pm

Some distro’s do, some don’t.

openSUSE,MEPIS,PCLinuxOS,Mint,Freespire,Linspire,eLive,Antix,Sam.
These disro’s all support mp3 out of the box. Ubuntu has a the restricted drivers manager that pulls down the codecs when you try to play them.

Red Hat/Fedora doesnt include codecs because they ONLY supply FREE (as in freedom) software in their distro and in their repositories.

Reply

30 gibin george October 29, 2007 at 5:44 am

also i can’t play mp3 as well as mpeg in linux.encoder not installed

Reply

31 Ricky November 30, 2007 at 7:50 pm

Hmm, ‘Most major distros are made in the U.S’.

That sounds a lie. Most popular ones are actually European. Take [K/X/Edu]Ubuntu, it’s British (well, Isle of Man but it’s still a British territory and their main unregistered headquarters is in London) and openSuSE is German along with Mandriva from France.

Reply

32 shaun p December 3, 2007 at 8:54 pm

Actually, Ubuntu is a South African distro. By Mark Shuttleworth, the bloke who sold his Thawte company to Verisign years ago. He is a Russian Cosmonaut (paid $20 million for the privilege) and billionairre (dollar). His HQ is in London. Mark was born and went to uni in SA.

Reply

33 hena March 14, 2009 at 8:14 am

hai every one
i’m just the beginner in linux .i use fedora(red hat)
my music player shows an error that “some decoder are missing” &
can anybody give some suggestion.?…

Reply

34 Robert May 19, 2014 at 2:03 am

Who gives a shit about Linux anyway? You have to go through all kinds of changes just to install software!! Thank you no, I will stick with windows or OS X.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , ,

Previous post:

Next post: