How To Play Music And Video In Fedora

Loading

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

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?

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

Very Helpful

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

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.

Manual download and install

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

Fedora

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

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

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

Thanks a lot..

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 for the information.

thanks dude

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

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

Rohit Singhal

getting errors

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

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

ls /etc/yum.repos.d/

even i m having the same problem .. here is the output

[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 ~]$

Thanks

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

thnx a ton

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

TY

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

Installing media player codecs and VLC media pLayer in Fedora 14

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

error

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

Post the URL you used in the command

DON'T USE 'yum remove'

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

good job.... thanks

good job.... thanks

not downloading gnomeplayer,ffmpeg

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

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

Try the commands on Fedora 15.

error during installation

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

the output to the command u mentiones above ..

[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 ~]$

Fedora 15 to Fedora 13

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

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

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........

Thanks Dude........

Thanks

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

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.
Image CAPTCHA
Enter the characters shown in the image.