Smart Erase

更新时间:
复制 MD 格式

The Smart Erase service includes icon and caption removal features. This topic describes the details and usage of each feature.

Service regions

Smart Erase type descriptions

Smart Erase removes and fills areas in a video that contain elements such as captions and icons. The Smart Erase feature of video-on-demand (VOD) media processing supports the following two removal types:

Smart Erase Type

Description

Caption Removal

Intelligently detects captions in a video, removes them, and fills the background. This restores the original video without captions to assist with post-production and caption regeneration. Caption removal is available in Normal (default) and Premium versions. The Premium version uses a superior algorithm for a better removal effect. However, it processes more slowly and costs more than the Normal (default) version. Choose the version that best suits your business scenario.

Icon Removal

Intelligently detects icons in a video, such as TV station logos and internet platform logos, using a built-in icon library. It removes the icons and fills the background. This restores the original video without icons to assist with post-production and reuse.

Note

The Smart Erase feature supports only MP4 videos.

Create a Smart Erase template

Create using the console

  1. Log on to the Intelligent Media Services (IMS) console.

  2. In the upper-left corner of the top navigation bar, select a region.

  3. In the navigation pane on the left, choose VOD Media Processing > Template Management.

  4. On the Smart Erase tab, create a Smart Erase template.

    Parameter

    Description

    Template Name

    Enter a name for the Smart Erase template.

    Task Type

    Select Icon Removal or Caption Removal.

    Icon Removal Type

    When **Task Type** is set to Icon Removal, select the type of icon to remove. You can remove Internet platform logos and TV station logos.

    Removal Area

    Auto-detect

    Automatically detects and removes standard captions in the bottom 1/4 of the video.

    Custom

    • Removal Position: Set the position of the rectangular box to specify the caption removal area. You can specify up to two removal areas.

    • Preview Frame Size: Enter the dimensions for the preview frame. The minimum width and height are 100 px.

Create using OpenAPI

Call the CreateCustomTemplate operation and set the Type parameter to create a custom template.

Create a Smart Erase task

Create a task in the console

  1. Log on to the Intelligent Media Services (IMS) console.

  2. In the upper-left corner of the top navigation bar, select a region.

  3. In the navigation pane on the left, choose VOD Media Processing > Task Management.

  4. On the Smart Erase tab, create a Smart Erase task.

    Parameter

    Description

    Task Name

    Enter a name for the Smart Erase task.

    File Source

    Select media assets from Object Storage Service (OSS) or IMS Media Asset Management.

    OSS Path

    If **File Source** is set to Object Storage Service (OSS), select the OSS path of the media asset.

    Storage Address

    If **File Source** is set to Media Asset Management, select a storage address in the IMS system, and then click Add File to add media assets from that address.

    Select Template

    Select a Smart Erase template.

    Output Location

    • Original Storage Location: If the file source is Media Asset Management, the processed file is saved to the original storage location by default.

    • Custom: Customize the output location.

    Output Address

    If **Output Location** is set to Custom, select an output address.

    Output File Name

    Enter a name for the file after Smart Erase is performed.

Create a task using an API

Call the SubmitIProductionJob operation to submit a Smart Erase task.

Note
  • **Premium (Recommended)**: Produces a more natural-looking video after removal. It effectively resolves issues such as mosaic and shadow artifacts, achieving seamless removal. You can enable the Premium version of caption removal by setting the ModelId parameter. For more information, see the ModelId parameter description.

  • **Normal**: May leave residual artifacts such as mosaic shadows after removal. The restoration quality is average.

Query Smart Erase task details

Query details using a callback

You can query task details by receiving the callback for AI Production Completed, which is the callback related to the completion of a Smart Erase task. For more information, see Callback event overview.

Query details using an API

Call the QueryIProductionJob operation to query the details of a Smart Erase task.

Query Smart Erase task usage

  1. Log on to the Intelligent Media Services (IMS) console.

  2. In the navigation pane on the left, choose Data Center > Usage Query.

  3. On the VOD Task Usage tab, in the Video AI area, you can query or export the detailed usage duration for tasks.

    Note

    To ensure data security, the download link for the exported file is valid for 30 minutes. If it expires, refresh the page.

Billing

API reference