josiahsiegel/claude-plugin-marketplace/ffmpeg-command-syntax
Claude Code and agent skill by josiahsiegel/claude-plugin-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Complete FFmpeg command syntax reference covering option ordering, input vs output options, stream specifiers, and position-sensitive options. PROACTIVELY activate for: (1) Command syntax questions, (2) Option placement issues, (3) Input vs output option confusion, (4) Stream specifier syntax, (5) -ss/-t/-to position questions, (6) Global vs per-file options, (7) Multiple input/output handling, (8) Option order errors. Provides: Correct option placement rules, input-only vs output-only options, position-sensitive option behavior, stream specifier syntax, common mistakes and fixes.
Install
npx vskill@latest install josiahsiegel/claude-plugin-marketplace/ffmpeg-command-syntaxSKILL.md
The same SKILL.md was published earlier as josiahsiegel/claude-plugin-marketplace/ffmpeg-command-syntax.
CRITICAL: FFmpeg Option Ordering Rules
The most common FFmpeg mistake is putting options in the wrong place. Options in FFmpeg are position-sensitive and apply to the NEXT file specified after them.
The Golden Rule
Key principle: Options are applied to the next file. They are reset between files.
Option Categories at a Glance
| Category | Where it goes | Notable members | |
|---|---|---|---|
| Global | First, before any -i | -y, -n, -v, -hide_banner, -filter_complex, -init_hw_device | |
| Input | Between previous output (or start) and the next -i | -ss, -t, -to, -re, -stream_loop, -hwaccel, -itsoffset | |
| Output | After all -i, before the matching output file | -c:v, -c:a, -crf, -preset, -vf, -af, -map, -movflags |
The full per-category catalog (every option, with descriptions) lives in `references/complete-option-reference.md`.
Global Options (Quick Subset)
Common global flags: -y, -n, -v/-loglevel, -stats, -progress, -report, -hide_banner, -filter_complex, -filter_complex_threads, -init_hw_device, -filter_hw_device.
Input Options (Quick Subset)
Placed immediately before the -i they apply to. They affect how the file is read/decoded.
Most-used: -ss, -t, -to, -itsoffset, -itsscale, -re, -readrate, -stream_loop, -hwaccel, -hwaccel_device, -hwaccel_output_format, -c:v/-c:a (as decoder), -r/-s/-pix_fmt (raw inputs), -accurate_seek, -thread_queue_size.
Hardware acceleration must always go before -i:
Output Options (Quick Subset)
Placed after all inputs and before the output file they apply to. They affect how the file is encoded/written.
Most-used: -c:v/-c:a/-c:s (as encoder), -b:v/-b:a, -crf, -qp, -preset, -tune, -profile:v, -level, -r/-s/-aspect/-pix_fmt, -vf/-af, -map, -ss/-t/-to (output forms), -fs, -frames:v/-frames:a, -movflags, -metadata, -disposition, -shortest, -an/-vn/-sn.
Options That Switch Behavior by Position
Some options have completely different meanings depending on whether they appear before or after -i.
-ss (Seek/Start Time) - Position Critical
Note: -ss before -i resets timestamps to 0. Use -copyts to preserve originals.
-t and -to
-r (Frame Rate)
-s (Size)
-c / -codec
Stream Specifiers (Quick Form)
Target specific streams with -option[:specifier]:
Common specifiers: :v, :V, :a, :s, :d, :t, :v:0, :a:1, :0, :m:key:value, :p:0. Full table and per-stream examples in `references/stream-specifiers.md`.
Multiple Inputs and Outputs
Common Mistakes and Fixes
1. Input option after -i
2. Output option before -i
3. Expecting options to persist across outputs
4. Wrong -ss position for accuracy
5. Mixing inputs and outputs
6. -t vs -to with -ss timestamp reset
7. -vf vs -filter_complex
Command Structure Examples
Quick Placement Cheatsheet
| Option | Before -i | After -i | Notes | |
|---|---|---|---|---|
-ss | Fast seek | Accurate seek | Before = keyframe, After = decode | |
-t | Input limit | Output limit | Read vs write | |
-to | Input end | Output end | Affected by timestamp reset | |
-r | Input FPS | Output FPS | Raw / output conversion | |
-s | Input size | Output size | Raw / scaling | |
-c:v/-c:a | Decoder | Encoder | Before = decode | |
-hwaccel, -re, -itsoffset, -stream_loop | Required | N/A | Input only | |
-vf, -af, -map, -crf, -preset, -movflags | N/A | Required | Output only | |
-y, -v, -filter_complex | Global | Global | Place first |
Extended Reference Map
For exhaustive lookups, see the companion reference files:
- Complete option catalog (all global / input / output / color / threading / format flag tables): `references/complete-option-reference.md`
- Stream specifier syntax and examples: `references/stream-specifiers.md`
- Per-backend hardware device initialization (CUDA, VAAPI, QSV, Vulkan, D3D11VA, VideoToolbox): `references/hardware-device-init.md`
- Format/protocol/muxer options (HLS, DASH, segment, RTSP, RTMP, raw video, movflags, MPEG-TS, Matroska): `references/format-specific-options.md`
- Timestamps, bitstream filters, metadata, attachments, disposition: `references/timestamps-bitstream-metadata.md`
External References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ffmpeg-core/skills/ffmpeg-command-syntax/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 10
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/josiahsiegel/claude-plugin-marketplace/ffmpeg-command-syntax)