[MPlayer-dev-eng] Total duration of a MPEG2 TS Stream
Nico Sabbi
nsabbi at email.it
Thu Mar 2 11:04:51 CET 2006
yj wrote:
> Hi,
> I meet a problem about how to determine the total
> duration of a MPEG2 TS Stream.
> Any ideas on this issue?
> Thank you and best regards.
>
>
in theory you can approximate it determining, for every stream, the
average bitrate
in terms of the delta_space / delta_pts (keeping track of timers reset);
unfortunately you still have to scan the whole TS, because streams can
appear midway.
If your TS is very simple (e.g. only one video stream) the above method
works.
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
ADSL: le migliori offerte per abbonamenti flat online!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4587&d=2-3
More information about the MPlayer-dev-eng
mailing list