LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-17-2009, 03:08 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
YAMQ: no mpeg4 in libavcodec?


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?
 
Old 01-17-2009, 04:27 PM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
what is the output of

ffmpeg -formats | grep mpeg4
 
Old 01-17-2009, 05:24 PM   #3
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
thanks for the heads-up.

I don't have ffmpeg on that installation. Hmmm... now I thought mplayer uses ffmpeg, so mplayer shouldn't really work at all really.

On second thoughts, I suppose I have only being using it for listening to mp3's ... I'd better install it and look up formats on it then so.

What should I be looking for? It says mpeg4, mpeg4aac,msmpeg4,msmpeg4v1 and v2.

That mustn't be enough ...
 
Old 01-17-2009, 06:20 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
Quote:
Originally Posted by stabu View Post
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.
 
Old 01-18-2009, 11:47 AM   #5
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
Thanks.

Ok what it says is:

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).
 
  


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
Transcode Compilation Issue with libavcodec illiadum Linux - Software 6 01-04-2010 09:55 AM
Converting mpeg4 to mpeg2 (mpeg4 to dvd) conn-fused Linux - Software 9 03-04-2006 11:00 AM
k3b (Libavcodec.so()(64 bit) not available jlwilso SUSE / openSUSE 1 01-18-2006 12:42 PM
libavcodec DaBlade Linux - Software 3 11-22-2005 02:51 AM
Getting libavcodec.so, where from? ivanatora Slackware 1 12-04-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 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