<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Hi All,</div><div>I have a simple question: I have an application where I want to display only a subset of a video. My pipeline can be resumed to 'filesrc ! decodebin ! ffmegcolorspace ! queue ! directdrawsink'. To see only a part of the video, I use following :</div><div><br></div><div><div>GstEvent* seek_event;</div><div>seek_event = gst_event_new_seek (1.0, GST_FORMAT_TIME,</div><div> (GstSeekFlags) (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),</div><div> GST_SEEK_TYPE_SET, start_time,</div><div> GST_SEEK_TYPE_SET, stop_time);</div><div><br></div><div>
gst_element_set_state(m_pipeline, GST_STATE_PLAYING);</div><div> gst_element_get_state(m_pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);</div><div> gst_element_send_event(m_pipeline, seek_event);</div><div><br></div><div>where start/stop_time are values for the start and end positions in my file.</div><div>Everything works fine, except for the fact that just before displaying the video at position start (and then playing up to stop position), I do see the first (0) frame of the video.</div><div>Is there a way to avoid this and have the pipeline really starting from the position I want? </div><div><br></div><div>Regards,</div><div>Al</div></div><div style="position:fixed"></div></div><br>
</body></html>