Setting up a Highly Available input
Quortex I/O supports redundant inputs, to make sure your content is always delivered.
Concepts
An Quortex I/O input is made of one of two streams. A stream can be a SRT caller/listener, a RTMP endpoint or a slate image. Different stream types can be mixed within a given input.
The input switch is made without any stream interruption on the output: playlists and segments will be generated without any discontinuities.Stream Selection
The platform will automatically select the input stream, and switch to another stream if (and only if):
- The connection (SRT or RTMP) is lost,
- The connection is active, but no bitrate was detected for more than 3 seconds
Configuration
For this example, we are going to build an input with one SRT stream and one RTMP stream. Mixing protocols is a good practice, as these protocols have very different behaviors are extremely likely to take different networks paths, ensuring the best possible availability.
Configure your input with the first stream
Start by configuring your input with your first stream, like any other inputs. It's recommended to start with your "primary" stream, as the platform will automatically select this stream as the primary one. In this example, we configured a SRT listener and we use ffmpeg to stream a colorbar to our SRT endpoint:
`ffmpeg -re -f lavfi -i testsrc=duration=3600:size=640x360:rate=25 -c:v libx264 -b:v 100000 -pix_fmt yuv420p -an -f mpegts srt://{{srt_endpoint}}
Starting there, your publishing points are available and you can start using them with your favorite player!
Once your first stream is in "receiving" state, you can add a second stream:
You can then check the status of both streams by clicking on the input details:
Updated on: 01/03/2024
Thank you!