Simulcast to 3rd party platforms
Simulcasting allows you to broadcast a live video feed to multiple 3rd party social platforms or channels at the same time. This can include platforms like YouTube, Facebook Live, Twitch, and others.
Simulcast targets
Live simulcasting can be used with any RTMP server. Presently, FastPix supports simulcast targets from the following platforms. All of these platforms supports the RTMP protocol.
- YouTube
- Facebook live
- Twitch
PLEASE NOTE
We’re constantly upscaling our APIs and adding more simulcast targets from other popular platforms. Please react out to us if you have any other specific requirements.
Simulcast your live stream
Take reference from the create a simulcast API
endpoint to add simulcasting to the FastPix live stream.
Once you have added the simulcast target to your request, the live stream event will be set up for simulcasting. The targets can be added when the live stream object is first or after the live stream event creation.
PLEASE NOTE
Simulcast targets can only be added when the live stream object status is
idle
that is when it’s not active.
Parameter requirements for request:
- RTMP URL
- It is like the address you need to know to connect and share your live video with a third-party streaming service.
- It's the way your live stream knows where to go and how to reach its destination on the internet.
- StreamKey:
- When you want to share a live video on a specific platform, they provide you with a unique address called the RTMP URL, and a stream key. You combine these two pieces of information, the RTMP URL and the stream key, to create a connection.
- This connection allows your live video to be sent to and displayed on that platform. Each platform has its own unique RTMP URL and stream key, acting as the special code to broadcast on that platform.
curl -X POST 'https://v1.fastpix.io/live/streams/{streamId}/simulcast'
--user {Access Token ID}:{Secret Key} \
-H 'Content-Type: application/json' \
-d '{
"url": "rtmp://hyd01.contribute.live-video.net/app/",
"streamKey": "live_1012464221_DuM8W004MoZYNxQEZ0czODgfHCFBhk",
"metadata": {
"livestream_name": "Tech-Connect Summit"
}
}'
{
"success": true,
"data": {
"simulcastId": "8717422d89288ad5958d4a86e9afe2a2",
"url": "rtmp://hyd01.contribute.live-video.net/app/",
"streamKey": "live_1012464221_DuM8W004MoZYNxQEZ0czODgfHCFBhk",
"isEnabled": true,
"metadata": {
"livestream_name": "Tech-Connect Summit"
}
}
}
Here are examples of different streaming platforms along with their RTMP URL and stream key:
Simulcast for YouTube Live
- Use Live Stream ID to set up a simulcast on YouTube.
- Get the RTMP URL and stream key for YouTube.
Create a simulcast API
by setting up a POST request for YouTube.
PLEASE NOTE
The streamKey is intended for a single use on each platform; once the stream concludes, it becomes inactive. It is advisable to regularly reset the streamKey for optimal functionality.
- RTMP URL: rtmp://a.rtmp.youtube.com/live2
- Stream Key: 2hqw-g9aq-ah0q-1r6s-9y8d
{
"rtmpUrl": "rtmp://a.rtmp.youtube.com/live2/37q0-tvp6-4ju3-47dk-318b",
"streamKey": "37q0-tvp6-4ju3-47dk-318b",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}
{
"success": true,
"data": {
"simulcastId": "898c4098-36bd-4cb9-84c9-60511648b1ad",
"livestreamId": "be97df2c-e9de-49e8-8c6d-5dd9b8c4861f",
"rtmpUrl": "rtmp://a.rtmp.youtube.com/live2/37q0-tvp6-4ju3-47dk-318b",
"streamKey": "37q0-tvp6-4ju3-47dk-318b",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}
}
Live streaming in YouTube
Simulcast for Facebook Live
- Use Live Stream ID to set up a simulcast on Facebook live (If you want more simulcast).
- Get the RTMP URL and stream key for Facebook.
Create a simulcast API
by setting up a POST request for Facebook.
- RTMP URL: rtmps://live-api-s.facebook.com:443/rtmp/
- Stream Key: FB-1697910214069303-0-AbztZAbPLLvaxRjs
{
"rtmpUrl": "rtmps://live-api-s.facebook.com:443/rtmp/FB-1729821800878144-0-Abw5V0aoUI7NK0SD",
"streamKey": "FB-1729821800878144-0-Abw5V0aoUI7NK0SD",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}
{
"success": true,
"data": {
"simulcastId": "9644a9b8-5d50-4a79-8997-5f7f7b16b1f5",
"livestreamId": "be97df2c-e9de-49e8-8c6d-5dd9b8c4861f",
"rtmpUrl": "rtmps://live-api-s.facebook.com:443/rtmp/FB-1729821800878144-0-Abw5V0aoUI7NK0SD",
"streamKey": "FB-1729821800878144-0-Abw5V0aoUI7NK0SD",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}
}
Live streaming in Facebook
Simulcast for Twitch
- Use Live Stream ID to set up a simulcast on Twitch (If you want more simulcast)
- Get the RTMP URL and stream key for Twitch.
Create a simulcast API
by setting up a POST request for Twitch.
- RTMP URL: rtmp://live.twitch.tv/app-
- Stream Key: live_1012464221_3nnFycVb0J7Ch1fto4KkfnmKcVCXS5
{
"rtmpUrl": "rtmp://hyd01.contribute.live-video.net/app/live_1012464221_aJ9wwRkGeNQoHHe64Bfid8Ct7NZsUG",
"streamKey": "live_1012464221_aJ9wwRkGeNQoHHe64Bfid8Ct7NZsUG",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}`
{
"success": true,
"data": {
"simulcastId": "5b313478-3b7a-44cc-9073-bf7047de82df",
"livestreamId": "be97df2c-e9de-49e8-8c6d-5dd9b8c4861f",
"rtmpUrl": "rtmp://hyd01.contribute.live-video.net/app/live_1012464221_aJ9wwRkGeNQoHHe64Bfid8Ct7NZsUG",
"streamKey": "live_1012464221_aJ9wwRkGeNQoHHe64Bfid8Ct7NZsUG",
"metadata": {
"Key1": "567",
"Key2": "567"
}
}
}
Live streaming in Twitch
Configure OBS
Once you are done setting up your simulcasting targets, you would need to configure the OBS (Open Broadcaster Software) to finally start the live streaming while also sharing the stream to 3rd party social platforms.
Here are the steps you need to follow:
- Open OBS on your system
- Go to “Settings” and click on “Stream”.
- Enter our RTMP URL (rtmp://dev-live.fastpix.io:1935/streaming) and stream key (The one that got generated when you created the live stream).
- Set up your video and audio sources (input that you want to stream).
- Start streaming: Click on “Start Streaming” in OBS. The stream will get started in all platforms simultaneously.
- To stop streaming: Click “Stop Streaming” in OBS. The stream ends on all platforms simultaneously.
Updated 7 days ago