[Ffmpeg-devel] integrating AVS decoding into MPlayer

Stefan Gehrer stefan.gehrer
Thu Jul 13 21:55:49 CEST 2006


I locally achieved to have playback of the AVS sample clips with MPlayer, but only after assigning a fourcc for it like so:

Index: libavformat/riff.c
--- libavformat/riff.c  (revision 5728)
+++ libavformat/riff.c  (working copy)
@@ -151,6 +151,7 @@
     { CODEC_ID_CSCD, MKTAG('C', 'S', 'C', 'D') },
     { CODEC_ID_ZMBV, MKTAG('Z', 'M', 'B', 'V') },
     { CODEC_ID_KMVC, MKTAG('K', 'M', 'V', 'C') },
+    { CODEC_ID_CAVS, MKTAG('C', 'A', 'V', 'S') },
     { CODEC_ID_RAWVIDEO, 0 },
     { CODEC_ID_NONE, 0 },

and then adding a codec entry in MPlayer's etc/codecs.conf and playing
back the file with

mplayer -demuxer lavf stream01.avs

Is there a way to do this without a fourcc? Because that 'CAVS' is
just arbitrarily set by me, and that does not feel right.

Stefan Gehrer

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

More information about the ffmpeg-devel mailing list