Install
$ agentstack add skill-godot-fun-godot-framework-video-compress-to-size ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Video Compress To Size
Re-encode supported videos so each output is at or under a given max file size.
Default: probe and use a GPU encoder when available (NVIDIA NVENC → AMD AMF → Intel QSV), single-pass VBR. If no GPU works, fall back to CPU two-pass (libx264 / libx265).
Rules
When this skill applies, read and follow [skill-dependency-manager](../../rules/skill-dependency-manager.md) — run scripts as documented, install missing tools into .dependency/.
Quick Start
.dependency/python/python .cursor/skills/video-compress-to-size/scripts/compress.py path/to/video_or_folder --max-size 50MB
Bare numbers mean MB (--max-size 50 ≡ 50MB):
.dependency/python/python .cursor/skills/video-compress-to-size/scripts/compress.py assets/intro.mp4 --max-size 50
Force CPU (slow, more precise two-pass):
.dependency/python/python .cursor/skills/video-compress-to-size/scripts/compress.py clip.mp4 --max-size 50MB --cpu
Size Syntax
| Input | Meaning | |-------|---------| | 50 / 50MB / 50M | 50 mebibytes (1024² bytes) | | 500KB / 500K | 500 kibibytes | | 1GB / 1G | 1 gibibyte | | 52428800B | exact bytes |
--max-size is required.
Format Defaults
| Setting | Default | Notes | |---------|---------|-------| | Encoder | GPU first | h264_nvenc → h264_amf → h264_qsv → libx264 | | HEVC | --hevc | Same order with hevc_* / libx265 | | Container | .mp4 | Always MP4 | | Audio | AAC 128k | Lowered automatically on tiny budgets | | Preset | medium | Mapped (e.g. NVENC p4); override with --preset | | Already under limit | Skipped | [skip] … (already under limit) | | Safety margin | GPU ~90% / CPU ~92% | Headroom for mux / VBR overshoot |
Common Flags
-r · -o / --output-dir · --max-size · --audio-bitrate · --preset · --hevc · --cpu · --overwrite · --dry-run
Never overwrite source files. Writes only to compressed/ (or -o). Supported inputs: .mp4, .mkv, .mov, .avi, .webm, .wmv, .flv, .m4v, .mpeg, .mpg, .ts, .mts, .m2ts, .3gp, .ogv, .ogg.
Agent Notes
- Use the bundled script, not hand-written
ffmpegcommands. - Always pass
--max-sizefrom the user (ask if missing). Prefer their unit wording; bare numbers are MB. - Prefer GPU — do not pass
--cpuunless the user asks or GPU encode fails. - Do not downscale or change fps unless the user asks.
- Sources already ≤ max size are skipped.
- Tell the user where
compressed/files are; they swap assets manually when ready. - Missing Python/FFmpeg → populate
.dependency/per skill-dependency-manager, retry same command. - Pipeline details: [reference.md](reference.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: godot-fun
- Source: godot-fun/godot-framework
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.