| 1 | --- |
| 2 | name: analyzing-videos |
| 3 | description: Analyzes video content and extracts highlights. Use when user wants to analyze video, extract highlights, create video summary, generate video keywords, understand video content, find best moments, create trailer, extract exciting clips, get video insights, or identify viral moments. 视频分析、提取精彩片段、视频摘要、视频理解、精彩集锦、视频关键词、剪辑精华、内容分析、热门片段。 |
| 4 | --- |
| 5 | |
| 6 | # Video Analysis |
| 7 | |
| 8 | Analyzes video content for understanding and extracts highlight clips using AI multimodal analysis. |
| 9 | |
| 10 | ## When to Use |
| 11 | |
| 12 | Use this skill when: |
| 13 | |
| 14 | - Analyzing video content for summary |
| 15 | - Extracting highlight/exciting moments |
| 16 | - Generating video keywords and tags |
| 17 | - Creating trailers from longer videos |
| 18 | - Understanding plot and storyline |
| 19 | - Finding viral-worthy moments |
| 20 | |
| 21 | ## Analysis Capabilities |
| 22 | |
| 23 | - **Visual Analysis**: Scene detection, object recognition, action identification |
| 24 | - **Audio Analysis**: Speech recognition, music detection, sound effects |
| 25 | - **Language Understanding**: Dialogue analysis, sentiment detection |
| 26 | - **Multimodal Fusion**: Combines all modalities for comprehensive understanding |
| 27 | |
| 28 | ## Workflow |
| 29 | |
| 30 | ### Step 1: Get Source Video |
| 31 | |
| 32 | Obtain the video URL to analyze. |
| 33 | |
| 34 | ### Step 2: Submit Analysis Task |
| 35 | |
| 36 | Call `submitAideoTask` with appropriate prompt: |
| 37 | |
| 38 | - For understanding: "Analyze and summarize this video" |
| 39 | - For highlights: "Extract the most exciting moments" |
| 40 | |
| 41 | ### Step 3: Poll for Results |
| 42 | |
| 43 | 1. First check: Wait **210 seconds** after submission |
| 44 | 2. Subsequent checks: Wait **30 seconds** between polls |
| 45 | 3. Call `getAideoTaskStatus` to check progress |
| 46 | |
| 47 | ### Step 4: Timeout Handling |
| 48 | |
| 49 | **Maximum wait time: 20 minutes** |
| 50 | |
| 51 | If task exceeds 20 minutes, report as timeout failure. |
| 52 | |
| 53 | ### Step 5: Return Results |
| 54 | |
| 55 | Results vary by task type: |
| 56 | |
| 57 | - **Understanding**: Summary, keywords, plot analysis (JSON) |
| 58 | - **Highlights**: Array of highlight clip URLs |
| 59 | |
| 60 | ## Examples |
| 61 | |
| 62 | ### Example 1: Extract Highlights |
| 63 | |
| 64 | **User request**: "Create a 30-second highlight reel from this video" |
| 65 | |
| 66 | ``` |
| 67 | submitAideoTask: |
| 68 | prompt: "Extract the most exciting moments from this video to create a 30-second highlight compilation" |
| 69 | multiInputs: ["source_video.mp4"] |
| 70 | ``` |
| 71 | |
| 72 | ### Example 2: Video Understanding |
| 73 | |
| 74 | **User request**: "Analyze this video and give me a summary" |
| 75 | |
| 76 | ``` |
| 77 | submitAideoTask: |
| 78 | prompt: "Analyze this video content and generate: summary, keywords, and plot analysis" |
| 79 | multiInputs: ["video.mp4"] |
| 80 | ``` |
| 81 | |
| 82 | ### Example 3: Create Trailer |
| 83 | |
| 84 | **User request**: "Make a trailer from this long video" |
| 85 | |
| 86 | ``` |
| 87 | submitAideoTask: |
| 88 | prompt: "Extract the most engaging and exciting moments to create a compelling trailer" |
| 89 | multiInputs: ["long_video.mp4"] |
| 90 | ``` |
| 91 | |
| 92 | ### Example 4: Find Viral Moments |
| 93 | |
| 94 | **User request**: "Find the best clips for social media" |
| 95 | |
| 96 | ``` |
| 97 | submitAideoTask: |
| 98 | prompt: "Identify and extract the most viral-worthy moments from this video for social media" |
| 99 | multiInputs: ["content_video.mp4"] |
| 100 | ``` |
| 101 | |
| 102 | ## Output Types |
| 103 | |
| 104 | ### Highlight Extraction |
| 105 | |
| 106 | - Returns array of clip URLs |
| 107 | - Each clip contains exciting/engaging moment |
| 108 | - Clips can be used directly or further edited |
| 109 | |
| 110 | ### Video Understanding |
| 111 | |
| 112 | - **Summary**: Brief description of video content |
| 113 | - **Keywords**: Relevant tags and topics |
| 114 | - **Plot Analysis**: Story structure and key events |
| 115 | |
| 116 | ## Important Notes |
| 117 | |
| 118 | - Maximum video length: 2 hours |
| 119 | - Maximum wait time: 20 minutes |
| 120 | - Highlight extraction returns multiple clip URLs |
| 121 | - Understanding returns JSON with summary, keywords, plot |
| 122 | - Processing time: ~10 minutes per 1-minute video |
| 123 |