Gstreamer Segment Event Problem

Sujata Gaddemane gsujata at gmail.com
Wed Jan 6 08:41:53 PST 2016


Thanks Sebastian.

Does this mean,
SEGMENT event is just the segment configuration information from upstream
element to downstream elements and there is no action taken to change the
playback position ?
one must use SEEK event to handle

On Wed, Jan 6, 2016 at 1:38 PM, Sebastian Dröge <sebastian at centricular.com>
wrote:

> On Mi, 2016-01-06 at 12:45 +0530, Sujata Gaddemane wrote:
> >
> > Hi,
> >
> > Given a video file, I am trying to play the video from a given start
> > time to a given end time.
> > I am trying to achieve this using Segment Event as follows:
> >
> > 1. Firstly, I am creating and initialising a segment.
> > 2. Created a segment event using gst_event_new_segment()
> > 3. Send the segment event to the pipeline using
> > gst_element_send_event()
> >
> > But, The video just plays from the beginning and not from the start
> > time.
> > The segment event does not have an effect on the playback eventhough
> > the event is reaching the sink element of the pipeline (verified by
> > gst debug messages).
> > [...]
> > If I use, SEEK event it works fine, but Segment event does not.  How
> > does SEGMENT event differ from SEEK event?
>
> SEEK is for requesting upstream of a pipeline to go to a different
> stream time and/or possible change the playback rate. SEGMENT is for
> upstream to tell downstream about the configured segment, which is
> including all the timing information needed for synchronization.
>
> What you want here is the SEEK event.
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 

Regards,
Sujata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160106/0664eda6/attachment.html>


More information about the gstreamer-devel mailing list