<div dir="ltr"><div><div>Thanks Sebastian.<br><br></div>Does this mean, <br>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 ?<br></div>one must use SEEK event to handle <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 6, 2016 at 1:38 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mi, 2016-01-06 at 12:45 +0530, Sujata Gaddemane wrote:<br>
><br>
> Hi,<br>
><br>
> Given a video file, I am trying to play the video from a given start<br>
> time to a given end time.<br>
> I am trying to achieve this using Segment Event as follows:<br>
><br>
> 1. Firstly, I am creating and initialising a segment.<br>
> 2. Created a segment event using gst_event_new_segment()<br>
> 3. Send the segment event to the pipeline using<br>
> gst_element_send_event()<br>
><br>
> But, The video just plays from the beginning and not from the start<br>
> time.<br>
> The segment event does not have an effect on the playback eventhough<br>
> the event is reaching the sink element of the pipeline (verified by<br>
> gst debug messages).<br>
</span>> [...]<br>
<span class="">> If I use, SEEK event it works fine, but Segment event does not.  How<br>
> does SEGMENT event differ from SEEK event?<br>
<br>
</span>SEEK is for requesting upstream of a pipeline to go to a different<br>
stream time and/or possible change the playback rate. SEGMENT is for<br>
upstream to tell downstream about the configured segment, which is<br>
including all the timing information needed for synchronization.<br>
<br>
What you want here is the SEEK event.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><br>Regards,<br></div>Sujata<br></div></div>
</div>