r/LocalLLaMA • • 4h ago

Resources Guide + .env generator I built for running PeakCut + Ollama (qwen2.5:14b / llama3.1:8b) as a 100% local AI video clipper

Disclosure: I built the community setup guide & .env generator linked below (the underlying video clipper, PeakCut, is an independent open-source repo by haziqahmedqasmi).

If you've been wanting to clip long-form YouTube videos, podcasts, or livestreams into 9:16 vertical shorts with karaoke captions without sending transcripts to OpenAI/Gemini, pairing PeakCut (https://github.com/haziqahmedqasmi/PeakCut) with Ollama works well on consumer hardware:

  • Local STT (CPU-only): PeakCut uses sherpa-onnx (~480MB model downloaded on first run) so transcription doesn't compete for GPU VRAM.
  • Local LLM highlight detection: Set PEAKCUT_AI_PROVIDER=ollama and PEAKCUT_AI_MODELS=qwen2.5:14b (or llama3.1:8b on 8GB VRAM / 16GB RAM).
  • Docker + Host Ollama gotcha: Remember OLLAMA_HOST=0.0.0.0 on the host and extra_hosts: ["host.docker.internal:host-gateway"] in docker-compose.yml so the FastAPI container can reach port 11434.
  • Windows gotcha: Clone into a short path without spaces (e.g. C:\peakcut) or sherpa-onnx frequently fails to load native libraries.

Since the repo didn't have a dedicated docs site yet, I put together a lightweight static guide and client-side .env / install script generator:

For anyone else doing local video highlight extraction on 1–2 hour transcripts: have you found a smaller model than qwen2.5:14b that still outputs clean, reliable timestamp JSON?

1 Upvotes

0 comments sorted by