AnsweredAssumed Answered

gstreamer seeking

Question asked by Jesus Orozco on Jul 23, 2018
Latest reply on Jul 24, 2018 by igorpadykov

Hello, 

 

I'm currently using the gstreamer 0.10 plugins for the 3.0.35 OS version. I want to play just a part of a video i.e from second 10 to 20, which I do by using a gst_element_seek(). According to the gstreamer documentation, the demuxer is supposed to send an SEGMENT_DONE signal after the segment is done, however what is happening is that my video is starting at the tenth second and playing until the end. Can I play only a part of the video using aiurdemux?

 

I looked at the src code for the demuxer (deb-pkg_gstreamer-imx-0.10/aiurdemux.c at master · mxOBS/deb-pkg_gstreamer-imx-0.10 · GitHub ) and didn't found anything about a SEGMENT_DONE message.

 

Here is how I'm setting my seek: 

 

 gst_element_seek( p->m_elements.pipeline,
                                1.0,
                                GST_FORMAT_TIME,
                                (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_SEGMENT),
                                GST_SEEK_TYPE_SET,
                                10,
                                GST_SEEK_TYPE_SET,    
                                20);     

 

Thank you, 

 

Erick. 

Outcomes