[MPlayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.67,1.68

D Richard Felker III dalias at aerifal.cx
Fri Mar 4 01:13:18 CET 2005


On Thu, Mar 03, 2005 at 06:23:41PM -0500, D Richard Felker III wrote:
> passes (it has to do some nasty hacks to leave space). in fact, since
> offsets could change after filling in the indices and removing
> inefficiency, it's even difficult to make a valid file with two
> passes!

actually with your hack of deciding modulo last, it's probably ok. BUT
this adds an additional problem: you don't know how many vlc bytes
will be needed for modulo until you finish writing the file, so even
the size of the global header might have to change! :(

> try this:
> at each index_distance, store an index of whichever keyframes you want
> to index since the previous index. ALSO, store the offsets and initial
> timestamps of all previous index packets in the new index. this means
> the very last index packet will tell the locations of all the index
> packets, and it also makes seeking on partially-downloaded files work
> very well since you can use the index to seek to most of the parts you
> already have downloaded.

also don't just think about this in terms of downloading. the same
benefits would apply, for example, in a pvr doing time-shifting: as
long as you stay a little bit behind real time, you could do full
indexed seeking in the show you're watching.

rich




More information about the MPlayer-cvslog mailing list