LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to install codecs in mplayer (https://www.linuxquestions.org/questions/mandriva-30/how-to-install-codecs-in-mplayer-192531/)

kaega2 06-11-2004 08:39 PM

How to install codecs in mplayer
 
Hey everyone.

I just have a quick question. How do you install extra codecs for mplayer when installing mplayer from a rpm? I've got the codec packages off of mplayers website, but it says that the codecs must be in the /usr/local/lib/codecs folder before mplayer is compiled. I'm not compiling it and that directory doesn't exist.

If someone could tell me how it's done, that would save me some time.

Thanks

doug_s 06-11-2004 08:55 PM

if you install mplayer from the plf rpm using urpmi it should install all the codecs you need as dependencies.

You might have to go to www.urpmi.org/easyurpmi first to set up all your sources to do this. You want to specify both plf and contrib as additional sources. Then just use the install gui (rpmdrake).

S.D.Willie 06-11-2004 10:49 PM

best way?????????????? honestly??????????? in mandrake???????????? is to compile yourself. trust me.........you will be glad you did.................heres how you do it.

as root: urpmi mplayer


this will get all dependencies needed, and just say yes to install them. then do:

as root: urpme mplayer

this will remove JUST mplayer but will leave all the files you needed before, installed.

download the source from mplayers site. also, download at least one skin, one set of fonts, and the "all in one" package of codecs. before anything, put all the codecs into /usr/lib/win32 (make the directory)

now enter the mplayer folder afer you extracted it and do this:

./configure (you can add the gui option and codec directory like this which i like to do)

./configure --enable-gui --with-codecsdir=/usr/lib/win32


this will run and find the codecs directory. believe me ive had mandrake and compiling was the best way to get all the codecs working properly.

after the ./configure just run " make " then as root: "make install"

from the command line as a user(not root) run "mplayer"
this will create the .mplayer directory. you can then make a "Skin" directory and "font" directory like so:

you@localhost: mkdir .mplayer/font
you@localhost: mkdir .mplayer/Skin (notice the capital "S")

extract the skin of choice into .Skin and rename that folder to "default"
open the font folder and it will tell you to extract it to .font and the right command.
you can actually copy "codecs.conf" from the mplayer tarball to ~/.mplayer

after all that is done you can just run "gmplayer" from the command line and you will get the gui. good luck.

Riley 06-12-2004 06:18 AM

as of MPlayer 1.0 all codecs should be in
/usr/local/lib/codecs
otherwise follow above instructions. MPlayer RPM in mandrake 10 seems to be better but I'm still compiling.

Daliz 06-12-2004 07:47 AM

I just did a 'urpmi mplayer' and everything works perfectly. Maybe I'm just lucky :D

S.D.Willie 06-12-2004 10:06 AM

Quote:

I just did a 'urpmi mplayer' and everything works perfectly. Maybe I'm just lucky
nah, not lucky, thats the way it SHOULD be. but ive run into problems with codecs from not compiling but maybe youll have better luck. ;)

kaega2 06-12-2004 10:38 AM

Yeah, I doing what you suggested Willie, and I run into the problem that I always run into.

When I compile from source (this has happened since upgrading to mandrake 10.0) The sound on mpeg files sounds bubbly. Like some peopel are talking underwater and instruments aren't tuned properly. It work fine when I use the urpmi command (which I imagine this was something which was fixed in the package to make it work). I've seen other people have this problem too.

And doug, you're eventually going to have the same problem I'm having right now. Some WMV files won't work or will work without sound as well as some quicktime files. Most video files work just fine (which I'm thankful for) but I have some quicktime video that was rendered with final cut pro or just plain quicktime on a mac, and those video's won't play properly. As well as some WMV's I recorded in Windows awhile ago.

These files aren't a big deal, I just want to see them. So it would be nice if I could get it working with Perfect sound. Does anybody else have any other suggestions?

PS: I actually haven't tried the easy urpmi site yet doug, I looked over it but didn't have time to continue. I'll let you know if that does it

otish1000c 06-12-2004 10:54 AM

as doug_s mentioned in an earlier post, use EasyUrpmi to set up PLF & contrib sources. get all the PLF mplayer stuff.......... mplayer, gmplayer, mplayerskins, & all codecs. it will all install & set up for you automatically & will play any type of media file. does for me, at least.......... mpg, avi, wmv, mov, etc. they all work, video & sound. the only thin you might have to do yourself is go to mplayer preferences & pick the audio & video drivers that work best for you.

otis

kaega2 06-12-2004 10:05 PM

Ok, I have to admit, when it started download software from mirrors after running urpmi... I was impressed. so I want to make sure that I have this straight

