GStreamer Daemon - Seek: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "{{Gstd-1.0 Page |[TODO]|[TODO]| This wiki shows how to send an [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#gst-event-new-eos EOS (E...")
 
No edit summary
Line 1: Line 1:
{{Gstd-1.0 Page |[TODO]|[TODO]|
{{Gstd-1.0 Page |[TODO]|[TODO]|
This wiki shows how to send an [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#gst-event-new-eos EOS (End of Stream)] event to a given pipeline. The EOS event is useful for notifying the elements in a pipeline that no further buffers are expected and they can wrap up any processing required to properly close the stream. For example, the MP4 muxer will update the file length value in the MP4 headers (located at the beginning of the file) when an EOS event is received. If such event isn't received, the recording will not be playable. When all elements have processed the EOS, an EOS message will be posted to the pipeline bus. Applications may [[Gstd-1.0 - Receiving Messages from the Bus|listen to the bus]] in order to wait for this message.
This wiki shows how to send a Seek event to a given pipeline. Seek event moves current playing position to a new one, sometimes it is important to measure the time needed to seek to different points in a video file.  


== Sending an EOS event ==
== Sending an Seek event ==


A new EOS event is sent to a pipeline using the command shown below. The EOS event takes no argument.
A new Seek event is sent to a pipeline using the command shown below. The EOS event takes no argument.


   <b>event_eos <i>pipeline</i> </b>
   <b>event_seek <i>pipeline</i> <i>rate=1.0</i> <i>format=3</i> <i>flags=1</i> <i>start-type</i> <i>start=0</i> <i>end-type=1</i> <i>end=-1</i> </b>
       Creates a new EOS event and sends it to <i>pipeline</i>.
       Creates a new Seek event and sends it to <i>pipeline</i>.


For example:
For example:

Revision as of 16:34, 26 June 2017