So, I have a self hosted Owncast instance. I want to run a 24/7 live stream. However, if the streaming source changes or cuts for a few seconds, Owncast immediately terminates the stream. So I’m trying to find a way to have a “fallback/offline” stream running where it’s just a testcard graphic and the time on it for now. And then when it detects an incoming RTMP stream, it switches to the stream. When the stream ends- back to the testcard. My aim is to make a seamless stream that is always live and doesn’t cut.
I thought such a thing would be simple - it isn’t. FFMPEG needs to reconnect to switch sources. I tried using a FIFO pipe, but the thing that reads the pipe doesn’t seem to like it when the RTMP stream connects, choosing to break. I’ve tried forwarding an RTMP stream from Nginx and using the switchers, but the forwarder likes to break as well (it seems to dislike mismatched timestamps or something)
I apologise for not leaving any specific logs. I have been working on this for days and have errors galore. I am posting here to see if there’s a difference/best approach. (If one of these here is a best option and I was on the right track, I can try and dig up my old code and errors).
Second topic if you’re interested: https://m.youtube.com/watch?v=9LfC3D8jbyY