Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Yet another Mplayer Question (looked it up. honest!)
I have several mplayer setups but in one I get the error "can't find codec "mpeg4" in libavcodec.
It;'s unusually that the amazingly powerful libavcodec does _not_ have an mpeg4 decoder. Am I naive? Or is it just a configuration setting I'm getting wrong?
I don't have ffmpeg on that installation. Hmmm... now I thought mplayer uses ffmpeg, so mplayer shouldn't really work at all really.
ffmpeg consists of the libs (libavcodec/-format/-util ...), which are the main part of the project, and the "demonstration programs" ffmpeg and ffplay. These are usually in separate packages, so you can have the libs installed without the binaries. mplayer/mencoder only needs the libs.
I'd still install ffmpeg because you can see the capabilities of your libs with 'ffmpeg -formats'. Most distributions have crippled versions because of license issues.
You should look for a line like this
DEVSDT mpeg4 MPEG-4 part 2
This means you can decode and encode mpeg4, at least decoding should be possible for use with mplayer.
DEVSDT mpeg4
D A mpeg4aac
DEVSD msmpeg4
DEVSD msmpeg4v1
DEVSD msmpeg4v2
there's no part 2.
However, now armed with ffmpeg, ffplay does work on my file.
So it seems to be the interaction between mplayer and ffmpeg on my system.
Uninstall mplayer and re-install it (now that I have ffmpeg installed).
That sort of behaviour is a sure sign of somebody who doesn't know what he's doing. Bah, did it anyway, and gues what? Now it works.
It's hard to work out an explanation for this. But anyhow, the lesson of the tail is, that it's nice to have ffmpeg installed before you install mplayer.
Maybe it's not required, but it would seem to be A Good Idea (c).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.