On Tuesday 05 October 2004 09:23, Ronald S. Bultje wrote:
> Heya,

Yo!

> I guess what you're looking for, though, is a resyncable format. So a

Ah, yes. Resyncable. Splendid word!

> format where the header will tell me only "length of file: 10 minutes"
> and then you want to seek to halfway the file to get to approximately 5
> minutes and search for the next syncpoint and just *play*; the
> timestamps in the file will tell you where you really ended up (for VBR
> purposes, or a second subseek).

Yep. Start anywhere, approximate seeks (MJPEG frames doesn't differ all that 
much in size) and do some syncing once you're at the approximately correct 
place, if you need precision.

> MPEG does that, but MPEG isn't really a
> directly captureable format.

The PVR250/350 people does it by cating /dev/video. :)

> Matroska claims to be that, but I don't
> think it works.

Never looked into it.

> MXF actually does it quite well, but nobody supports MXF
> yet (except the BBC and a bunch of self-proclaimed professional video
> industry companies).

The horror!

> If you want to stick to AVI now that I've said all this crazy stuff: I

Nah, the container format isn't important. It may be RIFF, Quicktime, movtar 
or MXF; as long at it's easily resyncable, it's fine with me. :)

> think mplayer can read those broken files of yours and simply reparse
> them and output a valid file.

An unfinished lavrec file is not recognized by mplayer in any way. lavrec will 
write a 2048 bytes header consisting of zeros, and only fill it in when 
exiting in a controlled manner. mplayer _might_, I haven't experimented with 
it yet, be able to read a file while it's being captured if lavrec began with 
a very sparse RIFF header (<RIFF><zero length><AVI ><LIST> and so on), 
filling in the chunk sizes at exit.

/Martin



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to