ApsaraVideo Live allows you to record live streams and store the recording files in ApsaraVideo VOD. You can use the online editing feature of ApsaraVideo VOD to edit and process the video content of live streams to produce short videos.


ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.


Important You can store the recording files of a live stream in either ApsaraVideo VOD or Object Storage Service (OSS).
  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. Find the streaming domain that you want to configure and click Domain Settings.
  4. Choose Templates > Recording Settings.
  5. On the VOD tab, click Add.
  6. Create a recording template.
    Store recording files in ApsaraVideo VOD

    The following table describes the parameters of a recording template.

    Parameter Description
    AppName The name of the application. The value of the AppName parameter must be the same as the application name specified in the ingest URL. Otherwise, the configuration does not take effect. If you want to record live streams for all applications under your domain name, enter a wildcard character (*).
    StreamName You can store the recording files of a specific live stream in ApsaraVideo VOD by specifying the stream name. If you want to record all live streams in the application that is specified by the Application Name parameter, enter a wildcard character (*).
    Note The value of the Application Name or Stream Name parameter can be up to 255 characters in length, and can contain letters, digits, hyphens (-), and underscores (_).
    Recording Cycle The recording cycle can range from 15 to 360 minutes. If the specified recording cycle is exceeded, the system generates a new file based on the recording naming rule. By default, the length of a TS segment is 30 seconds.
    Note The recording cycle specifies the maximum length of a 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 resolutions or retain the original quality without transcoding.

    For more information about transcoding templates, see Configure transcoding template groups.

    Note The region of the transcoding template that you use in ApsaraVideo VOD must be the same as the region of your domain name. For example, if your domain name resides in the China (Shanghai) region, the transcoding template that you use in ApsaraVideo VOD must also reside in the China (Shanghai) region.
  7. Click OK.

Disable the recording feature

If you do not need to use the recording feature, you can delete the added recording templates to disable the feature.

If live streaming is in progress when you delete a template, ApsaraVideo Live continues to record based on the template. The deletion takes effect for subsequent ingested streams.