RTMP Pusher¶
Mcaster allows you to publish any stream to an external server using RTMP protocol.
Social media platforms use RTMP to organize live broadcasts, which means you can use Mcaster to send your streams to social media (it can be several at once).
Use Cases¶
- Receiving video from a mobile reporter and sending directly to several social media platforms
- Broadcasting video from CCTV cameras
- Broadcasting own programs in social media, including scheduled broadcasts
Warning
Stream keys can expire. Check the terms of the service before publishing the stream.
Publish to YouTube¶
To publish a stream to YouTube:
- Go to YouTube Studio and create a new live stream
- Copy the stream URL and stream key
- In Mcaster configuration, add RTMP push settings
- Configure the stream to push to YouTube's RTMP server
Publish to Facebook¶
To publish a stream to Facebook:
- Go to Facebook Live and create a new live stream
- Copy the server URL and stream key
- In Mcaster configuration, add RTMP push settings
- Configure the stream to push to Facebook's RTMP server
Publish to OK¶
To publish a stream to OK.ru:
- Go to OK.ru broadcast section and create a new stream
- Copy the server URL and broadcast key
- In Mcaster configuration, add RTMP push settings
- Configure the stream to push to OK.ru's RTMP server
Configuration Example¶
stream youtube_stream {
input udp://239.0.0.1:1234;
push rtmp://a.rtmp.youtube.com/live2/YOUR_STREAM_KEY;
}
stream facebook_stream {
input udp://239.0.0.1:1234;
push rtmp://live-api.facebook.com:80/rtmp/YOUR_STREAM_KEY;
}
stream ok_stream {
input udp://239.0.0.1:1234;
push rtmp://vsu.mycdn.me/input/YOUR_STREAM_KEY;
}
Multiple Destinations¶
You can push the same stream to multiple destinations simultaneously:
stream multi_social {
input udp://239.0.0.1:1234;
push rtmp://a.rtmp.youtube.com/live2/YOUTUBE_KEY;
push rtmp://live-api.facebook.com:80/rtmp/FACEBOOK_KEY;
push rtmp://vsu.mycdn.me/input/OK_KEY;
}
Monitoring¶
Mcaster provides monitoring capabilities for RTMP push operations:
- Connection status to each destination
- Push statistics and metrics
- Error reporting for failed connections
- Automatic reconnection on connection loss