Python
Restreams
Create restream
Creates a new restream for a specified live stream.
Specify the target platform’s URI (RTMP, RTMPS, or SRT) and the ID of the source stream.
Restreaming allows you to broadcast a single live stream to multiple platforms or servers simultaneously (e.g., Facebook, YouTube, or a custom media server).
How it works:
- Get credentials (stream URL/key or SRT URL) from the target platform.
- Create a restream in the Gcore system by specifying the target URI and the source live stream.
- Start your live stream; it will be automatically pushed to the target destination.
+-----------------------+
RTMP/RTMPS | | --------> Facebook (RTMP)
or ------> | Gcore Streaming | --------> YouTube (RTMPS)
SRT | | --------> Media server (SRT)
+-----------------------+ --------> Other RTMP/SRT targets
Supported combinations: RTMP → RTMP, RTMPS → RTMPS, RTMP → SRT, SRT → SRT, SRT → RTMP.
For SRT targets, only mode=caller is supported (Gcore initiates a PUSH connection).
Source stream parameters (bitrate, codecs, resolution) are sent “as is”. Ensure they match the destination requirements.
POST
Python