Introduction
OBS (Open Broadcaster Software) is a free, open-source software for live streaming and recording. It is widely used by content creators, gamers, and professionals due to its flexibility, performance, and extensive customization options. OBS supports multiple streaming platforms, advanced scene composition, and various plugins to enhance functionality.
Create a CDN service for live streaming
You have the following two options. Create a CDN HTTP Live service or create a CDN Live service.
Create a CDN HTTP Live service with RTMP Push Publishing Point
Assume that your CDN HTTP Live service has the following properties. Please refer to Services/How-To.
- Server URL - rtmp://push-1.cdnsun.com/p12345
Create a CDN Live service with Push Publishing
Assume that your CDN Live service has the following properties. Please refer to Services/How-To.
- Server URL - rtmp://12345.publishstream.cdnsun.net/P12345
- Username - P12345
- Password - Kmx7s14We
Publish video stream to the CDN using Open Broadcaster
- In the Open Broadcaster menu go to Settings/Stream.
- As the Service type choose Custom.
Enter your Server URL (e.g., rtmp://push-1.cdnsun.com/p12345 or rtmp://12345.publishstream.cdnsun.net/P12345) to the Server field as in the picture below.
- Choose your stream name (e.g., mystream) and fill it to the Stream Key field.
- In the case of CDN Live service tick Use authentication and fill in your Username and Password.
- Click on the OK button.
- In the Open Broadcaster menu go to Settings/Advanced/Network.
-
Tick Enable network optimizations and tick Enable TCP pacing as in the picture below.
- Click on the OK button.
- That's all.
Accessing your CDN video stream
The above will allow you to publish your stream through the CDN using mystream as the stream name. The resulting CDN stream will be accessible via the following URLs, assuming cdn.mycompany.com is the Service Domain of your CDN service.
CDN HTTP Live service
- HLS - https://cdn.mycompany.com/mystream/playlist.m3u8
CDN Live service
- RTMP - rtmp://cdn.mycompany.com/mystream
- HLS - https://cdn.mycompany.com/12345/_definst_/mystream/playlist.m3u8
What next?
Read about the following topics.