返回 AiToEarn
1 ---
2 name: removing-subtitles
3 description: Removes hardcoded subtitles from videos using AI inpainting. Use when user wants to remove subtitles, erase text from video, clean video from captions, delete burned-in subtitles, remove video watermarks, clean hardcoded text, or strip embedded subtitles. 去字幕、去除字幕、删除字幕、清除字幕、去硬字幕、去水印、擦除字幕、移除字幕。
4 ---
5
6 # Subtitle Removal
7
8 Removes hardcoded/burned-in subtitles from videos using OCR detection and AI inpainting.
9
10 ## When to Use
11
12 Use this skill when:
13
14 - Removing hardcoded subtitles from videos
15 - Cleaning up videos with burned-in text
16 - Preparing videos for re-subtitling
17 - Removing unwanted text overlays
18 - Cleaning videos for repurposing
19
20 ## How It Works
21
22 1. **OCR Detection**: AI detects subtitle regions using optical character recognition
23 2. **Region Masking**: Identifies areas containing text
24 3. **AI Inpainting**: Fills removed areas with reconstructed background content
25 4. **Output Generation**: Produces clean video without subtitles
26
27 ## Workflow
28
29 ### Step 1: Get Source Video
30
31 Obtain the video URL with hardcoded subtitles.
32
33 ### Step 2: Submit Removal Task
34
35 Call `submitAideoTask` with:
36
37 - **prompt**: Request subtitle removal
38 - **multiInputs**: Array containing source video URL
39
40 ### Step 3: Poll for Results
41
42 1. First check: Wait **210 seconds** after submission
43 2. Subsequent checks: Wait **30 seconds** between polls
44 3. Call `getAideoTaskStatus` to check progress
45
46 ### Step 4: Timeout Handling
47
48 **Maximum wait time: 20 minutes**
49
50 If task exceeds 20 minutes, report as timeout failure.
51
52 ### Step 5: Return Results
53
54 On completion, return the clean video URL.
55
56 ## Examples
57
58 ### Example 1: Remove Subtitles
59
60 **User request**: "Remove the subtitles from this video"
61
62 ```
63 submitAideoTask:
64 prompt: "Remove all hardcoded subtitles from this video"
65 multiInputs: ["video_with_subtitles.mp4"]
66 ```
67
68 ### Example 2: Clean Video for Re-subtitling
69
70 **User request**: "I want to add my own subtitles, please remove the existing ones"
71
72 ```
73 submitAideoTask:
74 prompt: "Erase all burned-in subtitles from this video to prepare for new subtitles"
75 multiInputs: ["original_video.mp4"]
76 ```
77
78 ### Example 3: Remove Text Overlays
79
80 **User request**: "Clean up this video by removing the text at the bottom"
81
82 ```
83 submitAideoTask:
84 prompt: "Remove the hardcoded text overlay at the bottom of this video"
85 multiInputs: ["video_with_text.mp4"]
86 ```
87
88 ## Important Notes
89
90 - Uses OCR to detect subtitle regions automatically
91 - AI inpainting fills removed areas naturally
92 - Works best with subtitles on solid or simple backgrounds
93 - Complex backgrounds may have some artifacts
94 - Maximum wait time is 20 minutes
95 - Processing time: ~10 minutes per 1-minute video
96
96 lines MARKDOWN