Re: AVI, padding

"Burkhard Plaum" <[email protected]> Wed, 9 Mar 2011 23:48:08 +0100 (CET)
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <53846.91.11.120.237.1299710888.squirrel@ipfmv1.e-technik.uni-stuttgart.de>
Hi,

Torsten Mohr wrote
> Hello,
>
> i hope my question is not off topic here.
>
> I wrote a python script to read an AVI and interpret its content.  The AVI
> contains JPEG images and i can extract them.  But the AVI also contains
> pading
> 0x00 and i'm not sure about the number of padding bytes that is used.
> For decoding this is not that important but i'd also like to create an AVI
> and
> i think for this i may need to keep the correct number of padding 0x00.
>
> Can anybody give me a hint on how the padding in AVI works?
>
> I wonder about things like:
> - how many padding bytes do i need to add when creating an AVI?
> - when extracting sound streams, how many padding bytes do i need to skip?

As far as I know, there is at most one padding byte in AVIs
such that all chunks (header chunks and data chunks) start at even
file offsets.

Burkhard


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d