[gst-devel] Problem in Seeking

Sumanth V sumanth.v at allaboutif.com
Wed May 27 15:44:28 CEST 2009


Hi,

         Yes I send the seek event after the pipeline is PAUSED and then i
set the pipeline to PLAYING. I tried sending the seek event while the
pipeline is PLAYNIG, in both case it shows only a single frame and then the
screen is freezed. Seek is happening correctly , but its not playing. Is the
seek event what i am sending is correct?

Thanks,

On Wed, May 27, 2009 at 6:58 PM, Andoni Morales <ylatuya at gmail.com> wrote:

> 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
> >
> >
>
>
> ------------------------------------------------------------------------------
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090527/e18bd32b/attachment.htm>


More information about the gstreamer-devel mailing list