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.

About the author

Sudheer is an entrepreneur and software developer. Get more from Sudheer on Twitter.


wooow, that is amazing and

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

thank dude, it's verry useful

thank dude,
it's verry useful

Thanks for sharing a nice

Thanks for sharing a nice informative post .

Thanks

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

Now i can play .wmv, .avi, .mp3, .mpg, .3gp in Fedora 12

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.

I heard you!

You're welcome. :)

Sudheer
Binary Vibes

Not working

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

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?

Sudheer
Binary Vibes

Similar problem

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 for playing Viedo Help, I can work with my erp

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

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

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

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.

Best !

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 :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.