Search code examples
streamingwebrtcrtsp

Get RTSP stream on server from WebRTC


How can I get RTSP stream on server from WebRTC and then use it for my own purposes, for example, to retranslate it somewhere. Maybe there is some solution or library?

Any help is much appreciated! Denis


Solution

  • If you are willing to hook into the webrtc code then this can be done easily by doing the following:

    1. Build a native webrtc C++ client on server
    2. If the codec used is H.264, tap the output (encoded frames) from H264 RTP receiver.
    3. Use a third party library such as (http://www.live555.com/openRTSP/) to build a RTSP server out of it.

    If vp8, you might as well tap the output of vp8 decoder and then use ffmpeg to create rtsp stream out of it. Or consider webm may be?