Working way to encode from darkplaces using mencoder without writing a huge dpvideo...avi:
mkfifo ~/.nexuiz/data/video/dpvideo001.avi
perl -e 'while(read STDIN, my $var,
1048576) { print $var; }' < ~/.nexuiz/data/video/dpvideo001.avi | mencoder -o outfile.avi - .....options......
while running DarkPlaces with cl_capturevideo from another shell
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8700
d7cf8633-e32d-0410-b094-
e92efae38249
static void SCR_CaptureVideo_RIFF_Push(const char *chunkfourcc, const char *listtypefourcc, fs_offset_t sizeHint)
{
- Con_Printf("RIFF push: %s\n", chunkfourcc);
if (listtypefourcc && sizeHint >= 0)
sizeHint += 4; // size hint is for INNER size
SCR_CaptureVideo_RIFF_WriteFourCC(chunkfourcc);
sizehint = cls.capturevideo.riffstacksizehint[cls.capturevideo.riffstacklevel];
x = (int)(offset - (cls.capturevideo.riffstackstartoffset[cls.capturevideo.riffstacklevel]));
- Con_Printf("RIFF pop: %s\n", cls.capturevideo.riffstackfourcc[cls.capturevideo.riffstacklevel]);
-
if(x != sizehint)
{
if(sizehint != -1)