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.

Prerequisites

ApsaraVideo VOD is activated. For more information about ApsaraVideo VOD, see Get started with ApsaraVideo VOD.

Procedure

Notice You cannot store the recording of a live stream in both ApsaraVideo VOD and an Object Storage Service (OSS) bucket.
  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, click Domains to go to the Domain Management page.
  3. Select the streaming domain that you want to configure and click Domain Settings.
    Configure the domain name
  4. Choose Templates > Recording Settings.
  5. On the VOD tab, click Add.
  6. Configure a recording template.
    Store live recordings in ApsaraVideo VOD

    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.
  7. Click OK.