[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FX307WSA4HD5SV0PZM67H9":3,"skill-same:01M6FX307WSA4HD5SV0PZM67H9":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6FX307WSA4HD5SV0PZM67H9","FFmpeg Video Editor",null,"Generate FFmpeg commands from natural language video editing requests - cut, trim, convert, compress, change aspect ratio, extract audio, and more.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmahmoudadelbghany\u002Fffmpeg-video-editor\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"Video","ffmpeg","editor","ffmpeg video editor","editing","requests","cut","commands","natural language","language","extract","compress","convert","video editing","Audio","generate","change","2026-11-10 10:12:30",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","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fmahmoudadelbghany\u002Fffmpeg-video-editor",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add kbarbel640-del\u002Fskills --skill \"FFmpeg Video Editor\"",{"tool":53,"command":54},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill \"FFmpeg Video Editor\"",{"tool":56,"command":57},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill \"FFmpeg Video Editor\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmahmoudadelbghany\u002Fffmpeg-video-editor\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"_meta.json","REFERENCE","参考文档",301,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmahmoudadelbghany\u002Fffmpeg-video-editor\u002F_meta.json",[68,94,118,136,141,161],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":35},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":35},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[101,77,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,82,117],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":35},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[125,126,127,128,129,130,131,78,132,115,117,133,77,134,135],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":137,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":35},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[128,127,126,125,135,130,131,78,129,115,117,132,133,77,134],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":35},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[148,149,150,151,152,153,154,155,156,157,158,159,160],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":35},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[168,169,170,171,78,172,173,40,174,133,175,176,177,178,179,91,180,181,182],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]