<div>Hi,</div>
<div>I'm using gstreamer to play local movies. When I try to seek on MPEG2 movies, in some movies I get some kind of seeking, but the interval of seek is variant. In some other movies, and in all mp4 and 3gp movies, everytime I try to do a seek, the movie starts playing from the beginning.
</div>
<div>&nbsp;</div>
<div>I use the code:</div>
<div>event = gst_event_new_seek(1.0, GST_FORMAT_TIME, GstSeekFlags(GST_SEEK_FLAG_FLUSH&nbsp;| GST_SEK_FLAG_ACCURATE),</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GST_SEEK_TYPE_CUR, 100*GST_MSECOND, GST_SEEK_TYPE_END, 0);</div>
<div>gst_element_send_event(pipeline, event);</div>
<div>&nbsp;</div>
<div>My questions are: </div>
<div>1. Though this code calls for 100 msec seek from the current position, the movement at times is more than 10 mins. Is there a way to correct this behaviour? </div>
<div>2. Is something wrong in the above code?, Or is it that, irrespective of the code, the seeking depends upon the location of I frames? In that case, is there any tool you would recommend for preprocessing the movies for the seek to work uniformly?
</div>
<div>3. Why does seek not at all work for mp4/3gp movies? Is it because it is not/incorrectly handled in qtdemux? Any suggestions/workarouds for this?</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Deeptendu</div>