[MPlayer-users] Unknown suboption lavf
Guillaume POIRIER
poirierg at gmail.com
Wed Feb 15 10:08:25 CET 2006
Hi,
On 2/15/06, David Liontooth <liontooth at cogweb.net> wrote:
> On a Debian sid amd64 and x86 running mencoder
> 1:1.0-pre7cvs20060103-0.0,
You're using pre-built MPlayer packages. That not a good idea IMHO.
I prefer to build my own, following this doc:
http://tuxrip.free.fr/MPlayer-DOCS-HTML/en/linux.html#debian
> I get "Unknown suboption lavf". The encoding
> command I got from
> http://tuxrip.free.fr//MPlayer-DOCS-HTML/en/menc-feat-selecting-codec.html
> --
>
> $ mencoder AShort.avi -o output.flv -of lavf -oac mp3lame -lameopts
> abr:br=56 -ovc lavc -lavcopts
> vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050
>
> mencoder: /usr/lib/libtheora.so.0: no version information available
> (required by /usr/lib/libavcodec.so.0)
> MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
> CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
> Detected cache-line size is 32 bytes
> MMX2 supported but disabled
> CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX SSE
>
> 87 audio & 202 video codecs
> Option of: Unknown suboption lavf
>
> Exiting... (error parsing cmdline)
>
> Am I missing something?
Yes, that means that your build is missing libavformat.
He's how to do it:
FFmpeg libavcodec/libavutil/libavformat
CVS MPlayer is not fully functional without a copy of the libavcodec,
libavformat and libavutil libraries from FFmpeg. Get FFmpeg CVS via
cvs -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg login
cvs -z3 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg
When asked for a password, just hit enter. A directory named ffmpeg
will be created. Copy the libavcodec and libavutil subdirectories into
the main directory just created from the MPlayer checkout.
In order to include libavcodec and libavutil in CVS updates, add the
following lines to main/CVS/Entries:
D/libavcodec////
D/libavutil////
FFmpeg also contains libavformat, a library to decode container
formats that can optionally be used to extend MPlayer's container
format support. If you wish to use it, repeat the above steps for the
libavformat subdirectory of the FFmpeg source tree.
Guillaume
--
Just because code is syntactically "valid" GNU C doesn't mean gcc can
always compile it.
Steven Bosscher - 2005-01-01
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203#c14
---
MPlayer's doc isn't up-to-date. Visit my updated mirror here:
http://tuxrip.free.fr//MPlayer-DOCS-HTML/en/
http://tuxrip.free.fr//MPlayer-DOCS-HTML/fr/
More information about the MPlayer-users
mailing list