Jump to content

GStreamer Daemon - Gapless Playback: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{Gstd-1.0 Page|
{{Gstd-1.0 Page|[[Gstd-1.0 - Simple Examples|Simple Examples]]|[[Gstd-1.0 - MP4 Video Recording|MP4 Video Recording]]|


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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.