Log in

View Full Version : Avi Size Limit.. How to overcome?


Swadesh
31st December 2011, 12:39
Hello, I encoded a movie which is 2.39GB in size, I tried muxing in MeGui and its splitting in two...

How can I solve this?

Regards
Thanks

amtm
31st December 2011, 18:29
Use OpenDML AVI or use something other than AVI.

hello_hello
31st December 2011, 19:45
VirtualDub or VirtualDubMod should do it. I've used them to save AVIs over 3GB. Whether a standalone player will play it is another thing. Some have a 2GB limit.

hello_hello
6th January 2012, 10:36
I had a need to remux a large AVI today so I thought I'd try MeGUI's muxer. It seems if you change the device type from standard to PC (there's a drop down box) it'll use OpenDML AVI and won't split it into 2GB sections.

There appears not to be a way to use it to append two AVIs together and resave them as one large AVI so if the file is already split you'll need to use VirutalDub or VirtualDubMod for that. They both seem to automatically create an OpenDML AVI for anything over 2GB (I assume as long as you don't use the "save old format AVI" option). You'll need to set the video compression mode to "direct stream copy".

LoRd_MuldeR
6th January 2012, 17:07
Actually the size limit of the whole AVI file, i.e. of the outermost RIFF chunk, is 4 GB. That's because the size field is 4 Byte (32-Bit) unsigned. Minus the headers and stuff, this leaves slightly less than 4 GB of room of the "movi" (data) chunk. However it seems that some buggy(!) AVI parsers will treat the size field as signed, reducing the maximum size to only 2 GB. Tools that split at the 2 GB boundary either do this for compatibility reasons (because otherwise broken AVI parser could not read the file) or because they are broken themselves. Even worse: Some old Microsoft AVI splitter only supported a maximum size of 1 GB for whatever reason. That's also the reason why the "legacy" part, i.e. the very first RIFF chunk, of an AVI 2.0 file is limited to only 1 GB.

From AVI 2.0 specs:
The current RIFF file format implies a maximum chunk size of 4 GB because the size is stored
as a 32-bit value. However, limitations to the RIFF parser code and MCIAVI limits the file to
only 1 GB. At data rates of 10 MB/s, a 1 GB file will last less than 2 minutes.