[gst-devel] Problem in Seeking

Andoni Morales ylatuya at gmail.com
Wed May 27 15:28:35 CEST 2009


2009/5/27 Sumanth V <sumanth.v at allaboutif.com>:
> Hi All,
>
>       I  am trying to perform a seeking operation on a TS file,  but it just
> shows only one frame and its freezing. I am trying to perform a  random seek
> operation, i.e I want to play from a different offset positon. After a PAUSE
> operation. The Pipeline i am using is
>
> filesrc location=file.ts ! decodebin ! ffmpegcolorspace ! ximagesink.
>
> The following seek event i am sending to the pipeline to perform the seek
> operation.
>
> gst_element_seek( pipeline,1.0,GST_FORMAT_BYTES, GST_SEEK_FLAG_FLUSH
> | GST_SEEK_FLAG_KEY_UNIT ,GST_SEEK_TYPE_SET, 6560312,GST_SEEK_TYPE_END,-1);
>
> It just shows the only one frame and freezs. Where am i going wrong in
> seeking? What is the correct method of seeking?

Do you send the seek event after pausing the pipeline?
If so, you will have to set the pipeline to PLAYING state after the
seek. You can also perform a seek with the pipeline in PLAYING state,
and after the seek the pipeline will be setted to PLAYING state again.

Andoni

>
>
> Thanks All,
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>




More information about the gstreamer-devel mailing list