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/redirec
t and i want this to redirect or fetch content/stream from rtmp://otherdomain.com/stream/
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/redirec
t and i want this to redirect or fetch content/stream from rtmp://otherdomain.com/stream/
You can do this using ffmpeg as following
ffmpeg -i rtmp://otherdomain.com/stream -f flv rtmp://mydomain.com/stream/redirect
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 -
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.
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.
© 2022 - 2024 — McMap. All rights reserved.