How To Play Music And Video In Fedora

How to play music and video(MP3, MPEG, AVI, FLV and other multimedia files) in Fedora 12?

Due to patent encumbrance codecs required to play some proprietary file formats are not shipped with Fedora. Codecs are the programs that encode and decode digital data. These codecs are available in the rpmfusion repository for Fedora. You will be able to play mpeg, mp3, avi, flv and other commonly used file formats for music and video. You will require an Internet connection to download and install these packages on your computer.

video movie playing in gnome mplayer fedora 12 screenshot

Let us get started. Are you ready?

Playing music and video in Fedora 12

1. Open a terminal and switch to root user.
Launch the terminal from the panel menu
Click Applications->System Tools->Terminal
On the terminal type:

su -

Type your root password and hit enter key on the keyboard.

2. Check whether sound is properly configured on your system.

play /usr/share/sounds/gnome/default/alerts/bark.ogg 

If you hear sounds proceed further. Otherwise check volume control and sound devices configuration. Below is the output when you play the wav sound file from the terminal.

/usr/share/sounds/gnome/default/alerts/bark.ogg:
 
  Encoding: Vorbis        
  Channels: 2 @ 16-bit   
Samplerate: 48000Hz      
Replaygain: off         
  Duration: 00:00:00.54  
 
In:100%  00:00:00.54 [00:00:00.00] Out:26.0k [      |      ] Hd:3.8 Clip:0    
Done.

3. Enable the rpm.livna.org, RPM Fusion free and non free repositories.

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

4. Update the system

yum update -y

5. Remove the totem and xine packages installed on your computer. Let us use the totem packages from RPM Fusion instead. From this step we will use yum. Close other applications that use yum in the background. Pirut - Add/Remove Software and Software Updater use yum as back end. You may also have to stop yum-updatesd daemon running on your computer.

yum remove totem totem-mozplugin totem-plparser xine xine-lib

Use these commands to kill the existing yum processes if you encounter any issues running yum.

killall yum-updatesd
rm /var/run/yum.pid

6. Download and install the codecs from rpmfusion

yum install gstreamer-plugins-bad gstreamer-plugins-bad-extras gstreamer-plugins-ugly

7. Optionally download and install other media players.
a) Audicious

yum install audacious-plugins-wavpack audacious-plugins-vortex audacious-plugins-uade audacious-plugins-sid audacious-plugins-metronome  audacious-plugins-jack audacious-plugins-freeworld-wma audacious-plugins-freeworld-tta audacious-plugins-freeworld-mp3 audacious-plugins-freeworld-ffaudio audacious-plugins-freeworld-alac audacious-plugins-freeworld-aac audacious-plugins-freeworld audacious-plugins-esd audacious-plugins-amidi audacious-plugins audacious-plugin-xmp audacious-plugin-fc audacious-libs audacious-devel audacious

b) ffmpeg: FFMpeg is a complete and free Internet live audio and video
broadcasting solution. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.

yum install ffmpeg ffmpeg-devel ffmpeg-libs ffmpeg2dirac ffmpeg2theora

c) mplayer

yum install gnome-mplayer gnome-mplayer-nautilus mplayer mplayer-doc mplayer-gui

d) xmms

yum install  xmms-mp3 xmms-mplayer xmms2 xmms2-freeworld xmms2-mp4 xmms2-mac xmms2-mad xmms2-nonfree 

e) Rhythmbox

yum install rhythmbox-lirc rhythmbox-upnp 

f) Others

yum install vlc

Launch your favourite multimedia application from the GNOME panel and play your favorite music or video.

Taxonomy upgrade extras: 

Comments

wooow, that is amazing and pure nice. Thank you.

thank dude,
it's verry useful

Thanks for sharing a nice informative post .

Finally, after all this time. it works!! thanks

Sudheer,
Thanks for your help Now i can play .wmv, .avi, .mp3, .mpg, .3gp in Fedora 12. Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks, Thanks.

