ApsaraVideo Live allows you to record live streams and store the recorded videos in ApsaraVideo VOD. You can use the online editing feature of ApsaraVideo VOD to edit and process the video content of live streams to associate live streaming with the production of short videos.
ApsaraVideo VOD is activated. For more information about ApsaraVideo VOD, see Get started with ApsaraVideo VOD.
- Log on to the ApsaraVideo Live console.
- In the left-side navigation pane, click Domains to go to the Domain Management page.
- Select the streaming domain that you want to configure and click Domain Settings.
- Choose .
- On the VOD tab, click Add.
- Configure a recording template.
The following table describes the parameters that you can set to configure a recording template.
Parameter Description Application Name The name of the video application. The value of this parameter must be the same as the application name specified in the ingest URL. Otherwise, the configuration does not take effect. If you need to record live streams for all applications in your domain, enter an asterisk (*). Stream Name You can store the recording of a specific live stream in ApsaraVideo VOD by specifying the stream name. If you need to record all the streams under the application that the Application Name parameter specifies, enter an asterisk (*).Note The values of the Application Name and Stream Name parameters can be up to 255 characters in length and can contain letters, digits, hyphens (-), and underscores (_). Recording Duration Valid values: 15 to 360. Unit: minutes. The maximum recording duration is 6 hours. If the recording duration exceeds 6 hours, the system generates a new file based on the recording naming rule. By default, the TS segment length is 30s.Note The recording duration specifies the maximum length of a video-on-demand (VOD) file that is converted from the specified live stream. Transcoding Settings Select a storage transcoding rule from the drop-down list. You can transcode the recorded videos in ApsaraVideo VOD.
The storage transcoding rule is used to convert the recorded videos to VOD files for transmission. You can transcode the recorded videos to videos of different specifications or retain the original quality without transcoding.
For more information about transcoding templates, see Manage transcoding settings.Note The region of the transcoding template that you use in ApsaraVideo VOD must be the same as the region of your domain. For example, if your domain resides in the China (Shanghai) region, the transcoding template that you use in ApsaraVideo VOD must reside in the China (Shanghai) region.
- Click OK.