SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i installed the package named
and also put the essential codecs into the folder /usr/lib/codecs
but when i try to run any file with mplayer
i get the following error
mplayer: error while loading shared libraries: libdvdnav.so.4: cannot open shared object file: No such file or directory
The problem here, and the problem you have with any pre-compiled software really, is that MPlayer has been built against a package that is not installed on your system. I would also hazard to guess that there are likely a number of other programs it is going to want which you do not have.
dvdnav is used to handle DVD menus. Even if you are not looking for DVD playback, that is what it was compiled with, so that is what you need to make it run now.
Your only choices are to go onto Linuxpackages.net and start installing all the packages MPlayer asks for until it will work properly, or compiling your own build of MPlayer including only the features you want.
Or, for a bit more work, you can compile your own from the source.
When you follow the provided install instructions you run './configure --enable-gui'
To make it run under X, then 'make' and 'make isntall'. It will tell you which packages are needed on your system. Only problem I had was that when it asks for X support, it actually needed the libxext package..
Probably better to try with the Slackware builds that simcox1 point to first if you are completely new to Linux.
The beauty of slackbuilds.org is that you are actually building the software from source, by using the slackBuild script. Just remember to read all the instructions on the site so you know what you're doing. But it's so simple, and very reliable.
If I remember right, MPlayer involved a lot of different codecs, libraries, and things. So I'd suggest camping out at linuxpackages to see which one it's gonna spit at you next that it can't find. Once you get it all though it's worth it. I haven't found a video yet that it won't play.
Like I said. The package at slackbuilds.org includes everything. You don't need libdvdcss, and the codecs package is the -all one. If you do have libdvdcss already installed, either uninstall it, or I think erics got a package to deal with it.
Make certain that you read the Slackbuild script before compiling MPlayer for your system, especially with the location of the codecs. Also, I found that you will need to visit http://www.mplayerhq.hu in order to download the two skins, Quicksilver (default) and plastik for this particular Slackbuild script in order to get a GUI by default. Once the package has been installed, you will receive a message about not being able to locate subfont.ttf in ~/.mplayer directory. To resolve this, choose a font from the /usr/X11R6/lib/X11/fonts/TTF and perform the following:
yeah, if you don't do a slackbuild (often a better option), you gotta install all the dependencies ... they will all be located at linuxpackages ... same place you got mplayer ... just search for them. (there's plenty to install)
hey thanks for helping me out!!
i finally got mplayer installed using source
still i dont know why, any file wont go to full screen!!
i mean the window in which the video is showing will goto full screen mode but the area in which the video is showing will remain of the same size.
please help me out here!
Once the package has been installed, you will receive a message about not being able to locate subfont.ttf in ~/.mplayer directory. To resolve this, choose a font from the /usr/X11R6/lib/X11/fonts/TTF and perform the following:
SuSE has the TTF fonts living in the "truetype" directory. I chose the SUSESans-Roman face because I figured it was more of a system font and would probably be the most compatible. Works OK for me. I don't know how my system lost the settings for MPLayer - it used to work great. No matter, it's working again, thanks to the above link command. Thanks so much for your suggestion/fix!