All Products
Search
Document Center

ApsaraVideo Live:Configure snapshots

Last Updated:Jan 16, 2024

The snapshot feature of ApsaraVideo Live allows you to capture snapshots of live streams based on a specified snapshot interval and store the snapshots in the JPG format in a specified Object Storage Service (OSS) bucket. This topic describes how to configure video snapshots.

Procedure

  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 in the Actions column.

    001

  4. Choose Templates > Snapshot Settings.

  5. Click Add.

  6. Configure the snapshot template.

    配置截图

    The following table describes the parameters of a snapshot template.

    Parameter

    Description

    Application Name

    The name of the application. The value of the Application Name 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 configure snapshot settings for all applications under the domain name, enter an asterisk (*).

    Snapshot Interval

    The interval between two consecutive snapshots. Unit: seconds. Valid values: 5 to 3600.

    Storage Location

    The storage location of snapshots in OSS.

    The OSS bucket must reside in the same region as the live center of the domain name. Cross-region snapshot capture is not supported.

    Storage Mode

    Two storage modes are available. You can select them at the same time.

    • Overwrite: Video snapshots are captured in sequence based on the snapshot interval. A newly captured snapshot overwrites the previous one.

    • New: Video snapshots are captured in sequence based on the snapshot interval. New snapshots with a sequence number of N + 1 (N ≥ 0) are stored in OSS in sequence.

    Note

    If you select the two modes at the same time, snapshots are captured in both modes.

    Note

    After the configuration is complete, all the specified applications under the domain name capture and store snapshots based on the configured template.

    If you modify the snapshot settings, the modification takes effect only for newly ingested streams.

  7. Click OK.