<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 10 avr. 2019 20 h 40, nucleus_wind <<a href="mailto:felixjojo199@gmail.com">felixjojo199@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I have a question about the behavior of matroskamux element. I went through<br>
its code and I saw that it's receiving buffers from its collectpad. However,<br>
matroskamux did not override collectpad's default compare function. As a<br>
result, when two frames' timestamp difference falls outside of the mkv<br>
timestampScale, matroskamux could produce mkv that contains consecutive<br>
frames that has the same timestamp. For example, assume the timestampScale<br>
is 1,000,000, but frame n and n + 1 are only 10 microseconds apart. After<br>
applying the timestampScale, frame n and n + 1 would have the same<br>
timestamp. This can happen either within a cluster or across two consecutive<br>
cluster - i.e. the last frame of cluster n has the same timestamp as the<br>
first frame of cluster n + 1. I'm not an expert in mkv, can you guys help me<br>
understand whether it is semantically correct to have consecutive frames<br>
with the same timestamp in mkv and is there any risk of decoders having<br>
issues with such frames. How is the decoder gonna handle frames with the<br>
same timestamp?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That seems correct. The timescale also defines the stream clock precision. If there isn't enough precision, two frames appart in nanosecond might have the same timestamp with a specific scale.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>