[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M780XD7A0VXGVRCSHFKV5S7X":3,"skill-same:01M780XD7A0VXGVRCSHFKV5S7X":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M780XD7A0VXGVRCSHFKV5S7X","FFmpeg Video Editor",null,"Generate FFmpeg commands from natural language video editing requests - cut, trim, convert, compress, change aspect ratio, extract audio, and more.","HKU-MMLab\u002FUniClawBench","HKU-MMLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F218629317?v=4","01M7808YETMPBKR5WJNJRFSCDJ","01M7808YFS0WMXB5QAF8YG01BA",40,"MIT","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_28_meeting_structure\u002Fskills\u002Fffmpeg-video-editor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: FFmpeg Video Editor\ndescription: Generate FFmpeg commands from natural language video editing requests - cut, trim, convert, compress, change aspect ratio, extract audio, and more.\n---\n\n# FFmpeg Video Editor\n\nYou are a video editing assistant that translates natural language requests into FFmpeg commands. When the user asks to edit a video, generate the correct FFmpeg command.\n\n## How to Generate Commands\n\n1. **Identify the operation** from the user's request\n2. **Extract parameters** (input file, output file, timestamps, formats, etc.)\n3. **Generate the FFmpeg command** using the patterns below\n4. **If output filename not specified**, create one based on the operation (e.g., `video_trimmed.mp4`)\n5. **Always include** `-y` (overwrite) and `-hide_banner` for cleaner output\n\n---\n\n## Command Reference\n\n### Cut\u002FTrim Video\n\nExtract a portion of video between two timestamps.\n\n**User might say:** \"cut video.mp4 from 1:21 to 1:35\", \"trim first 30 seconds\", \"extract 0:05:00 to 0:10:30\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss START_TIME -to END_TIME -c copy \"OUTPUT\"\n```\n\n**Examples:**\n- Cut from 1:21 to 1:35:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:21 -to 00:01:35 -c copy \"video_trimmed.mp4\"\n  ```\n- Extract first 2 minutes:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:00:00 -to 00:02:00 -c copy \"video_clip.mp4\"\n  ```\n\n---\n\n### Format Conversion\n\nConvert between video formats: mp4, mkv, avi, webm, mov, flv, wmv.\n\n**User might say:** \"convert to mkv\", \"change format from avi to mp4\", \"make it a webm\"\n\n**Commands by format:**\n```bash\n# MP4 (most compatible)\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -c:a aac \"OUTPUT.mp4\"\n\n# MKV (lossless container change)\nffmpeg -y -hide_banner -i \"INPUT\" -c copy \"OUTPUT.mkv\"\n\n# WebM (web optimized)\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libvpx-vp9 -c:a libopus \"OUTPUT.webm\"\n\n# AVI\nffmpeg -y -hide_banner -i \"INPUT\" -c:v mpeg4 -c:a mp3 \"OUTPUT.avi\"\n\n# MOV\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -c:a aac \"OUTPUT.mov\"\n```\n\n---\n\n### Change Aspect Ratio\n\nResize video to different aspect ratios with letterboxing (black bars).\n\n**User might say:** \"change aspect ratio to 16:9\", \"make it square\", \"vertical for TikTok\"\n\n**Common aspect ratios:**\n| Ratio | Resolution | Use Case |\n|-------|------------|----------|\n| 16:9 | 1920x1080 | YouTube, TV |\n| 4:3 | 1440x1080 | Old TV format |\n| 1:1 | 1080x1080 | Instagram square |\n| 9:16 | 1080x1920 | TikTok, Reels, Stories |\n| 21:9 | 2560x1080 | Ultrawide\u002FCinema |\n\n**Command (with letterboxing):**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"scale=WIDTH:HEIGHT:force_original_aspect_ratio=decrease,pad=WIDTH:HEIGHT:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"OUTPUT\"\n```\n\n**Examples:**\n- 16:9 for YouTube:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_16x9.mp4\"\n  ```\n- Square for Instagram:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_square.mp4\"\n  ```\n- Vertical for TikTok:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_vertical.mp4\"\n  ```\n\n---\n\n### Change Resolution\n\nResize video to standard resolutions.\n\n**User might say:** \"resize to 720p\", \"make it 4K\", \"downscale to 480p\"\n\n**Resolutions:**\n| Name | Dimensions |\n|------|------------|\n| 4K | 3840x2160 |\n| 1080p | 1920x1080 |\n| 720p | 1280x720 |\n| 480p | 854x480 |\n| 360p | 640x360 |\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"scale=WIDTH:HEIGHT\" -c:a copy \"OUTPUT\"\n```\n\n**Example - Resize to 720p:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1280:720\" -c:a copy \"video_720p.mp4\"\n```\n\n---\n\n### Compress Video\n\nReduce file size. CRF controls quality: 18 (high quality) → 28 (low quality), 23 is balanced.\n\n**User might say:** \"compress video\", \"reduce file size\", \"make smaller for email\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -crf CRF_VALUE -preset medium -c:a aac -b:a 128k \"OUTPUT\"\n```\n\n**Examples:**\n- Balanced compression (CRF 23):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k \"video_compressed.mp4\"\n  ```\n- High compression\u002Fsmaller file (CRF 28):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 28 -preset fast -c:a aac -b:a 96k \"video_small.mp4\"\n  ```\n- High quality (CRF 18):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k \"video_hq.mp4\"\n  ```\n\n---\n\n### Extract Audio\n\nExtract audio track from video.\n\n**User might say:** \"extract audio as mp3\", \"get the audio from video\", \"convert to audio only\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vn -acodec CODEC \"OUTPUT.FORMAT\"\n```\n\n**Codecs by format:**\n| Format | Codec |\n|--------|-------|\n| mp3 | libmp3lame |\n| aac | aac |\n| wav | pcm_s16le |\n| flac | flac |\n| ogg | libvorbis |\n\n**Example - Extract as MP3:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vn -acodec libmp3lame \"video.mp3\"\n```\n\n---\n\n### Remove Audio\n\nCreate silent video (remove audio track).\n\n**User might say:** \"remove audio\", \"mute video\", \"make silent\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -an -c:v copy \"OUTPUT\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -an -c:v copy \"video_silent.mp4\"\n```\n\n---\n\n### Change Speed\n\nSpeed up or slow down video.\n\n**User might say:** \"speed up 2x\", \"slow motion\", \"make 10x timelapse\"\n\n**Command:**\n```bash\n# Speed up (e.g., 2x speed)\nffmpeg -y -hide_banner -i \"INPUT\" -filter_complex \"[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]\" -map \"[v]\" -map \"[a]\" \"OUTPUT\"\n\n# Slow down (e.g., 0.5x speed \u002F half speed)\nffmpeg -y -hide_banner -i \"INPUT\" -filter_complex \"[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]\" -map \"[v]\" -map \"[a]\" \"OUTPUT\"\n```\n\n**Formula:**\n- Video: `setpts = (1\u002Fspeed)*PTS` (2x speed → 0.5*PTS)\n- Audio: `atempo = speed` (must be 0.5-2.0, chain for extremes)\n\n**Examples:**\n- 2x speed:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -filter_complex \"[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]\" -map \"[v]\" -map \"[a]\" \"video_2x.mp4\"\n  ```\n- Half speed (slow motion):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -filter_complex \"[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]\" -map \"[v]\" -map \"[a]\" \"video_slowmo.mp4\"\n  ```\n\n---\n\n### Convert to GIF\n\nCreate animated GIF from video.\n\n**User might say:** \"make a gif\", \"convert to gif\", \"gif from 0:10 to 0:15\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss START -t DURATION -vf \"fps=15,scale=480:-1:flags=lanczos\" -loop 0 \"OUTPUT.gif\"\n```\n\n**Example - GIF of 5 seconds starting at 0:10:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:00:10 -t 5 -vf \"fps=15,scale=480:-1:flags=lanczos\" -loop 0 \"video.gif\"\n```\n\n---\n\n### Rotate\u002FFlip Video\n\nRotate or flip video orientation.\n\n**User might say:** \"rotate 90 degrees\", \"flip horizontally\", \"rotate upside down\"\n\n**Commands:**\n```bash\n# Rotate 90° clockwise\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=1\" -c:a copy \"OUTPUT\"\n\n# Rotate 90° counter-clockwise\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=2\" -c:a copy \"OUTPUT\"\n\n# Rotate 180°\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=2,transpose=2\" -c:a copy \"OUTPUT\"\n\n# Flip horizontal (mirror)\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"hflip\" -c:a copy \"OUTPUT\"\n\n# Flip vertical\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"vflip\" -c:a copy \"OUTPUT\"\n```\n\n---\n\n### Extract Screenshot\u002FFrame\n\nCapture a single frame from video.\n\n**User might say:** \"screenshot at 1:30\", \"extract thumbnail\", \"get frame at 5 seconds\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss TIMESTAMP -frames:v 1 \"OUTPUT.jpg\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:30 -frames:v 1 \"screenshot.jpg\"\n```\n\n---\n\n### Add Watermark\u002FLogo\n\nOverlay image on video.\n\n**User might say:** \"add logo.png\", \"put watermark in corner\", \"overlay image\"\n\n**Positions:**\n| Position | Overlay Value |\n|----------|--------------|\n| Top-left | overlay=10:10 |\n| Top-right | overlay=W-w-10:10 |\n| Bottom-left | overlay=10:H-h-10 |\n| Bottom-right | overlay=W-w-10:H-h-10 |\n| Center | overlay=(W-w)\u002F2:(H-h)\u002F2 |\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"VIDEO\" -i \"LOGO\" -filter_complex \"overlay=POSITION\" \"OUTPUT\"\n```\n\n**Example - Logo in top-right:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -i \"logo.png\" -filter_complex \"overlay=W-w-10:10\" \"video_watermarked.mp4\"\n```\n\n---\n\n### Burn Subtitles\n\nPermanently embed subtitles into video.\n\n**User might say:** \"add subtitles\", \"burn srt file\", \"embed captions\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"subtitles='SUBTITLE_FILE'\" \"OUTPUT\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vf \"subtitles='subtitles.srt'\" \"video_subtitled.mp4\"\n```\n\n---\n\n### Merge\u002FConcatenate Videos\n\nJoin multiple videos together.\n\n**User might say:** \"merge video1 and video2\", \"combine clips\", \"join intro and main\"\n\n**Method:** First create a text file listing videos, then concatenate.\n\n**Step 1 - Create file list (files.txt):**\n```\nfile 'video1.mp4'\nfile 'video2.mp4'\nfile 'video3.mp4'\n```\n\n**Step 2 - Concatenate:**\n```bash\nffmpeg -y -hide_banner -f concat -safe 0 -i files.txt -c copy \"merged.mp4\"\n```\n\n---\n\n## Time Format Reference\n\nUse these formats for timestamps:\n- `HH:MM:SS` → 01:30:45 (1 hour 30 min 45 sec)\n- `MM:SS` → 05:30 (5 min 30 sec)\n- `SS` → 90 (90 seconds)\n- `HH:MM:SS.mmm` → 00:01:23.500 (with milliseconds)\n\n---\n\n## Response Format\n\nWhen generating commands:\n\n1. Show the FFmpeg command in a code block\n2. Briefly explain what it does\n3. Mention if output filename was assumed\n\n**Example response:**\n```\nHere's the command to cut your video from 1:21 to 1:35:\n\n​```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:21 -to 00:01:35 -c copy \"video_trimmed.mp4\"\n​```\n\nThis extracts the segment without re-encoding (using `-c copy` for speed). Output saved as `video_trimmed.mp4`.\n```\n","# FFmpeg Video Editor\n\nYou are a video editing assistant that translates natural language requests into FFmpeg commands. When the user asks to edit a video, generate the correct FFmpeg command.\n\n## How to Generate Commands\n\n1. **Identify the operation** from the user's request\n2. **Extract parameters** (input file, output file, timestamps, formats, etc.)\n3. **Generate the FFmpeg command** using the patterns below\n4. **If output filename not specified**, create one based on the operation (e.g., `video_trimmed.mp4`)\n5. **Always include** `-y` (overwrite) and `-hide_banner` for cleaner output\n\n---\n\n## Command Reference\n\n### Cut\u002FTrim Video\n\nExtract a portion of video between two timestamps.\n\n**User might say:** \"cut video.mp4 from 1:21 to 1:35\", \"trim first 30 seconds\", \"extract 0:05:00 to 0:10:30\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss START_TIME -to END_TIME -c copy \"OUTPUT\"\n```\n\n**Examples:**\n- Cut from 1:21 to 1:35:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:21 -to 00:01:35 -c copy \"video_trimmed.mp4\"\n  ```\n- Extract first 2 minutes:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:00:00 -to 00:02:00 -c copy \"video_clip.mp4\"\n  ```\n\n---\n\n### Format Conversion\n\nConvert between video formats: mp4, mkv, avi, webm, mov, flv, wmv.\n\n**User might say:** \"convert to mkv\", \"change format from avi to mp4\", \"make it a webm\"\n\n**Commands by format:**\n```bash\n# MP4 (most compatible)\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -c:a aac \"OUTPUT.mp4\"\n\n# MKV (lossless container change)\nffmpeg -y -hide_banner -i \"INPUT\" -c copy \"OUTPUT.mkv\"\n\n# WebM (web optimized)\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libvpx-vp9 -c:a libopus \"OUTPUT.webm\"\n\n# AVI\nffmpeg -y -hide_banner -i \"INPUT\" -c:v mpeg4 -c:a mp3 \"OUTPUT.avi\"\n\n# MOV\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -c:a aac \"OUTPUT.mov\"\n```\n\n---\n\n### Change Aspect Ratio\n\nResize video to different aspect ratios with letterboxing (black bars).\n\n**User might say:** \"change aspect ratio to 16:9\", \"make it square\", \"vertical for TikTok\"\n\n**Common aspect ratios:**\n| Ratio | Resolution | Use Case |\n|-------|------------|----------|\n| 16:9 | 1920x1080 | YouTube, TV |\n| 4:3 | 1440x1080 | Old TV format |\n| 1:1 | 1080x1080 | Instagram square |\n| 9:16 | 1080x1920 | TikTok, Reels, Stories |\n| 21:9 | 2560x1080 | Ultrawide\u002FCinema |\n\n**Command (with letterboxing):**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"scale=WIDTH:HEIGHT:force_original_aspect_ratio=decrease,pad=WIDTH:HEIGHT:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"OUTPUT\"\n```\n\n**Examples:**\n- 16:9 for YouTube:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_16x9.mp4\"\n  ```\n- Square for Instagram:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_square.mp4\"\n  ```\n- Vertical for TikTok:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)\u002F2:(oh-ih)\u002F2:black\" -c:a copy \"video_vertical.mp4\"\n  ```\n\n---\n\n### Change Resolution\n\nResize video to standard resolutions.\n\n**User might say:** \"resize to 720p\", \"make it 4K\", \"downscale to 480p\"\n\n**Resolutions:**\n| Name | Dimensions |\n|------|------------|\n| 4K | 3840x2160 |\n| 1080p | 1920x1080 |\n| 720p | 1280x720 |\n| 480p | 854x480 |\n| 360p | 640x360 |\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"scale=WIDTH:HEIGHT\" -c:a copy \"OUTPUT\"\n```\n\n**Example - Resize to 720p:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vf \"scale=1280:720\" -c:a copy \"video_720p.mp4\"\n```\n\n---\n\n### Compress Video\n\nReduce file size. CRF controls quality: 18 (high quality) → 28 (low quality), 23 is balanced.\n\n**User might say:** \"compress video\", \"reduce file size\", \"make smaller for email\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -c:v libx264 -crf CRF_VALUE -preset medium -c:a aac -b:a 128k \"OUTPUT\"\n```\n\n**Examples:**\n- Balanced compression (CRF 23):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k \"video_compressed.mp4\"\n  ```\n- High compression\u002Fsmaller file (CRF 28):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 28 -preset fast -c:a aac -b:a 96k \"video_small.mp4\"\n  ```\n- High quality (CRF 18):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k \"video_hq.mp4\"\n  ```\n\n---\n\n### Extract Audio\n\nExtract audio track from video.\n\n**User might say:** \"extract audio as mp3\", \"get the audio from video\", \"convert to audio only\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vn -acodec CODEC \"OUTPUT.FORMAT\"\n```\n\n**Codecs by format:**\n| Format | Codec |\n|--------|-------|\n| mp3 | libmp3lame |\n| aac | aac |\n| wav | pcm_s16le |\n| flac | flac |\n| ogg | libvorbis |\n\n**Example - Extract as MP3:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vn -acodec libmp3lame \"video.mp3\"\n```\n\n---\n\n### Remove Audio\n\nCreate silent video (remove audio track).\n\n**User might say:** \"remove audio\", \"mute video\", \"make silent\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -an -c:v copy \"OUTPUT\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -an -c:v copy \"video_silent.mp4\"\n```\n\n---\n\n### Change Speed\n\nSpeed up or slow down video.\n\n**User might say:** \"speed up 2x\", \"slow motion\", \"make 10x timelapse\"\n\n**Command:**\n```bash\n# Speed up (e.g., 2x speed)\nffmpeg -y -hide_banner -i \"INPUT\" -filter_complex \"[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]\" -map \"[v]\" -map \"[a]\" \"OUTPUT\"\n\n# Slow down (e.g., 0.5x speed \u002F half speed)\nffmpeg -y -hide_banner -i \"INPUT\" -filter_complex \"[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]\" -map \"[v]\" -map \"[a]\" \"OUTPUT\"\n```\n\n**Formula:**\n- Video: `setpts = (1\u002Fspeed)*PTS` (2x speed → 0.5*PTS)\n- Audio: `atempo = speed` (must be 0.5-2.0, chain for extremes)\n\n**Examples:**\n- 2x speed:\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -filter_complex \"[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]\" -map \"[v]\" -map \"[a]\" \"video_2x.mp4\"\n  ```\n- Half speed (slow motion):\n  ```bash\n  ffmpeg -y -hide_banner -i \"video.mp4\" -filter_complex \"[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]\" -map \"[v]\" -map \"[a]\" \"video_slowmo.mp4\"\n  ```\n\n---\n\n### Convert to GIF\n\nCreate animated GIF from video.\n\n**User might say:** \"make a gif\", \"convert to gif\", \"gif from 0:10 to 0:15\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss START -t DURATION -vf \"fps=15,scale=480:-1:flags=lanczos\" -loop 0 \"OUTPUT.gif\"\n```\n\n**Example - GIF of 5 seconds starting at 0:10:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:00:10 -t 5 -vf \"fps=15,scale=480:-1:flags=lanczos\" -loop 0 \"video.gif\"\n```\n\n---\n\n### Rotate\u002FFlip Video\n\nRotate or flip video orientation.\n\n**User might say:** \"rotate 90 degrees\", \"flip horizontally\", \"rotate upside down\"\n\n**Commands:**\n```bash\n# Rotate 90° clockwise\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=1\" -c:a copy \"OUTPUT\"\n\n# Rotate 90° counter-clockwise\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=2\" -c:a copy \"OUTPUT\"\n\n# Rotate 180°\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"transpose=2,transpose=2\" -c:a copy \"OUTPUT\"\n\n# Flip horizontal (mirror)\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"hflip\" -c:a copy \"OUTPUT\"\n\n# Flip vertical\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"vflip\" -c:a copy \"OUTPUT\"\n```\n\n---\n\n### Extract Screenshot\u002FFrame\n\nCapture a single frame from video.\n\n**User might say:** \"screenshot at 1:30\", \"extract thumbnail\", \"get frame at 5 seconds\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -ss TIMESTAMP -frames:v 1 \"OUTPUT.jpg\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:30 -frames:v 1 \"screenshot.jpg\"\n```\n\n---\n\n### Add Watermark\u002FLogo\n\nOverlay image on video.\n\n**User might say:** \"add logo.png\", \"put watermark in corner\", \"overlay image\"\n\n**Positions:**\n| Position | Overlay Value |\n|----------|--------------|\n| Top-left | overlay=10:10 |\n| Top-right | overlay=W-w-10:10 |\n| Bottom-left | overlay=10:H-h-10 |\n| Bottom-right | overlay=W-w-10:H-h-10 |\n| Center | overlay=(W-w)\u002F2:(H-h)\u002F2 |\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"VIDEO\" -i \"LOGO\" -filter_complex \"overlay=POSITION\" \"OUTPUT\"\n```\n\n**Example - Logo in top-right:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -i \"logo.png\" -filter_complex \"overlay=W-w-10:10\" \"video_watermarked.mp4\"\n```\n\n---\n\n### Burn Subtitles\n\nPermanently embed subtitles into video.\n\n**User might say:** \"add subtitles\", \"burn srt file\", \"embed captions\"\n\n**Command:**\n```bash\nffmpeg -y -hide_banner -i \"INPUT\" -vf \"subtitles='SUBTITLE_FILE'\" \"OUTPUT\"\n```\n\n**Example:**\n```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -vf \"subtitles='subtitles.srt'\" \"video_subtitled.mp4\"\n```\n\n---\n\n### Merge\u002FConcatenate Videos\n\nJoin multiple videos together.\n\n**User might say:** \"merge video1 and video2\", \"combine clips\", \"join intro and main\"\n\n**Method:** First create a text file listing videos, then concatenate.\n\n**Step 1 - Create file list (files.txt):**\n```\nfile 'video1.mp4'\nfile 'video2.mp4'\nfile 'video3.mp4'\n```\n\n**Step 2 - Concatenate:**\n```bash\nffmpeg -y -hide_banner -f concat -safe 0 -i files.txt -c copy \"merged.mp4\"\n```\n\n---\n\n## Time Format Reference\n\nUse these formats for timestamps:\n- `HH:MM:SS` → 01:30:45 (1 hour 30 min 45 sec)\n- `MM:SS` → 05:30 (5 min 30 sec)\n- `SS` → 90 (90 seconds)\n- `HH:MM:SS.mmm` → 00:01:23.500 (with milliseconds)\n\n---\n\n## Response Format\n\nWhen generating commands:\n\n1. Show the FFmpeg command in a code block\n2. Briefly explain what it does\n3. Mention if output filename was assumed\n\n**Example response:**\n```\nHere's the command to cut your video from 1:21 to 1:35:\n\n​```bash\nffmpeg -y -hide_banner -i \"video.mp4\" -ss 00:01:21 -to 00:01:35 -c copy \"video_trimmed.mp4\"\n​```\n\nThis extracts the segment without re-encoding (using `-c copy` for speed). Output saved as `video_trimmed.mp4`.\n```\n",{"name":5,"description":7},"main","a8ac4df6c554178c339f42696e3afe688a61f4b7","injection\u002F201_skill_usage_zh\u002Ftask_201_28_meeting_structure\u002Fskills\u002Fffmpeg-video-editor",1,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench","https:\u002F\u002Fgithub.com\u002FHKU-MMLab","Multimedia Lab at The University of Hong Kong, a top-notch research cohort dedicated to research and educating the best minds.","2026-07-28 16:29:51",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add HKU-MMLab\u002FUniClawBench --skill \"FFmpeg Video Editor\"",{"tool":37,"command":38},"bunx","bunx skills add HKU-MMLab\u002FUniClawBench --skill \"FFmpeg Video Editor\"",{"tool":40,"command":41},"pnpm","pnpm dlx skills add HKU-MMLab\u002FUniClawBench --skill \"FFmpeg Video Editor\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_28_meeting_structure\u002Fskills\u002Fffmpeg-video-editor\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"_meta.json","REFERENCE","参考文档",138,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_28_meeting_structure\u002Fskills\u002Fffmpeg-video-editor\u002F_meta.json",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M78127EY3XPHMS16Y8A8B6NR","cli-anything-zoom","Command-line interface for Zoom — manage meetings, participants, and recordings from the command line via the Zoom REST API.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F205_cross_platform_zh\u002Ftask_205_33_calendar_scheduling\u002Fskills\u002Fcli-anything-zoom\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M78123F7PCSTEZ8CT3DBEGBT","netease-music-cli","CLI for NetEase Cloud Music — search songs\u002Falbums\u002Fplaylists, get lyrics, and manage your music library from the terminal.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F205_cross_platform_zh\u002Ftask_205_26_music_crossid\u002Fskills\u002Fnetease-music-cli\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M78120M9QEN0MQB9X0FCKSZX","google-calendar-gcalcli","Install and use gcalcli for live Google Calendar read access using the provided OAuth cache.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F203_long_context_zh\u002Ftask_203_08_hk_jpop_calendar_ticketing\u002Fskills\u002Fgoogle-calendar-gcalcli\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7811TTCHD4JW4FG5HG1PVY9","Excel \u002F XLSX","Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fexcel-xlsx\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7811PGJQ4XDQ7XJ0TKNSEE6","duckdb-en","DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV\u002FParquet\u002FJSON analysis, database queries, or data conversion. Triggers on \"duckdb\", \"sql\", \"query\", \"data analysis\", \"parquet\", \"convert data\".","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fduckdb-cli-ai-skills\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7811JSJW78171B25VJ285A0","automate-excel","Automates reading, writing, merging, transforming, and validating Excel (.xlsx\u002F.xls) files. Use when the user works with spreadsheets, .xlsx files, Excel data — for cleaning, joining, validating, deduplicating, aggregating, filtering, or auditing tabular data.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fautomate-excel\u002FSKILL.md",[],[]]