[MPlayer-dev-eng] time length refresh in dumped dvb streams?

arnaud tonda arnaud.tonda at gmail.com
Wed Sep 29 16:07:21 CEST 2010


Hi everybody.

i'm facing a "annoying" problem that i can't solve.
in fact, i'm able to watching tv in live with mplayer, by dumping dvb stream
into an mpeg-ts stream (i know mplayer can lock a signal directly on dvb
card, but this one is deported on a server.).

this work fine except that the length of the stream isn't refreshed. So when
i start mplayer on the stream, the time length returned (ANS_LENGTH) is the
one at time T. but when i want to "get_time_length", an other time,  the
length returned is always the same.

is there a way to make MPlayer refresh this value?
using a specific demuxer (lavf, and mpeg-ts demuxers tested).

just one other question for my knowledge. i have taken a look at the
demuxers code, and i don't understand how is calculated the movie length.

in fact, it seems that in demux_ts.c, the length is a calculation between
some bitrate and the size of the file, or everithing else. it result on my
finish recorded streams, on a wrong calculation (for a stream which is 39
min long, return a length of ~15min).

in demux_lavf.c, i haven't understood how it work (it seems to have a
variable named "duration"), but the calculation is correct.

what are the differences?

Best regards

-- 
Arnaud Tonda


More information about the MPlayer-dev-eng mailing list