[Ffmpeg-devel] confusion in regard to gif demuxer/decoder

Michel Bardiaux mbardiaux
Mon Apr 23 11:38:00 CEST 2007

mark cox wrote:
> Hi,
> I am trying to learn ffmpeg image api by studying the gif demuxer and
> decoder. The problem i am having is that quite a bit of the code is similar
> between the demuxer and decoder. It is very confusing. Are there any demuxer
> & decoder that are good for studying the separation of demux/decode that i
> wold be better off studying? 

MJPEG as codec with AVI as container, maybe?

> Also, is the gif situaton typical? or could it
> be simplified?

GIF is *A*typical, in that you can make movies either as a sequence of 
1-image GIF files, using the image2 (ie sequence) container, in which 
case the whole GIF file is handled by the codec.

Or you can have animated GIF files, in which case the individual frames 
are handled by the codec but the 'glue' is handled by the format. 
Confusion is exacerbated by the codec and muxer being both called GIF...

Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles

More information about the ffmpeg-devel mailing list