RepositoryPython
mehbul

mehbul/chopify

Free local AI video clipper for Shorts, Reels and TikTok. Browser dashboard and CLI with resumable batch projects, editable captions/SRT, brand presets, semantic search and podcast split-screen. Open source; no subscription or cloud upload.

135sao
46fork
0issue
6lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

2
TINIX TRENDING·Chủ đề: faster-whisper

#2 Repository của tuần

2
TINIX TRENDING·Chủ đề: shorts

#2 Repository của tuần

2
TINIX TRENDING·Chủ đề: reels

#2 Repository của tuần

Chopify — local video clipping and captions

Chopify — free, local AI video clipper

Turn long videos into captioned clips for YouTube Shorts, Instagram Reels, and TikTok, on your own computer. Chopify is an open-source Python app with a local browser dashboard and a CLI. Import a recording or a video URL, find moments, correct captions, review drafts, and export MP4 clips with SRT subtitles. No subscription, API key, cloud upload, or watermark.

Get started · Workflow guide · Agent/API reference · Troubleshooting · Changelog

What can Chopify do?

FeatureHow it helps
Local browser dashboardQueue videos, watch job progress, review candidates, edit words and timestamps, and download exports.
Local video inputUse MP4, MOV, MKV, WebM, M4V, or AVI recordings directly, or download a yt-dlp-supported URL.
Resumable projectsReuse matching downloads, transcripts, and completed renders. Retry a failed job without discarding successful clips.
Batch queueAdd one source per line in Studio or use a JSON list in the CLI. Each video has an isolated project folder.
Caption editor and SRT exportFix transcription mistakes before rendering. Burnt captions and SRT files share the same timeline, including tightened cuts.
Reusable brand presetsSave caption font, text/highlight colors, size, position, and an optional logo in JSON.
Semantic clip searchSearch for a concept such as “handling rejection” using optional local Ollama embeddings, even if those exact words are absent.
Podcast split-screenStack two adjustable horizontal crops in a vertical clip for fixed-camera two-person footage.
Clip selection and reviewHeuristic scoring, optional local LLM scoring, keyword search, numbered selection, editable start/end times, and fast draft previews.
Social video exports16:9, 9:16, or 1:1; H.264 video, AAC when source audio exists; SRT, poster, title/description/hashtag JSON.
Face tracking and cleanupSingle-frame vertical crops follow a detected face; optional filler/silence removal and audio loudness normalization.

Clip selection favors sentence endings with punctuation. Scores are editing suggestions, not predictions or guarantees of virality. Review the results before publishing.

Install and open the dashboard

Windows is the primary target. Use Python 3.11+ and ffmpeg/ffprobe with libx264, AAC, and subtitle rendering support. Linux CI also checks the Python and ffmpeg workflows.

git clone https://github.com/mehbul/chopify.git
cd chopify
winget install Gyan.FFmpeg
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python dashboard.py

Studio opens at http://127.0.0.1:8765. Paste a local video path or URL, then click Find clips. Add multiple sources on separate lines to queue them. After processing, review candidates, edit captions, save your settings, and export selected clips. Stop the server with Ctrl+C. To change the port:

.venv\Scripts\python dashboard.py --port 8766 --projects-dir projects

The dashboard has no extra web framework or JavaScript installation step. It binds to loopback and is intended for one trusted user on the same computer, not as a public server.

YouTube downloads may also require Deno: winget install DenoLand.Deno. A preflight check reports missing Python packages and encoders. Restart your terminal after installing tools so PATH changes take effect.

CLI: long video to short clips

After installing dependencies, run with the virtual environment's Python (or activate it and use python):

# Local recording or online video
python chopify.py "C:\Videos\podcast.mp4" --aspect 9:16
python chopify.py "https://youtube.com/watch?v=VIDEO_ID"

# Prepare once, inspect candidates, then render selected clips
python chopify.py "C:\Videos\podcast.mp4" --workdir work --action prepare
python chopify.py --project work --action render --clips 1,3 --preview
python chopify.py --project work --action render --clips 1,3

# Search the transcript using keywords or meaning
python chopify.py "recording.mp4" --search "pricing"
python chopify.py "recording.mp4" --semantic "advice about handling rejection"

