[MPlayer-dev-eng] [PATCH] TimecodeScale handling in matroska
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Sep 8 18:41:48 CEST 2006
Hi,
current matroska demuxer has several problems with files whose TimecodeScale
value is different from default (1000000). With TimecodeScale of 500000:
- displayed movie duration is 2 times bigger that it should be;
- scrolling forward works as expected: x -> x+10, but scrolling backwards
halves the current pts: x -> x / 2.
Suggested demuxer modifications:
1. If TimecodeScale element comes before Duration element, duration value will
be calculated using wrong tc_scale. mkv-tc_scale.patch fixes this.
2. According to specs, BlockDuration is based on TimecodeScale, hence
mkv-tc_scale2.patch. I have not noticed any effect from this change.
3. Index entries (CueTime) are not based on TimecodeScale according to specs,
but they definitely are in the sample I have. mkv-tc_scale3.patch deals with
this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkv-tc_scale2.patch
Type: text/x-diff
Size: 482 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060908/240822db/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkv-tc_scale3.patch
Type: text/x-diff
Size: 718 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060908/240822db/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkv-tc_scale.patch
Type: text/x-diff
Size: 1475 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060908/240822db/attachment-0002.patch>
More information about the MPlayer-dev-eng
mailing list