[ioquake3] AVI recording, files split into 2 GB chunks

Nerius Landys nlandys at gmail.com
Sat Dec 26 15:24:20 PST 2009


When you record a a video using ioquake3, it creates avi files that
are no more than 2 GB in size, named like so:

  video0000.avi
  video0000.avi_
  video0000.avi__
  ...

I've been trying to write a patch to ioquake3 that gets rid of this
limitation and creates avi files that are unlimited in size.  This
would make video authoring much much easier for many of us.

Besides the problem of having to concatenate avi files into one using
video editor tools, even if you do manage to do this, many tools botch
the concatenated video, and the side effects are out of sync
audio/video (in VirtualDub) and snapping noises at the seams (Sony
Vegas 8 Pro).

My attempt at making this patch consists of line 447 in code/client/cl_avi.c,

Changing

  if( newFileSize > INT_MAX )

to

  if( qfalse )

However, the generated video, if it is greater than 2 GB in size, will
not cleanly open in some video tools due to incorrect headers in the
avi file.  I was wondering if someone familiar with this section of
code and AVI file specifications could help me make a patch that
generates a single large video file instead of many small video files.
 This would be such a great patch for some of the members of the Urban
Terror community.

Perhaps this patch could even become part of the official source tree,
or are we still supporting really old filesystem types?  (fat16)


More information about the ioquake3 mailing list