One of my work projects got scrapped and I decided to see how it would work if we were to do it in a fully open source way.
Therefore, I decided to quickly draft a solution plugging in together nginx, ffmpeg and haproxy. Guess what? It works!
You can stream assets of different resolutions, auto-reconnect and it survives multiple path and service losses along the way.
1. Setting up haproxy to forward traffic blindly (you can use that for round robin as well).
2. Nginx configuration for forwarding ingested stream.
3. Nginx loading ffmpeg, converting and forwarding the media if required.
4. Watching the content through haproxy.