SlackwareThis 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.
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.
First I've compiled and installed lame and xvid with --prefix=/usr.
Then I've compiled and install mplayer with --prefix=/usr.
Checking for libmp3lame ... yes (in FFmpeg: yes)
Checking for Xvid ... yes
mencoder -ovc help shows xvid (it works) but no mp3lame at all. And mplayer uses ffmpeg [ffmp3float], which extremely distors tracks. I'm sure it's not alsa, because music played online sounds normal.
I'm new to Slackware (moved from Gentoo), so I'll be extremely grateful if u tell me what I do wrong.
Click here to see the post LQ members have rated as the most helpful post in this thread.
mencoder -ovc help shows xvid (it works) but no mp3lame at all.
-ovc help just lists the available video codecs; you should use "-oac help" to check for mp3lame. I have LAME installed and have since recompiled mplayer and mp3lame works just fine...
I believe the stock SlackBuild script for mplayer does not build the package with support for mp3lame or aac. Check the build script. I believe you have to change the USE_PATENTS environment variable to YES, either in the script or at the command line when running the build script.
According to the explanation comments in the build script, mplayer will detect an external libdvdcss package but there is no mention that there is any auto detection of mp3lame or aac. So my guess is the mplayer needs to be rebuilt after installing those packages rather than using the stock package.
The stock build script contains some tee commands for logs. One of the logs created is the configure log. Check that log to verify mp3lame support.
I don't know about aac (don't use it) but the stock mplayer plays my home-made mpeg4 + mp3 encoded videos. I do have LAME-3.98.4 installed, and I did not recompile mplayer.
For better playback of mp3s I would suggest the following in ~/.mplayer/config:
Code:
[extension.mp3]
profile-desc="profile for .mp3 files"
ac=mpg123
A full slackware install includes mpg123 so no extra libraries need to be added when compiling and playback is superior IMHO to the MPlayer defaults (which are actually mp3lib btw). The following will show if it is available to you:
Code:
andrew@skamandros~$ mplayer -ac help | grep 'mpg123'
mpg123 mpg123 working MPEG 1.0/2.0/2.5 layers I, II, III
Alien Bob's package works just fine. MPlayer finally uses mp3lame. Thanks a lot. Thanks twice for giving information about Alien Bob. mpg123 works too, but I've spent too much time trying to make lame work, it would be stupid not to use it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.