Video Compression: An Agent Skill for Batch MP4 Conversion by Target File Size

Introduction

Chat attachments, community posts, and outgoing emails often have explicit file size limits. Manually tuning FFmpeg parameters and trial-and-error-ing bitrates is time-consuming and prone to miscalculating audio/video bitrates. If you want your Agent to batch-process multiple video clips in a selected directory, unify all containers into MP4, and get as close as possible to a target size (e.g., 8 MB / 25 MB), the community Skill “Video Compress” on SkillHub offers a conversation-triggered, fully local path: no file uploads—everything is processed on your machine.

What Is This

“Video Compress” is a community Skill under the SkillHub coordinate @user_e85a0aa3/sance-video-compress (source: community, category: design-media, current version: 1.0.0, publisher: user_e85a0aa3). The official description reads: Batch-compress local videos to a specified size, with unified MP4 output—all 20 formats handled in one go, fully local with no upload required. The page marks requires_api_key=false, meaning installation and use do not depend on any additional API Key.

Core Features

Based on the SkillHub page and the scraped metadata, the verifiable capability scope is as follows.

  1. Batch processing: Compresses multiple video files within a user-selected directory, rather than issuing a single-file manual command at a time.
  2. Target file size: Compresses to a user-specified target file size (e.g., specifying “compress to X MB” in the conversation).
  3. Unified output: Output is MP4; the official description supports one-shot conversion from approximately 20 common input formats, eliminating the need to write separate scripts for each container.
  4. Local execution: Processing is completed locally—no need to upload videos to any remote service.

SkillHub statistics (based on scraped data): Rating 100000, Downloads 1026, Install count 0 (page-displayed value; subject to change with SkillHub updates).

Installation & Activation

The official Skill page states: Please install @user_e85a0aa3/sance-video-compress following the SkillHub installation documentation. The steps below follow the SkillHub Installation Guide.

  1. Check whether the SkillHub CLI is already installed:
command -v skillhub && skillhub --version
  1. If not installed, follow the documentation to perform a full install (CLI + default Skill) or CLI only:
# Full install (CLI + default Skill, recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

# CLI only
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
  1. When installing this Skill, you must use --dir to point to the current Agent’s skills directory. Without it, the default install path is ./skills/, and the Agent may fail to load it.

In Cursor, the skills directory is typically ~/.cursor/skills/. Example install command:

skillhub install user_e85a0aa3/sance-video-compress --dir ~/.cursor/skills/

For other environments, refer to Section 4 of the installation documentation: for example, Claude Code uses ~/.claude/skills/, Codex uses ~/.codex/skills/ or .agents/skills/ under the project, Windsurf uses ~/.codeium/windsurf/skills/, etc. Once installed into the correct directory, refresh or restart your Agent (per your Agent’s instructions) to load the new Skill.

Typical Usage

This Skill is triggered via natural language; assuming the Agent has the Skill enabled, you can simply describe the directory, target size, and format requirements according to your use case. The following phrasings align with the official “batch, target size, MP4 output, local” capabilities and are easy to reproduce:

  • “Please batch-compress the videos in /path/to/videos to 25 MB each, outputting MP4.”
  • “Compress the video to 8 MB so I can post it on Discord.”
  • “Convert all the footage in this folder to MP4 and reduce the file size.”

After installing and loading the Skill via the steps above, the Agent follows the workflow defined in the Skill’s SKILL.md to invoke local tools for transcoding and size control; the specific script parameters are governed by the Skill files in the implementation repository.

Use Cases & Caveats

Who It’s For

  • Developers or operations staff who need to repeatedly batch-compress screen recordings, livestream clips, camera exports, and other footage to stay within platform size limits, while unifying everything into MP4.
  • Users of Cursor or other compatible Agents who prefer not to hand-write FFmpeg commands but are comfortable specifying the directory and target size in a conversation.

Limitations & Notes

  • Depends on the local machine having the transcoding environment the Skill requires (typically FFmpeg and the relevant codecs); if not installed, you must set it up yourself at the system level—this article does not replace the instructions bundled in the Skill package.
  • Large directories, long-duration, or high-resolution footage will significantly consume CPU time; it is recommended to run batch tasks during off-peak hours and keep an eye on disk space (output files coexist with source files).
  • Aggressive size compression will sacrifice quality; when the target MB is very small and the source bitrate is very high, results are bounded by physical limits.
  • This is a community-sourced Skill (community): before use, you can review the “Files,” “Version History,” and comments on SkillHub to assess its maintenance status yourself.

Conclusion

“Video Compress” condenses the workflow of “select directory → set target size → batch output MP4” into an Agent-executable local Skill, requires no API Key, and fits common size thresholds encountered in email, IM, and community platforms. Installation and priority-source configuration are governed by the SkillHub documentation. Skill detail pages:

  • https://www.skillhub.cn/skills/user_e85a0aa3/sance-video-compress
  • https://api.skillhub.cn/user_e85a0aa3/sance-video-compress
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye