So I've been building this small open source thing called rewatch. You give it a long video, run one command, and it picks the good moments by itself. Every moment comes out as its own short clip with captions already on it. It all runs on your own laptop. No API keys, no uploads, no paying per clip.
pip install rewatchx
rewatch auto episode.mp4
I tried it on a 2 hr 12 min podcast. It gave me 7 clips, all under a minute, and most of them I'd actually post. Not bad for something that can't even watch videos 😌
How it picks the moments
Most open source clippers I found just send the transcript to an LLM and ask "what's interesting here?". I wanted to see how far plain old signals can go first, so for now it's my own rules:
Check how loud every second is, and how many words get said in it (faster-whisper gives me the time of every word).
Scale both between 0 and 1 and add them up, so every second gets a score.
Slide a 30 second window over the whole video. Each step adds the new second and drops the old one, so it's one pass instead of adding up 30 numbers again and again.
Pick the top 10 windows with a max heap, and skip any window that overlaps one I already picked.
Move the edges to the nearest sentence start and end (only up to 15 seconds away), so no clip starts in the middle of a word.
If someone asked a question in the 30 seconds before the clip, start the clip from that question.
Merge clips that overlap (yes, the LeetCode merge intervals problem, it's real life now), and cut anything over 60 seconds at the last full sentence.
Rule 6 exists because the first version kept giving me answers to questions nobody could hear. Very helpful lol. I only caught it because I actually sat and watched the clips, which honestly turned out to be the best debugging tool in this whole project.
It listens to the video only once. Each clip reuses those words with the times shifted to start at zero, then FFmpeg cuts it to H.264 + AAC (so it plays everywhere) and burns the captions in.
Release night was fun
This is v0.2.1, not v0.2.0. v0.2.0 survived about 10 minutes on PyPI before I found an IndentationError in the CLI. One space. One single space 🫠 Bug and fix shipped the same night, I'm calling it efficiency. I yanked 0.2.0, and now I have a new rule: install it in a fresh venv and run it before uploading. Every time.
Small sneak peek
These rules are just the starting point. Next I'm teaching it what people actually rewatch on YouTube using the Most Replayed graph, and then checking if a trained model beats my rules (and an LLM), or just embarrasses me. Hindi and Telugu captions are coming too, because right now the tiny Whisper model hears Hinglish and kind of gives up 😅
Repo: https://github.com/shaikashfaaqhamja/rewatch
PyPI: https://pypi.org/project/rewatchx/
If you like it, a star on the repo would make my day ⭐ And if you've used clipping tools before, tell me what they always get wrong, I want to fix that.