ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC: Transmux RTC to RTMP streaming

akalantari opened this issue · comments

Description'

Please ensure that you maintain the markdown structure.
I need a configuration to be able to publish through WebRTC and play the stream in RTMP.
I have been able to publish through RTMP and playback in RTC, but can't do the otherway around.

  1. SRS Version: v4.0.56'

Please ensure that you maintain the markdown structure.

Expected Behavior (Expect)

Please ensure that you maintain the markdown structure.
Publish through RTC and receive in RTMP

TRANS_BY_GPT3

Hello, same problem here. Would be great that this can be included in the documentation, as for my project without it, that's a show stopper :|

webRtc uses RTP for publishing, and SDP for answering. It is possible to use ffmpeg to push SDP to RTMP.

TRANS_BY_GPT3

Use RTP to receive WebRTC publishing, and SDP for reply. You can use ffmpeg to push SDP to RTMP.

To push SDP using ffmpeg, you can use the following command:

ffmpeg -protocol_whitelist file,rtp,udp -i input.sdp -c copy -f flv rtmp://your-rtmp-server-url

Replace input.sdp with the path to your SDP file, and your-rtmp-server-url with the URL of your RTMP server. This command will copy the input stream without any transcoding and push it to the specified RTMP server.

TRANS_BY_GPT3

Xia Lixin is working on this feature, please be patient.

TRANS_BY_GPT3

When starting rtc_to_rtmp in live broadcasting with two-way communication, the browser playback window turns black, and the value of code is 400. How can this be resolved?

TRANS_BY_GPT3

Fixed