To set up your Live Streaming services, follow the steps outlined below:
1. Log in to the Universal CDN Control Panel at my.ucdn.com.
2. Navigate to the My Zones tab located at the top left corner.
3. In the My Zones section, click on the New Live Stream button.
4. Enter a friendly name for your Live Stream session.
5. From the Base options section, you can choose:
- to enable HLS via HTTP. If not checked, the CDN system will not convert/transmux the incoming RTMP stream into the HLS format.
- to keep a copy of the Base stream as MP4 in a UCDN Storage of yours. This feature will record individual clips from the Live Stream session allowing your community to watch them later on-demand. If selected, the CDN system will automatically upload the live stream session in your UCDN Storage in MP4 format segments every 30 minutes since the beginning of the stream. If the duration of your live stream session is less than 30 minutes, as soon as the session ends, the system will automatically upload the stream in your cloud storage.
- to include Base Stream in master.m3u8. This feature will include the Base Stream in the master.m3u8 file if transcodings are added.
6. Base Stream Transcodings feature is necessary if you need to create a multi-bitrate stream, or to change transcoding parameters of the Base Stream. To create a stream with a different bitrate from the base stream, click on the Add button.
From the pop-up window, you can adjust the parameters of the new transcoding slot of the base stream:
- Resolution. You can choose between 360p, 480p, 720p, 1080p or 2160p resolutions.
- Video Codec. H.264 is the currently supported compression algorithm.
- Frame Rate (FPS). You can choose between 30 or 60 FPS.
- Profile. You can choose between baseline, main or high profile. More additional information you can find here!
- Audio codec. AAC is the currently supported audio compression algorithm.
Do not forget to click on the Save Changes button, once you are done with the settings of the transcodings.
From the Main Settings page, you can edit the transcoding settings and obtain your Publish URL and Publish Key. More detailed information can be found on the Instructions page under zone settings.
The Master file (master.m3u8) includes the Base stream, the transcoded streams (if any), or both if the “Include Base Stream in master.m3u8” option has been activated for your Live Stream CDN zone from the “Main settings” page.
If you would like to use the Master file and no transcoded streams are added, you need to activate the “Include Base Stream in master.m3u8” option from the “Main settings” page of your Live Stream CDN zone.
In any other case, where transcoded streams are added, the “Include Base Stream in master.m3u8” option should not be activаted. Otherwise, this option may lead to strange behavior in the player, when it is switching between transcoded and Base streams, as the duration of the .ts segments of the Base and the transcoded streams may differ.
You can also keep a copy of the transcoding of the stream in MP4 format segments in a UCDN Storage of yours by checking the box next to Keep copy as MP4.
Please be informed that if the Base stream is running you are not allowed to change the parameters or delete transcodings that are active.
Any changes in the settings of your running stream will cause a restart of the stream session. Deactivation of all of the transcodings will lead to the deactivation of the corresponding restreams.
If you want to delete the transcoding of a stream that is running, you first need to deactivate it. You can deactivate a stream by unchecking the “Active” option next to the transcoding. After that, you need to click the “Save Changes” button. Then you will be able to edit or delete transcodings.
7. RTMP Restreams. Universal CDN allows you to restream your base stream or your transcoded streams to a third-party video sharing or streaming media platforms like YouTube, Facebook, Twitch, etc.
As you can see in the example below, transcoding of the Base stream has been restreamed in the YouTube platform.
8. View your Live stream session. By clicking on the “View running Livestream” button, you can view your live stream session in the internal player of the UCDN Control Panel. You can switch between the Base or some of the available transcodings if any.
In addition, you can click on the “view stream” button located next to “Base stream” to start watching the base stream session.
You can monitor and manage your Live Stream zone(s) on the My Zones page.
9. Check the logs of your streams. You can use audit logs to monitor the streaming events and their duration. To obtain this information, click on the “log” button.
To activate the Live Streaming service for your account, please Contact Us.