Speaker
Description
We wanted to serve content immediately while waiting for the primary source to arrive.
To solve this, we implemented a fallback mechanism using the fallbackswitch
element combined with a custom parsebinloop
element that continuously loops a seekable file source with seamless timestamps, making it appear as a live stream.
The system maintains two sources: the incoming primary stream and the looping fallback. When clients connect, they immediately receive the fallback content. Once the primary source arrives, we automatically switch to it and cleanly destroy the fallback pipeline. This ensures a stable RTSP server that always serves video, eliminating the "waiting for stream" experience.
In this lightning talk, I'll quickly go over the challenges of implementing seamless looping with continuous timestamps, lessons learned about building it, and demo the system in action showing the smooth transition from fallback to live content.
Speaker Bio
Working at Spiideo in Malmö, newly graduated. Fresh and excited about gstreamer
Duration of the talk | 5 minutes (lightning talk) |
---|