feat: Initial pipeline for Twitch highlight detection

- New 2-of-3 detection system (chat + audio + color)
- GPU support (PyTorch ROCm/CUDA ready)
- Draft mode (360p) for fast testing
- HD mode (1080p) for final render
- Auto download video + chat
- CLI pipeline script
- Documentation in Spanish
This commit is contained in:
ren
2026-02-18 20:41:58 -03:00
parent f9836a4265
commit fb8b390740
21 changed files with 1412 additions and 673 deletions

45
bajar Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/bash
# Instalar dependencias si no existen
install_deps() {
echo "Verificando dependencias..."
if ! command -v streamlink &> /dev/null; then
echo "Instalando streamlink..."
sudo pacman -S streamlink --noconfirm
fi
if ! command -v ffmpeg &> /dev/null; then
echo "Instalando ffmpeg..."
sudo pacman -S ffmpeg --noconfirm
fi
echo "Dependencias listas!"
}
# Descargar video de Twitch
download() {
if [ -z "$1" ]; then
echo "Usage: bajar <url_twitch>"
echo "Ejemplo: bajar https://www.twitch.tv/videos/2699641307"
return 1
fi
install_deps
URL="$1"
OUTPUT_FILE="./$(date +%Y%m%d_%H%M%S)_twitch.mp4"
echo "Descargando: $URL"
echo "Guardando en: $OUTPUT_FILE"
streamlink "$URL" best -o "$OUTPUT_FILE"
if [ $? -eq 0 ]; then
echo "¡Descarga completada! Archivo: $OUTPUT_FILE"
else
echo "Error en la descarga"
fi
}
download "$@"