# Video Trimmer

> Cut a video to a start and end time with ffmpeg. Use when the user or agent wants to trim, cut, or extract a clip from a longer video.

Video Trimmer is a free AI agent skill on Agensi by megaartaiking-cmd, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [megaartaiking-cmd](https://www.agensi.io/creators/ahmad-hasnain)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/video-trimmer
- Tags: automation, video-editing, python, cli-tools, ffmpeg

## About this skill

### Video Trim

Cut a video to a time range. Fast by default, frame-accurate on request. No cloud, no upload. Files stay local.

#### When to use

- "Trim this video to 10–25 seconds"
- "Cut out the first minute"
- "Extract a clip for a Short"

#### Workflow

1. Find the start and end times in seconds. Ask the user if they are unclear.
2. Check ffmpeg is installed: `python tools/clip.py check`. If it is missing, tell the user how to install it (winget install ffmpeg on Windows, brew install ffmpeg on macOS, sudo apt install ffmpeg on Linux) and stop.
3. Trim — fast, lossless cut first: `python tools/clip.py trim input.mp4 output.mp4 --start 10 --end 25`
4. If the cut lands on the wrong frame, or the user needs an exact frame, re-encode: `python tools/clip.py trim input.mp4 output.mp4 --start 10 --end 25 --reencode`
5. Confirm the output file exists and report its path and duration. Never delete the original unless the user explicitly asks.

#### Rules

- Never overwrite the input file. Always write to a new output file.
- Keep the original audio unless the user asks to remove it.
- For very low-memory PCs, prefer the fast cut (no --reencode) first.
- If the input is not a video file, say so and stop.

## Requires

- FFmpeg
- Python 3.10+

## Known limitations

Requires ffmpeg installed on the host. Limited to single-clip trimming; does not support merging multiple files or adding transitions.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Video Trimmer skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill simplify the video trimming process compared to using ffmpeg directly?

This skill automates the complex command-line syntax of ffmpeg to extract clips from local files. It handles the logic of choosing between 'lossless' cuts (instant, no quality loss) and 'frame-accurate' cuts (re-encoded for precision) based on your specific needs.

### Does my video data ever leave my local environment during the trimming process?

No, this skill processes all video locally on your machine. It utilizes a Python wrapper to interface with your system's ffmpeg installation, making it ideal for handling sensitive or large video files that you don't want to upload to the cloud.

### What software do I need to have installed on my computer for this skill to function?

The primary requirement is having ffmpeg installed on your host system (Windows, macOS, or Linux). Upon activation, the skill's environment validation script will check for the dependency and provide specific installation instructions if it's missing.

### What exactly is included in this skill package?

You will receive the logic-driven AI agent skill definition, the 'clip.py' Python wrapper for local execution, and the integration instructions for your AI agent framework. This includes the automated checks for format verification and dependency validation.

### Can I use this skill to merge multiple video clips together or add text overlays?

This skill is optimized for simple, single-segment extractions and trimming tasks. While it is excellent for cutting intros or creating highlights, it does not currently support multi-clip stitching, transitions, or adding visual overlays.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
