[MPlayer-dev-eng] new video codec selection code

Arpi arpi at thot.banki.hu
Mon Mar 18 03:03:49 CET 2002


Hi,

I've just commited new video stuff (part of libmpcodecs).

It's a way intelligent - at least it solves the most common problems of
users, selecting the best, working codec for a given file, without messing
with options -vfm, -vc etc.

It has simple, but efficient flow:
if -vc used then
   try to init selected codec
else
   scan over all codecs in codecs.conf, but first the untested
   ones (normally no such codec, but with this trick we can force users
   to upload samples for testing new stuff :)), then: working codecs
   and finally buggy codecs. crashing codecs aren't auto-selected, they
   must be forced by -vc.
   if -vfm option used, the codec in the given codec family will be preferred.
   note: if you have buggy codec in teh given -vfm, and working one in
   other, the working codec will be selected. -vfm has only effect if there
   are 2 or more codecs at the same stability level.
   each matching codec is inited, but if it failed, don't give up, it
   continues with the next matching codec.
endif

if codec init failed, disable video, play only the audio.
if no audio, jump to next file or quit.

with this flow, we can reorder video codecs in codecs.conf, put native
codecs, libavcodec, divx4linux first, and the win32 stuff as fallback.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list