[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116568":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},116568,"neonclipping","iamajmeena\u002Fneonclipping","iamajmeena","Paste a link, get captioned 9:16 clips in ~2 min. Free, local, open-source clipping engine (audio-first, YouTube captions, local LLM).",null,"Python",2364,150,22,15,0,250,636,1136,108.42,"MIT License",false,"main",true,[25,26,27,28,29,30],"clipping","ffmpeg","shorts","video","whisper","yt-dlp","2026-11-23 18:18:00","2026-11-23 20:52:38","# NeonClipping\n\n**Paste a link. Get captioned 9:16 clips in about two minutes. Free, local, open-source.**\n\nNeonClipping turns long YouTube \u002F Twitch \u002F 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.\n\n[![Star on GitHub](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fiamajmeena\u002Fneonclipping?style=for-the-badge&logo=github&label=Star%20on%20GitHub)](https:\u002F\u002Fgithub.com\u002Fiamajmeena\u002Fneonclipping) [![Instagram](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFollow-%40iamajmeena-E4405F?style=for-the-badge&logo=instagram&logoColor=white)](https:\u002F\u002Fwww.instagram.com\u002Fiamajmeena\u002F)\n\n🌐 **Website with one-click Windows setup:** \u003Chttps:\u002F\u002Fiamajmeena.github.io\u002Fneonclipping\u002F>\n\n**Made by [Ajay K Meena](https:\u002F\u002Fwww.instagram.com\u002Fiamajmeena\u002F)** (Director, DOP, colorist, DaVinci Resolve educator, Jaipur). If NeonClipping saves you time, please ⭐ star the repo and follow [@iamajmeena](https:\u002F\u002Fwww.instagram.com\u002Fiamajmeena\u002F) on Instagram.\n\n**Clip an 85-minute stream in 97 seconds, 100% locally, with zero API cost.** (measured, see [How it finds good moments](#how-it-finds-good-moments))\n\n### NeonClipping compared with other clippers\n\n| | **NeonClipping** | OpusClip (cloud) | Docker-based self-hosted clippers (SupoClip, OpenShorts, Reelsaw) |\n|---|---|---|---|\n| Where it runs | Your PC, nothing uploaded | Their servers | Your machine or server |\n| Cost | Free, no account, no credits | Subscription \u002F credits | Free (some need an LLM API key or Docker setup) |\n| Install | One `.bat` on Windows, `install.sh` on Mac\u002FLinux, no Docker | None (web) | Docker |\n| YouTube + Twitch + Kick links | Yes | Yes | Mostly YouTube |\n| 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 |\n| Gaming layouts (facecam + gameplay) | 11 layouts, automatic facecam finder | Limited | Varies |\n| Live stream clipping | Yes, chat-spike based, phone remote | No | Rarely |\n| Download quality | 1080p default, 4K option beside Get preview | n\u002Fa | Varies |\n| Captions | 5 styles, 52 languages, Hinglish, on\u002Foff, quiet-part aware | Templates | Varies |\n\n![demo](docs\u002Fdemo.gif)\n\n![UI](docs\u002Fneonclipping-ui.jpg)\n\n📘 **Guides (Hindi + English, PDF):** [docs\u002FNeonClipping-Guide-EN-HI.pdf](docs\u002FNeonClipping-Guide-EN-HI.pdf)  \n🤖 **Let an AI agent install it for you:** copy [docs\u002FNEONCLIPPING-AGENT-SETUP-PROMPT.txt](docs\u002FNEONCLIPPING-AGENT-SETUP-PROMPT.txt) into Claude Code, Codex CLI or Cursor.\n\n## How it finds good moments\n\nTwo modes, one button.\n\n**⚡ Fast mode (default, videos over 10 min)** copies the trick that makes the fastest clippers fast: never look at the whole video.\n\n1. Download **audio only** (79 MB for an 85-minute video, about 10 s).\n2. 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.\n3. 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.\n4. 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\u002FMax length.\n5. 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.\n\n**🔬 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.\n\nMeasured on one machine (RTX 2060, 16 threads), Fast mode, 3 clips each:\n\n| Source | Time |\n|---|---|\n| 85-minute YouTube stream (YouTube captions) | **97 s** |\n| 3-hour Twitch VOD (no captions, local speech model) | **136 s** |\n| 90-second YouTube trailer | 21 s |\n| 90-second local MP4 | 14 s |\n\nYour numbers depend on network and CPU.\n\n## How it decides what is a good moment\n\nEvery candidate moment is scored from several signals, then the best ones are kept:\n\n| Signal | What it looks for |\n|---|---|\n| Loudness jump | A sudden boom or shout compared with the last two minutes |\n| Raised voice | Energy in the 2–4 kHz band (screaming, yelling) |\n| What is said | \"oh my god\", \"oh shit\", \"run\", \"police\", \"bhaago\", \"arre yaar\" and similar (English, Hinglish, Hindi) |\n| On-screen action | Fast motion (optical flow), explosion-like flashes, red\u002Fblue light flicker, scene cuts |\n| AI score | A small local LLM reads the transcript: emotion, punchline, payoff |\n\n**It learns from you.** Generated moments have five-star controls in results and My clips. Ratings stay on your computer (`data\u002Ffeedback.jsonl`). After at least eight **different moments**, with a useful mix of stronger\u002Fweaker 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.\n\n## Features\n\n- One-click **Make clips**, live progress, clips appear one by one with preview and MP4 download.\n- **Min \u002F Max clip length** (e.g. 30–80 s). Clips end on a sentence.\n- **Facecam position presets** (top-left, top-right, bottom-left, bottom-right, bottom-centre, none) for the usual streamer layouts, remembered between sessions. Or draw the face and gameplay boxes yourself in the editor.\n- **11 native layouts:** camera above\u002Fbelow gameplay, blurred fill, full-screen crop, gameplay only, four corner overlays, circle facecam and side-by-side. Independent face\u002Fgame selection and a face-size slider. Preview-only platform safe zones.\n- Caption styles: GTA Neon, Impact, Clean, Hormozi and MrBeast. Word-timed, editable words, SRT export.\n- **Opening headings:** eight seconds by default, adjustable from 2–60 seconds, with black backing for bright gameplay and facecam layouts. Use **Improve opening heading** to write a grounded curiosity question from the selected transcript. Existing clips can apply the new look without downloading or finding moments again.\n- **Moment mix:** Balanced combines activity and transcript-led proposals; Action favours energy; Dialogue favours story, humour and insights. Final selection reduces overlapping and repetitive moments. Balanced\u002FDialogue prefer an already-installed Gemma 4 local judge; other local models remain a fallback. This changes curation rules and prompts, not foundation-model weights.\n- **Custom captions:** installed font family, size, text\u002Factive\u002Foutline colours, words per caption and local saved profiles. Import SRT\u002FASS\u002FWebVTT or paste subtitle text, adjust word timings, split\u002Fmerge and shift captions. Within-cue word timings from imported files are estimated. Download WebVTT alongside SRT.\n- **Transcript explorer:** explicitly generate or import a full-source transcript, search phrases across cues, browse pages, and click the first\u002Flast word to export that passage. Cached transcripts are reused by Make clips and invalidated when the source changes.\n- **Trim a saved clip:** in *Edit saved clips*, change Start \u002F End and press *Only this clip*; the clip is cut again from the saved video and the subtitles move with the cut (3 to 180 s, within the saved video).\n- **52 caption languages** in the Language menu, see Honest limits for caveats.\n- **Optional visual review:** an already-installed compatible Gemma4 image model describes three actual scene frames. Review them in the editor or enable visual review for automatic candidate refinement. It is off by default and can add CPU inference time. Sampled image descriptions can be uncertain and do not verify a complete game event. Saved evidence is reused during re-editing.\n- **Hinglish captions**: Hindi speech is written in English letters (\"kya haal hai bhai\") by default. Pick Hinglish \u002F हिंदी \u002F English explicitly if you like. Fast uses available source captions; Best Hindi explicitly uses local large-v3 recognition and can be slower on small GPUs. Missing source captions require local recognition.\n- **Make clips uses your own setup**: facecam preset or the boxes you draw in step 03.\n- Optical-flow motion + audio highlight ranking, frame-accurate NVENC export (falls back to x264).\n- Nothing leaves your computer. The server binds to `127.0.0.1` only.\n\n## Change clips after generating them\n\n![Saved clip editor with eleven layouts](docs\u002Fsaved-clip-editor.jpg)\n\nOpen **My clips → Edit clip**. The saved editor includes all **11 speaker position\u002Fshape layouts**, a speaker-size slider, editable subtitle words, caption style and caption height.\n\n- **Apply to this clip** updates the opened clip.\n- **Apply to this video's clips** updates the currently saved clips associated with the same source URL. Each keeps its own timestamps, transcript, title and hook. New clips still being generated are not included in that snapshot.\n- Source download, highlight discovery and speech recognition are **not repeated**. Burned-in captions and framing require encoding a new final MP4.\n- Original source files must remain in `data\u002F`. Previous MP4s are kept; the library displays the latest versions. Old exports missing saved word timings can recover captions from their SRT, with approximate per-word timing.\n- This edits the selected moments; changing the clip's start\u002Fend or spoken language requires a separate trim\u002Ftranscription workflow.\n\nValidation on one 796.9-second source: all 11 layouts and five caption styles exported with audio and decoded successfully. A seven-clip layout\u002Fstyle 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.\n\nRun the portable regression tests with `python -m unittest discover -s tests -v`.\n\n## Install\n\n**Easiest (Windows):** download [`NeonClipping-Setup.bat`](https:\u002F\u002Fgithub.com\u002Fiamajmeena\u002Fneonclipping\u002Freleases\u002Flatest\u002Fdownload\u002FNeonClipping-Setup.bat) from the [website](https:\u002F\u002Fiamajmeena.github.io\u002Fneonclipping\u002F) 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\u002FLinux: `install.sh` (new, not yet tested on a real Mac). Or follow the steps below.\n\nRequirements: Python 3.10 to 3.13 (the newest Python often has no wheels for the speech\u002Fvision packages yet; the Mac\u002FLinux installer picks a supported one for you), FFmpeg on PATH. Optional but recommended: [Ollama](https:\u002F\u002Follama.com) with `ollama pull llama3.2:3b` for AI titles, hooks and scores (without it clips are picked by the audio\u002Fmotion score), and an NVIDIA GPU for NVENC and faster-whisper.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fiamajmeena\u002Fneonclipping\ncd neonclipping\n# Windows\n.\u002Frun.ps1\n# Linux \u002F macOS\n.\u002Frun.sh\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:8770>, paste a link, press **⚡ Make clips**.\n\nOptional GPU speech model support (only used when a video has no YouTube captions):\n\n```bash\n.venv\u002Fbin\u002Fpip install nvidia-cublas-cu12 \"nvidia-cudnn-cu12==9.*\"\n```\n\nSet `NEONCLIPPING_CPU=1` to force CPU. Set `NEONCLIPPING_PORT=9000` to use another port.\n\n**Mac \u002F Linux \u002F 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).\n\n**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.\n\n## How it is built\n\n| File | Job |\n|---|---|\n| `app.py` | FastAPI server, `\u002Fmake` pipeline, export, library |\n| `smart.py` | Moment scoring: transcript + local LLM, sentence snapping |\n| `highlights.py` | Audio-jump \u002F shout \u002F optical-flow \u002F cut ranking, parallel decode |\n| `captions_yt.py` | YouTube word-timed captions (json3) parser |\n| `captions.py` | Local Whisper (GPU first, CPU fallback), ASS\u002FSRT styles |\n| `translit.py` | Devanagari → Hinglish (word by word, keeps timings) |\n| `standalone.py`, `previews.py` | Link import, early preview frames |\n\n## Live clipping (while the stream is on)\n\nPaste 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.\n\nThere is also a command-line version in `live\u002Flive_clip.py`.\n\n## Creators (clip a streamer automatically)\n\nAdd a Twitch name or a Twitch \u002F 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.\n\n- One stream at a time (recording and rendering are heavy); other creators wait their turn.\n- NeonClipping must stay open. Unattended recordings stop after 3 hours (a new one starts if the creator is still live), stop when less than 8 GB of disk is free, and the big recording file is deleted after the last clip is cut.\n- Pressing **Stop** pauses that creator for 30 minutes; switching Auto off and on resumes at once.\n- Tested on Twitch (recording, chat spikes, clip, feed). YouTube channels are detected through yt-dlp; an auto-clipped YouTube stream was not run end to end.\n\n## Tests\n\n`tests\u002F` 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 \u002F all clips of a video, Make clips on real YouTube \u002F Twitch \u002F 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\u002FREPORT.md`](tests\u002FREPORT.md): 187 checks, all passing, plus the 12 problems the run found and fixed.\n\n```\npython -m unittest tests.test_captions tests.test_live tests.test_reedit\npython tests\u002Fe2e.py static export edit creators feedback   # server must be running\npython tests\u002Fe2e_make.py          # real downloads + transcription (about 25 min)\npython tests\u002Fe2e_live.py          # needs a Twitch channel that is live\npython tests\u002Fe2e_site.py          # website, links, release assets\npython tests\u002Fmake_report.py       # rebuild tests\u002FREPORT.md\n```\n\n## Live clipping controls and the phone remote\n\nInspired 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).\n\n- **Chat hype meter** while a stream is live: 0-100%, from the comments of the last ~30 s against the stream's own usual speed (peak = 4x usual; the first seconds use an absolute scale), with the label *quiet \u002F building momentum \u002F hot \u002F peak viral hype*.\n- **Clip length presets** 10 s \u002F 20 s \u002F 30 s \u002F Auto: the clip starts a few seconds before the chat peak; \"Clip now\" cuts the same length from the live recording.\n- **Hook text** for live clips from the AI, the **stream title** (emoji removed) or your own text; **captions switch** (off = faster clips).\n- Live clips now also get the style options (template, logo, credit, outro, music, caption animation).\n- **Phone remote:** start NeonClipping with the *NeonClipping (phone access)* shortcut (`Start-NeonClipping-Phone.bat`, or set `NEONCLIPPING_LAN=1`). Under Live clipping it shows a Wi-Fi address and a 6-digit PIN. On a phone on the same Wi-Fi open that address (`\u002Fm`), enter the PIN, paste a YouTube Live or Twitch link, pick a length, watch the hype meter, press **Clip now**, and play \u002F save \u002F share the clips. On Android Chrome use \"Add to Home screen\" to get an app icon. The PC does all the work; the phone is only a remote.\n- **Safety:** phone access is off unless you start it that way (the server then listens on 127.0.0.1 only). Everything that is not the PC needs the PIN (after 5 wrong tries an address is locked for 10 minutes; \"New PIN\" logs every phone out). Even with the PIN a phone can only use the live, library, make, clips, feedback and creators routes: uploads, file tools, the queue and the PIN itself stay PC-only. Windows will ask once whether to allow NeonClipping on private networks: choose Allow for home Wi-Fi only.\n- Not included: a native Android app (the phone page is a web page that works like one), live clipping that runs on the phone itself.\n\n## Captions: YouTube's own, always\n\nFor 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.\n\n## Style & extras\n\n- **Templates:** wrap the clip in an *X post* (light or dark), a *TikTok hook* box or a *Breaking news* broadcast frame. Type the name, handle and hook; the card, avatar letter, check mark and ticker are drawn for you.\n- **Background card:** padded, rounded-corner video card on a blurred copy, a colour, a gradient or your own image (dimmed, blurred).\n- **Logo \u002F watermark** (4 corners, size, opacity), **credit line** (or \"Clip: channel name\" automatically), **outro ribbon** that slides in for the last seconds.\n- **Music bed:** one track under the voice that rises to a peak volume in the last seconds (volume, peak and riser length are yours).\n- **Six caption animations:** highlight (word by word), pop-in, pop-in line, one by one, build up, full line.\n- **Import captions:** drop an `.srt` or `.ass` file; the words are timed to the clip and can be edited.\n- All of it works in Make clips, single exports and \"Edit saved clips\" (including \"apply to all clips of this video\").\n\n## Find my facecam\n\nThe **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\u002F`). 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.\n\n## Long streams with a free chatbot\n\n**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.\n\n## Report a problem (English + Hindi)\n\nThe **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**:\n\n| Option | What happens | Who sees it |\n|---|---|---|\n| **1 · GitHub issue (safest)** | Opens a pre-filled issue; you read it and press Submit yourself | Public on GitHub |\n| **2 · Download diagnostics** | Saves a text file; you send it yourself (GitHub, Instagram DM, WhatsApp) | Only who you send it to |\n| **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 |\n\nWhat 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\u002Ferrors.log` on your own computer (redacted, trimmed automatically); that file never leaves the computer unless you share it.\n\nOption 3 stays off (\"not set up\") until a collector URL is configured; see [`tools\u002Freport-worker`](tools\u002Freport-worker\u002FREADME.md). Code: [`report.py`](report.py), [`report.js`](report.js). Issue form: `.github\u002FISSUE_TEMPLATE\u002Fproblem.yml`.\n\n## Source quality (1080p default, 4K optional)\n\nUnder **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\u002F4K exports upscaled and soft. Now:\n\n| Choice | What you get | Measured (20 s section of a 4K video) |\n|---|---|---|\n| **1080p (default)** | H.264 1920x1080 | 10 MB |\n| 4K | AV1\u002FVP9 3840x2160, much larger, slower to decode | 70 MB |\n| 1440p | in between | |\n| 720p | fastest, smallest | 6 MB |\n\nIf 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.\n\n## \"Sign in to confirm you're not a bot\" (YouTube bot check)\n\nSome connections get this from YouTube: shared or mobile-data internet, VPNs, office\u002Fhostel Wi-Fi, or an old downloader. NeonClipping handles it for you in this order, with no setup:\n\n1. **Keeps yt-dlp fresh.** Once a day at start-up it upgrades `yt-dlp[default]` (offline-safe). Turn off with `NEONCLIPPING_NO_AUTOUPDATE=1`.\n2. **Retries in other YouTube modes** (TV, Safari, iOS, mobile web clients) instead of failing on the first block.\n3. **Shows one short message** with the fixes below instead of a long English error.\n\nIf YouTube still blocks you, pick one:\n\n| Fix | How |\n|---|---|\n| **Upload the MP4** | Use **Upload video** next to the link box. Always works. |\n| **Use your browser login** | Sign in to YouTube in Chrome (or Edge \u002F Firefox \u002F Brave), then start NeonClipping with `NEONCLIPPING_COOKIES_BROWSER=chrome`. PowerShell: `$env:NEONCLIPPING_COOKIES_BROWSER='chrome'; .\u002Frun.ps1`. Close the browser first if Windows says the cookie file is locked. |\n| **Use a cookies file** | Export `cookies.txt` from your browser and save it as `data\u002Fyoutube_cookies.txt` (or point `NEONCLIPPING_COOKIES_FILE` at it). It stays on your computer. |\n| **Change network** | Home Wi-Fi instead of mobile data; turn the VPN off. |\n\nCookies are only read when you set one of the options above; NeonClipping never reads your browser by itself. Use a throw-away Google account if you do not want your main one attached to automated downloads. Python 3.10 is deprecated by yt-dlp: use Python 3.11+ so updates keep arriving. Everything YouTube-related goes through [`ytdl.py`](ytdl.py).\n\n## Honest limits\n\n- Highlight picking is a heuristic plus a small local LLM. It finds loud, energetic, quotable moments, not guaranteed \"viral\" ones. Review before posting.\n- The action cues (motion, flash, light flicker) are simple heuristics on a tiny low-resolution copy; they rank moments, they do not recognise \"a police chase\". Star ratings are how it gets better at your taste.\n- The LLM sees text only. It cannot see the screen.\n- Without YouTube captions (Twitch VODs, uploaded files) a speech model must transcribe each candidate, which is slow on CPU.\n- Auto-caption accuracy follows the source: YouTube's auto captions are imperfect, especially Hinglish.\n- Deep mode was verified on a short video only; on multi-hour videos it downloads the whole file first and is slow by design.\n- **Live clipping:** one live session at a time, and the computer must stay awake and online while it records. Unattended creator-watch sessions stop after 3 hours or when less than 8 GB of disk is free (both configurable above); a manual session does not.\n- **No auto-posting or scheduling.** NeonClipping exports the MP4 and SRT to your computer and stops there on purpose: posting to Instagram\u002FYouTube\u002FTikTok needs your accounts and approved API access, which would break \"no account, nothing leaves your computer\". Upload with the platform's own app or a scheduler you trust.\n- **Caption languages:** Hinglish, Hindi, English and 50 more (Whisper). Accuracy is best for widely spoken languages. Captions are drawn with fonts installed on your computer, so scripts without a font may show empty boxes, and right-to-left languages (Arabic, Persian, Hebrew, Urdu) have basic support only. When YouTube provides captions in the spoken language they are used instead of the speech model.\n- Facecam presets are starting points, not detection: if you pick Bottom-right but the cam is bottom-left, the top half of the clip will show the wrong area. Pick the right corner or draw your own boxes.\n\n## Support\n\nNeonClipping is free. If it saves you time you can ⭐ star the repo, follow [@iamajmeena](https:\u002F\u002Fwww.instagram.com\u002Fiamajmeena\u002F), or optionally donate via Razorpay (UPI \u002F cards): \u003Chttps:\u002F\u002Frzp.io\u002Frzp\u002FJN41CpW>. The app also has a ♥ Donate button. Nothing is ever locked behind a donation.\n\n## Credits and inspiration\n\nDesign ideas studied from open-source clippers: [PeakCut](https:\u002F\u002Fgithub.com\u002Fhaziqahmedqasmi\u002FPeakCut) (audio-first download, captions as transcript, section download), [ClipCutter](https:\u002F\u002Fgithub.com\u002Fcurtyo18\u002FClipCutter), [content-ai](https:\u002F\u002Fgithub.com\u002Fbuddah0\u002Fcontent-ai), and the Growlance live-clipper script. Also studied: PeakCut's facecam-by-static-border idea and creator list (reimplemented here with our own code, plus a face check), the public feature list of the YIZERGE desktop editor (templates, background card, music riser, caption animations; only its public web page was read), and a creator's walkthrough of splitting a 9-hour stream into small transcript parts for a free chatbot. Built on FFmpeg, yt-dlp, FastAPI, faster-whisper, OpenCV (YuNet face detector, MIT), Ollama.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n\n## What changed on 2026-11-21\n\n- **Download quality next to Get preview.** 1080p is the default; choose 4K, 1440p or 720p right beside the button. The 1080p setting no longer falls back to YouTube's ready-made 720p mp4, and the progress line shows video\u002Faudio stream, MB, speed and time left.\n- **Very long videos (over 2 hours) are never downloaded whole.** A 24-hour stream is about 46 GB at 1080p. You pick the part (up to 2 hours, h:mm:ss) and only that part is downloaded.\n- **Opening heading on\u002Foff** (*Show opening heading on the clip*, on by default). Off means no heading text, no backing box and no local-model call.\n- **Fixes for reported install problems:** PyAV 19 (`metadata_errors`) shim and `av\u003C19` pin, portable FFmpeg fallback and an on-screen warning when FFmpeg is missing, Windows installer uses Python 3.10 to 3.13 and installs the Visual C++ runtime when `ctranslate2.dll` cannot load, a live \"working…\" line while long audio is scanned.\n- **Report a problem** is now also in the sidebar and header.\n- On NVIDIA PCs the source is also decoded on the GPU (NVDEC), with automatic fallback to the CPU. Task Manager shows this under *Video Encode \u002F Video Decode*, not under *3D*.\n\n## Updating\n\nNeonClipping now updates itself. When a new version is on GitHub, a green banner appears at the top of the page; press **Update now**, or leave it and it updates automatically after a short countdown when nothing is running. Your clips, settings and downloaded models are kept, one backup of the replaced files stays in `.update-backup\u002F`, and the app restarts by itself.\n\nIf you installed an older version, run `NeonClipping-Setup.bat` once more to get this feature. After that no re-install is needed. A git checkout is never touched by the updater (use `git pull`).\n","NeonClipping 是一个本地运行的开源视频剪辑工具，可将 YouTube、Twitch 或 Kick 等长视频（或本地 MP4）自动提取为带字幕的 9:16 竖屏短视频，并生成标题与钩子文案。核心功能包括音频优先处理（仅下载音频加速分析）、复用平台原生字幕、本地 Whisper 模型备用转录、多布局适配（含自动人脸框识别）、直播聊天峰值触发剪辑，全程离线、零上传、免 API 调用。适用于内容创作者快速批量制作短视频素材，尤其适合需隐私保护、无网络依赖或处理超长直播\u002F录像的本地工作流。",2,"2026-11-24 04:53:52","CREATED_QUERY"]