GStreamer Daemon - Gapless Playback
← 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 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 Seek event to the pipeline, which effectively restarts the pipeline. Example#!/bin/sh # Absolute path to the video location VIDEO=$1 gstd-client pipeline_create p playbin uri=file://$VIDEO # Listen to the EOS messages gstd-client bus_filter eos gstd-client pipeline_play p # Wait for the message to perform seek while true; do gstd-client bus_read p gstd-client event_seek 1.0 done
|
⌂ Home |
→ {{{2}}} |
{{{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 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 Seek event to the pipeline, which effectively restarts the pipeline. Example#!/bin/sh # Absolute path to the video location VIDEO=$1 gstd-client pipeline_create p playbin uri=file://$VIDEO # Listen to the EOS messages gstd-client bus_filter eos gstd-client pipeline_play p # Wait for the message to perform seek while true; do gstd-client bus_read p gstd-client event_seek 1.0 done
|
⌂ Home |
→ {{{2}}} |
- GStreamer Daemon Basics
- Building GStreamer Daemon
- Quick Start Guide
- Interacting with Pipelines
- Modifying Element Properties
- Sending Events
- Receiving Messages from the Bus
- Receiving Signals
- Enabling the Debug Subsystem
- Low-level Implementation for Applications
- Response Format
- API Reference
- Simple Examples
- Advanced Examples
- Troubleshooting
- Releases
- Licensing
- FAQ
- Contact Us