livego icon indicating copy to clipboard operation
livego copied to clipboard

Forward RTMP Stream to external RTMP Server

Open bgntv opened this issue 5 years ago • 3 comments

Great job with your development. I have been able to set it up and it is working. I'm stuck in one specific area. How can I forward the RTMP stream to another external RTMP Server? For example

The video source is rtmp://jfk.contribute.live-video.net/app/{stream_key} and the External / Forward is rtmp://publish.dailymotion.com/publish-dm/XXXX?auth=XXXXXXXX

I don't want to encode or make any changes. The goal is to forward the stream.

thank you, Santo

bgntv avatar Jan 26 '21 03:01 bgntv

Hello, I am also interested in this. Do we need to pipe the stream via ffmpeg to other rtmp servers or livego has this capability (without ffmpeg)

OBS -> livegoserver -> google rtmp, twitch rtmp ?

Thank you.

onthegit avatar Feb 08 '21 22:02 onthegit

Take a look at Prism, that might be a good answer for you. https://github.com/muesli/prism

gabek avatar Feb 22 '21 08:02 gabek

Hi! I had the same issue, so I've solved it in this way: https://github.com/chornenky/livego/blob/relay-with-auth/protocol/rtmp/relay.go You need to implement interface Authorizer. Method Authorize must return an endpoint. The method is called on new incoming connection and relay server will establish a new connection to that endpoint to forward incoming data.

chornenky avatar Jun 24 '21 18:06 chornenky