0

I am Using the AWS IVS( Interactive video service) for live streaming. the IVS Accepts only the RTMP stream. But the video stream we are getting from the browser is WEBRTC stream. how to send the RTMP stream from laptop camera ? or can we convert the WEBRTC to RTMP stream ? if possible for conversion please help with a basic code snippet in any language

  • 1
    I thinks this thread will be a good start: https://stackoverflow.com/questions/56238148/how-to-use-webrtc-to-stream-video-to-rtmp – Tomer E Dec 01 '21 at 12:10

1 Answers1

1

You need a media server to covert WebRTC to RTMP, please read this wiki, the stream flow is like this:

Browser --WebRTC--> SRS ----RTMP-+--> IVS
                                 |
                                 +-->FFmpeg --RTMP-> IVS

If you publish your stream to your media server, you could forward to IVS, or use FFmpeg to forward the stream to IVS.

Winlin
  • 1,136
  • 6
  • 25