Redirect RTMP protocol to another RTMP stream [closed]
Asked Answered
B

4

9

Is it possible to redirect RTMP protocol to another RTMP stream?

If yes, How can i do it?

In details: Ex: I got rtmp://mydomain.com/stream/redirect and i want this to redirect or fetch content/stream from rtmp://otherdomain.com/stream/

Bimolecular answered 27/5, 2013 at 16:25 Comment(0)
T
1

You can do this using ffmpeg as following ffmpeg -i rtmp://otherdomain.com/stream -f flv rtmp://mydomain.com/stream/redirect

Tug answered 25/11, 2016 at 22:11 Comment(2)
Hi, I'm getting error for the above command [rtmps @ 0x33c61e0] Unexpected reply on getStreamLength() Input/Output Error Any help? pleaseScabble
This is a proxy, not a redirection.Mastrianni
I
1

I think you can do it on server side if you are using nginx to handle the request, using the location headers.

"Location:rtmp://otherdomain.com/stream/"

Other method is using proxy pass -

https://github.com/winshining/nginx-http-flv-module

Incorporeal answered 24/4, 2018 at 14:51 Comment(0)
T
1

There is another free server for that. You can add endpoint to RTMP streams on Ant Media Server via rest service. It can even publishes to social media at the same time.

https://github.com/ant-media/Ant-Media-Server

Tomas answered 13/11, 2018 at 15:17 Comment(0)
A
0

You could use Wowza streaming engine as a live stream repeater for that purpose. This how-to provides with necessay steps.

Or you can use ffmpeg in conjunction with ffserver (Linux OS required) to fetch and re-stream your RTMP stream. See here for more.

Athodyd answered 1/9, 2015 at 19:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.