I heard you!

You're welcome. :)

Hi there :)

I installed Fedora 13 last week. I followed described procedure, but for some reason I cannot get my music and videos playing in Fedora. Firefox did not work either, so I had to download Chrome, as Firefox could not open web pages at all. Does this have to do with Network or Firewall settings?

Thanks a mill.

Regards,
Jose

What happens when you try to play music and video?

What exactly do you mean by Firefox did not work? Are there any error messages? If so, what exactly is the text of the error message?

All of the video players (xine, mplayer, totem and vlc) lockup the system when I try to play a video. This has only started happening since the install of Fedora 13. Had to build a windows machine to play my media - bummer.

Thanks Dude, Very Useful command's.

Hope that You Will Help the people long time

Thanks and Regard's
Michal Bridge

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way I'll be subscribing to your feed and I hope you post again soon.

hello i had a pleasure to read your blog.you give some useful ideas that not everybody can do it ,thanks..keep good work like this!

--email extractor

This tutorial has given me a step by step guide which has indeed helped me a lot. Thanks for posting this. Hope to read more of your posts.

dude wish i had seen this 5 mins back before uninstalling my KDE desktop ! sad i tried so many things but music jus wouldnt play ! best and neatest solution for the mmx trouble i've ever seen :)

I agree with the others- this got my sound working and I couldn't even play a CD! I too have RSS'd your blog as you appear to have a wide variety of tastes (such as a love for books) that I look forward to hearing about from you.

Cheers!

Hey guys, im kinda new to linux so am still familiarising with it. I recently installed Fedora 13 on my pc, but the problem is it's a standalone pc and has no internet access. i am only able to download the codecs and then install them manually on the pc. I have been looking for sites where i can download the codecs to play mp3s and dvd videos unsuccessfully, can anyone help? would really appreciate it, oh and i have an Ocean TV Magician PT218 TV Card, anyone know where i can get the drivers??

Thanks in advance.

Without Internet access, it's going to be a pain in the neck to install the codecs.

Using yum, you can search, download, install, update and remove software conveniently. It does dependency resolution for you. Without yum, you can fall back to RPM. Using the rpm command you can install the packages manually.

  • Download the above mentioned packages from the Fedora and RPM Fusion responsibilities accessible via FTP or HTTP.
  • Copy the packages to your Fedora PC.
  • Launch the terminal. Become root by executing `su -`
  • Install the package using the command

    rpm -Uvh /path/to/the/package.rpm

Hey man, sorry for very very late response. I managed to download the packages from the download mirrors. I copied them to one folder and installed them using the command:
rpm -Uvh --nodeps *.rpm
and i got all sorts of errors, this one amongst them:
FATAL: Could not open '/boot/System.map-2.6.34.3-37.fc13.i686.PAE': No such file or directory
126
I still get the codecs error message when i try to play mp3 files. The worst part of it all is when i start the machine, it goes straight to command line it does not allow me to log on to the GUI.

Any help???

Thnx bro, got to the links and i see what you mean,thats a whole lot of packages, but i got no option hey, let me try doing that and see how i manage.

Thnx again!!

Thanks alot. Now My Fedora 13 looks like a piece of crap Ubuntu system.

Thanks a lot . I had been surfing for a lng period of time that how to install these all plugins.
At last i found it here....

You Rock Dude.....!!!!!!!!!!!!

Thanks for the information.

Thanks a lot dude......it helped me so much
may god bless you.....

thanks thanks thanks thanks...........

Rohit Singhal

I am getting this error

ftp://ftp.redhat.com/pub/redhat/rhel/beta/14/i386/os/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-beta. Please verify its path and try again

what can I do ?

There seems to be an error in your yum repositories configuration. Paste the output of:

ls /etc/yum.repos.d/

