Skip to main content

overc-clips

Cut analysis clips out of a YouTube video or a local file, through a web page, with no command line required.

Built for volleyball coaches handing clips to video-review sites, but there is nothing sport-specific in it. Point it at a video, mark the spans you want, and it produces the clips.

It runs two ways from one codebase:

  • On your own machine. It starts a small web server and prints an address. Open that in a browser on the same machine, or on your phone if you are on the same wifi. The video processing happens on your computer; the phone is only the remote control.
  • Hosted, like any other internal web app.

What you need

Python 3.10 or newer. That is all. ffmpeg and yt-dlp come with it — the install pulls a static ffmpeg build, so there is nothing to install separately and nothing to put on your PATH.

Works on macOS, Linux and Windows.

Install

pip install overc-clips

On current macOS and most Linux distributions that will refuse with a message about an "externally managed environment" — that is the operating system protecting its own Python, not an error in this package. Use a virtualenv:

python3 -m venv ~/.local/share/overc-clips/venv
~/.local/share/overc-clips/venv/bin/pip install overc-clips
~/.local/share/overc-clips/venv/bin/overc-clips serve

or install it with pipx, which does the same thing for you:

pipx install overc-clips

Use it

overc-clips serve              # start the web UI, print the address to visit
overc-clips doctor             # what it found on this machine, and what is missing

serve prints a local address and, if it can, a second one for other devices on your network. Everything else happens in the browser: paste a video link, scrub to the start and end of each clip, and make them.

Useful flags:

overc-clips serve --outdir ~/Movies/clips   # where clips are written
overc-clips serve --port 8080               # default
overc-clips serve --token secret            # require a token, for a shared network

Joining a match recorded in parts

Cameras split long recordings, and a stats platform wants one video per game. In the web UI that is File → Join files…. From a script, or from another tool that already knows which files belong together:

overc-clips join GX010123.MP4 GX020123.MP4 GX030123.MP4   # in that order
overc-clips join game3.csv --json                          # a list, see below

A list is a CSV with a path column (in order) and optional name and output columns, or one path per line, or an ffmpeg concat list. Relative paths are relative to the list. The joined video goes beside the first part unless the list or --to says otherwise, and its path is printed when done. Parts from the same camera are copied, not re-encoded, so this takes seconds.

Making whole videos smaller

A camera records around 15 GB an hour. File → Re-encode…, or:

overc-clips encode *.MP4                      # better: about 3.4 GB an hour
overc-clips encode match.mp4 --height 720     # about half that again
overc-clips encode list.txt --quality smaller --to ~/Uploads

Each file is its own job, done one after another, and its copy goes beside it as <name> - better.mp4; the original is never changed. The copy is H.264 at the original frame rate, which plays anywhere, with the sound kept. Before a copy counts as done its length, frame count and sound are checked against the original; one that falls short — a full disk, a crash — is removed and the job fails, so a reported success is safe to delete the original on. --quality is smaller / balanced / better, as for clips, but tuned for whole videos (x264 medium, CRF 26 / 22 / 20: about 1, 2.2 and 3.4 GB an hour of 1080p60, at roughly real time). The default is the app's Whole videos, re-encoded setting, better unless changed.

That is real time at 1080p on a 2019 i9; a camera's 2688×1512 picture runs at about 0.4×, a weekend's matches in a day. --encoder hw (in the app, Fast, graphics chip) hands both the reading and the writing to the graphics chip: about 1.7× real time at 2688×1512 and 2.4× at 1080p on the same machine, at two to three times the size for the same picture (on a Mac 10 / 16 / 24 Mbit/s for smaller / balanced / better at 1080p60 and up, about 4.5, 7 and 11 GB an hour). Ctrl-C stops a run and removes the copy it was part-way through.

Settings you would otherwise need a flag for — the output folder, how long clips are kept, the maximum clip length — are in the web UI itself, so someone who was handed a desktop shortcut can still change them.

Clips

Clips are named after the source video and their timestamps, so two cuts from one match never collide. Where each clip came from is written into the file as mp4 metadata, which survives the file being moved or shared, and the built-in library can group, search and file them.

Clips are deleted after 14 days by default, which the UI tells you on startup and lets you change or switch off.

Keeping it working

YouTube changes things regularly and an out-of-date yt-dlp is the usual cause of a download that suddenly fails. Updating it is independent of this package:

pip install -U yt-dlp        # in whichever environment you installed into

overc-clips doctor reports the version it is using and where it came from.

"Sign in to confirm you're not a bot" is different: YouTube is wary of the connection, usually after many clips in a row or on a VPN, and updating does not fix it. Wait a while or try another network. If it keeps happening, sign in to YouTube in Firefox and set Settings → YouTube sign-in to Firefox ("yt_cookies": "firefox" in the config file), which hands yt-dlp that sign-in. Firefox because it works everywhere: Chrome and Edge on Windows lock their cookies so that yt-dlp cannot read them.

Licence

GNU Affero General Public License, version 3. See LICENSE.

If you change it and pass it on, the changes come with it. The Affero part extends that to running a modified copy as a service for other people over a network — which for a web application is the case that matters. Improvements sent back are welcome.

One component is somebody else's and is included under its own terms: overc_clips/_vendor/segno_encoder is the encoder half of segno 1.6.6 by Lars Heuer, copied in unmodified and used under the BSD 3-Clause licence in overc_clips/_vendor/segno_encoder/LICENSE. It draws the QR code that lets a phone reach this without anyone typing an address.

This is early software and it changes often. Treat it as alpha: things move, and nothing here is supported.

Metadata

Release files for overc-clips 0.6.90

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for overc-clips 0.6.90
File Size Uploaded Provenance Actions
overc_clips-0.6.90.tar.gz 425.6 kB Without provenance Details for overc_clips-0.6.90.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for overc-clips 0.6.90
File Interpreter ABI Platform Actions
overc_clips-0.6.90-py3-none-any.whl Python 3 none any Details for overc_clips-0.6.90-py3-none-any.whl

Total release size: 858.0 kB

Release files / overc_clips-0.6.90.tar.gz

Download URL overc_clips-0.6.90.tar.gz
Size 425.6 kB
Tags Source
SHA-256 checksum
How to use checksums
87abe9f64859e8ad5c8ee6d87000fdea7850f52c47fadaa93b2351a83908f415
BLAKE2b-256 checksum
How to use checksums
3a8f75bfebe2962b86abdaaba42f48c4e867246c9a331cdece2922d9459c8974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / overc_clips-0.6.90-py3-none-any.whl

Download URL overc_clips-0.6.90-py3-none-any.whl
Size 432.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b280b4943f491153e0297782b7febc70de158fa70a641d0f38edb0dcd1b5a08
BLAKE2b-256 checksum
How to use checksums
aa14079096273209cede29afb2452c1daebfd36482b6a4343dc1a4a9af7f7e7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for overc-clips 0.6.90

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.90 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page