PDA

View Full Version : HOW-TO- Install mplayer


pixel
4th October 2004, 02:45 PM
mplayer is an amazing media player for linux you all know I don't have to tell yet for my satisfaction I am telling :D

fine letz see how to install mplayer on linux from its source.

Dependency:
X, GTK, SDL...

extract the mplayer source to desired path say /usr/local/mplayer
extract the mplayer codecs to desired path say /usr/local/lib/codecs
now go to /usr/local/mplayer and type the following command

./configure --enable-gui --with-CODECSDIR=/usr/local/lib/codecs

if it configures with out any error
type

make

and then

make install

by default mplayer has no skins you have to load the skin in to the skin dir

extract a skin and put it in one of the following path.

/home/username/.mplayer/skin
/usr/share/mplayer/skin/

in
/home/username/.mplayer/

there will be a file named "config".

open that and type the following.

GUI=yes

and save it

now press META-F2
and type

mplayer or gmplayer

mplayer opens and you can watch movies on linux.

hehehe cool isn't it??? :D :cool:

I don't how this doc is going to help other I felt like telling it and I have

thanx to all.

ilja
4th October 2004, 02:49 PM
thx pixel,

or even better way:
http://fedorafaq.org/#installsoftware

yum install mplayer

JordanN
6th October 2004, 01:06 PM

perhaps I need their yum.conf prior to running that command?

taylor65
6th October 2004, 06:33 PM
Add these lines in /etc/yum.conf, then you can do 'yum install mplayer mplayerplug-in'.
[dag]
name=Fedora Core Dag Wieers' repository
baseurl=http://apt.sw.be/redhat/fc$releasever/en/i386/dag

mustangfanatic
15th October 2004, 06:40 AM
thx pixel,

or even better way:
http://fedorafaq.org/#installsoftware

yum install mplayer


nothing found...?
I downloaded that new conf to my /etc directory as well

Phantom X
15th October 2004, 07:01 AM
In http://tettnang.freshrpms.net/ always have mplayer packages, but is very fun to compile your own sources.

imdeemvp
15th October 2004, 07:04 AM
I downloaded that new conf to my /etc directory as well
1st. you have to edit the /etc/yum.conf and add the lines to it
2nd. open terminal and become root and type: gedit /etc/yum.conf once its opened add these lines:

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/stable
#gpgcheck=1

[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms/
gpgcheck=1

[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag/
gpgcheck=1

and SAVE it!!

3rd. close it and from the terminal import the gpg keys for each repository: http://fedorafaq.org/#gpgsig
and you are done!!

Varkk
15th October 2004, 08:36 AM
Isn't it a bad idea to mix the livna, freshrpms and dag repositories?

imdeemvp
15th October 2004, 09:04 AM
Isn't it a bad idea to mix the livna, freshrpms and dag repositories?
not according to www.fedorafaq.org

Varkk
16th October 2004, 04:46 AM
# Uncomment these to use them -- note that some packages
# from these repositories may conflict with the fedora.us
# packages. If you use these repositories, you may wish to
# comment-out the fedora.us and livna.org repositories.



From the fedorafaq. Freshrpms, Dag and many others are commented out in their yum.conf for the reason quoted above. So I was wrong about livna, it i fedora.us which conflict with Dag and Freshrpms.

imdeemvp
16th October 2004, 08:09 AM
i only use the stable ones.

PeTzZz
10th November 2004, 03:20 PM
./configure --enable-gui --with-CODECSDIR=/usr/local/lib/codecs
CODECSDIR should be lowercased. Otherwise it doesn't work.
You can see available parametres if you type ./configure --help
(It is lowercased there in my version of mplayer)

by default mplayer has no skins you have to load the skin in to the skin dir

extract a skin and put it in one of the following path.

/home/username/.mplayer/skin
/usr/share/mplayer/skin/
After that you should rename the extracted skin folder to 'default'. Otherwise gmplayer doesn't find it.

These were my remarks after installing MPlayer v1.0pre5 on Fedora Core 3.

Nice how-to otherwise.
:)

zAo
10th November 2004, 06:37 PM
Why dont you install apt?
Install the RPM from http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/mplayer/

Then:

# Get the packagelist
$ apt-get update

# Install mplayer with all its dependencies
$ apt-get install mplayer


:)

jale2ice
10th November 2004, 09:06 PM
Why don't you just add the freshrpm repo to /etc/yum.redo.d/ ?

Then: yum install mplayer

:)

