Get RTMP from another server like wowza or red5

Hello!

How can I push/pull a stream from another server ... example, we have a RTMP stream from Wowza, and would like to add it to our ROOM ... is there an API to this?
 

Max

Administrator
Staff member
Good day
How can I push/pull a stream from another server ... example, we have a RTMP stream from Wowza, and would like to add it to our ROOM ... is there an API to this?
You can capture RTMP stream from another server as described here
Code:
POST /rest-api/pull/rtmp/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
 
{
    "uri":"rtmp://wowza:1935/live/rtmp_stream1"
}
 
Thanks Max,

There is an way to define localStreamName?

Actually its using the RTMP address, and its strange, since we can use different address as origin.

[fileName] => rtmp:__10.128.0.22_live_1595793306-wowza-{startTime}-{endTime}.mp4
 

Max

Administrator
Staff member
There is an way to define localStreamName?
That's impossible now. We raised the ticket WCS-2828 to add localStreamName parameter.
Actually its using the RTMP address, and its strange, since we can use different address as origin.
Yes, the query /pull/rtmp/pull uses full RTMP stream URL as pulled stream name
We are using transcoder to do the name changes, but its add more CPU to server.
You can also use RTMP republishing to localhost. Please set the following parameter
Code:
rtmp_transponder_full_url=true
then you can republish the stream by /rest-api/push/startup
Code:
POST /rest-api/push/startup HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json
 
{
    "streamName": "rtmp:__10.128.0.22_live_1595793306-wowza ",
    "rtmpUrl":"rtmp://locahost:1935/live/desiredStreamName"
}
The stream will be available on server by desired name
 

Max

Administrator
Staff member
Good day.
We added ability to publish pulled RTMP stream on server with a given name in build 5.2.724:
Code:
POST /rest-api/pull/rtmp/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
 
{
   "uri":"rtmp://wowza:1935/live/rtmp_stream1",
   "localStreamName":"stream1"
}
 
Top