返回 AiToEarn
1 ---
2 name: composing-videos
3 description: Combines multiple videos/images into a single video with optional background audio. Use when user wants to merge clips, concatenate videos, create slideshow from images, stitch videos together, combine media files, add background music to video, mix video with audio, create video montage, or join multiple video segments. 合并视频、拼接视频、图片合成视频、添加背景音乐、视频拼接、多图生成视频、视频混剪、素材合成。
4 ---
5
6 # Video Composition
7
8 Combines multiple videos/images into a single video with optional background audio using AI-powered processing.
9
10 ## When to Use
11
12 Use this skill when:
13
14 - Merging multiple video clips into one
15 - Creating a slideshow from multiple images
16 - Adding background music to a video
17 - Combining videos with audio tracks
18 - Stitching together video segments
19
20 ## Workflow
21
22 ### Step 1: Collect Media
23
24 Gather all media URLs from user:
25
26 - Video files (MP4, MOV, etc.)
27 - Image files (JPG, PNG, etc.)
28 - Audio files (MP3, WAV, etc.) for background music
29
30 ### Step 2: Submit Task
31
32 Call `submitAideoTask` with:
33
34 - **prompt**: Natural language description of desired composition
35 - **multiInputs**: Array of all media URLs
36
37 ### Step 3: Poll for Results
38
39 1. First check: Wait **210 seconds** after submission
40 2. Subsequent checks: Wait **30 seconds** between polls
41 3. Call `getAideoTaskStatus` to check progress
42
43 ### Step 4: Timeout Handling
44
45 **Maximum wait time: 20 minutes**
46
47 If task exceeds 20 minutes:
48
49 - Report as timeout failure
50 - Suggest user try with shorter/smaller media
51
52 ### Step 5: Return Results
53
54 On completion, return the output video URL to user.
55
56 ## Examples
57
58 ### Example 1: Merge Images into Video
59
60 **User request**: "Create a video from these 5 photos"
61
62 ```
63 submitAideoTask:
64 prompt: "Combine these images into a video, each image displays for 3 seconds with fade transition effects"
65 multiInputs: ["photo1.jpg", "photo2.jpg", "photo3.jpg", "photo4.jpg", "photo5.jpg"]
66 ```
67
68 ### Example 2: Merge Videos with Background Music
69
70 **User request**: "Combine these clips and add background music"
71
72 ```
73 submitAideoTask:
74 prompt: "Merge these video clips into one video and add the background music"
75 multiInputs: ["clip1.mp4", "clip2.mp4", "clip3.mp4", "background_music.mp3"]
76 ```
77
78 ### Example 3: Create Video Montage
79
80 **User request**: "Create a montage from my vacation videos"
81
82 ```
83 submitAideoTask:
84 prompt: "Create a dynamic video montage with smooth transitions between clips"
85 multiInputs: ["vacation1.mp4", "vacation2.mp4", "vacation3.mp4"]
86 ```
87
88 ## Priority for Multi-Media Tasks
89
90 When using aideo for multi-media composition:
91
92 - **Always use aideo first** for: Images to video / Video concatenation / Audio-video merge
93 - Priority order: Translation > Erase > Highlight > Vision > Other
94
95 ## Important Notes
96
97 - Processing time: approximately 10 minutes per 1-minute of output video
98 - Supports multiple input formats (MP4, MOV, JPG, PNG, MP3, etc.)
99 - For style transfer (comic/anime), use the `transferring-video-styles` skill instead
100 - Maximum wait time is 20 minutes
101
101 lines MARKDOWN