[vlc-devel] Re: BUG modules/demux/ts.c DEMUX_GET_LENGTH

Måns Rullgård mru at inprovide.com
Wed Jan 11 01:18:29 CET 2006


Clément Stenac <zorglub at via.ecp.fr> writes:

> Hello,
>
> We are currently unable to compute the length of a TS stream (well, I
> assume we have a TS file, here, else, it's of course impossible to).
>
> We could calculate a value by getting the mux rate and using the total
> file size, but this will only work on constant bitrate streams, while
> there are many variable bitrate streams. I don't know if it is possible to
> know if a stream is cbr or vbr, in which case we could set 0 if vbr and
> the result of the computation if cbr.

There is no way to tell cbr from vbr without scanning the entire file.

-- 
Måns Rullgård
mru at inprovide.com

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list