Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC: Transmux RTC to RTMP streaming #2093

Closed
akalantari opened this issue Dec 17, 2020 · 6 comments · Fixed by #2303
Closed

WebRTC: Transmux RTC to RTMP streaming #2093

akalantari opened this issue Dec 17, 2020 · 6 comments · Fixed by #2303
Assignees
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Milestone

Comments

@akalantari
Copy link

akalantari commented Dec 17, 2020

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

@sanosay
Copy link

sanosay commented Dec 21, 2020

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 :|

@bigben0123
Copy link

bigben0123 commented Dec 21, 2020

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

TRANS_BY_GPT3

@ghostsf
Copy link
Contributor

ghostsf commented Jan 13, 2021

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

@winlinvip
Copy link
Member

winlinvip commented Jan 18, 2021

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

TRANS_BY_GPT3

@winlinvip winlinvip added the Feature It's a new feature. label Jan 18, 2021
@winlinvip winlinvip added this to the SRS 4.0 release milestone Jan 18, 2021
@winlinvip winlinvip added the WebRTC WebRTC, RTC2RTMP or RTMP2RTC. label Jan 18, 2021
@winlinvip winlinvip linked a pull request Apr 27, 2021 that will close this issue
@ZW970123
Copy link

ZW970123 commented Jun 29, 2021

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

@winlinvip
Copy link
Member

Fixed

@winlinvip winlinvip changed the title WebRTC to RTMP publishing WebRTC: Transmux RTC to RTMP streaming Aug 22, 2021
@winlinvip winlinvip self-assigned this Aug 28, 2021
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants