Skip to content
zwaythPublic

About

Turn long videos into vertical Shorts, Reels and TikToks on your own PC. Local Whisper transcription, automatic moment detection and smart reframing with FFmpeg. No cloud, no subscription.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Lockoff

Turn long videos into vertical clips that look hand-edited.
On your own PC. Free.

Paste a YouTube or Twitch link, or pick a file. Lockoff finds the best moments, cuts them on whole sentences,
follows the speaker with a calm camera, adds word-by-word captions and checks every clip before you see it.

Install · How it works · The camera · Use it · FAQ

Lockoff app: moments map of a 14-minute talk and the two clips it made


What you get

A finished vertical clip with word-by-word captions

Clips that are ready to post

  • 1080×1920, 30 fps, loudness at -14 LUFS
  • Bold word-by-word captions with the spoken word highlighted
  • A hook line on screen for the first three seconds
  • A title, description and hashtags for every clip

Moments worth watching, not random cuts

  • Loudness spikes, laughter, cheering and reaction words are measured across the whole video
  • An AI reads the transcript with those signals and picks the moments
  • Every pick is snapped to whole sentences and never opens on "so…" or "and that's why…"

Everything stays on your machine

  • Transcription runs on your GPU, video never leaves your PC
  • Links download only the minutes that become clips, never the whole stream

Three frames from a finished clip

The camera

Most auto-reframe tools chase the face every frame, so the picture twitches. Lockoff plans each shot the way a camera operator would. It is named after the lock-off, a shot where the camera is locked still on a tripod.

  • Holds still until the speaker actually leaves the frame
  • One smooth move when it has to, easing in and out and starting just before the speaker moves
  • Cuts only where the video already cuts, never a jump cut inside a shot and never a whip pan
  • Follows whoever is talking, judged by lip movement, with no flip-flopping between people

Side-by-side comparison of two reframing methods on the same footage

Measured on the same 25-second segment against an AI-director reframer that asks a vision model who to follow:

AI-director reframer Lockoff
Speaker's whole face in frame 72.6% – 82.8% 87.2% – 96.9%
Face centre in frame 92.5% – 96.4% 100%
Sudden jerks in camera speed 15 0
Camera perfectly still 57% 66%
AI calls needed 9 0

Ranges are from two independent face detectors. For podcasts with two people on screen, an optional AI director can still choose who to frame. It is used only on shots with two or more people, so single-speaker clips cost nothing.

How it works

flowchart LR
  A[Link or file] --> B[Audio only]
  B --> C[Transcribe<br>on your GPU]
  C --> D[Find moments<br>loudness, laughter,<br>reactions + AI pick]
  D --> E[Check every pick<br>whole sentences,<br>length, no overlaps]
  E --> F[Fetch only<br>those minutes]
  F --> G[Choose layout<br>speaker, webcam<br>or full frame]
  G --> H[Calm camera<br>+ captions]
  H --> I[Quality check<br>+ report]
Loading
Layout When What you see
Speaker Talks, podcasts, interviews, IRL A 9:16 crop that follows whoever is talking
Webcam Gaming streams The facecam on top, gameplay below
Full frame Slides, wide shots, no clear face The whole frame over a blurred copy of itself

Every clip gets a quality check: size, length, audio sync, face in frame and camera smoothness. Anything that fails is flagged in the app.

Install

Windows 10 or 11. An NVIDIA GPU is recommended, but not required.

  1. Install FFmpeg: winget install Gyan.FFmpeg
  2. Install Python 3
  3. Download this repo and double-click setup.bat. It sets up its own Python 3.12 in the folder and does not touch your system.
  4. Double-click Start Lockoff.bat. The app opens in your browser at http://127.0.0.1:8765.

To pick moments with Claude, install Claude Code and sign in once. Without it, choose No AI, loudest moments and everything runs offline.

Use it

New job screen

In the app: paste a link or click Browse, choose how many clips, click Make clips. When the job is done, open it to watch each clip. Fix a title, the hook, the in and out points or a misheard caption word, then Save and re-render. Approve the keepers and open the folder.

From the command line:

lockoff run "https://www.youtube.com/watch?v=..." --clips 5 --credit @creator
lockoff run "D:\videos\episode-12.mp4" --profile podcast --director on
lockoff watch                # makes clips from every video dropped into Inbox/
lockoff rerender <job> --clip 2
lockoff doctor               # checks your setup
Option Values
--clips 1 – 30 How many clips
--length auto · short · medium · long 15–60 · 15–30 · 20–45 · 30–75 seconds
--profile auto · podcast · stream What matters most when picking moments
--layout auto · speaker · facecam · general Force a layout
--llm claude · claude:opus · ollama:<model> · none Who picks the moments
--director on · off AI director for multi-person shots
--power eco · balanced · max How hard to work your CPU
--whisper auto · small · medium · large-v3 Auto picks by GPU memory

Your PC

Balanced, the default The GPU transcribes, decodes and encodes, and the CPU is capped at half its cores at low priority. Measured on a GTX 1650 and i5-9400F: about 48% CPU while rendering
GPU upgrades Detected on every run. NVIDIA, Intel and AMD encoders are tried in that order, and more GPU memory gets a more accurate transcription model
A 14-minute talk About 5–8 minutes for transcription, picking and two clips on a GTX 1650

FAQ

Does my video get uploaded anywhere? No. Video, audio and transcription stay on your PC. If you use Claude to pick moments, only the transcript text is sent to it.

What if I don't have Claude? Choose No AI, loudest moments and Lockoff picks by loudness, laughter and reactions. A local model through Ollama is supported with --llm ollama:<model>.

Can I use it on Mac or Linux? Not yet. The pipeline is Python and FFmpeg, so the work is mostly the launchers. Contributions are welcome.

Can I clip anyone's stream? Only clip your own content, or creators who allow it, and credit them with --credit. Lockoff never uploads anything for you.

Live buffer, workspaces and publishing

Lockoff also has the parts of a self-hosted clipping studio that don't need a server. Open Live & publish in the web UI, or use the CLI:

lockoff workspace mycreator --channel https://www.twitch.tv/mycreator --credit @mycreator --triggers "clip it, that was insane"
lockoff live https://www.twitch.tv/mycreator --workspace mycreator --buffer 15
lockoff live-status
lockoff live-clip live-20261119-183000 30
lockoff live-stop live-20261119-183000

Replace mycreator / @mycreator with the actual streamer whose stream you are clipping — that is who the credit line is for. PeakCut is only the open-source app we studied for features; it is not a content source and should never be credited.

lockoff live records the stream into 6-second pieces, keeps only the last --buffer minutes, transcribes as it goes, and renders a clip straight from the buffer when someone says clip that, a configured trigger phrase is said, or the stream suddenly gets loud. Clips go through the same reframe, caption and QA pipeline as a file job. Sessions and their activity are stored in Jobs/_live/<session>/ and lockoff_workspaces.json.

Publishing uses Buffer through Lockoff's own config and state (lockoff_social.json, lockoff_queue.json):

lockoff post --setup
lockoff queue
lockoff refresh-urls

lockoff queue publishes finished clips; lockoff refresh-urls re-uploads the local file for any post due within two hours and swaps the fresh link in before Buffer fetches it (temporary hosts expire links).

How this differs from Clip Factory. They are deliberately separate products. Clip Factory owns the unattended Instagram scrape → render → Buffer pipeline and its Windows scheduled task. Lockoff is the interactive studio: manual jobs, live rolling buffer, creator workspaces and an optional publish queue. They share no config, state, credentials or scheduled tasks, so one can be changed without risking the other. See ARCHITECTURE.md for the full rationale and what was deliberately left out.

Limits

  • Windows only for now
  • The AI director has been tested on talks, not yet on many two-person podcasts
  • The demo images come from a TED talk (Tim Urban, TED, CC BY-NC-ND 4.0) and will be replaced with original footage

Built with

faster-whisper · FFmpeg · OpenCV and the YuNet face detector · YAMNet · PySceneDetect · yt-dlp · Geist

License

MIT. Bundled fonts and models keep their own licenses, listed in the license file.

About

Turn long videos into vertical Shorts, Reels and TikToks on your own PC. Local Whisper transcription, automatic moment detection and smart reframing with FFmpeg. No cloud, no subscription.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages