home / skills / dkyazzentwatwa / chatgpt-skills / video-clipper

video-clipper skill

/video-clipper

This skill helps you extract precise video clips by timestamp, split into chunks, and preserve quality for efficient media workflows.

npx playbooks add skill dkyazzentwatwa/chatgpt-skills --skill video-clipper

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
774 B
---
name: video-clipper
description: Cut video segments by timestamp, split videos into chunks, trim start/end, and extract specific scenes with precise frame control.
---

# Video Clipper

Cut and trim video segments with precise timestamp control.

## Features

- **Timestamp Clipping**: Cut segments by start/end times
- **Multi-Segment**: Extract multiple clips from one video
- **Split by Duration**: Auto-split into equal chunks
- **Trim**: Remove start/end portions
- **Format Preservation**: Maintain quality and format

## CLI Usage

```bash
python video_clipper.py --input video.mp4 --start 00:01:00 --end 00:02:30 --output clip.mp4
python video_clipper.py --input video.mp4 --split 60 --output clips/
```

## Dependencies

- moviepy>=1.0.3
- ffmpeg-python>=0.2.0

Overview

This skill provides a compact Python tool to cut and trim video segments with precise timestamp and frame control. It supports extracting multiple segments, splitting by fixed duration, and trimming start/end while preserving original format and quality. The implementation uses moviepy and ffmpeg bindings for reliable processing.

How this skill works

The tool reads an input video and interprets timestamps or durations to build clip ranges. It can extract single or multiple segments, auto-split a video into equal-length chunks, or trim off leading and trailing portions. Processing is performed via moviepy and ffmpeg-python to preserve codecs and allow frame-accurate cuts when possible.

When to use it

  • Extract highlights or scenes from long recordings by timestamp
  • Split long videos into equal-duration chunks for uploads or processing
  • Trim intros/outros before publishing or archiving
  • Batch-extract multiple segments from one source file
  • Prepare clips for social sharing with precise start/end control

Best practices

  • Provide timestamps in HH:MM:SS or seconds for clarity and automation
  • Use split mode for consistent chunk sizes when uploading to constrained platforms
  • Test a short sample clip to confirm codec behavior before processing large files
  • Keep ffmpeg up to date to ensure format preservation and performance
  • Pass explicit output filenames or directories to avoid accidental overwrites

Example use cases

  • Cut a 90-second scene: input video.mp4 --start 00:05:10 --end 00:06:40 --output scene.mp4
  • Split a lecture into 10-minute parts: input lecture.mp4 --split 600 --output parts/
  • Trim a raw recording by removing first 30 seconds and last 15 seconds before editing
  • Extract several clips in one run by supplying multiple start/end pairs
  • Batch process a folder of recordings to generate preview clips for a catalog

FAQ

What dependencies are required?

Install moviepy (>=1.0.3) and ffmpeg-python (>=0.2.0). Ensure ffmpeg is installed on the system path.

Will output quality be preserved?

Yes — the tool uses ffmpeg via moviepy and ffmpeg-python to preserve format and minimize re-encoding when possible.

Can I extract multiple segments in one command?

Yes — supply multiple start/end pairs or use a configuration to batch-extract segments from the same input.