AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Video Compress To Size

skill-godot-fun-godot-framework-video-compress-to-size · by godot-fun

Compresses video files to stay under a user-specified max file size using FFmpeg. Prefers GPU encoders (NVENC / AMF / QSV) with VBR bitrate targeting; falls back to CPU two-pass H.264/HEVC. Use when the user wants to compress video, reduce video file size, shrink MP4/MKV/MOV under N MB, GPU encode, NVENC compress, 压缩视频, 缩小视频体积, or batch-compress clips to a size limit.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-godot-fun-godot-framework-video-compress-to-size

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-godot-fun-godot-framework-video-compress-to-size)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Video Compress To Size? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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 5050MB):

.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_nvench264_amfh264_qsvlibx264 | | 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

  1. Use the bundled script, not hand-written ffmpeg commands.
  2. Always pass --max-size from the user (ask if missing). Prefer their unit wording; bare numbers are MB.
  3. Prefer GPU — do not pass --cpu unless the user asks or GPU encode fails.
  4. Do not downscale or change fps unless the user asks.
  5. Sources already ≤ max size are skipped.
  6. Tell the user where compressed/ files are; they swap assets manually when ready.
  7. Missing Python/FFmpeg → populate .dependency/ per skill-dependency-manager, retry same command.
  8. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.