Smart Erase
The Smart Erase service includes icon and caption removal features. This topic describes the details and usage of each feature.
Service regions
For the regions that support caption removal, see Video Caption Removal.
For the regions that support icon removal, see Video Icon Removal.
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. |
The Smart Erase feature supports only MP4 videos.
Create a Smart Erase template
Create using the console
Create a Smart Erase task
Create a task in the console
Query Smart Erase task details
Query details using a callback
Query details using an API
Query Smart Erase task usage
Log on to the Intelligent Media Services (IMS) console.
In the navigation pane on the left, choose Data Center > Usage Query.
On the VOD Task Usage tab, in the Video AI area, you can query or export the detailed usage duration for tasks.
NoteTo ensure data security, the download link for the exported file is valid for 30 minutes. If it expires, refresh the page.
FAQ
Why is the caption not removed even though the Smart Erase job succeeded?
Smart Erase does not automatically detect the position of captions in the video. It only removes the default removal area or the custom area that you specify. If the captions are not located in the default area, or if the coordinates you provide are inaccurate, the removal will have no effect. Check and correct the normalized coordinates in the LimitRegion parameter to ensure that the removal area covers the actual position of the captions.
Can Smart Erase fix garbled text on product packaging or logos in a video?
No. Smart Erase cannot directly fix garbled text in a video. You can use icon removal (VideoDelogo) instead: call the SubmitIProductionJob operation, set the FunctionName parameter to VideoDelogo, and use the Boxes parameter to specify the normalized coordinates of the garbled area to remove and fill it. This operation only removes the content and restores the background. It cannot recover the original text. If you need a perfect fix, we recommend reshooting the footage.
What are the concurrency limits and processing time for Smart Erase jobs?
Intelligent Media Services (IMS) interfaces are subject only to a QPS limit. There is no cap on the number of concurrent background jobs. Longer processing time under higher submission concurrency is expected queuing behavior, not an error. If a job status looks abnormal or takes too long, first check whether your job-status retrieval logic is correct. If you have high-concurrency business requirements, you can evaluate adjusting your regional resource quota.
Why is the end of my video not processed when I submit a Smart Erase job by calling an API operation?
If the end time of the Time parameter is earlier than the actual duration of the video, the frames after that end time are not erased. The end of the video then looks unprocessed and the erasure is incomplete. For example, a video is 17.467 seconds long, but you set Time to [0, 17] when you call the SubmitIProductionJob operation. In this case, the segment after the 17th second is not processed. Use either of the following methods to make the Time parameter cover the full duration of the video:
Set the end time of
Timeto a value that is greater than or equal to the actual duration of the video. For the preceding example, set the end time to 18.Do not specify the
Timeparameter. The system then processes the full duration of the video by default.
What is the difference between the video erasure features of Intelligent Media Services (IMS) and Visual Intelligence API (VIAPI)?
IMS and VIAPI are two independent products. Their video erasure features differ in the following ways:
Feature ownership and algorithm models: In IMS, Caption Removal and Icon Removal belong to the intelligent production module, whereas VIAPI provides video erasure as a separate product. The two services use different algorithm models.
Billing method: IMS bills you by the duration of the processed video. For unit prices, see the Caption Removal, Caption Removal - Premium and Icon Removal billing items listed in the "Billing" section of this topic. VIAPI uses a different billing method, and the actual fees are subject to the bill that each product console generates.