View Full Version : AVI file size limit
kolak
19th July 2012, 23:55
Had issue with AVI file size, which passed 1TB-is there an AVI file size limit?
I remember I had them bigger than 1TB and it was fine- this time it was export from VirtualDub and I think it's VD problem to pass 1TB.
Any ideas?
mastrboy
20th July 2012, 01:17
Is it 1TB exactily each time? or a floating number around 1TB each time?
I think i remember AVI had a 2GB size limit a few years ago, but some of the newer AVI specs "fixed" that and the new spec should only be limited by filesystem limitations.
Selur
20th July 2012, 09:31
raising the superindex setting might help, see: http://forum.doom9.org/showthread.php?t=131028
kolak
20th July 2012, 13:37
Hmm- thanks. I think it's good question to VD developer :)
IanB
21st July 2012, 00:57
As Selur said increase Superindex entry limit. These vdub options are under Options -> Preferences -> AVI
As the helpful text states :-
For AVI files larger than 2GB, approximately one superindex entry is needed for every 2GB block of file, and 1-2 entries for every video frame. The default settings of 256/8192 are good for about 0.5TB and nine hours. Each additional superindex entry adds 16 bytes per stream to the header.
The reason to not increase the values wildly is that some AVIfile readers may choke, causing the file to become unusable. The maximum size segment a superindex entry can point to is 4GB-1, which is why the default tops out just shy of 1TB. For maximum compatibility you should only assume 2GB segments. Set the value to [Total expected file size + a bit]/2GB.
If the video frames are particularly large you can decrease the Index entries per block setting to save table space, use 2GB/[Frame size] plus 10%, e.g for YV12 1920x1080 calculate 759 then round up to 1024.
kolak
21st July 2012, 11:45
Thanks a lot- I think I understand it :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.