Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-07-2006, 01:19 AM
|
#1
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Rep:
|
MPlayer codecs ... now xine troubles
I can't seem to get any codecs to work for MPlayer other than the ones that come with the default install. I've read the MPlayer website documentation and I think I've done it like I'm supposed to but I still can't get it to play *.wmv files. I unpacked the "essential" codecs pack from the MPlayer site into my /usr/local/lib/codecs directory then reinstalled MPlayer after it didn't work initially. *.wmv files are the only ones I'm really worried about playing right now, and nothing I try seems to be working.
Last edited by SaintsOfTheDiamond; 05-10-2006 at 06:11 PM.
|
|
|
05-07-2006, 01:53 AM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
Did you try creating and installing them in /usr/lib/win32/ ???
|
|
|
05-07-2006, 02:19 AM
|
#3
|
Member
Registered: May 2006
Location: Sydney
Distribution: Slackware 11.0
Posts: 39
Rep:
|
i had the same problems, i ended up using the below package, worked a treat! (use rpm2tgz to convert to slackware package, then use installpkg)
http://rpmfind.net/linux/RPM/sourcef...-2.noarch.html
|
|
|
05-07-2006, 04:27 AM
|
#4
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
you have to put where it is in your config options. ./configure --help will help. then recompile (from source) Mplayers codecs are compiled into the program. they dont even have to exist on the system once the compile is done. xine will look where you tell it to for the codec... but mplayer just uses what is compiled into it. xine is better anyway. just point xines codec directory to the one where you put the essential codec pack... and viola. also, you guys check out www.slackages.com for some pretty good slackware packages.. including a well done mplayer package. i am just so mad at mplayer.. there is nothing it can do that xine cant.
|
|
|
05-07-2006, 04:29 AM
|
#5
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
it is kinda a pain in the butt if you havent compiled it by hand yet. my mplayer ./configure command is about a paragraph long to give support for everything i want. but it works and you have to hold on to the source dir... so you can recompile.. i hate it.
|
|
|
05-07-2006, 10:41 AM
|
#6
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Original Poster
Rep:
|
Quote:
Originally Posted by edong23
you have to put where it is in your config options. ./configure --help will help. then recompile (from source) Mplayers codecs are compiled into the program. they dont even have to exist on the system once the compile is done. xine will look where you tell it to for the codec... but mplayer just uses what is compiled into it. xine is better anyway. just point xines codec directory to the one where you put the essential codec pack... and viola. also, you guys check out www.slackages.com for some pretty good slackware packages.. including a well done mplayer package. i am just so mad at mplayer.. there is nothing it can do that xine cant.
|
Ah ... OK. I think that was my problem. All the documentation I found made it seem like all I had to to was unpack the codecs into the specified directory and I would be good to go. I'll take a look at the ./configure --help and see what I come up with.
|
|
|
05-07-2006, 10:59 AM
|
#7
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Original Poster
Rep:
|
I just reinstalled MPlayer with:
Code:
./configure --with-codecsdir=/usr/local/lib/codecs # Where I unpacked the codecs
make
make install # As root
and it still won't open any of the *.wmv files I have. Do I need to completely uninstall MPlayer first? (And if so ... how do I do that? )
|
|
|
05-07-2006, 11:06 AM
|
#8
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
You shouldn't have to pass where your codecs are in mplayer during configure.(Or at least i have never done that, but i use CVS)
According to my package, i have all my win32 codecs installed in /usr/lib/codecs. (Doing an ls /usr/lib/codecs/ should show many files, not just a folder) and then i have a symlink /usr/lib/win32 to /usr/lib/codecs.
From there once you do ./configure mplayer should just automatically detect them.
EDIT: My only options in configure were --prefix=/usr and i enabled support for large files.
|
|
|
05-07-2006, 11:17 AM
|
#9
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
Quote:
Originally Posted by SaintsOfTheDiamond
Do I need to completely uninstall MPlayer first? (And if so ... how do I do that? )
|
From the source directory you can just issue:
# make uninstall
# make clean
You may want to look at some established examples of configuration methods that are used with mplayer. There is not a single way that will work for every environment, but it is often helpful to select what is right for your needs. I also agree with some of the previous comments, and would encourgage you to think about using a xine based player as they are just as functional and _much_ easier to install and configure.
Mplayer PKGBUILD
Mplayer PKGFILES
|
|
|
05-07-2006, 11:41 AM
|
#10
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
Quote:
Originally Posted by liquidtenmilion
You shouldn't have to pass where your codecs are in mplayer during configure.(Or at least i have never done that, but i use CVS)
|
I've not worked with the CVS version, but a recent CVS mplayer build I saw at that worked well included the options listed below. Naturally, there are a number that may not be required for a user's specific environment, but this will give a general idea of what someone who is using a typical KDE desktop (and Xorg7) might want to include. Really, the variations are endless.
Code:
./configure --prefix=/usr --enable-gui --disable-arts --disable-smb \
--enable-sdl --enable-x11 --enable-theora --confdir=/etc/mplayer \
--with-win32libdir=/usr/lib/win32 --enable-external-faad --enable-menu \
--enable-tv-v4l --enable-tv-v4l2 --disable-liblzo --enable-largefiles \
--disable-libdv --disable-aa --enable-xvid --disable-divx4linux
Last edited by Xian; 05-07-2006 at 11:43 AM.
|
|
|
05-07-2006, 12:01 PM
|
#11
|
Member
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606
Rep:
|
All of those options are autodetected though, and setting them explicitly will sometimes cause build errors.
All i ever do is
./configure --prefix=/usr --enable-largefiles --enable-xmms
make
make install
And my mplayer has support for pretty much every single thing mplayer can support.
|
|
|
05-07-2006, 12:33 PM
|
#12
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
Apps look for the codecs in one of 4 places depending on the compile options.
/usr/lib/codecs
/usr/lib/win32
/usr/local/lib/codes
/usr/local/lib/win32
Extract the zip file. Rename the resulting folder, "windows-all-20050412", to "codecs" and "win32" and paste this folder (as root) in the locations specified above. This will place the codecs where any application will be looking for them regardless of how that application was compiled. This has been my routine for a long time and my codecs are allways found by xine, gxine, mplayer etc. Symlinks would likely work as well, but old habits die hard.
HTH
|
|
|
05-07-2006, 01:28 PM
|
#13
|
Member
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919
Rep:
|
Well, let's just refer to the facts before all heck breaks loose.
Codecs in Mplayer: Documentation for Installing Codecs
Installing Mplayer: Documentation for Build Options
Excerpt:
"MPlayer can be adapted to all kinds of needs and hardware environments. Run
./configure
to configure MPlayer with the default options. The codecs you installed above
should be autodetected. GUI support has to be enabled separately, run
./configure --enable-gui
if you want to use the GUI.
If something does not work as expected, try
./configure --help
to see the available options and select what you need.
The configure script prints a summary of enabled and disabled options. If you
have something installed that configure fails to detect, check the file
configure.log for errors and reasons for the failure. Repeat this step until
you are satisfied with the enabled feature set.
Unpack the codecs archives and put the contents in a directory where MPlayer
will find them. The default directory is /usr/local/lib/codecs/ (it used to be
/usr/local/lib/win32 in the past, this also works) but you can change that to
something else by using the '--with-codecsdir=DIR' option when you run
'./configure'."
|
|
|
05-10-2006, 06:11 PM
|
#14
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Original Poster
Rep:
|
I decided to try xine out and I've now got it working to where I can play pretty much any file I want (*.wmv, *mpg, *.mov, etc). What I need help on now is getting it to work with Firefox so I can watch games on MLB.tv. I downloaded and tried to install gxine, but when I run ./configure I get:
Code:
./configure
...
...
...
checking for JS... Package mozilla-js was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozilla-js.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozilla-js' found
no
configure: trying mozjs via pkgconfig firefox-js
checking for JS... Package firefox-js was not found in the pkg-config search path.
Perhaps you should add the directory containing `firefox-js.pc'
to the PKG_CONFIG_PATH environment variable
No package 'firefox-js' found
no
configure: trying mozjs, includes in /usr/include/mozilla/js
checking for mozilla/js/jsapi.h... no
configure: trying mozjs, includes in /usr/include/firefox/js
checking for firefox/js/jsapi.h... no
configure: error: libjs not found
I also was reading the Mozilla site trying to get other plugins to work and I could never find the mozilla components directory they're talking about. I can copy all the files to my ~/.mozilla/plugins directory, but there are other files (for Flash and RealPlayer) it says I need to copy to the mozilla components directory.
|
|
|
05-11-2006, 12:01 AM
|
#15
|
Member
Registered: Apr 2005
Distribution: Slackware
Posts: 350
Rep:
|
gxine will install a plugin for you no problem. like i said, mplayer is an awesome media player... but is a pain in the butt for normal use, it really comes in handy when you have it embedded in an small minimalistic xserver, cause the codecs and options are compiled into it. for typical desktop use, i never use it. i have built a couple of lcd tvs with linux and some old laptops, and i used mplayer on there.. works great, but too much trouble for me to change codecs then rebuild mplayer... i mess with codecs alot. mplayer will do anything xine will, just not near as easy. gxine is another front end for xine. needs some gnome components i believe. there is the mplayerplug-in, but i believe you have to get mplayer itself to play the files first.
http://mplayerplug-in.sourceforge.net/
|
|
|
All times are GMT -5. The time now is 09:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|