LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2007, 02:53 AM   #1
riodeuno
Member
 
Registered: Jan 2007
Location: India
Distribution: Slackware 12.1
Posts: 53

Rep: Reputation: 15
Unhappy unable to get mplayer working


hello,
i installed the package named
MPlayer-1.0rc1-i686-1jto.tgz
and also put the essential codecs into the folder /usr/lib/codecs
but when i try to run any file with mplayer
"mplayer <filename>"
i get the following error
Quote:
mplayer: error while loading shared libraries: libdvdnav.so.4: cannot open shared object file: No such file or directory
 
Old 02-07-2007, 03:07 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 02-07-2007, 03:08 AM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,669

Rep: Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367Reputation: 1367
it wont start because it's looking for the libdvdnav package, download and install it. Get the package here

http://www.linuxpackages.net/pkg_details.php?id=10083
 
Old 02-07-2007, 04:53 AM   #4
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Also you can get it from http://www.slackbuilds.org/ . There are packages for mplayer and the mplayer codecs. There are no dependency problems.
 
Old 02-07-2007, 06:26 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
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.
 
Old 02-07-2007, 06:32 AM   #6
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
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.
 
Old 02-07-2007, 08:41 AM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
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.
 
Old 02-07-2007, 10:00 AM   #8
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
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.
 
Old 02-07-2007, 07:29 PM   #9
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
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:

ln -s /usr/X11R6/lib/X11/fonts/TTF/{font name} ~/.mplayer/subfont.ttf

After this, you should be ready to enjoy some multimedia files!

Last edited by swampdog2002; 02-07-2007 at 07:35 PM.
 
Old 02-07-2007, 07:34 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Daedra
it wont start because it's looking for the libdvdnav package, download and install it. Get the package here

http://www.linuxpackages.net/pkg_details.php?id=10083
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)
 
Old 02-07-2007, 11:32 PM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104Reputation: 8104
If you don't want to hunt all those dependencies and don't want to compile the package yourself, you can download a version of MPlayer that is able to play encrypted DVD's (i.e. almost all you can buy) from http://www.alienbase.nl/slackware/re...uilds/MPlayer/ . It needs no other packages than what you find in a full Slackware 11.0 installation.
The package with additional Windows codecs is here: http://www.alienbase.nl/slackware/re...player-codecs/

Eric
 
Old 02-09-2007, 04:00 AM   #12
riodeuno
Member
 
Registered: Jan 2007
Location: India
Distribution: Slackware 12.1
Posts: 53

Original Poster
Rep: Reputation: 15
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!
 
Old 02-09-2007, 02:07 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Go to the preferences and choose a different video driver (assuming you have a decent one available).
 
Old 02-25-2007, 01:30 AM   #14
glsen_az
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: XUbuntu 12.10, IPFire
Posts: 32

Rep: Reputation: 23
Mplayer Fix

Quote:
Originally Posted by swampdog2002
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:

ln -s /usr/X11R6/lib/X11/fonts/TTF/{font name} ~/.mplayer/subfont.ttf
The above link worked great on my SuSE 10 installation. I did a similar command on my system because of a different path for TTF fonts:

Code:
ln -s /usr/X11R6/lib/X11/fonts/truetype/SUSESans-Roman.ttf ~/.mplayer/subfont.ttf
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!

-*-Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In Kubuntu I have compiled MPlayer and it works fine, MPlayer Plug-in is not working kickass331 Linux - Newbie 10 08-11-2006 09:12 PM
Unable to configure mplayer croog Linux - Software 2 05-04-2006 01:43 PM
unable to play certain mp3 using mplayer sirpelidor Linux - Software 2 10-25-2005 09:50 PM
Unable to install mplayer on SuSE 9.1 anupamsr Linux - Software 7 09-21-2004 11:18 AM
Mplayer unable to install Satish Adiga Linux - Software 4 09-10-2004 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration