Add mp3 support in Fedora 10 - gHacks Tech News

Add mp3 support in Fedora 10

One of more frustrating aspects of some modern Linux distributions is that they do not ship with mp3 support rolled in. This is, by design, done because of licensing issues. And granted using the ogg format is a much better solution in the end (as well as a much better sounding format) but for those of us who have massive amounts of mp3 files already located on multiple hard drives converting to ogg format would be a very time consuming option. To that end it is nice to be able to have mp3 support native on your machine.

Fortunately that is not difficult. And even more fotunate, here are the instructions.

The first thing you need to is close out all applications that might want to make use of an mp3 file. This could include Ryhthmbox, Amarok, Banshee, or xmms. Now open a terminal window because you are going to be issuing some commands in a moment. Once the terminal window is open you will first need to su to root. With root privileges it is time to get down to business.

The first set of commands to run will install the necessary repositories for yum to use. First issue:

rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

Once that command completes issue:

rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rmpfusion-nonfree-release-stable.noarch.rpm

Now it's time to install the actual plugins for support. Issue the command:

yum -y install gstreamer-plugins-bad gstreamer-plugins-ugly xine-lib-extras-nonfree

Now your system will allow mp3 playback in the major players. But there is still no xmms. To install xmms with mp3 support issue the following command:

yum install xmms xmms-mp3

Once this is finished your machine is all ready for full-blown mp3 playback in just about every type of application.

Final Thoughts

Yes it's true it would be nice if the major Linux distributions could ship with mp3 support built in. But that is not the case due to licensing. Fortunately getting this working is as simple as a few commands.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. RogueSpear said on December 25, 2008 at 5:09 am
    Reply

    “Yes it’s true it would be nice if the major Linux distributions could ship with mp3 support built in.”

    Actually, what would be nice would be for more, if not all, vendors supporting ogg and flac. The stereo system in my car for instance only supports MP3 and WMA :/

    I haven’t read any conspiracy theories about this, but one would have to think that there was a fairly major campaign to keep those formats off of so many devices.

  2. michael said on December 25, 2008 at 8:31 am
    Reply

    There is a typo in the second rpm command, (rmp). Correct command is “rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm“.

    Always run through it again before you post, cutting and pasting from your doc.

  3. michael said on December 25, 2008 at 8:32 am
    Reply

    Lest i forgot, thanks for the simple summary nonetheless!

  4. Dotan Cohen said on December 25, 2008 at 8:44 am
    Reply

    In Ubuntu one simply clicks an mp3 file, and the system asks if he wants to install mp3 support. No terminal, no thinking, just click and go. It could not be easier.

  5. jack said on December 25, 2008 at 3:56 pm
    Reply

    roguespear – yes it would be nice if more companies would support ogg and flac. the Sansa Fuze was supposed to add ogg support in their last update but they didn’t.

    michael – thank you for correcting that.

    dotan – yeah, some distros make it much easier. i generally say Fedora is not for the new user based on issues such as this.

  6. kevwil said on December 30, 2008 at 8:57 am
    Reply

    First time I installed Fedora 5, I was not able play mp3 files, this is also happen with Fedora 10, but like what this article said, we have to install manually using rpm or yum.

    But, if you don’t want the yum installed directly to internet or if you don’t have internet connection (manual installation), you have to change the location of repositories first to cdrom mount.

  7. Jnanesh said on December 31, 2008 at 9:18 am
    Reply

    Thanks Buddy…
    it worked for me….

  8. Alexander said on January 18, 2009 at 3:29 pm
    Reply

    I am not sure if the second command is essential for MP3 play back. I issued the first rpm command, then the yum command, and now can play MP3s. What is the second rpm command actually working to do?

  9. Andy Gonzales del Valle said on January 30, 2009 at 2:43 pm
    Reply

    It works!!

    Thanxs

  10. John said on February 2, 2009 at 10:09 pm
    Reply

    2nd cmd does NOT work!!!!

  11. umesh sharma said on March 17, 2009 at 11:19 am
    Reply

    its working fine.
    thanks

  12. Anonymous said on April 13, 2009 at 1:45 am
    Reply

    Ahh it works, listening to sleepbot now., thank you so much!!

  13. Anonymous said on April 28, 2009 at 2:09 pm
    Reply

    how to get all combined rpm packages for linux audio and video playbacks alltogethor

  14. Javier said on May 13, 2009 at 6:49 pm
    Reply

    Yes the second command returned an “error: 404” message (still using rpm instead rmp), but seems that it is not necessary however. I skipped such step and continued with third and fourth commands and it worked out.
    I’m listening mp3’s now,
    Thanks a lot.

  15. fran de kasalbito said on May 18, 2009 at 11:18 pm
    Reply

    Perfecto !. Muy bien explicado y funciona !. la verdad es que no tenia soporte de MP3 en Fedora y lo hacia menos apetecible que Kubuntu o Suse.

  16. ike said on May 24, 2009 at 6:57 pm
    Reply

    I’m getting slow playback which is weird, all the songs sound slower and deeper. any ideas?

    [email protected]

  17. Nande said on May 24, 2009 at 7:37 pm
    Reply

    thanks! is really good.
    i think we should try to use mp3 as little as we can
    any time i backup my cd for listen on the pc i do it on ogg. and i only convert them to mp3 to play them on my portable-mp3-player.

  18. Lulu said on May 28, 2009 at 12:39 pm
    Reply

    THANK YOU VERY MUCH !! IT WORKS GOOD !!
    Bye

  19. Ajesh John said on February 23, 2010 at 10:51 am
    Reply

    Tahnks..it works….

  20. Ahad Khan said on April 13, 2010 at 10:53 pm
    Reply

    thanks…its perfect …
    gud job!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.