are you saying that by updating my information by following the steps given by doug, then I just do urpmi mplayer again and it should get my codecs? Also I noticed that there's something now here called kmplayer. What's that?

I'm still testing this out, so I don't know how it's working yet. I'll let you know.

otish1000c 06-13-2004 06:11 AM

Kmplayer is a (sorta) mplayer clone designed to integrate with KDE (hence the K). it is not the same as mplayer, though. they are 2 different apps.

the mplayer packages you'll need to install are as follows........

(all of these will be followed by their particular version numbers. this list is just the main name of each package)

mplayer (plf)
mplayer-gui (plf)
mplayerplug-in
mplayer-skins
real-codecs (plf)
win32-codecs (plf)
xanim-codecs (plf)

a bit about urpmi............

when you type urmpi mplayer, it will search your various sources for anything with the name mplayer. if you have more than one mplayer choice, choose the plf version. it will probably tell you it also needs some dependencies. if so, install those too. just make sure you get all of the above packages for it to work properly.

you should also periodically update your various sources. the easiest way to to this is in terminal as root (you need to be root for urpmi for all installations, by the way) type....... urpmi.update -a
that will update any source you have installed if it needs it. occasionally one (or more) of your source sites might be down or inaccessable. if so, it will tell you that it failed to update. if that's the case, you can either just wait & try again later, or use EasyUrpmi to add a different source. for all types of tricks & commands to use with urpmi check out the man pages for it (man urpmi in terminal as root).

finally, while urpmi is good to get acquainted with, if you want to use the GUI front end to it, simply open MCC (Mandrake Control Center)->software management. from there you can install, uninstall, update, & add/remove packages/sources. for instance, to install the above mplayer packages, use the "install software packages" (rpmdrake) function. type the name (or partial name) of the app in the search box & click "search". it will bring up any apps that match the search. since it's the GUI front end for urpmi, it will also tell you if you need any dependencies, etc. do the same to uninstall packages using the "remove software packages" function.

otis

mooreted 08-12-2004 09:56 AM

"from the command line as a user(not root) run "mplayer"
this will create the .mplayer directory. you can then make a "Skin" directory and "font" directory like so:"

Typing 'mplayer' did not create a .mplayer directory, so I created one myself. Now when I run 'gmplayer' I get this:

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/mooreted/.mplayer/config
[cfg] read config file: /home/mooreted/.mplayer/gui.conf
Reading config file /home/mooreted/.mplayer/gui.conf
Warning unknown option vo_dxr3_device at line 6
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Reading /home/mooreted/.mplayer/codecs.conf: Can't open '/home/mooreted/.mplayer /codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /home/mooreted/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/mooreted/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
SKIN dir 1: '/home/mooreted/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).

I have the 'Blue' skin copied to the .mplayer/Skin directory.

kaega2 08-12-2004 11:11 AM

Strange

Well the error you're seeing right there basially says that the files it's looking for in the .Mplayer folder aren't there. What did it say before you created the .mplayer folder yourself?

mooreted 08-12-2004 01:01 PM

It gave me basically the same errors except that it also could not find the .mplayer directory.

Rathann 08-25-2004 08:48 AM

Quote:

Originally posted by mooreted
"from the command line as a user(not root) run "mplayer"
this will create the .mplayer directory. you can then make a "Skin" directory and "font" directory like so:"

Typing 'mplayer' did not create a .mplayer directory, so I created one myself. Now when I run 'gmplayer' I get this:

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/mooreted/.mplayer/config
[cfg] read config file: /home/mooreted/.mplayer/gui.conf
Reading config file /home/mooreted/.mplayer/gui.conf
Warning unknown option vo_dxr3_device at line 6

You could remove line 6 to get rid of this warning.
Quote:


vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Reading /home/mooreted/.mplayer/codecs.conf: Can't open '/home/mooreted/.mplayer /codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /home/mooreted/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.

You could do as it suggests, i.e. add that line to - for example - /etc/rc.d/rc.local.
Quote:


Using usleep() timing
Can't open input config file /home/mooreted/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
SKIN dir 1: '/home/mooreted/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).

I have the 'Blue' skin copied to the .mplayer/Skin directory.

You don't have to worry about apparently missing config files, MPlayer has built-in default configs
and the files can be set up there to change these defaults. It's not enough, however, to simply put any skin in ~/.mplayer/Skin/. You need to have at least one skin named "default". You may of course make it a link to any skin of your choice, i.e.
Code:

ln -s Blue default
.

mooreted 08-25-2004 08:58 AM

Thanks for all the help. I have been using Linux for about 3 years now and in that time I have only had Mplayer working sporadically. I have switched to Xine. It's easy to install and plays everything.

I do appreciate your respose though.

Have a good day.


All times are GMT -5. The time now is 05:28 PM.