Help us shape the future of Go! Take the 2026 Go Developer Survey

clipper

command module
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 9 Imported by: 0

README ΒΆ

Automated Video Clipping System (Golang + FFmpeg)

Sistem pemotong video otomatis berbasis Go (Golang) yang terintegrasi dengan FFmpeg, Multi-Provider AI (Google Gemini, DeepSeek, OpenAI, OpenRouter), dan Local Whisper AI. Sistem ini dirancang untuk memotong video, mendeteksi klip paling menarik/viral secara otomatis, merender format vertikal 9:16 (Shorts/Reels/TikTok), dan menempelkan subtitle animasi interaktif.

πŸš€ Fitur Utama

  • 🎀 TikTok & Instagram Reels Karaoke Subtitles (-sub-style karaoke): Subtitle animasi cepat per 2–3 kata berlatar kuning menyala + font Impact tebal atau font kustom (-sub-font-path).
  • πŸ“‚ Per-Video Cache Isolation & Auto-Cleanup (-clean-cache): Struktur cache berbasis subfolder per video (./cache/<video_id>/) untuk mencegah bentrok subtitle, dilengkapi pembersih cache berdasar umur retensi (-clean-days N).
  • πŸ“‘ Batch Processing Queue (-batch-list urls.txt): Pemrosesan banyak video sekaligus dari daftar URL/file secara otomatis dalam satu antrean.
  • πŸ” Dry-Run Preview Mode (-dry-run): Mode simulasi untuk mengecek kalkulasi segmen, hasil auto-detection AI, dan perintah FFmpeg tanpa merender video.
  • πŸ€– Multi-Provider AI Highlight Detection: Dukungan provider AI ganda (Google Gemini, DeepSeek, OpenAI, OpenRouter) untuk analisis klip paling viral dari transkrip video.
  • πŸŽ™οΈ Local Whisper Speech-to-Text (-use-whisper): Ekstraksi subtitle AI secara otomatis dan offline dari audio video menggunakan Whisper AI.
  • πŸ‘€ Dynamic Speaker Auto-Framing & Face Tracking (-shorts-style smart-crop): Pemotongan vertikal 9:16 otomatis yang melacak wajah pembicara aktif (Active Speaker Tracking) berbasis pure Go AI detector (pigo) dengan transisi pergerakan kamera halus (temporal camera easing & deadband).
  • πŸ”Š Auto Audio Normalization (-loudnorm): Penyetaraan volume suara standar industri EBU R128 (-14 LUFS target Shorts/TikTok/Reels) otomatis tanpa distorsi (True Peak -2 dBTP).
  • βœ‚οΈ Smart Silence Removal / Jump-Cut (-jump-cut): Otomatis memotong jeda hening / diam 2–4 detik di tengah percakapan dengan margin wicara aman (anti-clipping speech margin) untuk tempo video yang padat (snappy).
  • 🎨 Preset Tema Subtitle Viral (-sub-preset): Gaya subtitle ASS siap pakai ala CapCut/OpusClip (hormozi pop-in bounce, minimal/devon clean white, neon glowing cyan, cinematic soft ivory).
  • 🏷️ Pemisah Silent Narrator & SDH (-sub-sdh-mode): Penanganan cerdas untuk deskripsi situasi [...] (alur cerita/movie recap) dengan mode strip (bersihkan dialog) atau top-box (banner statis di atas frame).
  • πŸŽ™οΈ Smart Silence & Scene Auto-Detection: Deteksi otomatis bagian percakapan/suara (-auto-detect silence) atau perpindahan adegan (-auto-detect scene).
  • ⚑ Parallel Concurrency Engine: Render banyak klip sekaligus secara paralel via Goroutines worker pool.
  • 🎨 Watermark Image & Text Overlay: Penambahan logo watermark PNG & caption teks otomatis pada klip.
  • πŸ“± YouTube Shorts / TikTok / Reels (9:16): Format vertikal dengan style center crop, smart crop, atau blurred background.

πŸ“¦ Instalasi

Install Langsung via Go (go install)
go install github.com/misbakhul29/clipper@latest

Pastikan $GOPATH/bin (misal: ~/go/bin) sudah terdaftar di environment variable PATH OS Anda agar perintah clipper dapat langsung dijalankan dari terminal manapun.

Build dari Source Code
git clone https://github.com/misbakhul29/clipper.git
cd clipper
go build -o bin/clipper .

πŸ“– Dokumentasi & Konfigurasi

  • πŸ“‘ CLI_USAGE.md: Dokumentasi lengkap baris perintah (CLI Flags), opsi Multi-Provider AI, dan contoh skenario penggunaan.
  • βš™οΈ EXAMPLE_CONFIG.md: Contoh lengkap berkas konfigurasi config.json dan kamus referensi parameter JSON.

⚑ Contoh Perintah Cepat

1. Render Shorts 9:16 Blur + TikTok Karaoke Subtitles
clipper -input "https://www.youtube.com/watch?v=xxx" \
  -auto-detect ai \
  -shorts -shorts-style blur \
  -burn-subtitles -sub-style karaoke -sub-font-size 54 \
  -translate-lang id \
  -ai-router gemini -ai-key "YOUR_GEMINI_API_KEY" \
  -outdir ./yt_karaoke_shorts
2. Dry-Run Simulation (Pratinjau Segmen Tanpa Render Video)
clipper -input "https://www.youtube.com/watch?v=xxx" -auto-detect silence -shorts -dry-run
3. Pemrosesan Antrean Banyak Video (Batch Queue)
clipper -batch-list my_urls.txt -auto-detect ai -shorts -burn-subtitles -sub-style karaoke
4. Bersihkan Cache yang Berumur Lebih dari 7 Hari
clipper -clean-cache -clean-days 7
5. Local Whisper Speech-to-Text Offline
clipper -input "my_local_video.mp4" -auto-detect ai -use-whisper -shorts -burn-subtitles -sub-style karaoke
6. Mode Interaktif Wizard
clipper -i

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
pkg
ai

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL