Jump to content

GStreamer Daemon - Gapless Playback: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
The Gapless Playback example will run a video from start to end sequentially in an infinite loop. To do so, it will wait for the file playback to finish before rewinding to the beginning of the file and restarting playback. The end of the playback is detected by polling the pipeline bus for the [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html#gst-message-new-eos End Of Stream (EOS) message], which is posted by the Filesrc element when all the content has been read. The rewinding is done by sending a [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#gst-event-new-seek Seek event] to the pipeline, which effectively restarts the pipeline.
The Gapless Playback example will run a video from start to end sequentially in an infinite loop. To do so, it will wait for the file playback to finish before rewinding to the beginning of the file and restarting playback. The end of the playback is detected by polling the pipeline bus for the [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html#gst-message-new-eos End Of Stream (EOS) message], which is posted by the Filesrc element when all the content has been read. The rewinding is done by sending a [https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstEvent.html#gst-event-new-seek Seek event] to the pipeline, which effectively restarts the pipeline.


== Example ==
== Example for Gapless Playback ==


The following example is a bash script that demonstrates the simple gapless playback.
The following example is a bash script that demonstrates the simple gapless playback.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.