Varkk
10th November 2004, 09:56 PM
As staed above, just use the yum.conf in the fedorafaq and be done with it

sayeeth
10th November 2004, 10:09 PM
I'm unable to change the Application Menu icon for MPlayer. I've tried using KMenu Edit. I can change the icon to what I need but when I Save and Quit, the icon does not change. Any idea why?

PeTzZz
10th November 2004, 10:16 PM
http://www.fedoraforum.org/forum/announcement.php?f=12

j_baer
11th November 2004, 12:02 AM
All,

I just re-installed FC3 to work through the mplayer thing. None of the yum options work, although it does appear to be correct that the yum.conf file has less revalence. I installed the key from all of the repositories I wanted yum to search and indeed it seemed to find them.

At this point I am off to try the compile options ...

Any suggestions on yum are appreciated. My rpm sources are livna, freshrpms, and dag.

Thanks ...

jale2ice
11th November 2004, 12:08 AM
Here is my freshrpms.repo

[core]
name=Fedora Linux $releasever - $basearch - core
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core

#[extras]
#name=Fedora Linux $releasever - $basearch - extras
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/extras

#[alternatives]
#name=Fedora Linux $releasever - $basearch - alternatives
#baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/alternatives

[updates]
name=Fedora Linux $releasever - $basearch - updates
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates

