<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for your reply. <div><br></div><div>So how will the playback start after seek, if the index returned by gst_matroska_read_common_do_index_seek doesn't have a key frame?<br><br><div><hr id="stopSpelling">Date: Mon, 14 Jul 2014 11:26:32 -0400<br>Subject: Re: Matroska Demux Issue<br>From: luis@debethencourt.com<br>To: gstreamer-devel@lists.freedesktop.org<br><br><div dir="ltr">If I understand the code correctly the main difference between the two functions is that gst_matroska_demux_search_pos returns a fake index, and gst_matroska_read_common_do_index_seek returns the index object from the table.<div>
The fake index generated by gst_matroska_demux_search_pos is a new object with the information of the previous cluster time.</div><div><br></div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On 14 July 2014 01:12, Kevin Paul <span dir="ltr"><<a href="mailto:kevinpaul1985@hotmail.com" target="_blank">kevinpaul1985@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr"><div><u>Problem :</u> For a particular stream of duration 28 second, once I seek between 10th and 13th seconds, the video plays fast for a couple of seconds and the catches up with audio and plays normally. <span style="font-size:12pt;">This doesn't happen if I seek anywhere else.</span></div>
<div><br></div><div><u>Analysis :</u> Cluster start positions are at 9.9 and 13.976 second. <span style="font-size:12pt;">I frames are present at 9.9, 10.4 and 13.976 second. </span><font size="3">Cue points are present at every </font>interval<font size="3"> of 0.0333 seconds</font></div>
<div><br></div><div>Once seeked between 10th and 13th second, the search for index is done using function "gst_matroska_read_common_do_index_seek" and it returns cue point closest to the seek location. <span style="font-size:12pt;">But I frame is not present to start the video playback. But if I use function "gst_matroska_demux_search_pos", it finds correct position to start playback and seek works normally.</span></div>
<div><br></div><div>Can someone please help me to understand the difference between these to functions to search for index. Is it fine to use "gst_matroska_demux_search_pos" for finding index instead of "gst_matroska_read_common_do_index_seek"?</div>
</div></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</div></div> </div></body>
</html>