- 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
46 lines
1008 B
Bash
Executable File
46 lines
1008 B
Bash
Executable File
#!/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 "$@"
|