[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms

j_baer
11th November 2004, 12:33 AM
jale2ice,

That was the trick, mplayer installed perfectly.

Thanks ...

sideways
11th November 2004, 12:39 AM
I installed the old fashioned rpm way:

rpm -ihv mplayer-1.0pre5-2.i386.rpm (http://luna.cs.ccsu.edu/dominik/apt/fc2/RPMS.testing/mplayer-1.0pre5-2.i386.rpm) mplayer-common-1.0pre5-2.i386.rpm (http://luna.cs.ccsu.edu/dominik/apt/fc2/RPMS.testing/mplayer-common-1.0pre5-2.i386.rpm)
rpm -ihv mplayer-font-iso1-1.1-1.noarch.rpm (http://luna.cs.ccsu.edu/dominik/apt/all/RPMS.stable/mplayer-font-iso1-1.1-1.noarch.rpm)
rpm-ihv mplayer-gui-1.0pre5-2.i386.rpm (http://luna.cs.ccsu.edu/dominik/apt/fc2/RPMS.testing/mplayer-gui-1.0pre5-2.i386.rpm) mplayer-skin-default-1.4-1.noarch.rpm (http://luna.cs.ccsu.edu/dominik/apt/all/RPMS.stable/mplayer-skin-default-1.4-1.noarch.rpm)
rpm -ihv mplayer-codecs-essential-20040704-1.i386.rpm (http://luna.cs.ccsu.edu/dominik/apt/all/RPMS.stable/mplayer-codecs-essential-20040704-1.i386.rpm)

A neat collection of skins mplayer-skins-1.6-1.fr.rpm (http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/mplayer-skins/)


in preferences->misc change DVD Device and CD-Rom Device appropriately to /media/cdrecorder or whatever (may be better to set up symbolic liks such as ln -s /dev/hdc /dev/dvd etc (as roo))

EDIT deleted advice about adding user to 'disk' group, since this is apparently not very safe.

j_baer
11th November 2004, 12:54 AM
sideways,

What was the source of your rpms?

I need a little further help with your preferences. Is this the preferences menu choice under Applications?

Thanks,

j_baer

sideways
11th November 2004, 01:01 AM
sideways,

What was the source of your rpms?

I need a little further help with your preferences. Is this the preferences menu choice under Applications?

Thanks,

j_baer

the rpms are hyperlinks, just hover over them and you can se the urls, which are mostly from http://luna.cs.ccsu.edu/dominik/mplayer/

if you right click over the mplayer window you will see a menu, one of the selections is 'Preferences', this has 5 tabs, the 'Misc' tab allows you to enter the DVD/CD-Rom locations (the defaults are /dev/dvd, /dev/cdrom which are not the defaults for fedora)

Prometheus
11th November 2004, 01:14 AM
Huh, strange, i have freshrpms and dag in my yum.conf, yet mplayer isnt installed and yum says no action to take... interestering. Oh well, i can always compile it myself.

jgionet
11th November 2004, 02:38 AM
how do you make gmplayer your default player? (for mp3. cds. video, etc..)

thxs

jgionet
11th November 2004, 03:01 AM
doh.. oops.. I think I got it.. (sorry newbie here switching from XP)

ok.. so now I have sound (headphones is my master volume level for some unknown reason) and I have mplayer installed.
When I double click a mp3 on my system I get this message when gmplayer loads:
ERROR!
audio_setup: Can't open audio device /dev/dsp: Device or resource busy

What's causing this error?

also.. if I choose another song while a current song is playing or even if gmplayer is sitting idle another gmplayer window opens.. is this suppose to open? should it be allowing multiple instances of it? how can I turn this off?

and last but not least.. I noticed that when gmplayer is playing I can't hear any other system sounds.. they seem to queu up and wait for mplayer to finish.. then all of a sudden I can hear all these sounds from several minutes ago..

help!
thxs :)

brlmedia
19th November 2004, 07:01 PM
hi all, also a newbie from windows, i downloaded the yum.conf from the fedora faq page, and after i run
yum list available or yum update i get the following error:

[root@MSHOME ~]# yum list available
Repository updates-released already added, not adding again
Repository base already added, not adding again
Setting up Repo: livna-stable
Cannot open/read repomd.xml file for repository: livna-stable
failure: repodata/repomd.xml from livna-stable: [Errno 256] No more mirrors to try.

obviously i'm missing something? thanks

noliver1
29th November 2004, 10:22 PM
This discussion cured my mplayer problems, thanks Sideways!
I carefully followed the fedorafaq and copied the yum.conf then installed all bits of mplayer. Everything except sound worked and all sound outputs were on and not muted. Changed dvd/cd drive location as per sideways instructions but couldn't resolve the sound issue. Also the mplayer plug in kept crashing Firefox or Mozilla. Sideways rpm install worked very nicely after carefully runing yum remove mplayer then using rpm -Uhv mplayer-pieces I found mplayer worked very nicely with sound and everything. This instruction should be easier to find admins, do you reckon it could or should go into the fedorafaq? I found that the faq mostly worked but some of the urls in the yum.conf are dodgy and didn't result in a working mplayer at the end of the day. Clearly though others have found that it does work. Great work team, just shows that this forum works. Go Fedora Community!

sideways
4th December 2004, 07:19 PM
Cheers noliver1, one problem is that those rpms don't remain up2date, so you should get the latest rpms via http://www.mplayerhq.hu/homepage/design7/dload.html

Also, many people prefer to compile mplayer from the source tarball since you get a more optimised binary and can enable options such as lame mp3 encoding in mencoder.

I forgot the mplayer plugin rpm, which you can find here http://mplayerplug-in.sourceforge.net/download.php
(I noticed this when trying to play the quicktime movie clips from the Matrix Trilogy box set preview on thematrix.com)

(NB: the skins rpm was pointing to the src, I corrected this.)

topa
12th January 2005, 12:11 PM
I need some help with my installation of mplayer.
I unpacked it and after using the command:

./configure --enable-gui --with-codecsdir=/usr/local/lib/codecs

after having installed the codecs it does a lot of things which are quoted [OK].
But when testing the GUI during the installationprocess I got the error that it needs gtk-devel.
Now while checking for those packages (rpm -q <package name>) I found out that gtk-devel is not installed but gtk2-devel and gtk+ are.

Then I tried to install gtk-devel (aiksaurus-gtk-devel-1.2.1-2 RPM for i386) but during this installation I got a next error saying it needs gtk-devel >= gtk-devel1.2.1 .

What might be the problem?

thx
tony :confused:

kosmosik
12th January 2005, 12:27 PM
why do you insist on compilling it yourself? mplayer is quite ugly to compile... when you go to mplayer hompage you will find an URL to fedora (core 2 but they work on 3) RPMS... just download them and install... you can use apt also...

http://luna.cs.ccsu.edu/dominik/mplayer/
http://sunsite.icm.edu.pl/pub/linux/greysector/apt.html

topa
12th January 2005, 01:05 PM
OK will first try it with the rpm package from mplayer site this evening.

thx
tony

the_profiler
12th January 2005, 02:52 PM
how about the mplayer plugin for browsers... (firefox/mozilla) :confused:

topa
13th January 2005, 07:59 AM
Well I downloaded the rpm from the link you gave but it was for FC1.

When I tried to install it I got the next error:

rpm -Uvh mplayer-1.0pre6-1.i386.rpm

warning: mplayer-1.0pre6-1.i386.rpm: V3 DSA signature: NOKEY, key ID 75aa026a
error: Failed dependencies:
libmp3lame.so.0 is needed by mplayer-1.0pre6-1.i386