[MPlayer-dev-eng] lavf demuxers and fourcc

Roberto Togni r_togni at tiscali.it
Thu Jul 15 00:56:36 CEST 2004


Hi all.

I got into this problem while using lavf demuxer (and lavd decoder) to  
play raw h.261 files.

MPlayer requires a fourcc to select the right codec, while lavf/lavc  
uses a codec_id. For codecs that have an official fourcc, the mapping  
is done with codec_get_bmp_tag(codec_id), but what to do with mplayer- 
only fourccs?
Convert them in lavf (see attached patch) or add mplayer-specific  
fourccs to avienc.c in lavf?

h261 is just a sample case (you can really find h261 video in avi, so  
probably should be added to lavf), but what about all the strange  
demuxers (fli, game formats, ...) that don't use fourccs?

i attached also a codecs.conf entry if someone is interested in testing  
h261 with mplayer.

Ciao,
 Roberto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: h261.diff
Type: text/x-patch
Size: 1433 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040714/f5afbe51/attachment.bin>


More information about the MPlayer-dev-eng mailing list