[vlc-devel] Fix wrong or missing stream length
Tobias Güntner
fatbull at web.de
Mon Aug 15 20:07:33 CEST 2011
Hello!
I have a lot of videos (mostly TV recordings created by VDR 1.6) for
which VLC fails to calculate the length correctly. VLC often displays
either no length at all or a ridiculously high length, such as 20 hours
for a 5 minute recording. As a result, chapter marks on the main slider
are either missing completely or squeezed in the left corner.
The cause for both problems is twofold:
1. Timestamps do not start at 0 and sometimes wrap around, e.g.:
...
ps debug: force SCR: 95443698123
ps debug: force SCR: 56601
main warning: clock gap, unexpected stream discontinuity
...
2. VLC does not ignore invalid timestamps in the length calculation.
Patch in attachment.
Regards,
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Improve-stream-length-calculation.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110815/a027593e/attachment.ksh>
More information about the vlc-devel
mailing list