🔧 Action Plan: Video Pipeline

Checklist lengkap agar pipeline berjalan sempurna

📊 Status Saat Ini

✅ Dashboard HTML (49KB)TERDEPLOY
✅ Pipeline PHP BackendTERDEPLOY
✅ Pipeline Python ScriptTERDEPLOY
✅ FFmpegINSTALLED (v6.1.1)
✅ Python 3.3.2INSTALLED
✅ requestsINSTALLED
❌ edge-ttsBELUM INSTALL
❌ replicateBELUM INSTALL
❌ python-dotenvBELUM INSTALL
❌ .env (API keys)BELUM DIBUAT
❌ Nginx /pipeline/output/BELUM CONFIG
❌ Replicate API TokenBELUM DAFTAR
1

Daftar Replicate API PERLU AKSI

Replicate menyediakan API FLUX (gambar) dan Wan2.1 (video). Bayar per use, no subscription.

# Buka browser, daftar di: https://replicate.com # Setelah daftar: # 1. Klik "Account" (kanan atas) # 2. Klik "API tokens" # 3. Klik "Create token" # 4. Copy token (format: r8_xxxxx) # 5. Top up credits minimal $5 (untuk 500+ gambar)
⚠️ Biaya: FLUX $0.01/gambar, Wan2.1 $0.05/detik video. $5 credits = ~150 video. Cukup untuk testing 1-2 minggu.
2

Install Python Dependencies PERLU AKSI

3 package Python yang dibutuhkan pipeline.

# SSH ke VPS ssh -i ~/.ssh/id_ed25519_to_204 ubuntu@43.157.204.29 # Install dependencies pip3 install edge-tts replicate python-dotenv requests # Verify python3 -c "import edge_tts, replicate, dotenv; print('ALL OK')"
✅ edge-tts = Voiceover gratis (Microsoft TTS)
✅ replicate = API untuk FLUX + Wan2.1
✅ python-dotenv = Baca file .env
3

Buat File .env (API Keys) PERLU AKSI

Simpan API token di file .env supaya aman.

# Buat file .env cat > /var/www/ai-bisnis.my.id/pipeline/.env <<'EOF' # Panorama Digital AI - Video Pipeline Config # Generated: 2026-08-30 # Replicate API (untuk FLUX + Wan2.1) REPLICATE_API_TOKEN=r8_TOKEN_DARI_STEP_1 # WhatsApp (opsional, untuk notifikasi) WHATSAPP_NUMBER=6282112685085 EOF # Restrict permissions chmod 600 /var/www/ai-bisnis.my.id/pipeline/.env chown www-data:www-data /var/www/ai-bisnis.my.id/pipeline/.env # Verify cat /var/www/ai-bisnis.my.id/pipeline/.env
⚠️ PENTING: Ganti r8_TOKEN_DARI_STEP_1 dengan token asli dari Replicate!
4

Config Nginx untuk Pipeline Output PERLU AKSI

Agar video hasil pipeline bisa diakses via URL.

# Tambah location block ke nginx config sudo sed -i '/server_name ai-bisnis.my.id;/a\\ \\n # Pipeline output\\ \\n location /pipeline/output/ {\\ \\n alias /var/www/ai-bisnis.my.id/pipeline/output/;\\ \\n autoindex off;\\ \\n add_header Access-Control-Allow-Origin *;\\ \\n }' /etc/nginx/sites-enabled/ai-bisnis.my.id # Test config sudo nginx -t # Reload sudo systemctl reload nginx
✅ Hasil: Video bisa diakses di https://ai-bisnis.my.id/pipeline/output/final_xxx.mp4
5

Test Run 1 Video PERLU AKSI

Jalankan pipeline 1 video untuk memastikan semuanya jalan.

# Buka dashboard https://ai-bisnis.my.id/ide/video-ai-dashboard.html # Klik tab "⚡ Pipeline Mode" # Pilih: Umroh → Fernando → 1 Video # Klik "🚀 Mulai Pipeline" # Tunggu ~2-3 menit # Cek hasil di Gallery
⚠️ Jika gagal: Cek error di browser console (F12 → Console) atau cek log di VPS: cat /var/www/ai-bisnis.my.id/pipeline/tasks/pipeline_*.json
6

Verifikasi Semua Komponen

Setelah test run, pastikan semua bekerja:

# Cek task files ls -la /var/www/ai-bisnis.my.id/pipeline/tasks/ # Cek output videos ls -la /var/www/ai-bisnis.my.id/pipeline/output/ # Cek via API curl -s https://ai-bisnis.my.id/ide/api/pipeline.php?action=list | python3 -m json.tool # Cek via URL (setelah nginx config) curl -sI https://ai-bisnis.my.id/pipeline/output/final_xxx.mp4

💰 Total Biaya Setup

Replicate credits (top up)$5
Edge TTS (voiceover)GRATIS
FFmpeg (assembly)GRATIS
VPS (sudah ada)$0 tambahan
Total Setup $5
⚡

Quick Run (Copy-Paste Semua Sekaligus)

Jika sudah daftar Replicate dan punya token, jalankan semua command ini sekaligus:

# 1. SSH ke VPS ssh -i ~/.ssh/id_ed25519_to_204 ubuntu@43.157.204.29 # 2. Install deps + buat .env + config nginx (ganti TOKEN) pip3 install edge-tts replicate python-dotenv && \ echo "REPLICATE_API_TOKEN=r8_GANTI_DENGAN_TOKEN_ANDA" | sudo tee /var/www/ai-bisnis.my.id/pipeline/.env && \ sudo chmod 600 /var/www/ai-bisnis.my.id/pipeline/.env && \ sudo sed -i '/server_name ai-bisnis.my.id;/a\\n location /pipeline/output/ { alias /var/www/ai-bisnis.my.id/pipeline/output/; autoindex off; }' /etc/nginx/sites-enabled/ai-bisnis.my.id && \ sudo nginx -t && sudo systemctl reload nginx && \ echo "✅ SETUP SELESAI!"