YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

🎬 OpusClip Clone (gratis, self-hosted)

Un clon funcional de OpusClip que vive 100% online y gratis.

Pega una URL de YouTube β†’ recibes N clips verticales (9:16) con subtΓ­tulos animados estilo karaoke, listos para subir a TikTok / YouTube Shorts / Instagram Reels.

✨ Qué hace

  1. Descarga el video de YouTube con yt-dlp
  2. Transcribe el audio con Whisper (corre local, en CPU)
  3. Detecta los momentos virales con un LLM real vΓ­a Hugging Face Inference API (default: Qwen/Qwen2.5-7B-Instruct) β€” el LLM recibe cada candidato y devuelve un score 1-10, una razΓ³n y un tΓ­tulo sugerido
  4. Detecta el hablante con MediaPipe
  5. Reencuadra a 9:16 siguiendo al hablante
  6. Quema subtΓ­tulos animados word-by-word (estilo karaoke)
  7. Te devuelve los N mejores clips como .mp4 descargables

πŸ†“ Stack 100% gratuito

  • Hosting: Render free tier
  • Whisper: local (modelo base, ~150MB)
  • LLM scoring: Hugging Face Inference API (free tier, rate-limited)
  • Face detection: MediaPipe (local)
  • Video processing: ffmpeg (sistema)
  • UI: Gradio

πŸš€ Deploy en Render (3 minutos)

  1. Sube tu HF_TOKEN (gratis) en https://huggingface.co/settings/tokens β€” crΓ©alo con permiso de "Inference API".
  2. Crea un Web Service en Render desde este repo:
    • Render Dashboard β†’ New β†’ Web Service β†’ "Public Git Repository"
    • URL: https://huggingface.co/alexmisaila/opusclip-clone
    • Render detecta el Dockerfile automΓ‘ticamente
  3. Configura las variables de entorno (en el dashboard de Render, tab Environment):
    • HF_TOKEN = tu token de Hugging Face
    • OPUSCLIP_WHISPER_MODEL = base (recomendado para 512MB RAM)
  4. Deploy β†’ Render te da una URL tipo https://opusclip-clone-XXXX.onrender.com

⚠️ Limitaciones honestas

  • Free tier de Render duerme tras 15 min sin uso β†’ primer request del dΓ­a tarda ~30s extra
  • Whisper en CPU es lento β†’ un video de 30 min puede tardar 10-20 min en transcribir
  • HF Inference API free tier tiene rate limit (~pocas llamadas/min) β€” si lo usan muchos a la vez, se satura
  • Sin auto-publicaciΓ³n en TikTok/Shorts β€” descargas los clips y los subes tΓΊ
  • Sin "AI virality score" propietario como OpusClip real β€” usamos un LLM open-source bien prompt-engineered; la calidad es "buena" no "mΓ‘gica"
  • Sin detecciΓ³n de mΓΊltiples hablantes β€” solo sigue al principal

πŸ’» Uso local (opcional)

git clone https://huggingface.co/alexmisaila/opusclip-clone
cd opusclip-clone
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# ffmpeg debe estar instalado en el sistema (apt install ffmpeg / brew install ffmpeg)
export HF_TOKEN=hf_xxxx  # tu token de HF
python app.py

Abre http://localhost:7860

πŸ§ͺ Tests

pip install pytest
pytest -v

πŸ“ Estructura

opusclip-clone/
β”œβ”€β”€ app.py                  # UI Gradio
β”œβ”€β”€ Dockerfile              # Imagen Docker para Render
β”œβ”€β”€ render.yaml             # ConfiguraciΓ³n del servicio en Render
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
β”œβ”€β”€ opusclip/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ config.py           # Constantes y env vars
β”‚   β”œβ”€β”€ downloader.py       # yt-dlp wrapper
β”‚   β”œβ”€β”€ transcriber.py      # Whisper wrapper
β”‚   β”œβ”€β”€ highlighter.py      # LLM scoring vΓ­a HF Inference API
β”‚   β”œβ”€β”€ reframe.py          # MediaPipe face detection + crop 9:16
β”‚   β”œβ”€β”€ captions.py         # ASS karaoke subtitles
β”‚   β”œβ”€β”€ pipeline.py         # Orquestador end-to-end
β”‚   └── utils.py            # Helpers
└── tests/
    └── test_pipeline.py

πŸ“œ Licencia

MIT

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support