gupsammy/claudest/compress-video
Claude Code and agent skill by gupsammy/claudest
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "compress this video", "reduce file size", "make this video smaller", "optimize for web", "shrink this video", "compress to under X MB", "reduce bitrate", "make it smaller without losing quality", "encode with H.265", or "re-encode this video".
Install
npx vskill@latest install gupsammy/claudest/compress-videoSKILL.md
Video Compress
Compress a video using quality-based (CRF) or size-based (2-pass) encoding.
Process
1. Obtain input file
If the user did not provide a file path, ask for it with AskUserQuestion before proceeding.
2. Probe the source
Extract: duration (seconds), file size (bytes), existing video codec, audio bitrate. If ffprobe fails (file not found, not a valid video), report the error and stop — do not attempt encoding.
3. Determine mode from user intent
- CRF mode (quality-based): user says "without losing quality", "good quality", "make it smaller", or gives no size target
- 2-pass mode (size-based): user specifies a target ("under 50MB", "around 20MB", "fit on X")
4. Choose codec
H.264 is the safe default: universally device-compatible and fast to encode. Use H.265 only when the size reduction justifies the slower encode time and narrower device support.
- H.265 / libx265: target is ≤50% of original size, or user asks for "maximum compression" / "HEVC"
- H.264 / libx264: otherwise — faster encode, wider device compatibility, safe default
5. Construct command
CRF mode:
2-pass mode — calculate video bitrate first:
6. Confirm with user
Show: input file size, chosen codec, mode (CRF value or calculated bitrate), output path. Wait for approval before running.
7. Run and report
After completion: input size → output size, compression ratio (e.g., "73.2 MB → 18.4 MB, 75% reduction").
Key Decisions
- In CRF mode, use
-c:a copyto preserve audio losslessly. In 2-pass mode, audio must be re-encoded (AAC 128k) because pass 1 is video-only — no audio stream is processed. - If input is already H.264 and the user only wants to trim or remux, recommend
convert-videowith-c copyinstead — instant and lossless. - For H.265 output, substitute
libx265and add-tag:v hvc1for Apple device compatibility. - Clean up
ffmpeg2pass-0.logandffmpeg2pass-0.log.mbtreeafter 2-pass encoding completes.
Security
- Security scanPassed, 95 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/claude-content/skills/compress-video/SKILL.md
Popularity
- Repository stars
- 255
- Repository forks
- 16
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/gupsammy/claudest/compress-video)