We could use liquidsoap for this I think. https://www.liquidsoap.info/doc-1.4.3/reference.html#output.youtube.live.ffmpeg OR we can do it from the rtmp server directly: https://github.com/arut/nginx-rtmp-module/wiki/Directives#push