一键导入
ffmpeg-media-processing
Use when user asks to convert, compress, trim, resize, extract audio, add subtitles, create GIFs, or process video/audio files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when user asks to convert, compress, trim, resize, extract audio, add subtitles, create GIFs, or process video/audio files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Export, preprocess, and fix GitHub PR review comments. Use when user wants to export PR comments, evaluate code reviews, or fix review feedback from CodeRabbit/Gemini bots.
AI Content Pipeline documentation and architecture reference. Use when understanding codebase structure, AI models, CLI commands, YAML pipelines, provider APIs, error codes, or finding implementation details.
Generate AI content (images, videos, audio, avatars) and analyze videos with detailed timelines using YAML pipelines with 51 models across 8 categories. Includes video analysis with Gemini 3 Pro.
Organize files and folders into QCut's standard project structure. Use when setting up a new project, cleaning up files, or when the user asks to organize their workspace.
| name | FFmpeg Media Processing |
| description | Use when user asks to convert, compress, trim, resize, extract audio, add subtitles, create GIFs, or process video/audio files |
| dependencies | ffmpeg |
FFmpeg is a universal media converter that reads from multiple inputs, applies filters/transformations, and writes to multiple outputs.
Invoke this skill when the user wants to:
| User Says | Claude Does |
|---|---|
| "Convert video.mkv to mp4" | ffmpeg -i video.mkv output.mp4 |
| "Extract audio from movie.mp4" | ffmpeg -i movie.mp4 -vn audio.mp3 |
| "Compress this video" | ffmpeg -i input.mp4 -crf 23 output.mp4 |
| "Make a GIF from the first 5 seconds" | ffmpeg -t 5 -i input.mp4 -vf "fps=10,scale=320:-1" output.gif |
| "Add subtitles to my video" | ffmpeg -i input.mp4 -vf subtitles=subs.srt output.mp4 |
ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output_file_options] output_url} ...
IMPORTANT: Order matters! Options apply to the next specified file and reset between files.
| Option | Purpose |
|---|---|
-i url | Specify input file |
-c copy | Stream copy (no re-encode, fast) |
-c:v codec | Set video codec (libx264, libx265, libvpx-vp9) |
-c:a codec | Set audio codec (aac, libmp3lame, libopus) |
-vf filter | Apply video filter |
-af filter | Apply audio filter |
-ss time | Seek to position |
-t duration | Limit duration |
-y | Overwrite output |
-vn | No video |
-an | No audio |
ffmpeg -i input.mkv output.mp4
ffmpeg -i input.mp4 -c:v libvpx-vp9 -c:a libopus output.webm
ffmpeg -i video.mp4 -vn -c:a copy audio.aac
ffmpeg -i video.mp4 -vn -c:a libmp3lame -b:a 192k audio.mp3
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -c:a copy output.mp4
ffmpeg -ss 00:01:00 -i input.mp4 -t 00:00:30 -c copy output.mp4
ffmpeg -i input.mp4 -vf scale=1280:720 output.mp4
ffmpeg -i input.mp4 -vf scale=640:-1 output.mp4
ffmpeg -i input.mp4 -vf "fps=10,scale=320:-1" output.gif
ffmpeg -i input.mp4 -vf "drawtext=text='Hello':fontsize=36:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2" output.mp4
ffmpeg -i input.mp4 -vf "subtitles=subs.srt" output.mp4
ffmpeg -i input.mp4 -vf fps=1 frame_%04d.png
# 2x speed
ffmpeg -i input.mp4 -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" output.mp4
# Create filelist.txt with: file 'part1.mp4' (one per line)
ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
| Option | Purpose |
|---|---|
-r fps | Set frame rate |
-s WxH | Set resolution |
-crf N | Quality (0-51, lower=better, default 23) |
-b:v bitrate | Set video bitrate |
-preset name | Encoding speed (ultrafast to veryslow) |
| Option | Purpose |
|---|---|
-ar freq | Sample rate (44100, 48000) |
-ac N | Channels (1=mono, 2=stereo) |
-b:a bitrate | Audio bitrate |
| Filter | Example | Purpose |
|---|---|---|
| scale | scale=1280:720 | Resize |
| crop | crop=640:480:100:50 | Crop (w:h:x:y) |
| transpose | transpose=1 | Rotate 90° CW |
| hflip/vflip | hflip | Mirror |
| fade | fade=t=in:d=2 | Fade in/out |
| drawtext | drawtext=text='Hi' | Text overlay |
| subtitles | subtitles=subs.srt | Burn subtitles |
| overlay | overlay=10:10 | Image overlay |
ffprobe input.mp4
ffprobe -v quiet -print_format json -show_format -show_streams input.mp4
-c copy when possible (fast, no quality loss)-ss before -i for fast seeking-y to overwrite without prompts-crf 18-28 for quality controlffprobe firstFor complete reference, see REFERENCE.md, CONCEPTS.md, and ADVANCED.md.