Heya,

On Mon, 2004-10-04 at 23:57, Martin Samuelsson wrote:
> I think it's a pity lavtools doesn't support any easily streamable format. 
> That would make building timeshifters easier.

Let me see, we have AVI and Quicktime, right?

>From this perspective, theoretically, AVI shouldn't be doing that bad.
Once the header has been read, it's only one seek to the end to read the
index and that's pretty much it. You don't need to read the whole file
for that unless the header (or file) is broken. That's how GStreamer and
mplayer's demuxers work, too.

Quicktime isn't bad either, because the index is ususally at the start
(well, there's those crappy files that start with the data and end with
the header, but those don't show up much). Then again, the header is
quite big.

I guess what you're looking for, though, is a resyncable format. So a
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). MPEG does that, but MPEG isn't really a
directly captureable format. Matroska claims to be that, but I don't
think it works. MXF actually does it quite well, but nobody supports MXF
yet (except the BBC and a bunch of self-proclaimed professional video
industry companies).

If you want to stick to AVI now that I've said all this crazy stuff: I
think mplayer can read those broken files of yours and simply reparse
them and output a valid file. There's also other tools (avifix or so,
don't know if they work on Linux or Windows) that do the same thing.

Ronald

-- 
Ronald S. Bultje <[EMAIL PROTECTED]>



-------------------------------------------------------
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