# Brand and podcast framing
python chopify.py "podcast.mp4" --brand examples/brand.json --tighten --loudnorm
python chopify.py "podcast.mp4" --aspect 9:16 --layout split --centers 0.25 0.75

# Process a queue of videos into separate projects
python chopify.py --batch examples/batch.json --projects-dir projects

CLI single-video runs save state under work/ and copy the latest exports to clips/. Set --out DIR or CHOPIFY_OUT to change the export folder. Dashboard and batch jobs save outputs inside projects/<id>/clips/ and drafts inside previews/. Replace the batch sample's sources with your own paths or URLs.

Successful stages resume by default. Use --no-resume to reprocess, or --project projects/<id> --action render to retry a batch project. Use --action render after manual caption/clip edits; --action prepare recalculates candidates when selection inputs change. A failed batch job does not prevent later videos from processing; the CLI exits nonzero if any job fails.

Semantic search and optional local AI

Default clip selection needs no LLM. For semantic search, install Ollama, run it locally, and download an embedding model:

ollama pull nomic-embed-text
python chopify.py "podcast.mp4" --semantic "turning failure into a lesson"

The embedding model runs on 127.0.0.1:11434. Sentence embeddings are cached per transcript/model. Use --embed-model MODEL for another compatible local embedding model. Semantic search ranks matches by similarity; it does not guarantee that the topic is present. Missing models produce setup instructions rather than a cloud fallback.

For optional LLM-based selection, download a local chat model separately and pass --llm MODEL. If it is unavailable, selection falls back to the heuristic. The GPU backend for faster-whisper is CUDA/NVIDIA; CPU transcription works without an NVIDIA GPU. --device cpu|cuda|auto controls transcription.

Is Chopify an alternative to Opus Clip?

Chopify is a free, MIT-licensed option for creators who want local clipping, captions, reframing, and review. It requires local installation and uses your computer's resources. It does not include cloud collaboration, automatic social publishing, or hosted processing. Compare the workflows and privacy requirements that matter to you; feature sets and pricing of other products change.

Frequently asked questions

Does video leave my computer?

Chopify does not upload footage or transcripts to a hosted processing service. Video URLs require downloads. Whisper models download on first use; face tracking may download a YuNet model; optional Ollama models need an initial download. Local-file processing can run offline once the required dependencies and models are available.

Can I correct captions and export subtitles?

Yes. Open a prepared project in Studio, choose Transcript, edit word text or start/end times, and Save captions. Export again to apply the edits. Each draft and finished clip includes an SRT file relative to that clip's timeline. See the caption workflow.

Does split-screen identify who is speaking?

No. Split-screen uses two adjustable horizontal crop centers for a fixed camera and stacks the crops vertically. It is not speaker diarization or automatic two-face tracking. Use a draft to tune the positions before final export.

What happens if processing fails or Studio closes?

Completed stages and clips remain on disk. Restart Studio and queue the saved project again, or rerun the CLI with --project PATH. Interrupted jobs are marked for explicit retry. Changing the source, transcription model, selection settings, words, brand, or render options invalidates the relevant cached work. Do not run two writers against the same project directory at once.

Can it edit translated or multilingual subtitles?

Whisper detects spoken language, and captions retain its transcription. The heuristic cue lists are English-oriented; punctuation and timing can vary by language. This update does not add translation, bilingual captions, or dubbing. Caption fonts must contain the glyphs you need.

Developer and agent documentation

python -m pip install -r requirements-dev.txt
python -m pytest tests/ -q
python -m compileall -q chopify.py dashboard.py projects.py captions.py branding.py semantic.py download_and_transcribe.py score_clips.py render_clips.py tighten.py

Tests include real ffmpeg renders when ffmpeg is installed; speech models and Ollama are not required for the automated suite. Keep videos, transcripts, generated clips, and local brand presets out of Git. Use footage you have permission to process.

Maintained by mehbul. MIT license. Last documentation update: 2026-10-23.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryPython
iamajmeena/neonclipping

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

3.2k
Nov 24, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169.5k
Dec 1, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.6k
Dec 2, 2026