[mohit@mohit ~]$ ls /etc/yum.repos.d/
adobe-linux-i386.repo rpmfusion-free.repo
fedora-rawhide.repo rpmfusion-free-updates.repo
fedora.repo rpmfusion-free-updates-testing.repo
fedora-updates.repo rpmfusion-nonfree-rawhide.repo
fedora-updates-testing.repo rpmfusion-nonfree.repo
google-chrome.repo rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo rpmfusion-nonfree-updates-testing.repo
[mohit@mohit ~]$ ^C
[mohit@mohit ~]$

It really works. Thank you so much dear for support.

pal u saved me..........thanx a ton

i have searched and searched to get my FLV files to play

noob to fedora 13
thanks for the help, codec hunting is hard, it was nice back in the day where it was installed on the fly

thanks this was very helpful for a NOOB like me

Thanx a million dude. Your guideline really helped me a lot.. Thanxxzz

hello
i have some problems!
when i write rpm -Uvh http://...........................
i see this error:
coulden't connect to host
transfer faild
what should i do?

Post the URL you used in the command

DON'T USE 'yum remove' COMMAND
IT REMOVED KDE FROM MY SYSTEM

good job.... thanks

Hi!

I followed ur commands on fedora12.

I want to run video & audio using gstreamer.

But I'm not able to download gnomeplayer,ffmpeg.

Error :No package gnome-mplayer available.
No package gnome-mplayer-nautilus available.
No package mplayer available.
No package mplayer-doc available.
No package mplayer-gui available.
Error: Nothing to do

Same error for ffmpeg also.

kindly help me in this regard.

Regards,
Lakshmi

The latest version of Fedora is 15. Fedora 12 is now unsupported.

Try the commands on Fedora 15.

hey ,
ok i am facing this problem for quite some time ,
when ever i try to install anything on fedora15 i am the terminal shows
trying another mirror (3 times )
and then it says
please verify its path and try again .

i m actually new to linux .. :)

[mohit@mohit ~]$ ls /etc/yum.repos.d/
adobe-linux-i386.repo rpmfusion-free.repo
fedora-rawhide.repo rpmfusion-free-updates.repo
fedora.repo rpmfusion-free-updates-testing.repo
fedora-updates.repo rpmfusion-nonfree-rawhide.repo
fedora-updates-testing.repo rpmfusion-nonfree.repo
google-chrome.repo rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo rpmfusion-nonfree-updates-testing.repo
[mohit@mohit ~]$ ^C
[mohit@mohit ~]$

I had F15 installed and got Gnome3 (argh) and KDE4 (argh).

So I moved to F13 again.

But a lot of this distro software shall not be updated.

So, how to have Gnome 2 and KDE 3 on F15?

Thank you.

Thanks for all the tech information. Very clear and it's enabled me to get started on Fedora 14.
It's great. Thanks again

Thanks so much i have been using gentoo for the last 5 months and don't have that much time to play about so i install fedora and it takes me 5 hours to get it to play mp3s lol.

Thanks Dude........

Am so grateful for this man! Uve saved the day now can run full multimedia on Fedora 16

getting error in 3rd step as:

root@ubuntu:/# rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable...
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable...
error: skipping http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable... - transfer failed

What to do?
plz help me..

[root@arun arun]# rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-...
Retrieving http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-...
warning: /var/tmp/rpm-tmp.PxKICh: Header V3 RSA/SHA256 signature: NOKEY, key ID f09d8368
error: Failed dependencies:
rpmfusion-free-release >= 14 is needed by rpmfusion-nonfree-release-14-2.noarch
system-release >= 14 is needed by rpmfusion-nonfree-release-14-2.noarch
------------
need help.
yum update does not update anything!!!

Dude, Your instructions were a life saver......Easy to understand and easier to do.....great job!!!

How to play with ffmpeg. It does not appear in application->sound and Video. Command propmt also not working.

Voila, that worked like a Charm..Thanks man!

thank u my frd..... these steps are makes me happy.... its so nice.... thanksa lot man

Thanks mate! Worked smoothly

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.