[vlc-devel] [PATCH] TS demux: get time and length

Naohiro KORIYAMA nkoriyama at gmail.com
Mon Sep 19 21:14:27 CEST 2011


Hi,

2011/9/20 Janne Kujanpää <jikuja at iki.fi>:
> Naohiro KORIYAMA <nkoriyama <at> gmail.com> writes:
>
> Newest problem with newest patch: Seek doesn't work anymore with vdr files. When
> i try to seek it pauses playback for a while blinks new time statusbar and
> continues from old location.
> via cli:

Your sample file is very strange. duration shows 3:04 but play time too short.
On WMV, playing 6sec, duration 03:04.
On MPC-HC, playing 11sec, duration 00:11.
On VLC with my patch, playing 11sec, duration 03:04.
I think both WMV and VLC with my patch use PCR/PTS/DTS for duration,
and MPC-HC does not use PCR/PTS/DTS.

I don't debug with the sample file, but I understand why new Seek
method fails with the file.
Sample rate (b/sec) is calculated with the duration using PCR, so
there is a big gap between calculated rate and actual rate.
21398bps vs 356945bps, 17 times gap is too big.
The method doesn't have much tolerance for such a big gap.
Your sample file is not suitable for the method.

Do I need to consider this case?
One thing I can easily do with this case is a option to switch Seek
position calculation method with byte based and time based.

Regards,

-- 
KORIYAMA, Naohiro
nkoriyama at gmail.com



More information about the vlc-devel mailing list