[MPlayer-users] AVIs > 2gigs

Alexander Noé alexander.noe at s2001.tu-chemnitz.de
Fri Mar 5 18:04:46 CET 2004


Wayde Milas wrote:

>On Fri, 2004-03-05 at 10:40, Chris Frey wrote:
>  
>
>>Hi there,
>>
>>I've just encoded a DVD and the resulting AVI is larger than 2 gigs
>>(will just fit on 3 700meg CD's).
>>
>>The problem is that the index doesn't appear to work, and mplayer thinks
>>that it is a raw AVI stream.  It plays fine, except it won't seek unless
>>I run it with the -idx option.
>>
>>Is there some limit in the AVI file format that limits AVI's to 2gigs or less?
>>
>>Thanks,
>>- Chris
>>    
>>
>
>Yes. Avi's (because of the way they store indexes.. would a long long
>have been that hard?) cannot have indexes when the file sizes is larger
>than 2 Gigs.
>  
>
Nonsense. Just use a program which creates files according the (over 8 
years old) Open-DML AVI
extensions.

A long long would not be that hard. Even better, AVI files that are less 
old than 8 years use
a long long as a base offset for an index chunk, and for each block they 
use a long that indicates
the offset to that base. This way, one index chunk can address data 
within a 4 GB range.
Since this type of index can only contain pointers to once stream, you 
have at least one
such index chunk per 4 GB and per stream. This way, one entry pointing 
to one AVI block
takes 8 bytes, while the ancient index (which you refered to) takes 16 
bytes per block.


Alex





More information about the MPlayer-users mailing list