[MPlayer-users] MEncode fails to find codecs

Ulf Magnusson ulfalizer at gmail.com
Wed Dec 26 15:13:17 CET 2007


On Dec 26, 2007 2:32 PM, Krzysztof Duchnowski <amidk75 at gmail.com> wrote:
> Ulf Magnusson pisze:
>
>
> >>> $ mencoder ocourse.rm -o ipod.mp4                   \
> >>> -of lavf -lavfopts format=mp4         \
> >>> -ovc x264                             \
> >>> -oac lavc -lavcopts acodec=aac        \
> >>> -vf scale=320:240
> >>> I get the following error:
> >>> "
> >>> Couldn't find video filter 'x264'.
> >>> Failed to open the encoder.
> >>> Exiting...
> >>> "
> >>> If I instead try
> >>> $ mencoder ocourse.rm -o ipod.mp4     \
> >>> -of lavf -lavfopts format=mp4         \
> >>> -ovc lavc -lavcopts vcodec=libx264    \
> >>> -oac lavc -lavcopts acodec=aac        \
> >>> -vf scale=320:240
> >>> I get the error
> >>> "
> >>> Couldn't open video filter 'lavc'.
> >>> Failed to open the encoder.
> >>> Exiting...
> >>> "
> >> x264 haven't the default bitrate settings as other encoders so you must
> >> add either:
> >>   "-x264encopts qp=30:keyint=60"
> >> or
> >> "-x264encopts bitrate=400:keyint=60"
> >> or
> >> "-lavcopts vcodec=libx264:vqscale=30:keyint=60"
> >> or
> >> "-lavcopts vcodec=libx264:vbitrate=400:keyint=60"
>
> >> man mplayer
>
> > I tried each of those, but I still get the same errors, e.g.
>
> > Couldn't find video filter 'x264'.
> > Failed to open the encoder.
>
> > when I use '-ovc x264 -x264encopts qp=30:keyint=60'
>
> Maybe because "-lavcopts acodec=aac" don't exist?
> Use "-lavcopts acodec=libfaac" instead?
>
>
> man mplayer
>
> --
> Krzysztof 'DK75' Duchnowski
> GetFirefox - http://www.mozilla.com/firefox/
> Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

I dug around the source a bit. Seems libmpcodecs/ve.c had been built
with a config.h that was generated before I installed x264, and so
HAVE_X264 wasn't set, and ve_info_x264 didn't get added to
encoder_list. I could've sworn I ran a 'make clean' in between, but I
must've messed up (or there's something wrong with the 'clean'
target). In either case it worked fine when I fetched a fresh copy of
the sources from SVN. Sorry for wasting your time =)

Oh, and you're right about faac not being available. That's where it
fails now. I'll just install it.

/Ulf



More information about the MPlayer-users mailing list