[Matroska-devel] Issue with seeking of .mkv files containing H.264 content

Harsha Kikkeri (CODEC DSP) harshk at microsoft.com
Thu Apr 30 22:08:42 CEST 2009


Hi Mike,

We are seeing issues with seeking of .MKV files containing H.264 content.
After seeking, Haali source filter sends out a bunch of samples which have preroll=1(with negative timestamps, decoder ignores these timestamps) followed by samples with preroll=0.
Decoder decodes all these samples and only sends the samples with preroll=0 to downstream renderer.
When renderer receives these samples, timestamps on these samples are already behind the clock and this causes renderer to send late quality messages.
Haali source can check   that the timestamp of the sample that it is sending out should be greater than current streamtime.
http://msdn2.microsoft.com/en-us/library/ms780225.aspx

What we see, it that after a seek the timestamp of the first few samples (which have preroll=0) is behind current StreamTime.
This causes decoder to drop frames. This happens with ffdshow and Cyberlink decoders as well.

Legal Disclaimer:

This posting is provided "AS IS" with no warranties, and confers no rights.

THanks
Harsha Kikkeri
Software Development Engineer
Microsoft.


More information about the Matroska-devel mailing list