On Tuesday 07 January 2003 01:30, Ronald Bultje wrote: > Hey Brian, > > On Mon, 2003-01-06 at 22:18, [EMAIL PROTECTED] wrote: > > Perhaps, but a format that is readable before the file is closed would > > be ideal. > > One word: MPEG... :-(.
Technically, it would be possible to use MJPEG AVI files for this purpose, too. It'd involve a fair bit of scripting, but it would certainly be doable: 1; Tell lavrec to grab 60 or so seconds per file. (Or a suitable number of megs, if it's not the latest lavrec. The effect is the same.) 2; Write a script that check the directory you're grabbing into, and have it pass the first file to mpeg2enc when the second file is created (which means the first file is finished). 3; Let the script loop, checking for more files, and strip the yuv header off the output from lav2yuv, making subsequent programs along the pipe think it's a continuous stream instead of separate files. This loop could also delete already processed files. 4; Invent some clever way of telling the script that lavrec has stopped grabbing, and it can pass the final file to mpeg2enc before finishing. It would mean a delay until the encoding can begin, but other than that, there shouldn't really be any problems. Any day now, I'll start working on my timeshifter, using this way of reading AVI "before the grabbing has stopped" (obviously with lavplay in the other end, rather than mpeg2enc). /Sam ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users