Transcoding templates

Updated at:

Vision Intelligence provides a real-time transcoding feature. You can create a transcoding template and apply it to a space to trigger transcoding for all monitoring streams within that space. In a transcoding rule, you can specify parameters such as the encoding format, bitrate, frame rate, and resolution. Transcoding is a value-added service charged based on the output duration in minutes. For pricing details, see Alibaba Cloud pricing.

How it works

  • By default, real-time transcoding is triggered by playback. Vision Intelligence starts transcoding a monitoring stream only when it detects a viewer. If no viewers are detected for 10 consecutive minutes, the transcoding process stops automatically. If you need transcoding to run continuously, even without viewers (active transcoding), you can submit a ticket to enable this feature.

  • The playback URL for a transcoded stream is generated by appending the transcoding rule name as a suffix to the source stream URL.

  • Each transcoding template can have a maximum of four transcoding rules, and each rule generates one transcoded stream.

  • You can also generate playback URLs for transcoded streams using the API. For more information, see Get Transcoded Stream URL.

  • If a space or stream has both a recording template and a transcoding template applied, only the source stream is recorded. Transcoded streams are not recorded.

  • Transcoded streams support the FLV, RTMP, and HLS formats.

  • Transcoding templates can be applied at the space level but not to individual streams.

Procedure

  1. Log in to the Vision Intelligence console and navigate to template management > transcoding template.

  2. On the transcoding template page, click Add Transcoding Template.

  3. Enter a name for the transcoding template and create transcoding rules.

  4. Each transcoding rule produces a single transcoded stream. By default, the console assigns a timestamp as the rule name. We recommend changing this to a more recognizable name. This name is used as the suffix for the transcoded stream's URL. For easier identification, use suffixes such as sd or 200k. Only letters and numbers are supported. For example, in the URL rtmp://aliyuntest.com/live/stream_sd&auth_key=*, sd is the name of the transcoding rule.

Video parameters for a transcoding rule include encoding format (for example, H.264), bitrate (for example, 800 Kbps), resolution (width × height, for example, 1280×640), frame rate (for example, 25 fps), and maximum keyframe interval (for example, 250). After configuring the parameters, click Save.