A common problem during live streaming is that the push stream bit rate is set fairly high with high resolution, but the audience who have a bad connection cannot watch it. We can use the live transcoding function to convert live streams into many different bit rates to satisfy different needs under different Internet conditions.
The design logic of Alibaba Cloud live transcoding is similar to live recording, that is, to set the domain name, and any live stream of which the streaming address matches the rule is transcoded.
Each transcoding template has an id. The content is a set of transcoding parameters which defines the output bit rate, resolution, and other parameters.
Alibaba Cloud provides high-quality transcoding template, which has four different resolution/bit rate combinations.
- High-quality template: ld、sd、hd、ud
The users’ streaming address is as follows:
Three parts of this streaming address are managed by the user: domain name (a.com), AppName, and StreamName. The user can configure certain domain name + AppName to use multiple transcoding templates. After configuration, when the user is pushing the stream, the streams that matchs this domain name and AppName are transcoded.
Configure domain name as a.com, AppName as live for recording and the following streams are transcoded.
The user can perform live transcoding configuration on the ApsaraVideo Live console.
Transcoded stream playback address: the transcoded stream playback address is composed of the original address +
transcoding ID. For example, we configure transcoding templates as ld and sd ubder the domain name
a.comand the AppName
live. The corresponding streaming and playback address is:
Original playback address:
Transcoded stream ld playback address:
Transcoded stream sd playback address: