iamajmeena/neonclipping

★ 3,169⑂ 219

Paste a link, get captioned 9:16 clips in ~2 min. Free, local, open-source clipping engine (audio-first, YouTube captions, local LLM).

About iamajmeena/neonclipping

iamajmeena/neonclipping is an open-source project on GitHub, mainly written in Python. Paste a link, get captioned 9:16 clips in ~2 min. Free, local, open-source clipping engine (audio-first, YouTube captions, local LLM). It currently holds 3,169 stars and 219 forks with 65 open issues, and was last pushed on 2026-11-24 (repository created 2026-11-19).

Project Overview

Git Homed tracks it on the Video Trending board and on the AI Video Trending list.

GitHub Repository Details

Repository iamajmeena/neonclipping · default branch main · size 9030 KB · watchers 26 · source: GitHub REST API and repository README

README

NeonClipping

Paste a link. Get captioned 9:16 clips in about two minutes. Free, local, open-source.

NeonClipping turns long YouTube / Twitch / Kick videos (or your own MP4) into vertical, captioned clips with a title and hook for each. Everything runs on your machine: no account, no subscription, no upload.

Star on GitHub Instagram

🌐 Website with one-click Windows setup:

Made by Ajay K Meena (Director, DOP, colorist, DaVinci Resolve educator, Jaipur). If NeonClipping saves you time, please ⭐ star the repo and follow @iamajmeena on Instagram.

Clip an 85-minute stream in 97 seconds, 100% locally, with zero API cost. (measured, see How it finds good moments)

NeonClipping compared with other clippers

| | NeonClipping | OpusClip (cloud) | Docker-based self-hosted clippers (SupoClip, OpenShorts, Reelsaw) | |---|---|---|---| | Where it runs | Your PC, nothing uploaded | Their servers | Your machine or server | | Cost | Free, no account, no credits | Subscription / credits | Free (some need an LLM API key or Docker setup) | | Install | One .bat on Windows, install.sh on Mac/Linux, no Docker | None (web) | Docker | | YouTube + Twitch + Kick links | Yes | Yes | Mostly YouTube | | Very long streams | Audio-first (79 MB for 85 min); 24 h video: pick the part, never downloads all | Upload limits apply | Often limited by length or disk | | Gaming layouts (facecam + gameplay) | 11 layouts, automatic facecam finder | Limited | Varies | | Live stream clipping | Yes, chat-spike based, phone remote | No | Rarely | | Download quality | 1080p default, 4K option beside Get preview | n/a | Varies | | Captions | 5 styles, 52 languages, Hinglish, on/off, quiet-part aware | Templates | Varies |

demo UI

📘 Guides (Hindi + English, PDF): English · हिंदी 🤖 Let an AI agent install it for you: copy docs/NEONCLIPPING-AGENT-SETUP-PROMPT.txt into Claude Code, Codex CLI or Cursor.

How it finds good moments

Two modes, one button.

⚡ Fast mode (default, videos over 10 min) copies the trick that makes the fastest clippers fast: never look at the whole video.

1. Download audio only (79 MB for an 85-minute video, about 10 s). 2. Take the transcript for free from YouTube's own captions (word-timed). No speech model needed. For other sources a local Whisper model is used as the fallback. 3. Score the whole audio track for sudden loudness jumps (vs a 2-minute local baseline), raised voices (2–4 kHz energy) and quiet-to-loud transitions. 4. Take the best moments, read each one's transcript with a local LLM (Ollama) and let it score the moment, write a title and a hook. Snap the start and end to sentence boundaries inside your Min/Max length. 5. Download only the chosen sections of the video (not the whole file), trim exactly by matching their sound to the audio track, and render 1080x1920 clips with burned-in captions.

🔬 Deep mode downloads the whole video, adds optical-flow motion (OpenCV Farneback: fast objects, impacts, camera whips) and cut density to the audio signals, shortlists 4× more candidates and gives the LLM 15 seconds of context before and after each one.

Measured on one machine (RTX 2060, 16 threads), Fast mode, 3 clips each:

| Source | Time | |---|---| | 85-minute YouTube stream (YouTube captions) | 97 s | | 3-hour Twitch VOD (no captions, local speech model) | 136 s | | 90-second YouTube trailer | 21 s | | 90-second local MP4 | 14 s |

Your numbers depend on network and CPU.

How it decides what is a good moment

Every candidate moment is scored from several signals, then the best ones are kept:

| Signal | What it looks for | |---|---| | Loudness jump | A sudden boom or shout compared with the last two minutes | | Raised voice | Energy in the 2–4 kHz band (screaming, yelling) | | What is said | "oh my god", "oh shit", "run", "police", "bhaago", "arre yaar" and similar (English, Hinglish, Hindi) | | On-screen action | Fast motion (optical flow), explosion-like flashes, red/blue light flicker, scene cuts | | AI score | A small local LLM reads the transcript: emotion, punchline, payoff |

It learns from you. Generated moments have five-star controls in results and My clips. Ratings stay on your computer (data/feedback.jsonl). After at least eight different moments, with a useful mix of stronger/weaker ratings and different measurements, the local ranking weights can adapt. Repeated clicks update that moment's latest rating; re-edited versions keep one training identity. The full rating history stays intact. This fits a small preference ranker, not the foundation model. Nothing is uploaded.

Features

Change clips after generating them

Saved clip editor with eleven layouts

Open My clips → Edit clip. The saved editor includes all 11 speaker position/shape layouts, a speaker-size slider, editable subtitle words, caption style and caption height.

Validation on one 796.9-second source: all 11 layouts and five caption styles exported with audio and decoded successfully. A seven-clip layout/style update took 119.58 seconds while reusing each clip's exact source, range and word list. These are local checks, not guaranteed runtimes or a caption-quality benchmark.

Run the portable regression tests with python -m unittest discover -s tests -v.

Install

Easiest (Windows): download NeonClipping-Setup.bat from the website or the Releases page and double-click it. It checks your PC, installs Python and FFmpeg if missing, installs NeonClipping into %LOCALAPPDATA%\NeonClipping, creates a Desktop shortcut and opens the app. Mac/Linux: install.sh (new, not yet tested on a real Mac). Or follow the steps below.

Requirements: Python 3.10 to 3.13 (the newest Python often has no wheels for the speech/vision packages yet; the Mac/Linux installer picks a supported one for you), FFmpeg on PATH. Optional but recommended: Ollama with ollama pull llama3.2:3b for AI titles, hooks and scores (without it clips are picked by the audio/motion score), and an NVIDIA GPU for NVENC and faster-whisper.

git clone https://github.com/iamajmeena/neonclipping
cd neonclipping

Windows

./run.ps1

Linux / macOS

./run.sh

Open , paste a link, press ⚡ Make clips.

Optional GPU speech model support (only used when a video has no YouTube captions):

.venv/bin/pip install nvidia-cublas-cu12 "nvidia-cudnn-cu12==9.*"

Set NEONCLIPPING_CPU=1 to force CPU. Set NEONCLIPPING_PORT=9000 to use another port.

Mac / Linux / no NVIDIA GPU: the video encoder is chosen by what works on your computer: NVIDIA NVENC, then Apple VideoToolbox, then the CPU encoder (x264). Force one with NEONCLIPPING_ENCODER=nvenc|videotoolbox|x264. The speech model skips the GPU attempt when no CUDA GPU exists and runs on the CPU. install.sh and the unit tests run automatically on macOS, Ubuntu and Windows machines for every change (see the Actions tab); the maintainer has not yet tried the Mac installer on his own Mac, so tell us if it misbehaves (Report a problem).

Settings (environment variables): NEONCLIPPING_LIVE_AUTO_HOURS (default 3) and NEONCLIPPING_MIN_FREE_GB (default 8) control the unattended creator-watch live sessions; a manual Live clipping session has no time cap and no disk guard.

How it is built

| File | Job | |---|---| | app.py | FastAPI server, /make pipeline, export, library | | smart.py | Moment scoring: transcript + local LLM, sentence snapping | | highlights.py | Audio-jump / shout / optical-flow / cut ranking, parallel decode | | captions_yt.py | YouTube word-timed captions (json3) parser | | captions.py | Local Whisper (GPU first, CPU fallback), ASS/SRT styles | | translit.py | Devanagari → Hinglish (word by word, keeps timings) | | standalone.py, previews.py | Link import, early preview frames |

Live clipping (while the stream is on)

Paste a Twitch channel link or a YouTube Live link into the Live clipping panel and press Start. NeonClipping records the stream (Streamlink), reads chat anonymously, counts messages in 10 s buckets and cuts a clip around every chat spike (chat velocity more than 2.5 sigma and 2.5x the 5-minute baseline). The clip starts about 24 s before the spike, because chat reacts after the moment. It then gets captions, a hook and title, your layout and facecam boxes, and a viral score like any other clip. Clip the last 30 s now cuts on demand, Stop ends the session. It only works while the stream is live; for finished videos use Make clips.

There is also a command-line version in live/live_clip.py.

Creators (clip a streamer automatically)

Add a Twitch name or a Twitch / YouTube channel link in the Creators panel. NeonClipping checks every minute; when that creator goes live it records the stream and clips the chat spikes, using the layout, facecam boxes and caption style you had selected when you added them (“Use my current layout” updates it). Clips appear under the creator and in My clips.

Tests

tests/ holds an end-to-end suite that runs against the live server: page and API validation, every layout and caption style rendered and measured, editing one / all clips of a video, Make clips on real YouTube / Twitch / local sources in every mode and language, live clipping on a real stream, the creator list, star ratings, the installer and the website. Unit tests cover the chat-spike rule, caption grouping and re-editing. The last full run is in tests/REPORT.md: 187 checks, all passing, plus the 12 problems the run found and fixed.

python -m unittest tests.test_captions tests.test_live tests.test_reedit
python tests/e2e.py static export edit creators feedback   # server must be running
python tests/e2e_make.py          # real downloads + transcription (about 25 min)
python tests/e2e_live.py          # needs a Twitch channel that is live
python tests/e2e_site.py          # website, links, release assets
python tests/make_report.py       # rebuild tests/REPORT.md

Live clipping controls and the phone remote

Inspired by a mobile live-clipper shown in a creator's reel (that app is unreleased, so nothing of it could be studied; only what the video shows was used).

Captions: YouTube's own, always

For YouTube links every clip uses YouTube's own word-timed captions, in every language. Hindi comes as Devanagari and is turned into Hinglish (nukta letters included: kapde, padega, thoda); repeated-word loops are trimmed. It is faster than a local speech model and, on game audio, clearly more accurate: on a 2-hour Hindi stream a Make run took 197 s with correct lines like "poori mod di yaar, kya bhai? arre pulis". The local "Accurate (turbo)" model was removed because its captions were worse. The only local model left on purpose is Best Hindi (large-v3, slow). Videos without YouTube captions (local files, Twitch VODs) still need a local model as the only option; expect rougher captions there, or import an .srt.

Style & extras

Find my facecam

The Find my facecam chip (or "find it automatically when I press Make clips") looks at 14 frames of the video, finds rectangles whose border stays in the same place, and keeps the one that holds a face (small local YuNet face model, MIT licence, models/). It rejects the game's minimap and HUD panels, finds webcams in a corner or floating on a side, and answers "no facecam" when it is not sure. Measured on 30 real saved streams: found the webcam on every stream that has one; clean "not found" on trailers and talking-head videos. Not perfect: some boxes cover only the face inside a framed webcam.

Long streams with a free chatbot

AI parts (below step 01): paste a YouTube link, NeonClipping splits the video's captions into ~25-minute parts and gives a copy-ready prompt per part. Paste each into any free chatbot, paste all answers back (JSON or lines like 12:30-13:10 title), tick the moments and press Make clips: only those sections are downloaded and rendered. A chatbot given a 9-hour transcript in one go only reads the start; small parts fix that. Nothing is sent anywhere by NeonClipping; the chatbot step is manual.

Report a problem (English + Hindi)

The Report a problem · समस्या बताएँ button (bottom-right) explains, in English and Hindi, three ways to tell the maintainer what broke. You choose how much to share and nothing is sent unless you press a button:

| Option | What happens | Who sees it | |---|---|---| | 1 · GitHub issue (safest) | Opens a pre-filled issue; you read it and press Submit yourself | Public on GitHub | | 2 · Download diagnostics | Saves a text file; you send it yourself (GitHub, Instagram DM, WhatsApp) | Only who you send it to | | 3 · Send directly (optional) | After you tick a box next to the exact text shown, posts it to the maintainer's collector | The maintainer only |

What the text contains: tool versions (app, Python, Windows, ffmpeg, yt-dlp), the recent error messages with a short label such as youtube-bot-check, and your note if you wrote one. Video links (only the site name stays), user names in paths, e-mails, IP addresses and token-like values are removed before anything is shown, logged or shared. No videos, transcripts, cookies or browser data are ever read. Failed jobs are also written to data/errors.log on your own computer (redacted, trimmed automatically); that file never leaves the computer unless you share it.

Option 3 stays off ("not set up") until a collector URL is configured; see tools/report-worker. Code: report.py, report.js. Issue form: .github/ISSUE_TEMPLATE/problem.yml.

Source quality (1080p default, 4K optional)

Under Resolution there is a Source quality menu: how sharp the video is that gets downloaded from YouTube. It used to be fixed at 720p, which made 1080p/4K exports upscaled and soft. Now:

| Choice | What you get | Measured (20 s section of a 4K video) | |---|---|---| | 1080p (default) | H.264 1920x1080 | 10 MB | | 4K | AV1/VP9 3840x2160, much larger, slower to decode | 70 MB | | 1440p | in between | | | 720p | fastest, smallest | 6 MB |

If a video only exists at 720p on YouTube (some new uploads and low-quality sources), you get 720p whatever you choose. Resolution (export size) is a separate setting: for a sharp 4K export pick Source quality 4K and Resolution 2160. Imports are cached per link and re-downloaded if you later ask for a higher quality.

"Sign in to confirm you're not a bot" (YouTube bot check)

Some connections get this from YouTube: shared or mobile-data internet, VPNs, office/hostel Wi-Fi, or an old downloader. NeonClipping handles it for you in this order, with no setup:

1. Keeps yt-dlp fresh. Once a day at start-up it upgrades yt-dlp[default] (offline-safe). Turn off with NEONCLIPPING_NO_AUTOUPDATE=1. 2. Retries in other YouTube modes (TV, Safari, iOS, mobile web clients) instead of failing on the first block. 3. Shows one short message with the fixes below instead of a long English error.

If YouTube still blocks you, pick one:

| Fix | How | |---|---| | Upload the MP4 | Use Upload video next to the link box. Always works. | | Use your browser login | Sign in to YouTube in Chrome (or Edge / Firefox / Brave), then start NeonClipping with NEONCLIPPING_COOKIES_BROWSER=chrome. PowerShell: $env:NEONCLIPPING_COOKIES_BROWSER='chrome'; ./run.ps1.

GitHub Stars & Activity

3,169Stars
219Forks
65Open issues
PythonLanguage

GitHub Popularity

GitHub stars3,169
Forks219
Open issues65
Primary languagePython
LicenseAGPL-3.0
Stars gained today0
Created2026-11-19
Last pushed2026-11-24

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

harry0703 / MoneyPrinterTurbo

Python★ 147,371⑂ 0
→
2

OpenMontageInc / OpenMontage

Python★ 85,228⑂ 0
→
3

ATH-MaaS / Pixelle-Video

Python★ 30,689⑂ 0
→
4

Wan-Video / Wan2.2

Python★ 19,141⑂ 0
→
5

JuneYaooo / rea-video

Python★ 15,844⑂ 0
→
6

Zulko / moviepy

Python★ 15,254⑂ 0
→
7

kajisho5 / ffmpeg-skill

Python★ 13,856⑂ 0
→
8

zai-org / CogVideo

Python★ 13,246⑂ 0
→

More Trending Repositories