I got tired of fighting ffmpeg for basic video trimming, so I built clipflow
Описание и применение
clipflow упрощает обрезку видео, автоматически управляя ffmpeg, обеспечивая поточное копирование без потерь и поддерживая фрейм‑точные обрезки при необходимости.
Задача
Trimming large videos with ffmpeg is slow and error‑prone, especially when frame‑accurate cuts or lossless stream‑copy are required.
Результат
clipflow trims a 10‑minute video in seconds with lossless stream‑copy, and only re‑encodes when requested, eliminating the 20‑minute re‑encode wall.
Рабочий процесс
- Install clipflow via pip or Docker
- Use the CLI:
clipflow trim <input> <start>-<end> [options]or the Python API:clipflow.trim(...) - Specify
--compress highfor frame‑accurate cuts,--highlightto copy tohighlights/, and--aspect 9:16for cropping - Inspect metadata with
clipflow inspect <file>
Доказательства
clipflow is a typed Python API and CLI for video clipping.
It auto‑downloads the binary on first use, caches it locally, and falls back to your system PATH if you already have it installed.
Lossless stream‑copy by default. Trimming a 10 GB file takes seconds with zero quality loss.
Highlights as a first‑class concept. In clipflow, you mark a clip with highlight=True. It automatically copies that slice to a highlights/ directory.
- Дата записи: 2026-10-07T04:41:14.863Z