ffmpeg - From webrtc input stream to HLS
I need to do video streaming where the recording is happening on a browser and has to be consumed as HLS on mobile devices.
It seems I need some media server and send the camera stream as WebRTC to it. It seems Janus and Kurento can do that task and output RTP streams. I'm not sure now how to convert that RTP stream to HLS, I guess I could hook ffmpeg on that RTP stream and generate HLS with MpegTS, but I'm not sure this is the right direction.
Is that the obvious way to do it? Is there any existing service to do all this?