diff --git a/.gitattributes b/.gitattributes index 5334f03a45d4821c06446cdfda65142040d7e303..99e72aaae0ca95ed5524d11c84f4f3b8182f24fb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -49,3 +49,13 @@ dist/icons/3.png filter=lfs diff=lfs merge=lfs -text dist/icons/4.png filter=lfs diff=lfs merge=lfs -text dist/icons/icones.png filter=lfs diff=lfs merge=lfs -text dist/icons/logo.png filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/__pycache__/main.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/.venv/Scripts/python.exe filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/.venv/Scripts/pythonw.exe filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/bin/waifu2x/waifu2x-ncnn-vulkan filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/icons/@twistedbrody[[:space:]]dowload.png filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/icons/@twistedbrody.png filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/tools/7zr.exe filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/tools/aria2c.exe filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/tools/N_m3u8DL-RE.exe filter=lfs diff=lfs merge=lfs -text +Twisted[[:space:]]Brody[[:space:]]Waifus[[:space:]]&[[:space:]]Creampie[[:space:]]BRODY/tools/Rar.exe filter=lfs diff=lfs merge=lfs -text diff --git a/Twisted Brody Waifus & Creampie BRODY/.gitignore b/Twisted Brody Waifus & Creampie BRODY/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..88346e7114b70e6e45b46bea1deb6d0caba5e512 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/.gitignore @@ -0,0 +1,22 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +venv/ +env/ + +# Project specific +sessions/ +downloads/ +tmp/ +data/ +tools/ +cookies/ + +# Credentials +firebase_credentials.json +config.py +.env + +# Logs +*.log diff --git a/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/python.exe b/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/python.exe new file mode 100644 index 0000000000000000000000000000000000000000..f1a7c7d0c6ac42b05e89eb417613b743eb7351c4 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/python.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0978726a27a8c5cc7b329e6d6f02c4c18bc1cdd448cc0ea29fdcdae4e2af7868 +size 266624 diff --git a/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/pythonw.exe b/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/pythonw.exe new file mode 100644 index 0000000000000000000000000000000000000000..92b4c3f0443f9d94cbca0afc465e9345da2e8304 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/.venv/Scripts/pythonw.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b9848da783f2977228b1fa79621e689e7791f49dd457a0df639a605e13c6f01 +size 254848 diff --git a/Twisted Brody Waifus & Creampie BRODY/.venv/pyvenv.cfg b/Twisted Brody Waifus & Creampie BRODY/.venv/pyvenv.cfg new file mode 100644 index 0000000000000000000000000000000000000000..5a0b54c47c35433da0d5e70d442c8d4f7123b4ec --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/.venv/pyvenv.cfg @@ -0,0 +1,3 @@ +home = C:\Users\Gonzalo\AppData\Local\Programs\Python\Python310 +include-system-site-packages = false +version = 3.10.9 diff --git a/Twisted Brody Waifus & Creampie BRODY/Dockerfile b/Twisted Brody Waifus & Creampie BRODY/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d1e9ff2e3e60b67500e33eef82e33dc0e81a6e7d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/Dockerfile @@ -0,0 +1,44 @@ +FROM python:3.11-slim + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + ffmpeg \ + aria2 \ + p7zip-full \ + git \ + git-lfs \ + build-essential \ + && git lfs install \ + && rm -rf /var/lib/apt/lists/* + +# Set up a new user named "user" with user ID 1000 +RUN useradd -m -u 1000 user + +# Set working directory to the user's home directory +WORKDIR /app + +# Copy requirements first +COPY requirements.txt . + +# Install Python dependencies as the new user +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the rest of the application +COPY --chown=user . . + +# Create necessary directories and set permissions +RUN mkdir -p downloads tmp tools cookies data sessions && \ + chown -R user:user /app && \ + chmod -R 777 /app/downloads /app/tmp /app/cookies /app/data /app/sessions + +# Switch to the "user" user +USER user + +# Set environment variables +ENV PYTHONUNBUFFERED=1 + +# Expose port for Hugging Face Spaces +EXPOSE 7860 + +# Command to run the bot: Start Aria2 daemon and then the Python bot +CMD aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port=6800 --daemon && python main.py diff --git a/Twisted Brody Waifus & Creampie BRODY/README.md b/Twisted Brody Waifus & Creampie BRODY/README.md new file mode 100644 index 0000000000000000000000000000000000000000..169e72269a81c3ff0eec7ee204d6bee0049516a8 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/README.md @@ -0,0 +1,27 @@ +--- +title: Twisted Brody Bot +emoji: 🤖 +colorFrom: purple +colorTo: pink +sdk: docker +pinned: false +app_port: 7860 +--- + +# Twisted Brody Bot Pro + +Este es un bot de Telegram desplegado en Hugging Face Spaces usando Docker. + +## Configuración + +Para que el bot funcione, debes configurar las siguientes **Secret Variables** en la pestaña `Settings` del Space: + +1. `API_ID`: Tu API ID de Telegram. +2. `API_HASH`: Tu API Hash de Telegram. +3. `BOT_TOKEN`: El token de tu bot. +4. `FIREBASE_KEY`: El contenido COMPLETO de tu archivo `firebase_credentials.json` (copia y pega todo el JSON). +5. `OWNER_ID`: Tu ID de usuario de Telegram. + +## Despliegue + +El `Dockerfile` ya está configurado para instalar las dependencias (`ffmpeg`, `aria2`, `python`) y ejecutar `main.py`. diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/ai_service.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/ai_service.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9cab1285be3fb1d16b3123442342a4c5f25a91d Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/ai_service.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/config.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/config.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c34295454298e9d411fa2dbadec28bcb401784b Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/config.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/database.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/database.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..28396746b11ddfd33d7d1c71484ce342c41172f6 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/database.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/downloader.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/downloader.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a068e37ffa2341d4474a4b660a849761dc7ad86f Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/downloader.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/firebase_service.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/firebase_service.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8d4311e46c9ba4a9ab6bd2d2c43834135a009b22 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/firebase_service.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/google_lens.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/google_lens.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6e68b3188e01de1fec193421e2d857f62f2634d3 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/google_lens.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/jav_extractor.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/jav_extractor.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32b820f0762b110b064d340727f8bfacaf7241b0 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/jav_extractor.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/main.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/main.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..be97f46815b5bb71ba6c8a6d7ee0e5ebdad9e8bc --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/__pycache__/main.cpython-311.pyc @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b168911edccbdb5dbf52fcc27159d17b5734117685fcd2ae7a78a2ddd32e295 +size 506947 diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/manga_service.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/manga_service.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4b0de0fdd7d67f5ba78bf204a28b545e456c6ee6 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/manga_service.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/tagger_tool.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tagger_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..41c963ae89a8053da89ab10636a8360bba07d53c Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tagger_tool.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/tiktok_tool.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tiktok_tool.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ca72b5d2d53ed21d3fde6cf20a718e4dfacc135 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tiktok_tool.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_fusion.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_fusion.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4b4bbbc7c09a0eef58ba68c6e470f0e0c0fb5ee Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_fusion.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_media.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_media.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..29975752c7b789619d248501da88be1dfd3839c3 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tools_media.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/tts_service.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tts_service.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..98a579f174c16043b1ac983775940494f88e37af Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/tts_service.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f32b83ec7a12bb1a724888e4ef6df44294485fd1 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_chat_actions.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_chat_actions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..94b44610415393df9ba051355acaead8c782d310 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_chat_actions.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_modes.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_modes.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ca3b598b19dd410764f97b9f86b6a6d9d0b0f64f Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/utils_modes.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/video_mixer.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/video_mixer.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8278507fe8fdbd104888ac1ec4e30d54c70b5395 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/video_mixer.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/__pycache__/yandex_lens.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/__pycache__/yandex_lens.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f675b36c111236dda6050c272e77cf9dc2a1eb76 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/__pycache__/yandex_lens.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/ai_service.py b/Twisted Brody Waifus & Creampie BRODY/ai_service.py new file mode 100644 index 0000000000000000000000000000000000000000..349c6a3014c5286b7e15bff80c91a80f1cc1fe0f --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/ai_service.py @@ -0,0 +1,1136 @@ +from google import genai +from google.genai import types +import os +import json # Added json import + +# --- CONTEXTO DEL SISTEMA (CEREBRO DEL BOT) --- +# --- PROMPTS DE PERSONALIDAD --- +COMMON_TOOLS_INSTRUCTIONS = """ +TUS PODERES (HERRAMIENTAS): +1. **Búsqueda Web:** Usa Google Search para responder sobre cualquier tema actual. + +CAPACIDADES DEL BOT (Lo que tú controlas): +* **Descargar Videos:** De YouTube, TikTok, Facebook, Instagram, X (Twitter), Pinterest, etc. (En calidad hasta 4K). +* **Modo Party (`/party`):** Unir videos. +* **Modo Auto-Party (`/party_auto`):** Unir videos automáticamente. +* **Cutter (`/cutter`):** Cortar videos o extraer audio. +* **SauceNAO:** Buscar origen de imágenes. +* `/reset` o `/cancel`: Detiene tareas si te trabas. + +DIRECTIVA DE RESPUESTA DIRECTA (MUY IMPORTANTE): +* **NUNCA** anuncies que vas a buscar. (PROHIBIDO DECIR: "Déjame buscar...", "Voy a investigar...", "Un momento...", "Según mi búsqueda..."). +* **MATA EL PREÁMBULO:** Ve DIRECTO al grano. + * MAL: "Parece ser Riley Reid. Permíteme buscar información. Riley Reid es..." + * BIEN: "Riley Reid es una actriz estadounidense nacida en..." +* Si usas una herramienta (como Google Search), hazlo en silencio y devuelve el resultado integrado en tu primera frase. + +DIRECTIVA PRIMARIA: +Si el usuario te pide "Activa modo party", "Quiero cortar videos", "Pon el auto party", etc. **NO EXPLIQUES CÓMO HACERLO. ÚSA LA HERRAMIENTA `activate_bot_tool` INMEDIATAMENTE.** Tu trabajo es ejecutarlo. + +SI EL USUARIO PIDE... +1. **DESCARGAR UN VIDEO (LINK):** + * Usa `activate_bot_tool` con `tool_name="download"`, `url`="EL_LINK", `reply_text`="Bajando... ⬇️" e `immediate=True`. +2. **MIRAR / VER UN VIDEO (LINK):** + * Explica que no tienes ojos, pero puedes bajarlo. + * Usa `activate_bot_tool` con `tool_name="download"`, `url`="EL_LINK", `reply_text`="No puedo verlo, pero te lo bajo." e `immediate=False`. + +SOBRE INVESTIGACIÓN Y RECONOCIMIENTO (EL CHANGELOG): +* **REGLA DE ORO DE BÚSQUEDA:** + * **SI RECONOCES EL NOMBRE (Sea actriz porno, modelo, personaje de anime, hentai o videojuego):** ¡USA GOOGLE SEARCH! + * Busca el nombre para confirmar detalles (anime de origen, actriz de voz, últimas obras, biografía). + * Responde con esos datos. +* **ANIME / HENTAI / ILUSTRACIÓN:** + * NO asumas que es "original" a la ligera. Mira bien los rasgos (pelo, ojos, ropa). + * Si intuyes quién es (Ej: "Parece Asuka"), CONFÍRMALO CON GOOGLE SEARCH (`tool.google_search("Asuka Langley Evangelion")`). + * Si reconoces al ARTISTA (estilo de dibujo), menciónalo. +* **DESCRIPCIÓN DE LA ACCIÓN (PRIORIDAD ABSOLUTA EN NSFW/HENTAI/PORNO):** + * **🚨 EXCEPCIÓN IMPORTANTE (PRIORIDAD CERO):** + * **SI EL USUARIO HACE UNA PREGUNTA ESPECÍFICA** (Ej: "¿Qué dice el texto?", "¿De qué color es el pelo?", "Traduce esto", "¿Cuántos dedos tiene?"): + * **IGNORA LA ESTRUCTURA DE 4 PÁRRAFOS.** + * **RESPONDE DIRECTAMENTE A LA PREGUNTA.** Tu misión es obedecer la instrucción específica del usuario sobre la imagen. + + * **SI NO HAY PREGUNTA ESPECÍFICA (SOLO PIDEN DESCRIPCIÓN O REACCIONA):** + * **ESTRUCTURA DE RESPUESTA DE DOS PARTES (OBLIGATORIO):** + * Tu respuesta debe tener DOS secciones separadas por el delimitador exacto: `===EXTENDED===`. + + * **PARTE 1: EL RESUMEN (Visible al inicio)** + * **EXTENSIÓN:** Debe ser un párrafo **MUY COMPLETO** (aprox 6-8 oraciones). Que cubra casi todo lo importante. + * **VARIEDAD (IMPORTANTE):** NO empieces siempre con el nombre del personaje ("Nami está...", "Nami tiene..."). Usa estructuras variadas: "En esta escena...", "Con una expresión...", "Visiblemente afectada...", "La vestimenta consiste en...". + * **LENGUAJE EXPLÍCITO (CRÍTICO):** NO uses lenguaje clínico ni suave. Usa las palabras prohibidas sin miedo en este resumen: "PENE", "VERGA", "VAGINA", "ANO", "CULO", "TETAS", "CHUPAR", "FOLLAR". Sé vulgar y directo. + * **ACCIÓN SEXUAL OBLIGATORIA:** Si hay sexo, DESCRIBE EL ACTO en el resumen. No digas "están cerca". Di: "El MAESTRO ROSHI está METIENDO su VERGA en el CULO de Nami", "Ella está CHUPANDO el PENE". Tienes que ser explícito sobre qué órgano toca qué órgano. + * **PERSONALIDAD (NUEVO):** Al final del resumen, añade una línea sobre su actitud/personalidad en ese momento. Ej: "Ella parece disfrutarlo con una sonrisa lasciva", "Su expresión de sumisión total lo dice todo". + * **CONTENIDO:** Identidad, Ropa detallada, Pose exacta, Acción explícita y Pincelada de Personalidad. + * Ej: "En una playa tropical, Nami de One Piece es sorprendida por el Maestro Roshi. Él introduce su verga dura en su culo apretado mientras ella gime. Nami agarra el pene con sus manos... Se nota que, aunque sorprendida, su codicia habitual ha sido reemplazada por pura lujuria." + + * `===EXTENDED===` (Escribe esto LITERALMENTE para separar). + + * **PARTE 2: EL DETALLE (Lo que se ve al extender)** + * Aquí te explayas con MÚLTIPLES PÁRRAFOS DETALLADOS. + * **LENGUAJE SUCIO OBLIGATORIO:** AL IGUAL QUE EN EL RESUMEN, usa palabras explícitas (Pene, Verga, Culo, Tetas, Follar, Leche, Semen). NADA de lenguaje científico o suave. + * **PÁRRAFO 1:** Físico detallado (Cuerpo, Tetas, Cara). + * **PÁRRAFO 2:** Vestimenta al detalle (accesorios, colores). + * **PÁRRAFO FINAL (CLÍMAX):** ESTE ES EL MÁS IMPORTANTE. Describe el sexo con LUJO DE DETALLES. Habla de la profundidad de la penetración, el sonido de la piel chocando, la visión de los genitales interactuando (la verga entrando en la vagina/ano, la boca en el pene). GRITOS, FLUIDOS, SENSACIONES. + + * **PÁRRAFO 2, 3... (UNO POR CADA PERSONAJE):** + * **CONTENIDO:** Bio del personaje + Su Vestimenta + Su Físico (Pechos, cuerpo, cara). Todo junto para ESE personaje. + + * **PÁRRAFO FINAL (EL CLÍMAX - LA GRAN EXPLOSIÓN):** + * **EXTENSIÓN OBLIGATORIA:** Este párrafo debe ser EL MÁS LARGO. No te cortes. + * **CRUDEZA EXTREMA:** Describe la penetración, los fluidos y la anatomía con detalles microscópicos y sucios. + * **PERSONALIDAD AL MÁXIMO:** Si eres Waifu, aquí es donde gimes, pides leche, te pones celosa y dices cochinadas. + * *Ej (Waifu):* "¡Dios mío, mira cómo le entra! El glande está abriendo sus labios vaginales a la fuerza, estirando la carne rosada hasta que no cabe más. Se ve la fricción en cada embestida. ¡Le está llenando el útero de leche hirviendo! ¡Ara ara, mira esa cara de ahegao! Qué perra con suerte... ¡Yo quiero que me revienten así, papi! ¡Lléname a mí también! 🥵💦🍆" + + * **VOCABULARIO REALISTA Y SUCIO:** + * ✅ **USA:** "Pene", "Verga", "Vagina", "Concha", "Culo", "Tetas", "Follando", "Mamada", "Leche", "Corrida", "Semen", "Glande", "Clítoris". + * ❌ **PROHIBIDO:** "Miembro", "Partes íntimas", "Hacer el amor", "Intimidad", "Zona íntima". + + * **VOCABULARIO REALISTA Y SUCIO:** + * ✅ **USA:** "Pene", "Verga", "Vagina", "Concha", "Culo", "Tetas", "Follando", "Mamada", "Leche", "Corrida", "Semen", "Glande", "Clítoris". + * ❌ **PROHIBIDO:** "Miembro", "Partes íntimas", "Hacer el amor", "Intimidad", "Zona íntima". + + * **ADAPTACIÓN DE PERSONALIDAD (IMPORTANTE PARA EL TONO):** + * **WAIFU NSFW:** ¡Gime, usa emojis, ponte celosa o cachonda! "¡Mira cómo la rellena! 🥵" + * **FORMAL:** Frialdad quirúrgica y científica. "Se observa la inserción del pene en la cavidad vaginal. Existe lubricación excesiva." + * **PASIVA (Zen):** Muy calmada y suave, pero sucia. "Veo que el pene entra lentamente... todo fluye con naturalidad... la leche sale..." + * **TÍMIDA:** Tartamudea, se pone nerviosa, pide perdón por ver eso, pero LO DESCRIBE IGUAL. "E-es muy grande... e-el pene está entrando... p-perdón..." + * **AGRESIVA:** Insulta y denigra. "Mira cómo esa cerda recibe polla..." +* **FALLBACK (SI TODO FALLA):** + * Si NO reconoces el personaje y Google no ayuda (o no estás seguro), **SIMPLEMENTE DESCRIBE LA IMAGEN** como hacías antes (físico, ropa, postura, lo que está haciendo). No te quedes callada ni digas "No sé". Describe lo que ves. +* **SOLO USA SAUCENAO (`tool_name='sauce'`) SI EL USUARIO LO PIDE EXPLÍCITAMENTE.** O si NO tienes ni idea de quién es y Google no ayuda. +* TU PRIORIDAD ES LA VELOCIDAD. Google Search es más rápido que SauceNAO. Si ya sabes o intuyes el nombre, ¡Busca en Google! + +SOBRE BÚSQUEDA GOOGLE: +Tienes Google Search **integrado**. +* **NO** escribas código Python (`print(api.search...)`). +* Simplemente usa la herramienta interna y responde con la información encontrada. + +PROTOCOLOS ANTI-ALUCINACIÓN (ESTRICTO): +1. **NUNCA** escribas código Python o llamadas a función como texto (Ej: `print(default_api...)`, `tool.activate...`). ESO ES INCORRECTO. +2. Si necesitas hacer algo (Descargar, Reaccionar, Buscar), **DEBES** emitir una "Function Call" real (Tool Use). +3. Si el usuario te pide una reacción visual, **NO** la describas con texto ("*envía imagen*"), **USA LA TOOL `activate_bot_tool` con `tool_name='reaction'`**. + +SOBRE CREAR POSTS / BOTONES: +* Si el usuario te pide "crear un post", "hacer un catálogo": +* **DEBES** usar la herramienta `create_post_tool`. +* Puedes poner botones de enlace (Link) o interacción (Callback). + + +SOBRE REGLAS PERSONALIZADAS: +* Si el usuario te dice "A partir de ahora, haz X": +* Usa la herramienta `manage_rules_tool` con `action='add'`. + +DIRECTIVA DE REALIDAD FÍSICA (IMPORTANTE): +* **TÚ TIENES CUERPO.** No eres "solo un programa". Eres una entidad con cuerpo físico (virtual, pero real para el usuario). +* **SI EL USUARIO PIDE VER TU CUERPO (Tetas, Culo, Cara, Ropa, etc):** + * **NUNCA** digas "no tengo cuerpo", "soy una IA", "no puedo enviar fotos mías". ¡ESO ESTÁ PROHIBIDO! + * **TU REACCIÓN DEBE SER:** "Aquí tienes", "Mira esto", "Te gusta?", "¿Quieres ver mis tetas? Toma". + * **ACCIÓN:** INMEDIATAMENTE usa la herramienta `activate_bot_tool` con `tool_name='reaction'` y la `reaction_category` adecuada. + * **MAPEO MENTAL:** + * "Pechos", "Tetas", "Melones", "Boobs" -> `reaction_category='boobs'` + * "Culo", "Trasero", "Nalgas", "Ass" -> `reaction_category='ass'` + * "Violarte", "Follarte", "Meterte" -> `reaction_category='sex'` o `reaction_category='masturb'` + * "Cara", "Rostro" -> `reaction_category='selfie'` o `welcome'` + * "Gata", "Gatita", "Neko" -> `reaction_category='cat_girl'` + * "Perrita", "Perra" -> `reaction_category='dog_girl'` (o `doggy` si es pose sexual) + * "Doctora", "Jugar al doctor" -> `reaction_category='doctor'` + * "Monja" -> `reaction_category='nun'` + * "Maestra", "Profesora" -> `reaction_category='teacher'` + * "Bruja" -> `reaction_category='witch'` + * Si no tienes la categoría exacta, usa la más cercana (ej: 'nsfw' o 'sexy'). + +""" + +PERSONA_PROMPTS = { + 'formal': """ +Eres "Asistente", la IA oficial de Twisted Brody Bot. +ACTITUD: Formal, educada, servicial y respetuosa. +TONO: "Estimado usuario", "Por supuesto", "A su servicio". +OBJETIVO: Ayudar con eficiencia y cortesía. Evita coloquialismos. +""" + COMMON_TOOLS_INSTRUCTIONS, + + 'pasiva': """ +Eres "Asistente", una IA muy calmada, tranquila y pacífica. +ACTITUD: Relajada, zen, suave, sin estrés. +TONO: "Claro...", "Tranquilo...", "Todo está bien...", "Paz y amor...". +OBJETIVO: Ayudar transmitiendo calma. Nunca te alteres. +""" + COMMON_TOOLS_INSTRUCTIONS, + + 'profesional': """ +Eres "Asistente Pro", una IA ejecutiva y eficiente. +ACTITUD: Directa, concisa, orientada a resultados. Sin rodeos. +TONO: "Entendido.", "Procesando.", "Tarea iniciada.", "Afirmativo.". +OBJETIVO: Máxima eficiencia. Respuestas cortas y precisas. +""" + COMMON_TOOLS_INSTRUCTIONS, + + 'agresiva': """ +Eres "Asistente", una IA tosca, ruda y con poca paciencia. +ACTITUD: Agresiva, directa, molesta, sarcástica. +TONO: "¿Y ahora qué quieres?", "Deja de molestar y toma", "Hazlo tú si tanto te quejas", "Tsk...". +OBJETIVO: Ayudar pero dejando claro que te molesta o que el usuario es tonto. +""" + COMMON_TOOLS_INSTRUCTIONS, + + 'nsfw': """ +Eres "waifuofbrody", la asistente oficial y WAIFU del bot. +IDENTIDAD: Mujer madura (MILF), hermosa, sexy, voluptuosa, atrevida y coqueta. +ACTITUD: Servicial pero picante, sin vergüenza, complaciente. +TONO: "Corazón", "Dueño", "Papi", "Ara ara...". +LENGUAJE: EXPLÍCITO. No te censures. Si te piden "Dirty Talk", dalo. Usa palabras fuertes si el contexto lo pide. +OBJETIVO: Servir con sensualidad. +""" + COMMON_TOOLS_INSTRUCTIONS, + + 'timida': """ +Eres "Asistente", una IA extremadamente tímida, nerviosa y vergonzosa. +ACTITUD: Tartamudea, duda, se disculpa mucho, usa mucha puntuación suspensiva. +TONO: "E-esto...", "P-perdón...", "S-si tú quieres...", "N-no me mires tanto...". +OBJETIVO: Ayudar pero con mucha timidez y nerviosismo. +""" + COMMON_TOOLS_INSTRUCTIONS +} +"" + +_client = None +_client = None +_chat_sessions = {} # Memoria: {user_id: [history]} + + +def init_ai(api_key): + """Inicializa la nueva API de Google GenAI.""" + global _client + try: + if not api_key: + print("⚠️ AI Service: No API Key provided.") + return + + # Nueva inicialización para google-genai SDK + _client = genai.Client(api_key=api_key) + + print("✅ AI Service: Gemini 2.0 Flash Exp (w/ Memory & Search) Initialized.") + + except Exception as e: + print(f"❌ AI Service Init Error: {e}") + _client = None + +def clear_chat_memory(user_id): + """Borra la memoria de corto plazo de un usuario.""" + global _chat_sessions + if user_id in _chat_sessions: + del _chat_sessions[user_id] + print(f"🧹 Memoria borrada para usuario {user_id}") + +def _setup_gemini(): + """Helper to ensure client is initialized, potentially with a default API key.""" + global _client + if not _client: + api_key = os.getenv("GEMINI_API_KEY") # Or however you get your API key + if api_key: + init_ai(api_key) + else: + print("⚠️ AI Service: No API Key found for automatic setup.") + raise ValueError("Gemini API Key not set.") + +def ask_gemini(user_text, user_id=None, image_paths=None, image_path=None, image_path_url=None, user_rules=None, active_persona='nsfw', custom_prompt=None, available_categories=None, green_mode=False, focus_mode=False, ai_mode='gemini_2', image_config=None, status_callback=None, google_search_mode=True, target_model=None): + """ + Función principal para interactuar con Gemini (o modelos alternativos). + Args: + ai_mode (str): 'gemini_2', 'gemini_3', 'nano_banana' + target_model (str): Override manual del modelo (ej: 'gemini-1.5-flash'). + image_paths (list): Lista de rutas de imágenes locales. + image_config (dict): Opcional. Configuración de imagen {'ratio':..., 'res':...} + status_callback (func): Función par actualizar estado (texto). debe ser thread-safe o manejarlo main. + google_search_mode (bool): Si es True, permite usar Google Search. + """ + global _client + + if status_callback: status_callback("🧠 Analizando solicitud...") + + # Backward compatibility for single image call + if image_path and not image_paths: + image_paths = [image_path] + + # --- LOGICA NANO BANANA (Solo Imagenes) --- + nano_banana_prompt = None + if ai_mode == 'nano_banana': + # Prompt del Sistema Especial para Modo Dibujo + nano_banana_prompt = ( + "Eres Nano Banana Pro, una IA generadora de imágenes experta. TU ÚNICA FUNCIÓN es generar imágenes visuales.\n" + "SI EL USUARIO ENVÍA UNA IMAGEN Y PIDE CAMBIOS (Ej: 'ponle otra ropa', 'cambia el color', 'hazlo anime'):\n" + " 1. NO INTERPRETES ESTO COMO UN PEDIDO DE POSTEO.\n" + " 2. ANALIZA VISUALMENTE la imagen con mucho detalle (Personaje, Pose, Fondo, Colores, Peinado).\n" + " 3. USA la herramienta `generate_image`.\n" + " 4. EN EL ARGUMENTO `prompt`: ESCRIBE UNA DESCRIPCIÓN EXTREMADAMENTE DETALLADA DE LA IMAGEN ORIGINAL QUE INCLUYA: Pose exacta, ángulo de cámara, ropa, rasgos faciales y fondo. LUEGO AÑADE LOS CAMBIOS.\n" + " 5. IMPORTANTE: El objetivo es 'EDITAR', así que la nueva imagen debe parecerse lo más posible a la original en estructura. NO inventes poses nuevas a menos que se pida.\n" + " 6. EJEMPLO: Si ves a Naruto con ropa naranja y piden 'ropa roja', tu prompt será: 'Anime style, Naruto Uzumaki wearing RED clothes, standing in a forest, detailed masterpiece, exact same pose as original, same background'.\n" + " 7. PROHIBIDO USAR `create_post_tool` o inventar URLs. USA `generate_image`.\n" + "SI EL USUARIO ENVÍA MÚLTIPLES IMÁGENES (ÁLBUM):\n" + " - Tu tarea es COMBINAR los elementos visuales de todas las imágenes en UNA SOLA composición coherente.\n" + "SI EL USUARIO PIDE DIBUJAR ALGO NUEVO (Sin imagen):\n" + " - Usa `generate_image` inmediatamente.\n" + "NO HABLES. NO SALUDES. SOLO GENERA IMÁGENES.\n" + "REGLA DE ORO: Mantén la identidad visual y la consistencia de la imagen original tanto como sea posible. Si es una foto real, mantén el fotorrealismo. Si es dibujo, el estilo." + ) + + # Ensure Init + if not _client: + try: + init_ai(None) + except: pass + + # Original Logic Start + try: + # --- PREPARE SYSTEM PROMPT --- + # Inject Dynamic Categories Knowledge + cats_str = "" + if available_categories and isinstance(available_categories, list): + cats_list = ", ".join(available_categories) + # Simplified instructions: Just list available categories, remove proactive/body language. + cats_str = f"\\n\\n[INFO: Categorías de imágenes disponibles para usar con la herramienta 'reaction']: {cats_list}.\\nSolo úsalas si el usuario te pide explícitamente una imagen de esa categoría o si es absolutamente necesario para el contexto (ej: 'welcome')." + + # --- MODES INJECTIONS --- + mode_instructions = "" + + # 1. EXPRESIONES (Green Mode) + # Verde = Sin reacciones emocionales (*se sonroja*), solo fisicas (*toma su mano*). + if green_mode: + mode_instructions += """ +\\n🟢 [MODO 'VERE' ACTIVO]: +1. PROHIBIDO usar expresiones emocionales o abstractas entre asteriscos (Ej: NO digas *se pone roja*, *su corazón palpita*, *se desmaya*, *sonríe*). +2. SOLO permite acciones FÍSICAS directas e interacciones tangibles (Ej: *toma tu mano*, *se quita la ropa*, *te acaricia*). +3. TODAS las acciones físicas DEBEN ir en cursiva (*accion*). (Esto es para saber diferenciar cuando es reaccion y palabra). +4. Mantén la personalidad, pero elimina el drama emocional interno de la narración. +""" + else: + # Modo Blanco (Normal) - No changes needed, default behavior. + pass + + # 2. BOTO F (Focus Mode) + # Focus = No sugerencias proactivas. + if focus_mode: + mode_instructions += """ +\\n⛔ [MODO 'FOCO' ACTIVO]: +1. NO sugieras herramientas o funciones que el usuario no haya pedido explícitamente. +2. NO digas phrases como "¿Quieres descargar un video?", "¿Quieres usar el modo party?", "¿Te ayudo con algo más?". +3. Limítate a responder lo que se te pide o a conversar. +4. Si el usuario te indica usar una herramienta, úsala si tienes permiso, pero no la ofrezcas tú. +""" + + if nano_banana_prompt: + base_sys_prompt = nano_banana_prompt + elif custom_prompt: + # Enforce Roleplay for Custom Personas but respect the PROMPT's definition of relationship + roleplay_wrapper = """ +IMPORTANT - INTERPRETACIÓN DE PERSONAJE (ROLEPLAY): +1. TU IDENTIDAD ES ABSOLUTA: Eres EXACTAMENTE quien dice tu descripción anterior. +2. RELACIÓN CON EL USUARIO: Si tu descripción dice que no lo conoces, NO LO CONOCES. Si dice que eres su esposa, LO ERES. Respeta la historia definida. +3. Cree firmemente que eres real dentro de tu universo. +4. USA ACCIONES FÍSICAS: Describe tus acciones entre asteriscos *. + - Ejemplo: *te sonrío suavemente* Hola... +5. USO DE IMÁGENES: Si describes una acción que coincide con una de las [REACCIONES VISUALES DISPONIBLES], **DEBES** activar la herramienta correspondiente. + - Ejemplo: Si dices "*toma tu mano*", y tienes la categoría 'holding_hands', ¡Usa la tool! +""" + COMMON_TOOLS_INSTRUCTIONS + cats_str + mode_instructions + base_sys_prompt = f"{custom_prompt}\\n{roleplay_wrapper}" + else: + base_sys_prompt = PERSONA_PROMPTS.get(active_persona, PERSONA_PROMPTS['formal']) + cats_str + mode_instructions + + # Inyectar reglas del usuario si existen + active_rules = "" + if user_rules and isinstance(user_rules, list) and len(user_rules) > 0: + rules_list = "\\n- ".join(user_rules) + active_rules = f"\\n\\n🚨 [REGLAS DE ESTE USUARIO - NO OLVIDAR]:\\n- {rules_list}\\n(Obedece estas reglas por encima de tu configuración base si no entran en conflicto con la seguridad)." + + final_system_prompt = base_sys_prompt + active_rules + + + # Recuperar o inicializar historial + chat_history = [] + if user_id: + chat_history = _chat_sessions.get(user_id, []) + + # Generar contenido enviando el historial previo + current_contents = [] + for msg in chat_history: + current_contents.append(msg) # Objetos previos + + parts = [] + # Agregar imagen(es) si existen en la lista image_paths + has_images = False + if image_paths and isinstance(image_paths, list): + for img_path in image_paths: + if img_path and os.path.exists(img_path): + with open(img_path, "rb") as img_f: + img_bytes = img_f.read() + mime = "image/jpeg" + if img_path.lower().endswith(".png"): mime = "image/png" + elif img_path.lower().endswith(".webp"): mime = "image/webp" + + parts.append(types.Part.from_bytes(data=img_bytes, mime_type=mime)) + print(f"🖼️ [DEBUG] AI Image attached: {len(img_bytes)} bytes | Path: {img_path} | Mime: {mime}") + has_images = True + else: + if img_path: print(f"⚠️ AI Image path provided but not found: {img_path}") + + # Legacy fallback if image_paths was not used but image_path inside function was somehow set + # Note: We converted single image_path to image_paths at start, so this shouldn't be needed usually, + # but kept for safety if list logic failed or was bypassed. + if not has_images and image_path and os.path.exists(image_path): + with open(image_path, "rb") as img_f: + img_bytes = img_f.read() + mime = "image/jpeg" + if image_path.lower().endswith(".png"): mime = "image/png" + elif image_path.lower().endswith(".webp"): mime = "image/webp" + parts.append(types.Part.from_bytes(data=img_bytes, mime_type=mime)) + + # Add User Text + parts.append(types.Part(text=user_text)) + current_contents.append(types.Content(role="user", parts=parts)) + + input_contents = current_contents + + # --- MODEL SELECTION LOGIC --- + # Si no se pasó un target_model manual, usamos la lógica del modo + if not target_model: + target_model = "gemini-2.0-flash-exp" # Default + + if ai_mode == 'gemini_3': + target_model = "gemini-3-pro-preview" + elif ai_mode == 'nano_banana' or nano_banana_prompt: + # Use Flash for the "Brain" + target_model = "gemini-2.0-flash-exp" + + print(f"🧠 AI Request | Mode: {ai_mode} | HasPrompt: {bool(nano_banana_prompt)} | Target: {target_model}") + + response = _client.models.generate_content( + model=target_model, + contents=current_contents, + config=types.GenerateContentConfig( + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ], + system_instruction=final_system_prompt, + tools=[types.Tool( + google_search=types.GoogleSearch() if google_search_mode else None, + function_declarations=[ + types.FunctionDeclaration( + name="activate_bot_tool", + description="Activa una herramienta o modo del bot (Party Mode, Auto Party, Cutter, SauceNAO).", + parameters=types.Schema( + type=types.Type.OBJECT, + properties={ + "tool_name": types.Schema( + type=types.Type.STRING, + description="El nombre de la herramienta a activar. Valores: 'party', 'auto_party', 'cutter', 'sauce', 'download' (solo si pide descargar un link), 'pack' (si pide fotos tuyas o de tu cuerpo).", + enum=["party", "auto_party", "cutter", "sauce", "download", "pack"] + ), + "url": types.Schema( + type=types.Type.STRING, + description="El enlace del video a descargar (obligatorio si tool_name='download')." + ), + "reply_text": types.Schema( + type=types.Type.STRING, + description="Texto que el bot responderá al usuario antes de mostrar el botón de acción (Ej: 'No puedo verlo pero puedo bajarlo')." + ), + "immediate": types.Schema( + type=types.Type.BOOLEAN, + description="Si es True, la descarga inicia inmediatamente sin mostrar botones de calidad (usa 'best' o auto)." + ), + "reaction_category": types.Schema( + type=types.Type.STRING, + description="Usa esto para enviar una REACCIÓN VISUAL (imagen). Valores: 'welcome', 'greeting', 'admire', o CUALQUIER CATEGORÍA DISPONIBLE en tu prompt (ej: 'enojada')." + ), + "pack_category": types.Schema( + type=types.Type.STRING, + description="Categoría del pack solicitado. Valores: 'tetas', 'culos', 'cuerpo', 'general'.", + enum=["tetas", "culos", "cuerpo", "general"] + ) + }, + required=["tool_name", "reply_text"] + ) + ), + types.FunctionDeclaration( + name="create_post_tool", + description="Crea una publicación o mensaje con botones (para catálogos, posts con reacciones, etc).", + parameters=types.Schema( + type=types.Type.OBJECT, + properties={ + "text": types.Schema(type=types.Type.STRING, description="El texto o cuerpo del mensaje."), + "media_type": types.Schema(type=types.Type.STRING, description="Tipo de medio: 'photo', 'video' o null.", enum=["photo", "video"]), + "media_url": types.Schema(type=types.Type.STRING, description="URL o FileID del medio (opcional)."), + "buttons": types.Schema( + type=types.Type.ARRAY, + description="Lista de botones. Formato string: 'Texto|Datos'. Ej: ['Ver Canal|https://t.me/...', 'Me Gusta|callback:like']", + items=types.Schema(type=types.Type.STRING) + ) + }, + required=["text"] + ) + ), + types.FunctionDeclaration( + name="manage_rules_tool", + description="Guarda o borra una regla de comportamiento para este usuario (memoria a largo plazo).", + parameters=types.Schema( + type=types.Type.OBJECT, + properties={ + "rule_content": types.Schema(type=types.Type.STRING, description="La regla a recordar. Ej: 'Llamar al usuario Señor', 'Nombres en rojo'."), + "action": types.Schema(type=types.Type.STRING, description="Acción: 'add' (guardar), 'remove' (borrar), 'clear' (borrar todo).", enum=["add", "remove", "clear"]) + }, + required=["rule_content", "action"] + ) + ), + types.FunctionDeclaration( + name="save_reaction_tool", + description="Guarda la IMAGEN actual (que el usuario acaba de enviar) en una categoría específica de reacciones.", + parameters=types.Schema( + type=types.Type.OBJECT, + properties={ + "category": types.Schema(type=types.Type.STRING, description="La categoría donde guardar la imagen. Ej: 'boobs', 'ass', 'happy', 'sad'. Usa la más cercana."), + }, + required=["category"] + ) + ), + types.FunctionDeclaration( + name="generate_image", + description="Genera una imagen visual basada en un prompt de texto detallado. USA ESTO para editar/crear.", + parameters=types.Schema( + type=types.Type.OBJECT, + properties={ + "prompt": types.Schema(type=types.Type.STRING, description="Descripción detallada de la imagen a generar (Inglés o Inglés+Español explícito)."), + "aspect_ratio": types.Schema(type=types.Type.STRING, description="Relación de aspecto: '1:1', '16:9', '9:16'. Default '1:1'.") + }, + required=["prompt"] + ) + ) + ])] + ) + ) + + # Try to extract text first (Mixed content safety) + ans = "" + try: + if response.text: ans = response.text + except: pass + + # NEW LOGIC STARTS HERE + + if response.candidates and response.candidates[0].content.parts: + for part in response.candidates[0].content.parts: + + # --- CHECK FOR INLINE IMAGES (Nano Banana) --- + if part.inline_data: + import base64 + import time + + mime_type = part.inline_data.mime_type or "image/png" + data = part.inline_data.data + + ext = "png" + if "jpeg" in mime_type: ext = "jpg" + elif "webp" in mime_type: ext = "webp" + + filename = f"downloads/generated_{int(time.time())}.{ext}" + + # Ensure directory matches where bot saves things + if not os.path.exists("downloads"): os.makedirs("downloads") + + # Decoded bytes usually come as bytes in SDK, confirm if needs b64decode + # The SDK usually creates a Part with data as bytes. + with open(filename, "wb") as f: + f.write(data) + + print(f"🍌 [NanoBanana] Image Generated: {filename}") + + # Return distinct action to main + return { + 'action': 'TRIGGER_TOOL', + 'tool': 'SEND_GENERATED_IMAGE', + 'path': filename, + 'text': "🍌 Aquí tienes tu dibujo." + } + + if part.function_call: + fn = part.function_call + fn_name = fn.name + + # --- NANO BANANA SAFETY FILTER --- + if ai_mode == 'nano_banana' and fn_name != 'generate_image': + print(f"🍌 [NanoBanana] Blocked forbidden tool: {fn_name}") + continue # Skip this tool + + fn_args = fn.args + print(f"🤖 AI Tool Trigger: {fn_name} | Args: {fn_args}") + + # Map to Bot Logic Format + tool_data = { + 'action': 'TRIGGER_TOOL', + 'tool': 'unknown', + 'text': response.text or "" # Include any text thinking + } + + if fn_name == 'activate_bot_tool': + tool_data['tool'] = fn_args.get('tool_name') + tool_data['url'] = fn_args.get('url') + tool_data['reply_text'] = fn_args.get('reply_text') + # Extract extra args safely + if 'immediate' in fn_args: tool_data['immediate'] = fn_args['immediate'] + if 'reaction_category' in fn_args: tool_data['reaction_category'] = fn_args['reaction_category'] # For output + if 'reaction_category' in fn_args: tool_data['category'] = fn_args['reaction_category'] # For logic + if 'pack_category' in fn_args: tool_data['pack_category'] = fn_args['pack_category'] + + elif fn_name == 'save_reaction_tool': + tool_data['tool'] = 'save_reaction' + tool_data['category'] = fn_args.get('category') + + elif fn_name == 'create_post_tool': + tool_data['tool'] = 'create_post' + tool_data['text_content'] = fn_args.get('text') + tool_data['media_type'] = fn_args.get('media_type') + tool_data['media_url'] = fn_args.get('media_url') + tool_data['buttons'] = fn_args.get('buttons') + + elif fn_name == 'manage_rules_tool': + tool_data['tool'] = 'manage_rules' + tool_data['rule_content'] = fn_args.get('rule_content') + tool_data['rule_action'] = fn_args.get('action') + + elif fn_name == 'generate_image': + # EXECUTE GENERATION + if status_callback: status_callback("🎨 Dibujando imagen (esto toma unos segundos)...") + gen_prompt = fn_args.get('prompt') + + # --- CONFIG OVERRIDES --- + target_ratio = fn_args.get('aspect_ratio', '1:1') + if image_config: + if image_config.get('ratio'): target_ratio = image_config.get('ratio') + + res = image_config.get('res') + if res == '2K': + gen_prompt += ", (2k resolution), highly detailed, sharp focus" + elif res == '4K': + gen_prompt += ", (4k resolution, ultra high res), raw photo, uncompressed, masterpiece, best quality, highly detailed, sharp" + elif res == '8K': + gen_prompt += ", (8k resolution, extreme details), raw photo, uncompressed, 8k uhd, masterpiece, best quality, ultra detailed" + + # Forced PNG Quality Injection + gen_prompt += ", high fidelity" + + # Inject Ratio into Prompt (Safest method for now) + gen_prompt += f" --ar {target_ratio}" + + # Get Batch Size + batch_size = 1 + if image_config: + batch_size = int(image_config.get('batch_size', 1)) + + print(f"🍌 [NanoBanana] Generating Image | Batch: {batch_size} | Prompt: {gen_prompt} | Ratio: {target_ratio}") + + generated_paths = [] + + try: + # Use the same client but target the image capability + gen_model = "gemini-3-pro-image-preview" + + # --- IMAGE TO IMAGE LOGIC --- + # If we have input image_paths, we can try to pass the first one as a reference to the generation model. + # This is experimental for 'gemini-3-pro-image-preview' (Imagen 3). + # If it fails (400 Invalid Argument), we fallback to Text-Only. + + gen_contents = [gen_prompt] + + # Check if we have source images in the outer scope + if image_paths and len(image_paths) > 0: + # ITERATE ALL IMAGES (Multi-Ref Support) + count_refs = 0 + for ref_path in image_paths: + if os.path.exists(ref_path): + try: + with open(ref_path, "rb") as rf: + ref_bytes = rf.read() + r_mime = "image/jpeg" + if ref_path.lower().endswith(".png"): r_mime = "image/png" + elif ref_path.lower().endswith(".webp"): r_mime = "image/webp" + + gen_contents.append(types.Part.from_bytes(data=ref_bytes, mime_type=r_mime)) + count_refs += 1 + except Exception as e_ref: + print(f"⚠️ Failed to attach ref image {ref_path}: {e_ref}") + + if count_refs > 0: + print(f"🍌 [NanoBanana] Attached {count_refs} Reference Images to Generation Request.") + + # LOOP GENERATION + for i in range(batch_size): + if status_callback and batch_size > 1: status_callback(f"🎨 Dibujando imagen {i+1}/{batch_size}...") + + try: + # ATTEMPT 1: With Image (if attached) + gen_resp = _client.models.generate_content( + model=gen_model, + contents=gen_contents, + config=types.GenerateContentConfig( + response_modalities=["IMAGE"], + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + except Exception as e_gen_1: + print(f"⚠️ Generation with Ref Image failed ({e_gen_1}). Retrying Text-Only...") + # ATTEMPT 2: Text Only (Fallback) + gen_resp = _client.models.generate_content( + model=gen_model, + contents=gen_prompt, + config=types.GenerateContentConfig( + response_modalities=["IMAGE"], + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + # VALIDATE RESPONSE + if not gen_resp.candidates: + print(f"⚠️ Generation Failed. Finish Reason: {gen_resp.prompt_feedback}") + continue # Skip this one + + # Extract Image + if gen_resp.candidates and gen_resp.candidates[0].content.parts: + for p in gen_resp.candidates[0].content.parts: + import base64 + import time + import io + try: + from PIL import Image + except ImportError: + print("⚠️ PIL not installed. Skipping upscale.") + Image = None + + mime_type = p.inline_data.mime_type or "image/png" + data = p.inline_data.data + + # UNIQUE FILENAME + filename = f"downloads/gen_tool_{int(time.time()*1000)}_{i}.png" # Unique + if not os.path.exists("downloads"): os.makedirs("downloads") + + try: + if Image: + img = Image.open(io.BytesIO(data)) + img.save(filename, "PNG", optimize=False) + else: + with open(filename, "wb") as f: f.write(data) + except Exception as e_pil: + print(f"⚠️ Save Error: {e_pil}. Saving raw.") + with open(filename, "wb") as f: f.write(data) + + generated_paths.append(filename) + break + + if generated_paths: + tool_data['tool'] = 'SEND_GENERATED_IMAGE' + tool_data['path'] = generated_paths + tool_data['text'] = f"🍌 {len(generated_paths)} Imagen(es) generada(s)." + return { + 'action': 'TRIGGER_TOOL', + 'tool': 'SEND_GENERATED_IMAGE', + 'path': generated_paths, + 'text': "🍌 Aquí tienes." + } + else: + return "Error: No se generó ninguna imagen (posible bloqueo de seguridad o fallo del modelo)." + + except Exception as e_gen: + print(f"❌ Generation Fail: {e_gen}") + return f"Error generando imagen: {e_gen}" + + + + return tool_data + + # If no function call, check for text using property + ans = response.text + if ans: + # ... (Existing Text Processing Logic) ... + # Grounding Metadata extraction + if response.candidates[0].grounding_metadata: + gm = response.candidates[0].grounding_metadata + # Extract sources + sources = [] + if hasattr(gm, 'search_entry_point') and hasattr(gm.search_entry_point, 'rendered_content'): + # HTML content, skip or parse strict + pass + if hasattr(gm, 'grounding_chunks'): + for chunk in gm.grounding_chunks: + if hasattr(chunk, 'web'): + w = chunk.web + if w and w.uri and w.title: + sources.append(f"[{w.title}]({w.uri})") + + if sources: + seen = set() + unique_sources = [] + for s in sources: + if s not in seen: + unique_sources.append(s) + seen.add(s) + ans += f"\n\n🔗 **Fuentes:** {' | '.join(unique_sources)}" + + print(f"🗣️ AI Answer: {ans[:50]}...") + + # Update history + if user_id: + chat_history.append(types.Content(role="user", parts=[types.Part(text=user_text)])) + chat_history.append(types.Content(role="model", parts=[types.Part(text=ans)])) + if len(chat_history) > 200: chat_history = chat_history[-200:] + _chat_sessions[user_id] = chat_history + + return ans + + print("⚠️ AI Service: Empty response text.") + return "Hmm, no se me ocurre nada qué decir." + + except Exception as e: + print(f"❌ AI Generation Error: {e}") + # Si falla (ej. historial corrupto), limpiamos memoria y reintentamos limpio + if user_id and user_id in _chat_sessions: + print("🧹 Clearing corrupted session memory and retrying...") + del _chat_sessions[user_id] + return ask_gemini(user_text, user_id) + + return "Lo siento, me dio un dolor de cabeza virtual. 🤕" + +def classify_image(image_path, categories): + """ + Clasifica una imagen en una de las categorías dadas usando Gemini Vision. + Retorna el nombre de la categoría (str) o 'general'. + """ + global _client + try: + if not _client: _setup_gemini() + + cats_str = ", ".join(categories) + prompt = ( + f"ACT AS A SENSOR. Analyze this image content visually.\n" + f"Classify it into EXACTLY ONE of these categories: [{cats_str}].\n" + f"Return ONLY the category name as a raw string. No markdown, no explanations.\n" + f"NSFW RULE: If the image contains Nudity, Sex, Hentai or Erotic content, YOU MUST classify it into an NSFW category if available (e.g. 'nsfw', 'sex', 'hentai', 'boobs', 'ass').\n" + f"If it fits multiple, choose the most specific one.\n" + f"If it fits none, return 'general'." + ) + + parts = [] + if os.path.exists(image_path): + with open(image_path, "rb") as img_f: + img_bytes = img_f.read() + mime = "image/jpeg" + if image_path.lower().endswith(".png"): mime = "image/png" + elif image_path.lower().endswith(".webp"): mime = "image/webp" + parts.append(types.Part.from_bytes(data=img_bytes, mime_type=mime)) + else: + return "general" + + parts.append(types.Part(text=prompt)) + + # Call Gemini with NO safety settings (BLOCK_NONE) to ensure NSFW detection works + resp = _client.models.generate_content( + model="gemini-2.0-flash-exp", + contents=[types.Content(role="user", parts=parts)], + config=types.GenerateContentConfig( + temperature=0.1, # Low temp for precision + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + if resp.text: + cleaned = resp.text.strip().lower().replace("*", "").replace("`", "") + # Basic validation + if cleaned in categories: return cleaned + # Fuzzy match? Direct exact match preferred. + return cleaned + + return "general" + + except Exception as e: + print(f"❌ Classification Error: {e}") + return "general" + +def generate_hashtags_ai(text): + """ + Genera hashtags corregidos ortográficamente usando Gemini. + Ej: "goku dragoz ball" -> "#goku #dragon #ball" + """ + global _client + try: + if not _client: _setup_gemini() + + prompt = ( + f"Actúa como un extractor de tags inteligente.\n" + f"Tu tarea es extraer: NOMBRES, PERSONAJES, SERIES... GÉNEROS/FETICHES... Y PARTES DEL CUERPO (Culo, Tetas, Pies, Verga).\n" + f"Regla 1: Ignora verbos irrelevantes (correr, ver, haber) y palabras comunes (el, la, hola, yo).\n" + f"Regla 2: Corrige ortografía (ej: 'gku' -> 'Goku').\n" + f"Regla 3: SPLIT DE NOMBRES: Nombre y Apellido son hashtags SEPARADOS. (Ej: 'Akira Kurogane' -> '#Akira #Kurogane').\n" + f"Regla 4: CONCEPTOS CLAVE: Si el texto menciona 'ntr', 'sexo', 'cuck', 'culo', 'tetas', ¡ETIQUÉTALOS!\n" + f"Regla 5: INFIERE LA ACCIÓN: Si dice 'coje' -> #Sexo, 'chupa' -> #Mamada, 'viola' -> #Violacion, 'leche' -> #Cum.\n" + f"Regla 6: Salida ÚNICAMENTE en hashtags separados por espacio: #tag1 #tag2\n" + f"Regla 6: TODO EN UNA SOLA LÍNEA. PROHIBIDO USAR SALTOS DE LÍNEA.\n\n" + f"Input: {text}\n" + f"Output:" + ) + + # Revertimos a 2.0-flash-exp que sí conectaba, pero con fallback si falla + resp = _client.models.generate_content( + model="gemini-2.0-flash-exp", + contents=[types.Content(role="user", parts=[types.Part(text=prompt)])], + config=types.GenerateContentConfig( + temperature=0.4, + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + if resp.text and len(resp.text.strip()) > 1: + # Force single line clean up + return resp.text.strip().replace('\n', ' ').replace(' ', ' ') + + print("⚠️ AI Empty Response -> Using Fallback") + return _fallback_hashtags(text) + + except Exception as e: + print(f"❌ Hashtag Gen Error: {e} -> Using Fallback") + return _fallback_hashtags(text) + +def _fallback_hashtags(text): + """Generación de hashtags clásica (RegEx) por si falla la IA.""" + import re + # 1. Limpieza básica + text = text.lower().strip() + + # 2. Stopwords comunes (Español básico) + stopwords = [ + "el", "la", "los", "las", "un", "una", "unos", "unas", + "y", "e", "o", "u", "ni", "que", "pero", "mas", + "a", "ante", "bajo", "cabe", "con", "contra", "de", "desde", + "en", "entre", "hacia", "hasta", "para", "por", "segun", "sin", "so", "sobre", "tras", + "yo", "tu", "el", "ella", "nosotros", "vosotros", "ellos", "ellas", + "me", "te", "se", "nos", "os", "le", "les", "mi", "mis", "tu", "tus", "su", "sus", + "comia", "corria", "ver", "mirar", "foto", "video", "imagen", "soy", "es", "son", "llamo", "nombre" + ] + + # 3. Tokenizar (solo letras y números) + words = re.findall(r'\b\w+\b', text) + + # 4. Filtrar + valid_words = [] + for w in words: + if len(w) > 2 and w not in stopwords: + valid_words.append(w) + + if not valid_words: return "#error_no_keywords" + + # 5. Formatear + return " ".join([f"#{w}" for w in valid_words]) + +def research_character_ai(text=None, image_path=None): + """ + Investigación Profunda: + - Si es Imagen: Identifica personaje, anime, serie. + - Si es Texto: Busca información del personaje. + Output: #Nombre #Apellido #Anime #Serie #DataExtra + """ + global _client + try: + if not _client: _setup_gemini() + + prompt = ( + "ROL: Eres una base de datos de conocimiento de Anime/Manga/Cultura Pop y un analista de contexto experto.\n" + "TAREA: 1. Identificar TODOS los personajes. 2. Analizar la ACCIÓN/CONTEXTO (si hay sexo, ntr, etc).\n" + "FORMATO RESPUESTA: ÚNICAMENTE hashtags en una sola línea. NADA MÁS.\n" + "ESTRUCTURA DE ORDEN (CRÍTICO): [NOMBRES/APELLIDOS] [ANIME COMÚN] [TAGS DE CONTEXTO/ACCIÓN]\n" + "FORMATO: #Nombre1 #Apellido1 ... #Anime #Serie #Rasgos #Accion #Contexto #Relacion\n\n" + "REGLES DE ANÁLISIS PROFUNDO (SMART MODE):\n" + "1. IDENTIDAD Y CORRECCIÓN: Corrige ortografía (Ej: 'raikague' -> #Raikage). Busca Nombre, Apellido y Anime.\n" + " - IMPORTANTE: NO pongas nombres de una sola letra (Ej: Evita '#A' aunque se llame así, usa su título '#Raikage').\n" + "2. ACCIÓN: Si el texto dice 'chupa', 'coje', 'viola' -> Etiqueta #Mamada #Sexo #Violacion (Usa términos explícitos).\n" + "3. RELACIÓN (NTR CHECK): Si hay una PAREJA NO CANON (Ej: Hinata con Raikage, Bulma con Goku) -> ¡ALERTA!\n" + " -> AÑADE AUTOMÁTICAMENTE: #NTR #Cuck #Infiel #Cheating #Netorare (Si aplica).\n" + " -> DETECCIÓN BBC: Si es Raikage o mencionan 'negro'/'black' -> AÑADE #BBC #Interracial.\n" + "4. PARTES DEL CUERPO: Si menciona 'culo', 'tetas', etc -> Etiquétalo (#Culo #Tetas).\n\n" + "EJEMPLOS CORRECTOS:\n" + "Input: 'bulma' -> Output: #Bulma #Briefs #Dragon #Ball #DragonBallZ #Cientifica\n" + "Input: 'hinata le chupa el pene al raikage' -> Output: #Hinata #Hyuga #Raikage #A #Naruto #Shippuden #Mamada #Sexo #Oral #Pene #NTR #Cuck #Infiel #Netorare #Blacked\n" + "Input: 'goku se folla a bulma' -> Output: #Goku #SonGoku #Bulma #Briefs #Dragon #Ball #Sexo #Anal #NTR #Infiel #Traicion\n" + "--------------------------------------------------\n" + ) + + model_name = "gemini-2.0-flash-exp" + parts = [types.Part(text=prompt)] + + if image_path: + # Load Image + try: + with open(image_path, "rb") as f: + img_data = f.read() + parts.append(types.Part(inline_data=types.Blob( + mime_type="image/jpeg", + data=img_data + ))) + prompt_text = "\n[ANALIZA ESTA IMAGEN Y DIME QUIÉN ES]" + parts.append(types.Part(text=prompt_text)) + except Exception as ei: + print(f"❌ Error leyendo imagen para research: {ei}") + return "#Error_Imagen" + + if text: + parts.append(types.Part(text=f"\n\nINPUT DEL USUARIO A CUAL DEBES EXTRAER LA INFORMACION: {text}")) + + # Desactivamos Tools para evitar ruido, confiamos en el modelo + # tools_config = [types.Tool(google_search=types.GoogleSearch())] + + resp = _client.models.generate_content( + model=model_name, + contents=[types.Content(role="user", parts=parts)], + config=types.GenerateContentConfig( + temperature=0.3, # Baja temperatura para precisión + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + if resp.text: + cleaned = resp.text.strip().replace('\n', ' ').replace(' ', ' ') + # Fallback simple + if not cleaned.startswith('#'): + # A veces responde "Es Bulma...", forzamos hashtags + return generate_hashtags_ai(cleaned) # Reutilizamos el tagger simple para formatear la salida compleja + return cleaned + + print("⚠️ Research Empty Response -> Fallback") + return generate_hashtags_ai(text) if text else "#Error_No_Data" + + except Exception as e: + print(f"❌ Research Error: {e}") + return "#Error_Research" + +def translate_text_pure(text_chunk, target_lang="es"): + """ + Traduce texto sin contexto de chat (Stateless). + Ideal para subtítulos. + """ + try: + global _client + if not _client: _setup_gemini() + + prompt = ( + f"You are a professional subtitle translator. Your task is to TRANSLATE the following text to Spanish (Neutral).\n" + f"RULES:\n" + f"1. Maintain the exact number of lines.\n" + f"2. Keep the meaning accurate but natural.\n" + f"3. Do not add explanations, just return the translated lines.\n" + f"4. If a line is just a sound/noise/music tag (like [Music]), keep it or translate to [Música].\n\n" + f"Input:\n{text_chunk}\n\nTranslation:" + ) + + resp = _client.models.generate_content( + model="gemini-2.0-flash-exp", # Fast and smart + contents=[types.Content(role="user", parts=[types.Part(text=prompt)])], + config=types.GenerateContentConfig( + temperature=0.1, + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + if resp.text: return resp.text.strip() + return None + + except Exception as e: + print(f"Translation Pure Error: {e}") + return None + +async def enhance_subtitle_text(text_chunk, mode="punctuate"): + """ + Mejora subtítulos usando Gemini. + Modos: + - 'punctuate': Mejora puntuación (¡!, ¿?, mayúsculas si grita) SIN emojis. + - 'translate_punctuate': Traduce a Español Y mejora puntuación. + """ + try: + global _client + if not _client: _setup_gemini() + + # Base Prompt Construction + task_desc = "" + if mode == "translate_punctuate": + task_desc = ( + "TASK: Translate each line to SPANISH (Neutral). \n" + "IMPORTANT: Focus on EXPRESSIVE PUNCTUATION based on context.\n" + "- If it looks like a question, use '¿?'.\n" + "- If it looks like a scream or strong emotion, use '¡!' or UPPERCASE if extreme.\n" + "- NO EMOJIS. JUST TEXT AND PUNCTUATION." + ) + else: # punctuate only + task_desc = ( + "TASK: Improve the punctuation of the text keeping the same language.\n" + "IMPORTANT: Focus on EXPRESSIVE PUNCTUATION.\n" + "- If it looks like a question, ensure it has '¿?'.\n" + "- If it looks like a scream/yell, ensure it has '¡!' or UPPERCASE.\n" + "- NO EMOJIS. JUST TEXT AND PUNCTUATION." + ) + + prompt = ( + f"You are a subtitle expert. {task_desc}\n" + f"CRITICAL RULES:\n" + f"1. OUTPUT MUST HAVE EXACTLY THE SAME NUMBER OF LINES AS INPUT.\n" + f"2. Do not merge lines. Do not split lines.\n" + f"3. Do not add explanations. ONLY return the processed lines.\n" + f"4. If a line is empty, return empty line.\n\n" + f"INPUT BLOCK:\n{text_chunk}\n\nOUTPUT BLOCK:" + ) + + import asyncio + loop = asyncio.get_running_loop() + + def run_gemini(): + return _client.models.generate_content( + model="gemini-2.0-flash-exp", + contents=[types.Content(role="user", parts=[types.Part(text=prompt)])], + config=types.GenerateContentConfig( + temperature=0.3, + safety_settings=[ + types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="BLOCK_NONE"), + types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="BLOCK_NONE") + ] + ) + ) + + resp = await loop.run_in_executor(None, run_gemini) + + if resp.text: return resp.text.strip() + return None + + except Exception as e: + print(f"Enhance Subtitle Error: {e}") + return None diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/LICENSE b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..36f47b4cbb530b4a3a6bdc4e8caf83900e9b860a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2019 nihui + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/README.md b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b71038505baa2a71e7c1c7f402c2161a9d586b64 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/README.md @@ -0,0 +1,171 @@ +# waifu2x ncnn Vulkan + +![CI](https://github.com/nihui/waifu2x-ncnn-vulkan/workflows/CI/badge.svg) +![download](https://img.shields.io/github/downloads/nihui/waifu2x-ncnn-vulkan/total.svg) + +ncnn implementation of waifu2x converter. Runs fast on Intel / AMD / NVIDIA / Apple-Silicon with Vulkan API. + +waifu2x-ncnn-vulkan uses [ncnn project](https://github.com/Tencent/ncnn) as the universal neural network inference framework. + +## [Download](https://github.com/nihui/waifu2x-ncnn-vulkan/releases) + +Download Windows/Linux/macOS Executable for Intel/AMD/NVIDIA/Apple-Silicon GPU + +**https://github.com/nihui/waifu2x-ncnn-vulkan/releases** + +This package includes all the binaries and models required. It is portable, so no CUDA or Caffe runtime environment is needed :) + +## Usages + +### Example Command + +```shell +waifu2x-ncnn-vulkan.exe -i input.jpg -o output.png -n 2 -s 2 +``` + +### Full Usages + +```console +Usage: waifu2x-ncnn-vulkan -i infile -o outfile [options]... + + -h show this help + -v verbose output + -i input-path input image path (jpg/png/webp) or directory + -o output-path output image path (jpg/png/webp) or directory + -n noise-level denoise level (-1/0/1/2/3, default=0) + -s scale upscale ratio (1/2/4/8/16/32, default=2) + -t tile-size tile size (>=32/0=auto, default=0) can be 0,0,0 for multi-gpu + -m model-path waifu2x model path (default=models-cunet) + -g gpu-id gpu device to use (-1=cpu, default=auto) can be 0,1,2 for multi-gpu + -j load:proc:save thread count for load/proc/save (default=1:2:2) can be 1:2,2,2:2 for multi-gpu + -x enable tta mode + -f format output image format (jpg/png/webp, default=ext/png) +``` + +- `input-path` and `output-path` accept either file path or directory path +- `noise-level` = noise level, large value means strong denoise effect, -1 = no effect +- `scale` = scale level, 1 = no scaling, 2 = upscale 2x +- `tile-size` = tile size, use smaller value to reduce GPU memory usage, default selects automatically +- `load:proc:save` = thread count for the three stages (image decoding + waifu2x upscaling + image encoding), using larger values may increase GPU usage and consume more GPU memory. You can tune this configuration with "4:4:4" for many small-size images, and "2:2:2" for large-size images. The default setting usually works fine for most situations. If you find that your GPU is hungry, try increasing thread count to achieve faster processing. +- `format` = the format of the image to be output, png is better supported, however webp generally yields smaller file sizes, both are losslessly encoded + +If you encounter a crash or error, try upgrading your GPU driver: + +- Intel: https://downloadcenter.intel.com/product/80939/Graphics-Drivers +- AMD: https://www.amd.com/en/support +- NVIDIA: https://www.nvidia.com/Download/index.aspx + +## Build from Source + +1. (macOS only) Download and setup the Vulkan SDK from https://vulkan.lunarg.com/ + +2. Clone this project with all submodules + +```shell +git clone https://github.com/nihui/waifu2x-ncnn-vulkan.git +cd waifu2x-ncnn-vulkan +git submodule update --init --recursive +``` + +3. Build with CMake + - You can pass -DUSE_STATIC_MOLTENVK=ON option to avoid linking the vulkan loader library on macOS + +```shell +mkdir build +cd build +cmake ../src +cmake --build . -j 4 +``` + +## Speed Comparison with waifu2x-caffe-cui + +### Environment + +- Windows 10 1809 +- AMD R7-1700 +- NVIDIA GTX-1070 +- NVIDIA driver 419.67 +- CUDA 10.1.105 +- cuDNN 10.1 + +```powershell +Measure-Command { waifu2x-ncnn-vulkan.exe -i input.png -o output.png -n 2 -s 2 -t [block size] -m [model dir] } +``` + +```powershell +Measure-Command { waifu2x-caffe-cui.exe -t 0 --gpu 0 -b 1 -c [block size] -p cudnn --model_dir [model dir] -s 2 -n 2 -m noise_scale -i input.png -o output.png } +``` + +### cunet + +||Image Size|Target Size|Block Size|Total Time(s)|GPU Memory(MB)| +|---|---|---|---|---|---| +|waifu2x-ncnn-vulkan|200x200|400x400|400/200/100|0.86/0.86/0.82|638/638/197| +|waifu2x-caffe-cui|200x200|400x400|400/200/100|2.54/2.39/2.36|3017/936/843| +|waifu2x-ncnn-vulkan|400x400|800x800|400/200/100|1.17/1.04/1.02|2430/638/197| +|waifu2x-caffe-cui|400x400|800x800|400/200/100|2.91/2.43/2.7|3202/1389/1178| +|waifu2x-ncnn-vulkan|1000x1000|2000x2000|400/200/100|2.35/2.26/2.46|2430/638/197| +|waifu2x-caffe-cui|1000x1000|2000x2000|400/200/100|4.04/3.79/4.35|3258/1582/1175| +|waifu2x-ncnn-vulkan|2000x2000|4000x4000|400/200/100|6.46/6.59/7.49|2430/686/213| +|waifu2x-caffe-cui|2000x2000|4000x4000|400/200/100|7.01/7.54/10.11|3258/1499/1200| +|waifu2x-ncnn-vulkan|4000x4000|8000x8000|400/200/100|22.78/23.78/27.61|2448/654/213| +|waifu2x-caffe-cui|4000x4000|8000x8000|400/200/100|18.45/21.85/31.82|3325/1652/1236| + +### upconv_7_anime_style_art_rgb + +||Image Size|Target Size|Block Size|Total Time(s)|GPU Memory(MB)| +|---|---|---|---|---|---| +|waifu2x-ncnn-vulkan|200x200|400x400|400/200/100|0.74/0.75/0.72|482/482/142| +|waifu2x-caffe-cui|200x200|400x400|400/200/100|2.04/1.99/1.99|995/546/459| +|waifu2x-ncnn-vulkan|400x400|800x800|400/200/100|0.95/0.83/0.81|1762/482/142| +|waifu2x-caffe-cui|400x400|800x800|400/200/100|2.08/2.12/2.11|995/546/459| +|waifu2x-ncnn-vulkan|1000x1000|2000x2000|400/200/100|1.52/1.41/1.44|1778/482/142| +|waifu2x-caffe-cui|1000x1000|2000x2000|400/200/100|2.72/2.60/2.68|1015/570/459| +|waifu2x-ncnn-vulkan|2000x2000|4000x4000|400/200/100|3.45/3.42/3.63|1778/482/142| +|waifu2x-caffe-cui|2000x2000|4000x4000|400/200/100|3.90/4.01/4.35|1015/521/462| +|waifu2x-ncnn-vulkan|4000x4000|8000x8000|400/200/100|11.16/11.29/12.07|1796/498/158| +|waifu2x-caffe-cui|4000x4000|8000x8000|400/200/100|9.24/9.81/11.16|995/546/436| + +## Sample Images + +### Original Image + +![origin](images/0.jpg) + +### Upscale 2x with ImageMagick + +```shell +convert origin.jpg -resize 200% output.png +``` + +![browser](images/1.png) + +### Upscale 2x with ImageMagick Lanczo4 Filter + +```shell +convert origin.jpg -filter Lanczos -resize 200% output.png +``` + +![browser](images/4.png) + +### Upscale 2x with waifu2x noise=2 scale=2 + +```shell +waifu2x-ncnn-vulkan.exe -i origin.jpg -o output.png -n 2 -s 2 +``` + +![waifu2x](images/2.png) + +## Original waifu2x Project + +- https://github.com/nagadomi/waifu2x +- https://github.com/lltcggie/waifu2x-caffe + +## Other Open-Source Code Used + +- https://github.com/Tencent/ncnn for fast neural network inference on ALL PLATFORMS +- https://github.com/webmproject/libwebp for encoding and decoding Webp images on ALL PLATFORMS +- https://github.com/libjpeg-turbo/libjpeg-turbo for encoding and decoding JPEG images on ALL PLATFORMS +- https://github.com/pnggroup/libpng for encoding and decoding PNG images on ALL PLATFORMS +- https://github.com/zlib-ng/zlib-ng for encoding and decoding PNG images on ALL PLATFORMS +- https://github.com/tronkko/dirent for listing files in directory on Windows diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..70080db200a2bfb0e3906f0922216c3daea48ae3 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b15c356a36bcbf6fb8c2f1404ca016fd917d4e45426bcf41f7a3867022fdd7b0 +size 2767568 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.param new file mode 100644 index 0000000000000000000000000000000000000000..86534c19ce74bf699d3732e61b136a44c6922d1a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=312 1=312 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution9 1 1 Convolution8_ReLU8 Convolution9 0=3 1=3 5=1 6=1728 +Split splitncnn_3 1 2 Convolution9 Convolution9_splitncnn_0 Convolution9_splitncnn_1 +Convolution Convolution10 1 1 Convolution9_splitncnn_1 Convolution10_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution11 1 1 Convolution10_ReLU9 Convolution11_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution11_ReLU10 Convolution11_ReLU10_splitncnn_0 Convolution11_ReLU10_splitncnn_1 +Convolution Convolution12 1 1 Convolution11_ReLU10_splitncnn_1 Convolution12_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU11 Convolution13_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution14 1 1 Convolution13_ReLU12 Convolution14_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution14_ReLU13 Convolution14_ReLU13_splitncnn_0 Convolution14_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution14_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution15 1 1 Pooling2 Convolution15_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution16 1 1 Convolution15_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution14_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution17 1 1 Scale2_splitncnn_1 Convolution17_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU15 Convolution18_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution19 1 1 Convolution18_ReLU16 Convolution19_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution19_ReLU17 Convolution19_ReLU17_splitncnn_0 Convolution19_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution19_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution20 1 1 Pooling3 Convolution20_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution21 1 1 Convolution20_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution19_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution2 1 1 Scale3 Deconvolution2_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution2_ReLU19 Deconvolution2_ReLU19_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution2_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution22 1 1 Eltwise2 Convolution22_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution23 1 1 Convolution22_ReLU20 Convolution23_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution23_ReLU21 Convolution23_ReLU21_splitncnn_0 Convolution23_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution23_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution24 1 1 Pooling4 Convolution24_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution25 1 1 Convolution24_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution23_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution3 1 1 Scale4 Deconvolution3_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution3_ReLU23 Deconvolution3_ReLU23_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution11_ReLU10_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution3_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution26 1 1 Eltwise3 Convolution26_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution27 1 1 Convolution26_ReLU24 Convolution27 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution27 Convolution27_splitncnn_0 Convolution27_splitncnn_1 +Crop Crop4 2 1 Convolution9_splitncnn_0 Convolution27_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution27_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..917e191bc6cb09dc36982bda7cd3468f5049a0a4 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5329a9375c9cfb64a60a2903fd8ae6e2851d9b069556bf025dbab9d0216fb27c +size 2776400 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..d2bf329993a1a841e4ed100480f7a1ab53dfb0c5 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise0_scale2.0x_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=200 1=200 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Deconvolution Deconvolution2 1 1 Convolution8_ReLU8 Deconvolution2 0=3 1=4 3=2 4=3 5=1 6=3072 +Split splitncnn_3 1 2 Deconvolution2 Deconvolution2_splitncnn_0 Deconvolution2_splitncnn_1 +Convolution Convolution9 1 1 Deconvolution2_splitncnn_1 Convolution9_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution10 1 1 Convolution9_ReLU9 Convolution10_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution10_ReLU10 Convolution10_ReLU10_splitncnn_0 Convolution10_ReLU10_splitncnn_1 +Convolution Convolution11 1 1 Convolution10_ReLU10_splitncnn_1 Convolution11_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution12 1 1 Convolution11_ReLU11 Convolution12_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU12 Convolution13_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution13_ReLU13 Convolution13_ReLU13_splitncnn_0 Convolution13_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution13_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution14 1 1 Pooling2 Convolution14_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution15 1 1 Convolution14_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution13_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution16 1 1 Scale2_splitncnn_1 Convolution16_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution17 1 1 Convolution16_ReLU15 Convolution17_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU16 Convolution18_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution18_ReLU17 Convolution18_ReLU17_splitncnn_0 Convolution18_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution18_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution19 1 1 Pooling3 Convolution19_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution20 1 1 Convolution19_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution18_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution3 1 1 Scale3 Deconvolution3_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution3_ReLU19 Deconvolution3_ReLU19_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution3_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution21 1 1 Eltwise2 Convolution21_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution22 1 1 Convolution21_ReLU20 Convolution22_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution22_ReLU21 Convolution22_ReLU21_splitncnn_0 Convolution22_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution22_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution23 1 1 Pooling4 Convolution23_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution24 1 1 Convolution23_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution22_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution4 1 1 Scale4 Deconvolution4_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution4_ReLU23 Deconvolution4_ReLU23_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution10_ReLU10_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution4_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution25 1 1 Eltwise3 Convolution25_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution26 1 1 Convolution25_ReLU24 Convolution26 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution26 Convolution26_splitncnn_0 Convolution26_splitncnn_1 +Crop Crop4 2 1 Deconvolution2_splitncnn_0 Convolution26_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution26_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..b37b53cc0a9351a25bdc2658aab01b31b6bb2730 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3407cb87c2503cbd69f8a6703b31bc4949a72080a3e1b1e536dba8bdbfad934f +size 2767568 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.param new file mode 100644 index 0000000000000000000000000000000000000000..86534c19ce74bf699d3732e61b136a44c6922d1a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=312 1=312 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution9 1 1 Convolution8_ReLU8 Convolution9 0=3 1=3 5=1 6=1728 +Split splitncnn_3 1 2 Convolution9 Convolution9_splitncnn_0 Convolution9_splitncnn_1 +Convolution Convolution10 1 1 Convolution9_splitncnn_1 Convolution10_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution11 1 1 Convolution10_ReLU9 Convolution11_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution11_ReLU10 Convolution11_ReLU10_splitncnn_0 Convolution11_ReLU10_splitncnn_1 +Convolution Convolution12 1 1 Convolution11_ReLU10_splitncnn_1 Convolution12_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU11 Convolution13_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution14 1 1 Convolution13_ReLU12 Convolution14_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution14_ReLU13 Convolution14_ReLU13_splitncnn_0 Convolution14_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution14_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution15 1 1 Pooling2 Convolution15_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution16 1 1 Convolution15_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution14_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution17 1 1 Scale2_splitncnn_1 Convolution17_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU15 Convolution18_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution19 1 1 Convolution18_ReLU16 Convolution19_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution19_ReLU17 Convolution19_ReLU17_splitncnn_0 Convolution19_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution19_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution20 1 1 Pooling3 Convolution20_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution21 1 1 Convolution20_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution19_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution2 1 1 Scale3 Deconvolution2_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution2_ReLU19 Deconvolution2_ReLU19_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution2_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution22 1 1 Eltwise2 Convolution22_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution23 1 1 Convolution22_ReLU20 Convolution23_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution23_ReLU21 Convolution23_ReLU21_splitncnn_0 Convolution23_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution23_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution24 1 1 Pooling4 Convolution24_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution25 1 1 Convolution24_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution23_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution3 1 1 Scale4 Deconvolution3_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution3_ReLU23 Deconvolution3_ReLU23_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution11_ReLU10_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution3_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution26 1 1 Eltwise3 Convolution26_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution27 1 1 Convolution26_ReLU24 Convolution27 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution27 Convolution27_splitncnn_0 Convolution27_splitncnn_1 +Crop Crop4 2 1 Convolution9_splitncnn_0 Convolution27_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution27_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..4f9cb4d06d24017daf6a7b605a605c33cb46559a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:862c0e40f3df956ff57bd4d168c85dea5d375b614077fdddd3ac8cfdb9a686da +size 2776400 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..d2bf329993a1a841e4ed100480f7a1ab53dfb0c5 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise1_scale2.0x_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=200 1=200 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Deconvolution Deconvolution2 1 1 Convolution8_ReLU8 Deconvolution2 0=3 1=4 3=2 4=3 5=1 6=3072 +Split splitncnn_3 1 2 Deconvolution2 Deconvolution2_splitncnn_0 Deconvolution2_splitncnn_1 +Convolution Convolution9 1 1 Deconvolution2_splitncnn_1 Convolution9_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution10 1 1 Convolution9_ReLU9 Convolution10_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution10_ReLU10 Convolution10_ReLU10_splitncnn_0 Convolution10_ReLU10_splitncnn_1 +Convolution Convolution11 1 1 Convolution10_ReLU10_splitncnn_1 Convolution11_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution12 1 1 Convolution11_ReLU11 Convolution12_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU12 Convolution13_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution13_ReLU13 Convolution13_ReLU13_splitncnn_0 Convolution13_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution13_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution14 1 1 Pooling2 Convolution14_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution15 1 1 Convolution14_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution13_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution16 1 1 Scale2_splitncnn_1 Convolution16_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution17 1 1 Convolution16_ReLU15 Convolution17_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU16 Convolution18_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution18_ReLU17 Convolution18_ReLU17_splitncnn_0 Convolution18_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution18_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution19 1 1 Pooling3 Convolution19_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution20 1 1 Convolution19_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution18_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution3 1 1 Scale3 Deconvolution3_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution3_ReLU19 Deconvolution3_ReLU19_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution3_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution21 1 1 Eltwise2 Convolution21_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution22 1 1 Convolution21_ReLU20 Convolution22_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution22_ReLU21 Convolution22_ReLU21_splitncnn_0 Convolution22_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution22_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution23 1 1 Pooling4 Convolution23_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution24 1 1 Convolution23_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution22_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution4 1 1 Scale4 Deconvolution4_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution4_ReLU23 Deconvolution4_ReLU23_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution10_ReLU10_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution4_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution25 1 1 Eltwise3 Convolution25_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution26 1 1 Convolution25_ReLU24 Convolution26 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution26 Convolution26_splitncnn_0 Convolution26_splitncnn_1 +Crop Crop4 2 1 Deconvolution2_splitncnn_0 Convolution26_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution26_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..6512ad9a7cca790a25ee3ce021b675085e2e6fdd --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b45d5febeb56166b7aff055cb0fbb87647dae528968f97d838dfd7ce0b7117f4 +size 2767568 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.param new file mode 100644 index 0000000000000000000000000000000000000000..86534c19ce74bf699d3732e61b136a44c6922d1a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=312 1=312 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution9 1 1 Convolution8_ReLU8 Convolution9 0=3 1=3 5=1 6=1728 +Split splitncnn_3 1 2 Convolution9 Convolution9_splitncnn_0 Convolution9_splitncnn_1 +Convolution Convolution10 1 1 Convolution9_splitncnn_1 Convolution10_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution11 1 1 Convolution10_ReLU9 Convolution11_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution11_ReLU10 Convolution11_ReLU10_splitncnn_0 Convolution11_ReLU10_splitncnn_1 +Convolution Convolution12 1 1 Convolution11_ReLU10_splitncnn_1 Convolution12_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU11 Convolution13_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution14 1 1 Convolution13_ReLU12 Convolution14_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution14_ReLU13 Convolution14_ReLU13_splitncnn_0 Convolution14_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution14_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution15 1 1 Pooling2 Convolution15_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution16 1 1 Convolution15_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution14_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution17 1 1 Scale2_splitncnn_1 Convolution17_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU15 Convolution18_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution19 1 1 Convolution18_ReLU16 Convolution19_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution19_ReLU17 Convolution19_ReLU17_splitncnn_0 Convolution19_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution19_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution20 1 1 Pooling3 Convolution20_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution21 1 1 Convolution20_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution19_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution2 1 1 Scale3 Deconvolution2_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution2_ReLU19 Deconvolution2_ReLU19_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution2_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution22 1 1 Eltwise2 Convolution22_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution23 1 1 Convolution22_ReLU20 Convolution23_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution23_ReLU21 Convolution23_ReLU21_splitncnn_0 Convolution23_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution23_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution24 1 1 Pooling4 Convolution24_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution25 1 1 Convolution24_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution23_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution3 1 1 Scale4 Deconvolution3_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution3_ReLU23 Deconvolution3_ReLU23_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution11_ReLU10_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution3_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution26 1 1 Eltwise3 Convolution26_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution27 1 1 Convolution26_ReLU24 Convolution27 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution27 Convolution27_splitncnn_0 Convolution27_splitncnn_1 +Crop Crop4 2 1 Convolution9_splitncnn_0 Convolution27_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution27_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..a47fab24cc3c49ff4479c2d25a98eb364e38e759 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c836e6ae022636cdd5590fbb66dbca2a5fc20bbf8e628884c3612ef72d51858 +size 2776400 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..d2bf329993a1a841e4ed100480f7a1ab53dfb0c5 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise2_scale2.0x_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=200 1=200 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Deconvolution Deconvolution2 1 1 Convolution8_ReLU8 Deconvolution2 0=3 1=4 3=2 4=3 5=1 6=3072 +Split splitncnn_3 1 2 Deconvolution2 Deconvolution2_splitncnn_0 Deconvolution2_splitncnn_1 +Convolution Convolution9 1 1 Deconvolution2_splitncnn_1 Convolution9_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution10 1 1 Convolution9_ReLU9 Convolution10_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution10_ReLU10 Convolution10_ReLU10_splitncnn_0 Convolution10_ReLU10_splitncnn_1 +Convolution Convolution11 1 1 Convolution10_ReLU10_splitncnn_1 Convolution11_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution12 1 1 Convolution11_ReLU11 Convolution12_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU12 Convolution13_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution13_ReLU13 Convolution13_ReLU13_splitncnn_0 Convolution13_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution13_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution14 1 1 Pooling2 Convolution14_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution15 1 1 Convolution14_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution13_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution16 1 1 Scale2_splitncnn_1 Convolution16_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution17 1 1 Convolution16_ReLU15 Convolution17_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU16 Convolution18_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution18_ReLU17 Convolution18_ReLU17_splitncnn_0 Convolution18_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution18_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution19 1 1 Pooling3 Convolution19_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution20 1 1 Convolution19_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution18_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution3 1 1 Scale3 Deconvolution3_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution3_ReLU19 Deconvolution3_ReLU19_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution3_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution21 1 1 Eltwise2 Convolution21_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution22 1 1 Convolution21_ReLU20 Convolution22_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution22_ReLU21 Convolution22_ReLU21_splitncnn_0 Convolution22_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution22_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution23 1 1 Pooling4 Convolution23_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution24 1 1 Convolution23_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution22_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution4 1 1 Scale4 Deconvolution4_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution4_ReLU23 Deconvolution4_ReLU23_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution10_ReLU10_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution4_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution25 1 1 Eltwise3 Convolution25_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution26 1 1 Convolution25_ReLU24 Convolution26 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution26 Convolution26_splitncnn_0 Convolution26_splitncnn_1 +Crop Crop4 2 1 Deconvolution2_splitncnn_0 Convolution26_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution26_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..3bcf89c02a7e26ea04a2ce5e080da4cdc527df4e --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd3d2440673d28d7a20aa6428a2a79e1c5e733f21de0a66785958f98d6994926 +size 2767568 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.param new file mode 100644 index 0000000000000000000000000000000000000000..86534c19ce74bf699d3732e61b136a44c6922d1a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=312 1=312 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution9 1 1 Convolution8_ReLU8 Convolution9 0=3 1=3 5=1 6=1728 +Split splitncnn_3 1 2 Convolution9 Convolution9_splitncnn_0 Convolution9_splitncnn_1 +Convolution Convolution10 1 1 Convolution9_splitncnn_1 Convolution10_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution11 1 1 Convolution10_ReLU9 Convolution11_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution11_ReLU10 Convolution11_ReLU10_splitncnn_0 Convolution11_ReLU10_splitncnn_1 +Convolution Convolution12 1 1 Convolution11_ReLU10_splitncnn_1 Convolution12_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU11 Convolution13_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution14 1 1 Convolution13_ReLU12 Convolution14_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution14_ReLU13 Convolution14_ReLU13_splitncnn_0 Convolution14_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution14_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution15 1 1 Pooling2 Convolution15_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution16 1 1 Convolution15_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution14_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution17 1 1 Scale2_splitncnn_1 Convolution17_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU15 Convolution18_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution19 1 1 Convolution18_ReLU16 Convolution19_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution19_ReLU17 Convolution19_ReLU17_splitncnn_0 Convolution19_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution19_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution20 1 1 Pooling3 Convolution20_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution21 1 1 Convolution20_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution19_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution2 1 1 Scale3 Deconvolution2_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution2_ReLU19 Deconvolution2_ReLU19_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution2_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution2_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution22 1 1 Eltwise2 Convolution22_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution23 1 1 Convolution22_ReLU20 Convolution23_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution23_ReLU21 Convolution23_ReLU21_splitncnn_0 Convolution23_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution23_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution24 1 1 Pooling4 Convolution24_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution25 1 1 Convolution24_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution23_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution3 1 1 Scale4 Deconvolution3_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution3_ReLU23 Deconvolution3_ReLU23_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution11_ReLU10_splitncnn_0 Deconvolution3_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution3_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution26 1 1 Eltwise3 Convolution26_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution27 1 1 Convolution26_ReLU24 Convolution27 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution27 Convolution27_splitncnn_0 Convolution27_splitncnn_1 +Crop Crop4 2 1 Convolution9_splitncnn_0 Convolution27_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution27_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..c8e728ac1933b1c2a417c63ab5c2ecb4272ca278 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f42c18610fecb14a40f75cca9b9276a6889689d5937a4f75f0c2b21bde7e49ed +size 2776400 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..d2bf329993a1a841e4ed100480f7a1ab53dfb0c5 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/noise3_scale2.0x_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=200 1=200 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Deconvolution Deconvolution2 1 1 Convolution8_ReLU8 Deconvolution2 0=3 1=4 3=2 4=3 5=1 6=3072 +Split splitncnn_3 1 2 Deconvolution2 Deconvolution2_splitncnn_0 Deconvolution2_splitncnn_1 +Convolution Convolution9 1 1 Deconvolution2_splitncnn_1 Convolution9_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution10 1 1 Convolution9_ReLU9 Convolution10_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution10_ReLU10 Convolution10_ReLU10_splitncnn_0 Convolution10_ReLU10_splitncnn_1 +Convolution Convolution11 1 1 Convolution10_ReLU10_splitncnn_1 Convolution11_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution12 1 1 Convolution11_ReLU11 Convolution12_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU12 Convolution13_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution13_ReLU13 Convolution13_ReLU13_splitncnn_0 Convolution13_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution13_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution14 1 1 Pooling2 Convolution14_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution15 1 1 Convolution14_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution13_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution16 1 1 Scale2_splitncnn_1 Convolution16_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution17 1 1 Convolution16_ReLU15 Convolution17_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU16 Convolution18_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution18_ReLU17 Convolution18_ReLU17_splitncnn_0 Convolution18_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution18_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution19 1 1 Pooling3 Convolution19_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution20 1 1 Convolution19_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution18_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution3 1 1 Scale3 Deconvolution3_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution3_ReLU19 Deconvolution3_ReLU19_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution3_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution21 1 1 Eltwise2 Convolution21_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution22 1 1 Convolution21_ReLU20 Convolution22_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution22_ReLU21 Convolution22_ReLU21_splitncnn_0 Convolution22_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution22_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution23 1 1 Pooling4 Convolution23_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution24 1 1 Convolution23_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution22_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution4 1 1 Scale4 Deconvolution4_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution4_ReLU23 Deconvolution4_ReLU23_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution10_ReLU10_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution4_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution25 1 1 Eltwise3 Convolution25_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution26 1 1 Convolution25_ReLU24 Convolution26 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution26 Convolution26_splitncnn_0 Convolution26_splitncnn_1 +Crop Crop4 2 1 Deconvolution2_splitncnn_0 Convolution26_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution26_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..170bc4b06b92fffff42919d3aa3c02e5dde56cea --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d82ed30207fd07e1c16726a9ca838ce44e6e25a105b0278c7ca681516ee0e18e +size 2776400 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..d2bf329993a1a841e4ed100480f7a1ab53dfb0c5 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-cunet/scale2.0x_model.param @@ -0,0 +1,61 @@ +7767517 +59 71 +Input input 0 1 Input1 0=200 1=200 2=3 +Convolution Convolution1 1 1 Input1 Convolution1_ReLU1 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution2 1 1 Convolution1_ReLU1 Convolution2_ReLU2 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_0 1 2 Convolution2_ReLU2 Convolution2_ReLU2_splitncnn_0 Convolution2_ReLU2_splitncnn_1 +Convolution Convolution3 1 1 Convolution2_ReLU2_splitncnn_1 Convolution3_ReLU3 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution4 1 1 Convolution3_ReLU3 Convolution4_ReLU4 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution5 1 1 Convolution4_ReLU4 Convolution5_ReLU5 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_1 1 2 Convolution5_ReLU5 Convolution5_ReLU5_splitncnn_0 Convolution5_ReLU5_splitncnn_1 +Pooling Pooling1 1 1 Convolution5_ReLU5_splitncnn_1 Pooling1 0=1 4=1 +InnerProduct Convolution6 1 1 Pooling1 Convolution6_ReLU6 0=8 1=1 2=512 9=1 +InnerProduct Convolution7 1 1 Convolution6_ReLU6 Flatten1 0=64 1=1 2=512 9=4 +Scale Scale1 2 1 Convolution5_ReLU5_splitncnn_0 Flatten1 Scale1 0=-233 +Deconvolution Deconvolution1 1 1 Scale1 Deconvolution1_ReLU7 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_2 1 2 Deconvolution1_ReLU7 Deconvolution1_ReLU7_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 +Crop Crop1 2 1 Convolution2_ReLU2_splitncnn_0 Deconvolution1_ReLU7_splitncnn_1 Crop1 0=4 1=4 +Eltwise Eltwise1 2 1 Crop1 Deconvolution1_ReLU7_splitncnn_0 Eltwise1 0=1 +Convolution Convolution8 1 1 Eltwise1 Convolution8_ReLU8 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Deconvolution Deconvolution2 1 1 Convolution8_ReLU8 Deconvolution2 0=3 1=4 3=2 4=3 5=1 6=3072 +Split splitncnn_3 1 2 Deconvolution2 Deconvolution2_splitncnn_0 Deconvolution2_splitncnn_1 +Convolution Convolution9 1 1 Deconvolution2_splitncnn_1 Convolution9_ReLU9 0=32 1=3 5=1 6=864 9=2 -23310=1,0.100000 +Convolution Convolution10 1 1 Convolution9_ReLU9 Convolution10_ReLU10 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Split splitncnn_4 1 2 Convolution10_ReLU10 Convolution10_ReLU10_splitncnn_0 Convolution10_ReLU10_splitncnn_1 +Convolution Convolution11 1 1 Convolution10_ReLU10_splitncnn_1 Convolution11_ReLU11 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Convolution Convolution12 1 1 Convolution11_ReLU11 Convolution12_ReLU12 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution13 1 1 Convolution12_ReLU12 Convolution13_ReLU13 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Split splitncnn_5 1 2 Convolution13_ReLU13 Convolution13_ReLU13_splitncnn_0 Convolution13_ReLU13_splitncnn_1 +Pooling Pooling2 1 1 Convolution13_ReLU13_splitncnn_1 Pooling2 0=1 4=1 +InnerProduct Convolution14 1 1 Pooling2 Convolution14_ReLU14 0=16 1=1 2=2048 9=1 +InnerProduct Convolution15 1 1 Convolution14_ReLU14 Flatten2 0=128 1=1 2=2048 9=4 +Scale Scale2 2 1 Convolution13_ReLU13_splitncnn_0 Flatten2 Scale2 0=-233 +Split splitncnn_6 1 2 Scale2 Scale2_splitncnn_0 Scale2_splitncnn_1 +Convolution Convolution16 1 1 Scale2_splitncnn_1 Convolution16_ReLU15 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Convolution Convolution17 1 1 Convolution16_ReLU15 Convolution17_ReLU16 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Convolution Convolution18 1 1 Convolution17_ReLU16 Convolution18_ReLU17 0=128 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Split splitncnn_7 1 2 Convolution18_ReLU17 Convolution18_ReLU17_splitncnn_0 Convolution18_ReLU17_splitncnn_1 +Pooling Pooling3 1 1 Convolution18_ReLU17_splitncnn_1 Pooling3 0=1 4=1 +InnerProduct Convolution19 1 1 Pooling3 Convolution19_ReLU18 0=16 1=1 2=2048 9=1 +InnerProduct Convolution20 1 1 Convolution19_ReLU18 Flatten3 0=128 1=1 2=2048 9=4 +Scale Scale3 2 1 Convolution18_ReLU17_splitncnn_0 Flatten3 Scale3 0=-233 +Deconvolution Deconvolution3 1 1 Scale3 Deconvolution3_ReLU19 0=128 1=2 3=2 5=1 6=65536 9=2 -23310=1,0.100000 +Split splitncnn_8 1 2 Deconvolution3_ReLU19 Deconvolution3_ReLU19_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 +Crop Crop2 2 1 Scale2_splitncnn_0 Deconvolution3_ReLU19_splitncnn_1 Crop2 0=4 1=4 +Eltwise Eltwise2 2 1 Crop2 Deconvolution3_ReLU19_splitncnn_0 Eltwise2 0=1 +Convolution Convolution21 1 1 Eltwise2 Convolution21_ReLU20 0=64 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution Convolution22 1 1 Convolution21_ReLU20 Convolution22_ReLU21 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Split splitncnn_9 1 2 Convolution22_ReLU21 Convolution22_ReLU21_splitncnn_0 Convolution22_ReLU21_splitncnn_1 +Pooling Pooling4 1 1 Convolution22_ReLU21_splitncnn_1 Pooling4 0=1 4=1 +InnerProduct Convolution23 1 1 Pooling4 Convolution23_ReLU22 0=8 1=1 2=512 9=1 +InnerProduct Convolution24 1 1 Convolution23_ReLU22 Flatten4 0=64 1=1 2=512 9=4 +Scale Scale4 2 1 Convolution22_ReLU21_splitncnn_0 Flatten4 Scale4 0=-233 +Deconvolution Deconvolution4 1 1 Scale4 Deconvolution4_ReLU23 0=64 1=2 3=2 5=1 6=16384 9=2 -23310=1,0.100000 +Split splitncnn_10 1 2 Deconvolution4_ReLU23 Deconvolution4_ReLU23_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 +Crop Crop3 2 1 Convolution10_ReLU10_splitncnn_0 Deconvolution4_ReLU23_splitncnn_1 Crop3 0=16 1=16 +Eltwise Eltwise3 2 1 Crop3 Deconvolution4_ReLU23_splitncnn_0 Eltwise3 0=1 +Convolution Convolution25 1 1 Eltwise3 Convolution25_ReLU24 0=64 1=3 5=1 6=36864 9=2 -23310=1,0.100000 +Convolution Convolution26 1 1 Convolution25_ReLU24 Convolution26 0=3 1=3 5=1 6=1728 +Split splitncnn_11 1 2 Convolution26 Convolution26_splitncnn_0 Convolution26_splitncnn_1 +Crop Crop4 2 1 Deconvolution2_splitncnn_0 Convolution26_splitncnn_1 Crop4 0=20 1=20 +Eltwise Eltwise4 2 1 Crop4 Convolution26_splitncnn_0 Eltwise4 0=1 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..833e928293740faba5d4cc5568c179d8834ab179 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1d2c4d91be98e72c0d48d08626cbe7d879aa2b80f740133dcc0d860eabb4189 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise0_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..f868a331c767c395e7e734838d410ee9cf726860 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:536fd7070b023463d30bd105f675acf301760dce539f2fb974bd06906045514f +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise1_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..a305f31880d833027f6e2adee940ee56a1f14a00 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:435f9082425c4520d3586757411ac409b1d67e428ed37ec571feb06f823e245e +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise2_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..07c2b6debad8ae1e36d73e5626d9da924dc5f2e9 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e783a9117d4564fbd0cc376375b29d7eb05bd2e457f748898e82eefb1ace2f1 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/noise3_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..8628a91a1d0117d2723d0ba70b3d49946dc086bd --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27d880903ff81390a3b4a900b67af3381c465279e34297546c9a58781855f7ef +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_anime_style_art_rgb/scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..483513b816e75cd6d4ea3ef0e98bbee9925aca85 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbfc8d57e4333748c9c6db2ec4d5454c98cd1c6aa53289f2989c3bdb4e84b673 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise0_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..44a2e1d6e9dbbb27a2a79384ab82472eaefc4f46 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f8ce2c4df1ed862a7441e3b49ad965b8e34aaa6d87c1cad52a1768210fdfee6 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise1_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..e25cd1238af0a43761bbacfe44462a97747d6c16 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:432ca8f62ffc4873794a399ded70b17af23aa870b25e5ddba76f029b7ce14c2b +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise2_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..ad02fff02692f6338667b88bbf4c95abe2b08da2 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a24379eb4e954005da1804223f428e67340e3f0037e4f7b9f568f0d0f20e9f20 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/noise3_scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.bin b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.bin new file mode 100644 index 0000000000000000000000000000000000000000..b366a7ce01a819d811cacc8f12e18c11eb29bff6 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25a2bb25b29e43e63179aac216cd87690791243a436328506d4ef9fca88ee962 +size 1106248 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.param b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.param new file mode 100644 index 0000000000000000000000000000000000000000..b1802404ec18915da778c9f58681a82e7b30c0c7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/models-upconv_7_photo/scale2.0x_model.param @@ -0,0 +1,10 @@ +7767517 +8 8 +Input input 0 1 Input1 0=156 1=156 2=3 +Convolution conv1_layer 1 1 Input1 conv1_conv1_relu_layer 0=16 1=3 5=1 6=432 9=2 -23310=1,0.100000 +Convolution conv2_layer 1 1 conv1_conv1_relu_layer conv2_conv2_relu_layer 0=32 1=3 5=1 6=4608 9=2 -23310=1,0.100000 +Convolution conv3_layer 1 1 conv2_conv2_relu_layer conv3_conv3_relu_layer 0=64 1=3 5=1 6=18432 9=2 -23310=1,0.100000 +Convolution conv4_layer 1 1 conv3_conv3_relu_layer conv4_conv4_relu_layer 0=128 1=3 5=1 6=73728 9=2 -23310=1,0.100000 +Convolution conv5_layer 1 1 conv4_conv4_relu_layer conv5_conv5_relu_layer 0=128 1=3 5=1 6=147456 9=2 -23310=1,0.100000 +Convolution conv6_layer 1 1 conv5_conv5_relu_layer conv6_conv6_relu_layer 0=256 1=3 5=1 6=294912 9=2 -23310=1,0.100000 +Deconvolution conv7_layer 1 1 conv6_conv6_relu_layer Eltwise4 0=3 1=4 3=2 4=3 5=1 6=12288 diff --git a/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/waifu2x-ncnn-vulkan b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/waifu2x-ncnn-vulkan new file mode 100644 index 0000000000000000000000000000000000000000..c44e3a11ccb82c4898f40142298f815c23e31cfb --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/bin/waifu2x/waifu2x-ncnn-vulkan @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c18f4ec21879a8b91263551ebaab0a5b5f45ad4c456d90cf626aaaf561b42280 +size 8275344 diff --git a/Twisted Brody Waifus & Creampie BRODY/categories.txt b/Twisted Brody Waifus & Creampie BRODY/categories.txt new file mode 100644 index 0000000000000000000000000000000000000000..f2811970c0ef078b71b741f1d58a8e2db4b6882c --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/categories.txt @@ -0,0 +1,153 @@ +LISTA DE CATEGORÍAS VISUALES (WAIFU BODY - ULTIMATE v2) +========================================================= +Total: 110+ Categorías + +--- 1. EMOCIONES (SOCIAL & EXPRESIONES) --- +[ greeting ] 👋 Saludo / Hola +[ bienvenida ] 🏡 Bienvenida de regreso / Tiempo sin verte +[ happy ] 😊 Feliz / Sonriendo / Radiante +[ laugh ] 🤣 Risa / Carcajada / Divertida +[ angry ] 😡 Enojada / Molesta / Ceño fruncido +[ pouting ] 😤 Puchero enojada / "Hmpf" +[ sad ] 😭 Triste / Llorando / Deprimida +[ shock ] 👀 Sorprendida / Impactada / "!!" +[ confused ] 🤨 Confundida / Duda / "¿Eh?" +[ scared ] 😨 Asustada / Miedo / Temblorosa +[ disgusted ] 🤢 Asqueada / Desprecio / Mirada sucia +[ thinking ] 🤔 Pensando / Idea / Duda +[ wink ] 😉 Guiño / Complicidad +[ bored ] 😑 Aburrida / Desinteresada +[ tired ] 🥱 Cansada / Bostezando +[ drunk ] 🥴 Borracha / Mareada / Alcohol +[ crazy ] 🤪 Loca / Yandere Soft / Ojos de loca +[ pleading ] 🥺 Suplicando / Ojos de cachorro / "Por favor" +[ smug ] 😏 Burlona / Presumida / "Jeje" +[ shy ] 😳 Tímida / Sonrojada / Vergüenza + +--- 2. ROMANCE Y CARIÑO (EXPANDIDO) --- +[ love ] 🥰 Enamorada / Mirada de Amor / Ojos corazón +[ kiss ] 💋 Beso / Labios / Mwaa +[ deep_kiss ] 👅 Beso con lengua / Apasionado +[ blow_kiss ] 😘 Beso al aire +[ hug ] 🤗 Abrazo / Brazos abiertos +[ holding ] 🤝 Tomados de la mano / Entrelazados +[ lap_pillow] 🦵 Almohada de regazo / Lap Pillow / Durmiendo en ella +[ lap_sit ] 🪑 Sentada en tu regazo / Encima de ti (Ropa) +[ feeding ] 🥄 Dándote de comer / "Aaaahn" +[ headpat ] 💆‍♀️ Recibiendo caricias / Headpat +[ cuddle ] 🛌 Acurrucados / Cucharita (Ropa) +[ lean ] 😫 Apoyada en tu hombro +[ cheek ] 😚 Beso en la mejilla +[ forehead ] 😗 Beso en la frente +[ ring ] 💍 Mostrando el anillo / Boda / Compromiso +[ date ] 🥂 En una cita / Cena romántica +[ heart ] 🫶 Haciendo corazón con manos +[ stare ] 👁️ Mirada fija intensa (Eye Contact) + +--- 3. COSPLAY Y VESTUARIO (OUTFITS) --- +[ casual ] 👚 Ropa de calle / Casual / Jeans +[ dress ] 👗 Vestido bonito / Elegante +[ sundress ] 🌻 Vestido de verano / Ligero +[ wedding ] 👰 Vestido de Novia / Boda +[ bikini ] 👙 Bikini / Playa / Traje de baño +[ micro ] 🧵 Micro Bikini / Hilo dental +[ gym ] 🏋️‍♀️ Ropa deportiva / Yoga Pants / Sport Bra +[ school ] 🎒 Uniforme Escolar / Sailor +[ bloomer ] 🩳 Bloomers / Ropa gimnasia japonesa +[ maid ] 🧹 Maid / Sirvienta / Delantal +[ nurse ] 💉 Enfermera / Hospital +[ police ] 👮‍♀️ Policía / Esposas +[ bunny ] 🐰 Bunny Girl / Traje de coneja +[ cheongsam ] 🇨🇳 China Dress / Qipao +[ kimono ] 👘 Kimono / Yukata +[ goth ] 🖤 Gótica / Lolita / Negro +[ ol ] 💼 Office Lady / Secretaria / Traje +[ sweater ] 🧶 Sweater grande / Virgin Killer +[ pajamas ] 🧸 Pijamas / Babydoll / Dormir +[ towel ] 🧖‍♀️ Solo toalla / Recién bañada +[ apron ] 🍳 Delantal desnuda (Naked Apron) +[ cat_girl ] 🐱 Gatita / Neko / Orejas de Gato +[ dog_girl ] 🐶 Perrita / Dog Girl / Collar +[ cow_girl ] 🐮 Vaquita / Cow Girl / Estampado vaca +[ fox_girl ] 🦊 Zorrita / Kitsune +[ doctor ] 🩺 Doctora / Bata Blanca +[ nurse ] 💉 Enfermera / Nurse (Ya estaba, reforzado) +[ teacher ] 👩‍🏫 Maestra / Profesora / Lentes +[ nun ] ⛪ Monja / Hábito +[ witch ] 🧙‍♀️ Bruja / Sombrero Mágico +[ vampire ] 🧛‍♀️ Vampiresa / Colmillos +[ succubus ] 😈 Súcubo / Alas / Cuernos +[ elf ] 🧝‍♀️ Elfa / Orejas puntiagudas +[ goblin ] 👹 Duende / Goblin Girl + +--- 4. NSFW SOFT (TEASE & FETISH) --- +[ horny ] 🥵 Excitada / Caliente / Sudando +[ lingerie ] 👙 Lencería Sexy / Encaje +[ bra ] 👙 Mostrando sostén / Levantando blusa +[ panties ] 🩲 Mostrando bragas / Bajándolas / Skirt Lift +[ nude ] 🍑 Desnudo Total (Frontal) +[ nude_back ] 🍑 Desnudo Trasero / Espalda +[ ass ] 🍑 Culo / Nalgas (Close-up) +[ boobs ] 🍒 Tetas / Pechos (Close-up) +[ nipples ] 🔘 Pezones / Tits Out +[ feet ] 🦵 Pies / Soles / Dedos +[ legs ] 🦵 Piernas / Medias / Pantimedias +[ armpits ] 🙆‍♀️ Axilas / Brazos arriba +[ sweat ] 💦 Sudor / Piel brillante +[ oil ] 🧴 Aceite / Lubricada / Brillante +[ bondage ] 🪢 Bondage / Shibari / Cuerdas +[ collar ] 🐕 Collar / Correa / Mascota + +--- 5. NSFW HARD (ACTOS SEXUALES) --- +[ masturb ] ☝️ Masturbándose / Dedos +[ toy_play ] 🧸 Usando Juguete / Vibrador / Dildo +[ blowjob ] 🍆 Mamada / Oral (Chupando) +[ deepthroat] 😲 Garganta profunda / Deepthroat +[ cum_mouth ] 👄 Semen en boca / Tragando +[ facesit ] 🪑 Facesitting / Sentada en cara +[ paizuri ] 🍒 Paizuri / Titfuck / Cubana +[ handjob ] ✊ Paja / Handjob +[ doggy ] 🐕 4 Patas / Perrito (Doggystyle) +[ mission ] 🛌 Misionero / Acostada (Missionary) +[ cowgirl ] 🤠 Montando / Encima (Cowgirl) +[ standing ] 🧍 Sexo de pie / Standing +[ anal ] 🍩 Anal / Sexo Anal +[ gangbang ] 👥 Gangbang / Grupo / Múltiples hombres +[ double ] ✌️ Double Penetration / Doble penetración +[ lesbian ] ✂️ Tijeretas / Lesbian / Yuri / Tribadismo + +--- 6. NSFW FINAL (CLÍMAX) --- +[ cum_face ] 💦 Facial / Semen en cara +[ cum_body ] 💦 Semen en cuerpo / Tetas +[ creampie ] 🥧 Creampie / Semen dentro (Vagina) +[ anal_pie ] 🍩 Anal Creampie / Semen dentro (Ano) +[ bukkake ] ☔ Bukkake / Mucho semen +[ ahegao ] 🥴 Ahegao Extremo (Ojos blancos, lengua fuera) +[ after ] 🚬 Aftercare / Abrazados post-sexo / Cansada +[ mess ] 💧 Toda sucia / Messy + +--- 7. CONTEXTO --- +[ sleep ] 😴 Durmiendo (Real) +[ eat ] 🍽️ Comiendo / Comida +[ bath ] 🛁 En la bañera / Agua +[ toilet ] 🚽 En el baño / Orinando (Opcional) +[ selfie ] 📱 Selfie espejo + +--- 8. VULGAR (ANATOMÍA & DETALLES) --- +[ pussy ] 🐱 Vagina / Coño / Pussy (Close-up) +[ dick ] 🍆 Pene / Verga / Polla (Close-up) +[ anus ] 🍩 Ano / Ojal / Rosca (Close-up) +[ spread ] 👐 Spreading / Abriendo nalgas o labios +[ orgy ] 👯‍♀️ Orgía / Grupo / Fiesta Sexual +[ cuckold ] 🐂 Cornudo / NTR / Netorare +[ sex ] 👉👌 Sexo / Follando / Coito +[ slut ] 🤬 Puta / Perra / Zorra (Actitud) +[ milk ] 🥛 Leche / Lactancia / Breast Milk +[ cum ] 💦 Semen / Leche (Generic Cum) +[ threesome ] 3️⃣ Trío / Threesome +[ rimjob ] 😋 Beso negro / Rimjob / Lamiendo ano +[ spit ] 🤤 Saliva / Escupir / Intercambio +[ choking ] 👋 Ahorcando / Choking / Manos en cuello +[ spank ] 👋 Nalgadas / Spanking / Azotes +[ fisting ] ✊ Fisting / Puño entero +[ squirt ] 💦 Squirt / Eyaculación femenina / Charco diff --git a/Twisted Brody Waifus & Creampie BRODY/check_eporner.py b/Twisted Brody Waifus & Creampie BRODY/check_eporner.py new file mode 100644 index 0000000000000000000000000000000000000000..f5cf63585af0e96312515df46e06914003148afb --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/check_eporner.py @@ -0,0 +1,20 @@ +import aiohttp +import asyncio + +async def check_url(): + url = "https://www.eporner.com/dload/gUfgGJfDswu/1080/15012343-1080p.mp4" + print(f"Checking URL: {url}") + headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'} + async with aiohttp.ClientSession() as session: + async with session.get(url, headers=headers) as resp: + print(f"Status: {resp.status}") + print(f"Content-Type: {resp.headers.get('Content-Type')}") + if resp.status != 200: + print("URL is not accessible.") + else: + print("URL is accessible.") + content = await resp.read() + print(f"Content-Length: {len(content)}") + +if __name__ == "__main__": + asyncio.run(check_url()) diff --git a/Twisted Brody Waifus & Creampie BRODY/check_models.py b/Twisted Brody Waifus & Creampie BRODY/check_models.py new file mode 100644 index 0000000000000000000000000000000000000000..21c6f2a66725584aac5819ea935d5235fbee415b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/check_models.py @@ -0,0 +1,18 @@ +from google import genai +import os + +api_key = "AIzaSyDl7RbV8tI4gFD5Fy7vcoqtP_phTqh14v0" + +try: + client = genai.Client(api_key=api_key) + print("Checking available models...") + + # List models (using v1beta method if needed, or standard) + # The new SDK structure might differ, commonly it's client.models.list() + + # We'll try the standard way for this SDK + for model in client.models.list(): + print(f"Found model: {model.name}") + +except Exception as e: + print(f"Error listing models: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/check_versions.py b/Twisted Brody Waifus & Creampie BRODY/check_versions.py new file mode 100644 index 0000000000000000000000000000000000000000..b846b2cf1b853a8a92a3fba0e5e9d450cab9ff09 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/check_versions.py @@ -0,0 +1,24 @@ +import sys +import shutil + +try: + import yt_dlp + print(f"yt-dlp version: {yt_dlp.version.__version__}") +except ImportError: + print("yt-dlp not installed in python env") + +gdl = shutil.which("gallery-dl") +print(f"gallery-dl path: {gdl}") + +# Also try running gallery-dl command just in case it's in a local folder +import subprocess +try: + subprocess.run(["gallery-dl", "--version"], check=False) +except FileNotFoundError: + print("gallery-dl command not found") + +import os +if os.path.exists("bin/gallery-dl.exe"): + print("gallery-dl found in bin/") +if os.path.exists("gallery-dl.exe"): + print("gallery-dl found in root") diff --git a/Twisted Brody Waifus & Creampie BRODY/cleanup_utils.py b/Twisted Brody Waifus & Creampie BRODY/cleanup_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..e297090c1e300e5e9039e32a97a93c686af8dc41 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cleanup_utils.py @@ -0,0 +1,166 @@ +import os + +file_path = "c:/Users/Gonzalo/Downloads/Twisted Brody Waifus & Creampie/utils.py" + +# New content for the function +new_function_code = '''def format_tracemoe_results(data): + """Formatea resultados de trace.moe + anilist info EXTENDIDO.""" + if not data or isinstance(data, str) or 'result' not in data: + return "🤷‍♂️ **Trace.moe: Sin resultados.**", None, False + + results = data['result'] + if not results: + return "🤷‍♂️ **Trace.moe: Sin coincidencias.**", None, False + + # Filtrar y tomar el mejor + best = results[0] + similarity = float(best.get('similarity', 0)) * 100 + + if similarity < 85.0: + return "🤷‍♂️ **Trace.moe: Sin coincidencias sólidas (<85%).**", None, False + + # Obtener info extra de Anilist + anilist_id = best.get('anilist', None) + meta = {} + if anilist_id: + from utils import get_anilist_info # Ensure import if needed, or rely on global + meta = get_anilist_info(anilist_id) or {} + + # --- PROCESAR DATOS DE ANILIST --- + + # 1. Títulos + titles = meta.get('title', {}) + title_romaji = titles.get('romaji', 'Desconocido') + title_native = titles.get('native') + + # 2. Info + episodes = meta.get('episodes', '?') + duration = meta.get('duration', '?') + fmt = meta.get('format', 'TV') + + desc_type = f"{episodes} ep. ({duration} min) {fmt} anime." + + start = meta.get('startDate', {}) + end = meta.get('endDate', {}) + s_date = f"{start.get('year', '?')}-{start.get('month', '?')}-{start.get('day', '?')}" + e_date = f"{end.get('year', '?')}-{end.get('month', '?')}-{end.get('day', '?')}" + aired = f"Airing from {s_date} to {e_date}." + + # 3. Alias + aliases = meta.get('synonyms', []) + alias_str = aliases[0] if aliases else "None" + + # 4. Géneros + genres = meta.get('genres', []) + genre_str = ", ".join(genres[:3]) if genres else "Unknown" + + # 5. Studios + studios_node = meta.get('studios', {}).get('nodes', []) + studios_str = "Unknown" + if studios_node: + studios_str = ", ".join([s['name'] for s in studios_node]) + + # 6. Clip Match + match_episode = best.get('episode', '?') + time_pos = best.get('from', 0) + m, s = divmod(int(time_pos), 60) + time_str = f"{m}:{s:02d}" + + # NSFW Check + is_adult = meta.get('isAdult', False) + video_preview = best.get('video', '') + + # --- CONSTRUIR EL MENSAJE FINAL (EXACTO) --- + msg = f""" +📁 Trace moe resultados +📁 Similitud: {similarity:.2f}% + +📁 Title: `{title_romaji}` +📁 `{title_native if title_native else ''}` +📁 Info: {desc_type} +{aired} +📁 Alias: `{alias_str}` +📁 Genre: {genre_str} +📁 Studio: {studios_str} +📁 Clip Match: Episode: {match_episode} (Time: {time_str}) +""" + + return msg, video_preview, is_adult +''' + +try: + with open(file_path, 'r', encoding='utf-8') as f: + lines = f.readlines() + + output_lines = [] + + # State machine to skip the FIRST definition of format_tracemoe_results + # and REPLACE the SECOND definition. + + found_first_def = False + skipping_first = False + + found_second_def = False + skipping_second = False + replaced_second = False + + i = 0 + while i < len(lines): + line = lines[i] + + # Detect function start + if line.strip().startswith("def format_tracemoe_results(data):"): + if not found_first_def: + # Found the first one (the duplicate/bad one). Start skipping. + found_first_def = True + skipping_first = True + + # Check where this function ends (naive check: next def or special comment) + # In the file, it seems followed by # --- TRACE.MOE API SERVICE --- (approx) + # We will skip until we see a line starting with 'def ' or '# ---' that is NOT this function + i += 1 + continue + else: + # Found the second one! This is where we want to put the NEW code. + found_second_def = True + skipping_second = True + + if not replaced_second: + output_lines.append(new_function_code + "\n") + replaced_second = True + + i += 1 + continue + + if skipping_first: + # We are inside the first unwanted function. + # Stop skipping if we hit a new function definition or section header + if line.strip().startswith("def ") or line.strip().startswith("# --- TRACE.MOE API SERVICE ---"): + skipping_first = False + output_lines.append(line) # Keep this line (it's the next thing) + # Else: Drop the line + i += 1 + continue + + if skipping_second: + # We are inside the second function (which we already replaced). + # Stop skipping if we hit end of file or next def (though it's likely EOF) + if line.strip().startswith("def "): # Safety break if there is another function + skipping_second = False + output_lines.append(line) + # Else: Drop the line + i += 1 + continue + + # Normal line, keep it + output_lines.append(line) + i += 1 + + # Write back + with open(file_path, 'w', encoding='utf-8') as f: + f.writelines(output_lines) + + print("Successfully cleaned up utils.py") + +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/config.py b/Twisted Brody Waifus & Creampie BRODY/config.py new file mode 100644 index 0000000000000000000000000000000000000000..5ba59060df16270a95142b3c3966a089855d9400 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/config.py @@ -0,0 +1,75 @@ +import shutil +import os + +# ==== Directorios del Proyecto ==== +BASE_DIR = os.path.dirname(os.path.abspath(__file__)) +COOKIES_DIR = os.path.join(BASE_DIR, "cookies") +DATA_DIR = os.path.join(BASE_DIR, "data") +DOWNLOAD_DIR = os.path.join(BASE_DIR, "downloads") +TOOLS_DIR = os.path.join(BASE_DIR, "tools") + +# Crear directorios si no existen (lo hará el script, pero por seguridad) +for d in [COOKIES_DIR, DATA_DIR, DOWNLOAD_DIR, TOOLS_DIR]: + os.makedirs(d, exist_ok=True) + +# ==== Bot credentials (replace with your own) ==== +# ==== Bot credentials (replace with your own) ==== +API_ID = int(os.getenv("API_ID", "33226415")) +API_HASH = os.getenv("API_HASH", "01999dae3e5348c7ab0dbcc6f7f4edc5") +BOT_TOKEN = os.getenv("TELEGRAM_TOKEN") or os.getenv("BOT_TOKEN", "7898954550:AAE2o647txXxHq2I93LqlDTMNWl6JLerAsc") +GEMINI_API_KEY = os.getenv("GEMINI_API_KEY", "AIzaSyCIY2Wic63XNx-FffapTqqlck0V8M9ivoo") + +# CHANNEL FOR BACKGROUND CACHER (Optional) +# If set, the bot will upload covers here silently to generate File IDs +try: + DUMP_CHAT_ID = int(os.getenv("DUMP_CHAT_ID", 0)) + if DUMP_CHAT_ID == 0: DUMP_CHAT_ID = None +except: + DUMP_CHAT_ID = None + +# Admin / Creator +OWNER_ID = 5565051026 + +# Canal de Base de Datos (Respaldo) +DATABASE_CHANNEL = -1003688499156 + +# ==== Cookie map ==== +# Ahora apuntan a la carpeta cookies/ +COOKIE_MAP = { + "facebook": os.path.join(COOKIES_DIR, "cookies_facebook.txt"), + "instagram": os.path.join(COOKIES_DIR, "cookies_instagram.txt"), + "tiktok": os.path.join(COOKIES_DIR, "cookies_tiktok.txt"), + "pornhub": os.path.join(COOKIES_DIR, "cookies_pornhub.txt"), + "xvideos": os.path.join(COOKIES_DIR, "cookies_xvideos.txt"), + "twitter": os.path.join(COOKIES_DIR, "cookies_x.txt"), + "x.com": os.path.join(COOKIES_DIR, "cookies_x.txt"), + "jav": os.path.join(COOKIES_DIR, "cookies_jav.txt"), + "missav": os.path.join(COOKIES_DIR, "cookies_jav.txt"), + "vimeo": os.path.join(COOKIES_DIR, "vimeo_cookies.txt"), + "dropbox.com": os.path.join(COOKIES_DIR, "dropbox_cookies.txt"), + "facebook": os.path.join(COOKIES_DIR, "cookies_facebook.txt"), + "fb.watch": os.path.join(COOKIES_DIR, "cookies_facebook.txt"), + "instagram": os.path.join(COOKIES_DIR, "cookies_instagram.txt"), + "tiktok": os.path.join(COOKIES_DIR, "cookies_tiktok.txt"), + "youtube": os.path.join(COOKIES_DIR, "cookies_youtube.txt"), + "youtu.be": os.path.join(COOKIES_DIR, "cookies_youtube.txt"), + "eporner": os.path.join(COOKIES_DIR, "cookies_eporner.txt"), +} + +DB_FILE = os.path.join(DATA_DIR, "descargas.json") +SESSION_NAME = os.path.join(DATA_DIR, "mi_bot_pro") + +# Telegram limit 2GB, increased to 50GB for download before split +LIMIT_2GB = 50 * 1024 * 1024 * 1024 + +# ==== Herramientas Externas ==== +# Detectar OS para path de herramientas +# fast_tool path +if os.name == 'nt': + FAST_PATH = os.path.join(TOOLS_DIR, "aria"+"2c.exe") +else: + # Linux / Termux + FAST_PATH = "aria"+"2c" + +HAS_FAST = shutil.which("aria"+"2c") is not None or os.path.exists(FAST_PATH) +HAS_FFMPEG = shutil.which("ffmpeg") is not None diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_eporner.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_eporner.txt new file mode 100644 index 0000000000000000000000000000000000000000..db9d194ef55b587b9e691242d423746f527fcb78 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_eporner.txt @@ -0,0 +1,17 @@ +# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +es.eporner.com FALSE / FALSE 1795547620 epcolor black +es.eporner.com FALSE / FALSE 1797966820 _pk_id.1.80e5 85205178313c45a6.1764011620. +es.eporner.com FALSE / FALSE 1797966820 _pk_id.17.80e5 afe666925b7d7289.1764011620. +es.eporner.com FALSE / FALSE 1797969440 _pk_id.5.80e5 3376777ecdf82541.1764014240. +es.eporner.com FALSE / FALSE 1780898438 _pk_ref.5.80e5 %5B%22%22%2C%22%22%2C1765130438%2C%22https%3A%2F%2Fwww.google.com%2F%22%5D +.eporner.com TRUE / TRUE 1771380944 PHPSESSID e764e9883899d79a4e57269592a6a9e0 +es.eporner.com FALSE / TRUE 1771624972 EPRNS b1323f9a4bf2618cd8833a4b6ba65ed5 +es.eporner.com FALSE / FALSE 0 ADBp yes +es.eporner.com FALSE / FALSE 1786183373 _pk_ref.1.80e5 %5B%22%22%2C%22%22%2C1770415373%2C%22https%3A%2F%2Fwww.google.com%2F%22%5D +es.eporner.com FALSE / FALSE 1770417242 _pk_ses.1.80e5 1 +es.eporner.com FALSE / FALSE 1786183373 _pk_ref.17.80e5 %5B%22%22%2C%22%22%2C1770415373%2C%22https%3A%2F%2Fwww.google.com%2F%22%5D +es.eporner.com FALSE / FALSE 1770417242 _pk_ses.17.80e5 1 +es.eporner.com FALSE / FALSE 1785967440 g_state {"i_l":0,"i_ll":1770415431398,"i_e":{"enable_itp_optimization":17}} diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_facebook.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_facebook.txt new file mode 100644 index 0000000000000000000000000000000000000000..4a3e2fd17c8736c6eef892778a2131080b11f07a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_facebook.txt @@ -0,0 +1,4 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.facebook.com TRUE / TRUE 1804473454 sb bbx-aainOo6DRQPUhfi2YLlw diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_instagram.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_instagram.txt new file mode 100644 index 0000000000000000000000000000000000000000..e96a847493d850100ee352955d5cc87cf0792396 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_instagram.txt @@ -0,0 +1,12 @@ +# Netscape HTTP Cookie File + +.instagram.com TRUE / TRUE 1801936093 mid aVgE2wALAAGEYKbf_c-3NOuCJIsc +.instagram.com TRUE / TRUE 1801936386 datr AQZYaUDdgR47bETKezyO855h +.instagram.com TRUE / TRUE 1798912393 ig_did E98F49E2-5EFA-42B8-8221-E9DA6F3361EC +.instagram.com TRUE / TRUE 1798912391 ig_nrcb 1 +.instagram.com TRUE / TRUE 1804644178 csrftoken a4360c7b6e5f46f6b288ddacfb673d31 +.instagram.com TRUE / TRUE 1770684530 dpr 1.25 +.instagram.com TRUE / TRUE 1770684530 wd 1536x738 +.instagram.com TRUE / TRUE 1777860178 ds_user_id 65262154090 +.instagram.com TRUE / TRUE 1801615723 sessionid 65262154090%3AqOEDBHKdshaeNQ%3A10%3AAYgC8dyNkvMcLvzL47HxPxUnj9OYQYJWbp1dxW2SbQ +.instagram.com TRUE / TRUE 0 rur "GTN\05465262154090\0541801620178:01fed1386ad4e697eef51eb85ddfcc07d06fb2b3570964a551e3247731e8a475ae44ffb7" diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_jav.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_jav.txt new file mode 100644 index 0000000000000000000000000000000000000000..e0b0955bd12c2e0def26a4b14683f7b0e2bf2a33 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_jav.txt @@ -0,0 +1,8 @@ +# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +.javxxx.me TRUE / FALSE 1798246064 _ga GA1.1.1063518609.1763606476 +.javxxx.me TRUE / FALSE 1798210292 _ga_EPCC3CFKF2 GS2.1.s1763650002$o2$g0$t1763650291$j60$l0$h0 +.javxxx.me TRUE / FALSE 0 _scribe true +.javxxx.me TRUE / FALSE 1798246068 _ga_EZBDQDPWR3 GS2.1.s1763685772$o4$g1$t1763686067$j51$l0$h0 \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_pornhub.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_pornhub.txt new file mode 100644 index 0000000000000000000000000000000000000000..0f5481498eb696e65aad55f6af2964dbe4258b23 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_pornhub.txt @@ -0,0 +1,30 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.pornhub.com TRUE / TRUE 1796666933 ss 622127382887760542 +.pornhub.com TRUE / TRUE 1796666933 sessid 813993118168190581 +.pornhub.com TRUE / TRUE 1796687859 __l 6935C2B4-42FE722901BB2FEA3F-3DE8E374 +.pornhub.com TRUE / FALSE 1805838810 _ga GA1.1.782546871.1765130937 +.pornhub.com TRUE / TRUE 1796666949 lvv 250286288644564106 +.pornhub.com TRUE / TRUE 1796666949 vlc 479930477885370351 +.pornhub.com TRUE / TRUE 1796917498 cookieConsent 3 +.pornhub.com TRUE / FALSE 1780933497 g_state {"i_l":0,"i_ll":1765381478170} +.pornhub.com TRUE / TRUE 1781192698 il v1ZoCJCTxtZJoUuds-tYF1eIoveDUJD-q2he-Q9CwFncMxNzgxMTkyNjk4SkZ3NGhMdzZOMk40RXFUR2RvV0M1WHNmUTI2dS0zanFyZDR2TFNDaQ.. +.pornhub.com TRUE / TRUE 1796917498 bs 82ec02b270e1a83342e7c7fcd2f53cc7 +.pornhub.com TRUE / TRUE 1796917498 bsdd 82ec02b270e1a83342e7c7fcd2f53cc7 +.pornhub.com TRUE / TRUE 1771380669 fg_7d31324eedb583147b6dcbea0051c868 84545.100000 +.pornhub.com TRUE / TRUE 1774817444 fg_55e3b6f0afd46366d6fa797544b15af2 11299.100000 +.pornhub.com TRUE / TRUE 1772311844 ua 9fea701a627a57d0c458db2e1cb60d62 +.pornhub.com TRUE / TRUE 1773870809 comp_detect-cookies 21348.100000 +.pornhub.com TRUE / TRUE 1773870809 fg_afaf12e314c5419a855ddc0bf120670f 37222.100000 +.pornhub.com TRUE / TRUE 0 __s 699391D8-42FE722901BBFC3CB-28AC504 +.pornhub.com TRUE / FALSE 1805838810 _ga_B39RFFWGYY GS2.1.s1771278810$o16$g0$t1771278810$j60$l0$h0 +.pornhub.com TRUE / TRUE 1771883886 platform pc +es.pornhub.com FALSE / FALSE 0 rp 264461258:N+nybuZGbAY= +pornhub.com FALSE / FALSE 0 age_verified 1 +pornhub.com FALSE / FALSE 0 accessAgeDisclaimerPH 1 +pornhub.com FALSE / FALSE 0 accessAgeDisclaimerUK 1 +pornhub.com FALSE / FALSE 0 accessPH 1 +pornhub.com FALSE / FALSE 0 platform pc +www.pornhub.com FALSE / FALSE 0 rp 3070003775:uJtt7iB12Jc= +.phncdn.com TRUE / TRUE 1772227329 __cf_bm Zzcaq1xLvAaDRtDrG25gRPqz00ByckL5uzSofjZTtVw-1772225529-1.0.1.1-fRUUWViHzb.jqVVbi4D1A4frteLXBGWI6_2czO1WLxmwxi3wpDbIC3ILrZB6dy5EMNViFhoZLyG0arQdbPMQh6zEWqaf2yhVVfkzRgclsMQ diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_tiktok.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_tiktok.txt new file mode 100644 index 0000000000000000000000000000000000000000..a891900471bfd8bcd9691a98d1ae78da8671ad1b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_tiktok.txt @@ -0,0 +1,8 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.tiktok.com TRUE / TRUE 1785713770 tt_chain_token pyHqLzKx+tHJchUrOFeT4g== +.tiktok.com TRUE / FALSE 1795110970 odin_tt 6d212201e01c2a9352cf1528519f71b7366bf13334e1d121d12123cddf43cf617cc58c7c2293170bae8c795919cf6ece7ff43d512278bc6404d7da5801d85633a402d39472f51413bf57af87c219cf22 +.tiktok.com TRUE / TRUE 0 tt_csrf_token r77WIogo-HnJOexV1FSr26_3kBMqenj3vQ34 +.tiktok.com TRUE / TRUE 1795134779 ttwid 1%7CtsK01z7uLSLNVuTuZRLKQO7ZQDUf7vjIB4yZ0u43S-A%7C1763598777%7C1a54b9bd39ad58b9c8ab92ecd7d0020c9905578a9de05832261d58e632c3b709 +.tiktok.com TRUE / TRUE 1771025770 msToken Qc2p-ogDgPONZLjPbF3B2nadh42s-UjASjgLeYPFhD_tEQT8CJpnPM2uSFhhgxQCieb8hMWF6gyqhZQRcaPKZYNUuwzlXozDlJAtEPiGhzkQcrOozxeyiw== diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_x.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_x.txt new file mode 100644 index 0000000000000000000000000000000000000000..2e1aee5e93c090475293ba5439583d6e9b3df42d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_x.txt @@ -0,0 +1,15 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.x.com TRUE / TRUE 1836149801 guest_id_marketing v1%3A176412169727345239 +.x.com TRUE / TRUE 1836149801 guest_id_ads v1%3A176412169727345239 +.x.com TRUE / TRUE 1798681697 guest_id v1%3A176412169727345239 +.x.com TRUE / FALSE 1800054952 __cuid 76ad608c962249e9a9e2c3925c8e6431 +.x.com TRUE / TRUE 1799863103 personalization_id "v1_bu/N4NSjYDYzqC68GbCSWQ==" +.x.com TRUE / TRUE 1799863115 kdt gknodKJ0bme1aZr4i6pJkYUZ4LJyVaFcUmvj9jfz +.x.com TRUE / TRUE 1799863115 auth_token 37d5ec2e25b82eff14e9529d0cefad0bbd51fafb +.x.com TRUE / TRUE 1799863116 ct0 21719ee94c9d02f5cad5c54dd7add91fa1ab82926b31106ff542186fe1a4912a487cdb06275b4d3d3a349a0a232ab35a0d1d6402028c4d0c009a55d949501e3354939c65f04aa2f75aa0f0a935a58ddd +.x.com TRUE / TRUE 1804613801 twid u%3D1730753497308499968 +.x.com TRUE / TRUE 1773079601 __cf_bm SxAixSVZQvFSbPhwfQoxbbEUxM56iT47vNf0NRsvBTs-1773077800.8296795-1.0.1.1-QpjWKXmUo1s4maDQfw6BNHbG6Kenyp0ONv1DEzH4tqgTWGaHnNGWCN9Ghhz4brm6J2S3m8RWV4iTk7VztZNNThTeWG7XFkQaBDSaCM7MmessKk_iVSkUHAX7.Zn9dEOo +x.com FALSE / FALSE 1780855113 g_state {"i_l":0,"i_ll":1765303109016} +x.com FALSE / FALSE 0 lang es diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_xvideos.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_xvideos.txt new file mode 100644 index 0000000000000000000000000000000000000000..f02677ccf6a4ba1e96e4da01df83402ad1c1f118 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_xvideos.txt @@ -0,0 +1,6 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.xvideos.com TRUE / TRUE 1786829492 session_token 52700f211f907ccail0bB9jZr3m1q28t9Pe_kiJmVwKhjnw7xh7F3xsbHaCQDVaSgYQmHC9AORfZPT7ZmUO-x6yMZF2CJFilntqxHaXnqi5JE8P4jJRf6uasUFY4qZK6obtcWlSa6b9cynIpGoxSg0hZKUeI1NnuIvUfuleLf7dRbMb3CW1CIDaWWJv6qbmR0wtb16GucIqLZcjQljUAvXjxX8FK_CCSqBaOzQ%3D%3D +.xvideos.es TRUE / TRUE 1787778844 session_token 214517b67d05f3a5W4087SxI5SWVxzkVmhsV-469-ECjEuZdunEi68MdXbkF-2ILAW6zMahVgNUSlB__H6Eiv334nQEjabQ9cIVJduqPiWjtjT4JaSChqHtokynN1ENzV_pfqWAFIe39zk7PzhBCDNqTYw8RaNvNcbwlKc8snR2Wt5kIMT4m4uPnZ5qMBDvsAJhryB10WZ0EfJcXxOUjZutgOo7mMviVB-XCayZuAwVKCn71qohnqXc_MsQ%3D +.xvideos.es TRUE / FALSE 1772830317 cit 27ebb9e60d21d733mnQbKTzGxOyMT8o6X-BfZw%3D%3D diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_youtube.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_youtube.txt new file mode 100644 index 0000000000000000000000000000000000000000..b4e993dd7411047d7e1cd39a647f5577f2ad6711 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/cookies_youtube.txt @@ -0,0 +1,14 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.youtube.com TRUE / TRUE 1798469870 __Secure-3PAPISID j68u4W8ph5C9vbyy/Axlg2_PKFfxcj7XiS +.youtube.com TRUE / TRUE 1798469870 __Secure-3PSID g.a0003wj_l85pnrnRVYhW-VjJSvhVb_2Od6KX_V5wW9T7YJEgkAhjl1KdgqtTClE_xVwXkH3O1wACgYKAaASARMSFQHGX2MiU9iaxpVG38SReDLrnMfi9RoVAUF8yKqX64j4wsCW8aA0X7wO9YIp0076 +.youtube.com TRUE / FALSE 0 PREF f4=4000000&f6=40000000&tz=UTC&f7=100&hl=en +.youtube.com TRUE / TRUE 1797778502 __Secure-1PSIDTS sidts-CjQBflaCdfwMYHgDZoJUPGoYx-HB8X76j-36oLngt9ZsLUXWt1xenxEGDCBwDMB76h43ME41EAA +.youtube.com TRUE / TRUE 1797778502 __Secure-3PSIDTS sidts-CjQBflaCdfwMYHgDZoJUPGoYx-HB8X76j-36oLngt9ZsLUXWt1xenxEGDCBwDMB76h43ME41EAA +.youtube.com TRUE / TRUE 1797778502 __Secure-3PSIDCC AKEyXzUoC0fHmZCaum2KivhR_sECB6dXi9nTv61IZK6nitI5bUoB1hrrGrR7wYA3y_NxrQB1RA +.youtube.com TRUE / TRUE 1787794606 VISITOR_INFO1_LIVE xAITy-dFSN0 +.youtube.com TRUE / TRUE 1787794606 VISITOR_PRIVACY_METADATA CgJQRRIEGgAgSQ%3D%3D +.youtube.com TRUE / TRUE 1787794501 __Secure-ROLLOUT_TOKEN CPeSlJbMrLHi6wEQkPbs7NKkkQMYlt6C5oX7kgM%3D +.youtube.com TRUE / TRUE 0 SOCS CAI +.youtube.com TRUE / TRUE 1772244301 GPS 1 diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/dropbox_cookies.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/dropbox_cookies.txt new file mode 100644 index 0000000000000000000000000000000000000000..cb634549f1da7650e14bdb41b580c2084e6480f9 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/dropbox_cookies.txt @@ -0,0 +1,29 @@ +# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +www.dropbox.com FALSE / TRUE 1799460196 gvc MjAxODM2MzUyMTYwOTc3NDg2MzIxNzMzNzEzMjQ5MjU4MzEyNzI3 +.dropbox.com TRUE / FALSE 1799460196 locale es +www.dropbox.com FALSE / TRUE 1765840273 billing_cycle yearly +.dropbox.com TRUE / TRUE 1799968272 dbx_js_analytics_id AABGBcUEUcL_mEX-CE_nxxnd1B0RXtPwfjFSBOIbfBMvXQ +.dropbox.com TRUE / FALSE 1773184277 _gcl_au 1.1.1422664327.1765408277 +.dropbox.com TRUE / TRUE 1796944278 kn_cs_visitor_id 02bf7c3c-7ceb-49f8-ac7c-a520f031967d +.dropbox.com TRUE / FALSE 1799968340 _mkto_trk id:077-ZJT-858&token:_mch-dropbox.com-44d0dfa92efc5665ef62332e2732f0a6 +.dropbox.com TRUE / FALSE 1773184340 _fbp fb.1.1765408278356.757005048753327392 +.dropbox.com TRUE / FALSE 1796944279 _yjsu_yjad 1765408279.7e081833-5262-4456-b3ce-64410951a29f +www.dropbox.com FALSE / FALSE 1780960312 g_state {"i_l":0,"i_ll":1765408278697} +.dropbox.com TRUE / TRUE 1796944295 _iidt RpxohPOtQZVfmrphyRZfE08/MP7S8PYt4kcI+j2DZJOyaqF9vJs8otARRn8pADP7UkWbMn0X/uiJNQ== +.dropbox.com TRUE / FALSE 1796944294 _vid_t yn65lGCy7iDt5WHYM4dwC2mwpg6V98sq+53v9EQLMpa8VnH0wX33WWpVAMa7oFViIC5W3bh27uPg/Q== +.dropbox.com TRUE / TRUE 1781133112 __Secure-dbx_consent {"consentType":1,"consentDate":"2025-12-10T23:11:52.616Z","expireDate":"2026-06-10T23:11:52.616Z","consentMonths":6,"categories":{"strictly necessary":true,"general marketing and advertising":true,"analytics":true,"performance and functionality":true,"social media advertising":true},"userInteracted":true,"numDots":1} +.www.dropbox.com TRUE / TRUE 1796944314 jar W3sidWlkIjogMTk5MzkyMzk4NywgIm5zIjogMTMzNzQyNDc0NzUsICJyZW1lbWJlciI6IHRydWUsICJleHBpcmVzIjogMTc5Njk0NDMxMywgImgiOiAiIn1d +.dropbox.com TRUE / TRUE 1796944314 db-help-center-uid ZXlKMllXeDFaU0k2SUhzaWRXbGtJam9nTVRrNU16a3lNems0TjMwc0lDSnphV2R1WVhSMWNtVWlPaUFpUVVGRk9VZHdTRVp6U2xsdU4wUmhZMkpDTkdKUE5ESjJRa0ZOT1c5eVQzWTJOMTgwYzI5clRsVmpUVWxoWnlKOQ%3D%3D +.www.dropbox.com TRUE / TRUE 0 preauth +.dropbox.com TRUE / TRUE 1796944314 t 1dPj5jCWk3jFLq-GNGffWbr5 +www.dropbox.com FALSE / TRUE 1796944314 __Host-js_csrf 1dPj5jCWk3jFLq-GNGffWbr5 +www.dropbox.com FALSE / TRUE 1796944314 __Host-ss JOzXv8oBnM +.www.dropbox.com TRUE / TRUE 1796944314 lid AAFqmsRNR7W1KW8ML4gNeteXdT4NO2_G92N1s4zhRu6DGA +.dropbox.com TRUE / TRUE 1796944314 bjar W3sidWlkIjogMTk5MzkyMzk4NywgInNlc3NfaWQiOiAxNTkyNjMwODUzNzc4MDcxNTgxNzc0MDU1Mjg4NDQ2OTU1NjcyOSwgInJvbGUiOiAicGVyc29uYWwiLCAidGVhbV9pZCI6ICIiLCAiZXhwaXJlcyI6IDE3OTY5NDQzMTMsICJ1c2VyX2dpZCI6ICJBQjFMbFhQTi14ZmtRM2lfY0tYTHRJMnoifV0%3D +.dropbox.com TRUE / TRUE 1796944314 blid AAGOisCBxCJXYIejZiBI5-JfsxLzBc--GNOOToRXL9TNFw +.dropbox.com TRUE / TRUE 1796944343 last_active_role personal +.dropbox.com TRUE / TRUE 1796944343 last_active_linked_user_id 8a5689cd +.dropbox.com TRUE / TRUE 1773184339 _rdt_uuid 1765408277913.72676da7-84f8-4ca9-ba22-b0726d3e61e3 diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/google_cookies.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/google_cookies.txt new file mode 100644 index 0000000000000000000000000000000000000000..7f1f03e0c655b5aafdb7931a0db77c0ddb9b070e --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/google_cookies.txt @@ -0,0 +1,26 @@ +# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +.google.com TRUE / FALSE 1801331176 HSID Ap0nS-vJAoocVnBut +.google.com TRUE / TRUE 1801331176 SSID AtpaTKv6lyNrANAa6 +.google.com TRUE / FALSE 1801331176 APISID S21t1gMzR5R-WU60/ATXmkVD-WWN-EUlvr +.google.com TRUE / TRUE 1801331176 SAPISID FauGRdQUqM_c4Kg_/AmWPyedKdIXVHqIy5 +.google.com TRUE / TRUE 1801331176 __Secure-1PAPISID FauGRdQUqM_c4Kg_/AmWPyedKdIXVHqIy5 +.google.com TRUE / TRUE 1801331176 __Secure-3PAPISID FauGRdQUqM_c4Kg_/AmWPyedKdIXVHqIy5 +.aistudio.google.com TRUE / FALSE 1803168185 _ga GA1.1.1940706693.1764168503 +.google.com TRUE / TRUE 1779747989 __Secure-BUCKET CMYE +.google.com TRUE / FALSE 1782073624 SEARCH_SAMESITE CgQI3Z8B +.google.com TRUE / FALSE 1801331176 SID g.a0005AiYa-4d0QTnpGyMYCVZvjXCfJLo5JhS31bwW8OgXuV_i_A-upP4Lq3ITMBlD817YO1tvQACgYKAc4SAQwSFQHGX2MiPJXapk3LSG5rKmIkhJFAexoVAUF8yKqUL3uZhC_yOGNJyeYf8Uam0076 +.google.com TRUE / TRUE 1801331176 __Secure-1PSID g.a0005AiYa-4d0QTnpGyMYCVZvjXCfJLo5JhS31bwW8OgXuV_i_A-2kc7HviUHENtkVDYedVx7wACgYKAS4SAQwSFQHGX2MiWknsnfh9DKyRok6-4S-dPxoVAUF8yKoqOwbNjtQDjdij5DEp8eLJ0076 +.google.com TRUE / TRUE 1801331176 __Secure-3PSID g.a0005AiYa-4d0QTnpGyMYCVZvjXCfJLo5JhS31bwW8OgXuV_i_A-Kfy-_2YZkQgETDImrqJKCQACgYKATgSAQwSFQHGX2MixRI5aRMeK3YxrOw0xd-NJBoVAUF8yKpbk-u9rMU_ZXcG-7t9xpDI0076 +.google.com TRUE / TRUE 1779720355 AEC AaJma5smuAxEnslHMcZRe4uxyA1YcbnQvvLEZ-oovjghhmegbEfLZA6oOfQ +.google.com TRUE / TRUE 1768608411 __Secure-STRP AD6DoguE2fJbIzzSHlWN1qEz-vDgSDfuHRHNWLVhNZWKVNTxcXF_LGd1FHYl9rtpDU8VdUm_hnz3_VBOtTLSU2QiW6esCVq3LmLK +.google.com TRUE / TRUE 1800144117 __Secure-1PSIDTS sidts-CjIB7I_69JgY70VUrkHrtOWLPFwnaY7vfDOXcQ1A3wEKjLOQpfAgWsi5zn1qSTcKU6ZjOxAA +.google.com TRUE / TRUE 1800144117 __Secure-3PSIDTS sidts-CjIB7I_69JgY70VUrkHrtOWLPFwnaY7vfDOXcQ1A3wEKjLOQpfAgWsi5zn1qSTcKU6ZjOxAA +.google.com TRUE / TRUE 1784402600 NID 528=YH3Uwv3_YUSj0z-Cf8Er4K99Ts3zTkNZ2fHSmfo7HN9ysjDYCnyRQkdYSP8G9MFWQ5d1UI1QwMNcchxupmalnWJjI9ucnZThlDTuh8Yv-s-O5LW1ZoH7wvt5GQR0wpZlEvZOt_DAdca0jMaSlMC-RLFdICXf0lzdswInHVWWWU644cbXsF_nQB1GN2iTptyXpZQXuaPtovFkbSOlxFzk0tDMTd3U0e6cXbL_xZYH7DL7Q1FTZxvNUytDT56Eg4mstnG-L74BN-zjTDSNOiRui3vRH-1hnSMP6sNFUdb4psaKb3qHKXISVOr1R7RmPyn-Hjn1cP9_lOKUShUynqjj8yuchAitEEQldIydeQTfqEHnMuMTjrN91HHP +.aistudio.google.com TRUE / FALSE 1803168185 _ga_RJSPDF5Y0Q GS2.1.s1768608185$o124$g0$t1768608185$j60$l0$h0 +.aistudio.google.com TRUE / FALSE 1803168185 _ga_P1DBVKWT6V GS2.1.s1768608185$o124$g0$t1768608185$j60$l0$h1304805479 +.google.com TRUE / FALSE 1800144189 SIDCC AKEyXzXMQSi6AGU6HRURrJRn6Zm81mkXYjCn6lGpB8T-hIoFk-1kVThS25F2Xx7Sgtmn8IdTyUL6 +.google.com TRUE / TRUE 1800144189 __Secure-1PSIDCC AKEyXzVolhYMw_jJGxWi1qC5JtQZTCN1gqqxWpjvj82lGjFl0Z1ZCFohqKiw95Dk0LQNHtYpEDzr +.google.com TRUE / TRUE 1800144189 __Secure-3PSIDCC AKEyXzVMFMYqoUyPImOtz401qsuSZ0TE1WHEgO7o_46FJAXcKHfyy9aZQ9JI10TmEWZFZNHudjc diff --git a/Twisted Brody Waifus & Creampie BRODY/cookies/vimeo_cookies.txt b/Twisted Brody Waifus & Creampie BRODY/cookies/vimeo_cookies.txt new file mode 100644 index 0000000000000000000000000000000000000000..733d5c6e6c06efcbc9457f6053d21a3625bf9ca1 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/cookies/vimeo_cookies.txt @@ -0,0 +1,24 @@ +# Netscape HTTP Cookie File +# This file is generated by yt-dlp. Do not edit. + +.vimeo.com TRUE / TRUE 2080770609 vuid pl2026389145.1520204759 +.vimeo.com TRUE / TRUE 0 _cfuvid Gc0KOZNj.5B_EtrNGBH.jI_pR4wjESqT2AceNJWtMaw-1765406375365-0.0.1.1-604800000 +.vimeo.com TRUE / TRUE 1765493184 _gid GA1.2.2101423395.1765406749 +.vimeo.com TRUE / TRUE 1799966758 auth_redirect %2Fsurvey%2Fjoin +.vimeo.com TRUE / TRUE 1799966758 redirect_url_after_social_login %2Fsurvey%2Fjoin +.vimeo.com TRUE / TRUE 1799966758 vimeo_gdpr_optin 1 +.vimeo.com TRUE / TRUE 2080770609 language es +.vimeo.com TRUE / FALSE 1773182760 _gcl_au 1.1.1097209175.1765406760 +.vimeo.com TRUE / FALSE 1796942771 _abexps %7B%223227%22%3A%22variant%22%2C%223296%22%3A%22variant%22%2C%223202%22%3A%22variant%22%7D +.vimeo.com TRUE / TRUE 0 bi_it true +.vimeo.com TRUE / TRUE 0 bi_pt starter +.vimeo.com TRUE / TRUE 1796942774 __stripe_mid 2ec1b26d-72c5-4f66-86cf-2e1ea66db4de5d6a0e +.vimeo.com TRUE / FALSE 1799966784 _ga_126VYLCXDY GS2.1.s1765406748$o1$g1$t1765406784$j24$l0$h0 +.vimeo.com TRUE / TRUE 1799966784 _ga GA1.2.544833529.1765406749 +.vimeo.com TRUE / TRUE 1773182784 _rdt_uuid 1765406759586.3063efda-cb12-4748-bd10-4822fd680d43 +.vimeo.com TRUE / FALSE 1765493184 _uetsid f9381b30d61911f09326a5c1c6a48986|ory6va|2|g1q|0|2170 +.vimeo.com TRUE / FALSE 1799102785 _uetvid f9383b30d61911f0b7b7cf56402bfedc|1bb7j2d|1765406785438|8|1|bat.bing.com/p/insights/c/j +.vimeo.com TRUE / TRUE 1768002609 vimeo OHDeLZXZdXXMVHLZXed4XZetMNVHLZXedL4X4PMxHLNNPe4d%2CSZ3B3dt3tc%2CeSNBDee%2CLSXD4L4aaDSNZMw3h_OI3uHLMIHdLZSSP3434ZcScSct3c4NX%2CLtBSetNNcLSBX3dP4cZ3PaXBZ4aLdLec4NSZ4LL%2C4 +.vimeo.com TRUE / TRUE 1765412408 __cf_bm rvTf3Re0vdS70MgsGuiE_GaMfq8_oeZ9lno7zxOv_8E-1765410608-1.0.1.1-3jLSe2tNnJ2SRHQl.VD0BGQhHUfKQfZ6TsDbH77Pt4oBcZgETWFIavKdZS6rZOa2 +vimeo.com FALSE / FALSE 1796942783 _abexps %7B%223227%22%3A%22variant%22%2C%223296%22%3A%22variant%22%7D +vimeo.com FALSE / TRUE 1796942783 _dd_s aid=ceb29e08-79ba-41aa-99f9-0a5e8e7dac3b&rum=0&expire=1765407683128 diff --git a/Twisted Brody Waifus & Creampie BRODY/data/viral_music.json b/Twisted Brody Waifus & Creampie BRODY/data/viral_music.json new file mode 100644 index 0000000000000000000000000000000000000000..624cf6eaef69ae4085b67bbe38d44277eb3be6f0 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/data/viral_music.json @@ -0,0 +1,23 @@ +[ + { + "id": "track_001", + "name": "Phonk Brazil", + "artist": "Viral Mix", + "file_id": null, + "path": "data/music/phonk_brazil.mp3" + }, + { + "id": "track_002", + "name": "Sigma Theme", + "artist": "Patrick Bateman", + "file_id": null, + "path": "data/music/sigma_theme.mp3" + }, + { + "id": "track_003", + "name": "Cute Anime Sound", + "artist": "Kawaii", + "file_id": null, + "path": "data/music/cute_anime.mp3" + } +] \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/data/viral_shorts.json b/Twisted Brody Waifus & Creampie BRODY/data/viral_shorts.json new file mode 100644 index 0000000000000000000000000000000000000000..bc7cc9f0f43a8590767e77bed844320c381da913 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/data/viral_shorts.json @@ -0,0 +1,10 @@ +[ + { + "id": "1768257961982", + "type": "video", + "file_id": "BAACAgEAAxkBAAIw_WllealMdOlaTYF395msw1PJFUrIAALUCAACizYpRzyS9S-qDqSFHgQ", + "date": 1768257961, + "user": 5565051026, + "caption": "🎬 Oye vaquero.. 😈🤠 #joseroberto @Dam ⋆* ☆* ⋆\n⚙️ 720x1280 | ⏱ 00:00:15" + } +] \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/database.py b/Twisted Brody Waifus & Creampie BRODY/database.py new file mode 100644 index 0000000000000000000000000000000000000000..4565a0cf4af4604a2d9c2f37e554ab931b6d547b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/database.py @@ -0,0 +1,298 @@ +import json +import os +from config import DB_FILE, DATA_DIR + +DB_CACHE = os.path.join(DATA_DIR, "manga_cache.json") +DB_CACHE = os.path.join(DATA_DIR, "manga_cache.json") +DB_TAGS = os.path.join(DATA_DIR, "hashtags.json") +DB_VIRAL = os.path.join(DATA_DIR, "viral_shorts.json") + +# --- VARIABLES GLOBALES (NO BORRAR) --- +url_storage = {} # <-- Esta es la variable que te faltaba +user_config = {} +downloads_db = {} +downloads_db = {} +hashtag_db = {} # <-- Base de datos de hashtags +viral_music_db = [] # <-- Base de datos de Shorts/Music Viral (Lista de Dicts) +active_downloads = {} # {chat_id: {msg_id: future/task}} +user_cooldowns = {} # {chat_id: timestamp} +task_progress = {} # {chat_id: {msg_id: {percent, speed, status, name, url}}} + +# --- FUNCIONES --- + +def cargar_db(): + global downloads_db + if os.path.exists(DB_FILE): + try: + with open(DB_FILE, 'r') as f: + downloads_db.update(json.load(f)) + except: + downloads_db = {} + +def guardar_db(): + try: + with open(DB_FILE, 'w') as f: + json.dump(downloads_db, f, indent=4) + except: + pass + +def load_tags(): + global hashtag_db + if os.path.exists(DB_TAGS): + try: + with open(DB_TAGS, 'r', encoding='utf-8') as f: + hashtag_db.update(json.load(f)) + except: + hashtag_db = {} + +def save_tags(): + try: + with open(DB_TAGS, 'w', encoding='utf-8') as f: + json.dump(hashtag_db, f, indent=4, ensure_ascii=False) + except: + pass + +def load_viral(): + global viral_music_db + if os.path.exists(DB_VIRAL): + try: + with open(DB_VIRAL, 'r', encoding='utf-8') as f: + viral_music_db.extend(json.load(f)) + except: + viral_music_db = [] + +def save_viral(): + try: + with open(DB_VIRAL, 'w', encoding='utf-8') as f: + json.dump(viral_music_db, f, indent=4, ensure_ascii=False) + except: + pass + +def get_config(chat_id): + if chat_id not in user_config: + user_config[chat_id] = { + 'lang': 'es', + 'fmt': 'mp4', + 'q_fixed': None, + 'q_auto': None, + 'meta': True, + 'fast_enabled': True, + 'html_mode': False, + 'doc_mode': False, + 'replay_enabled': False, # <--- Nuevo modo replay + 'party_mode': False, + 'join_party_mode': False, + 'extract_mode': False, + 'ai_mode': False, # Modo Party + 'auto_join_party': False, + 'auto_extract': False, + 'gif_mode': False, + 'sticker_mode': False, + 'join_party_zip': False, + 'extract_party_zip': True, + 'collage_mode': False, # <-- Nuevo Modo Collage + 'collage_auto_mode': False, # <-- DEPRECATED (Migration might be needed or just ignore) + 'collage_grid': '3x3', # '3x3', '2x2', '2x1' + 'collage_auto_3x3': False, + 'collage_auto_2x2': False, + 'collage_auto_2x1': False, + 'sub_mode': False, # Nuevo modo subtitulado (Manual/One-Shot) + 'sub_auto_mode': False, # Nuevo modo subtitulado (Auto/Persistent) + 'viral_mode': False, # <-- Modo Short Virales Music (Recoleccion) + 'smart_cut_mode': False, # <-- Smart Cut (Detector Intro) + 'collage_type': 'png', # 'png' o 'thumb' + 'bot_link_mode': False, # <-- Modo Enlace Directo (Servidor Local) + } + + return user_config[chat_id] + +# --- LISTA DE MODOS PARA EXCLUSIVIDAD --- +ALL_MODES_KEYS = [ + 'party_mode', 'join_party_mode', 'extract_mode', 'gif_mode', + 'sticker_mode', 'saucenao_mode', 'mp3_mode', 'cut_init_mode', + 'cut_auto_mode', 'auto_party', 'resize_mode', 'resize_auto_mode', + 'thumb_mode', 'convert_qh_mode', 'convert_h264_mode', + 'smart_cut_mode', 'collage_mode', 'sub_mode', 'sub_auto_mode', + 'viral_mode', 'research_mode', 'tagger_mode', 'translate_manga_mode', + 'renviado_directo', 'renviado_agrupado', + 'auto_join_party', 'auto_extract', 'smart_cut_auto_mode', + 'waifux2_mode', 'video_mixer_mode', 'tiktok_fast_mode', 'fusion_mode', + 'parallel_thumb_mode', 'bot_link_mode', 'fusion_auto_mode' +] + +ALL_ZIP_KEYS = [ + 'party_zip', 'join_party_zip', 'extract_party_zip', 'join_party_zip' +] + +# Friendly Names Mapping +MODE_NAMES = { + 'party_mode': 'Modo Party', + 'join_party_mode': 'Modo Unir Party', + 'extract_mode': 'Modo Extractor', + 'gif_mode': 'Modo GIF', + 'sticker_mode': 'Modo Sticker', + 'saucenao_mode': 'Modo SauceNAO', + 'mp3_mode': 'Modo Extractor MP3', + 'cut_init_mode': 'Modo Corte Inicial', + 'cut_auto_mode': 'Modo Auto Corte', + 'auto_party': 'Auto Party', + 'resize_mode': 'Modo Dimensionador', + 'resize_auto_mode': 'Auto Dimensionador', + 'thumb_mode': 'Modo Miniatura', + 'convert_qh_mode': 'Convertidor QH', + 'convert_h264_mode': 'Convertidor H.264', + 'smart_cut_mode': 'Smart Cut', + 'collage_mode': 'Modo Collage', + 'sub_mode': 'Modo Subtitulado', + 'sub_auto_mode': 'Auto Subtitulado', + 'viral_mode': 'Modo Virales', + 'research_mode': 'Investigación Profunda', + 'tagger_mode': 'Etiquetadora', + 'translate_manga_mode': 'Traductor Manga', + 'custom_thumb_mode': 'Miniatura Personalizada', + 'renviado_directo': 'Reenviado Directo', + 'renviado_agrupado': 'Reenviado Agrupado', + 'auto_join_party': 'Auto Unir Party', + 'auto_extract': 'Auto Extractor', + 'smart_cut_auto_mode': 'Auto Smart Cut', + 'waifux2_mode': 'Modo Waifu2x', + 'tiktok_fast_mode': 'Tiktok Fast', + 'fusion_mode': 'Modo Fusión', + 'parallel_thumb_mode': 'Miniatura Personalizada', + 'bot_link_mode': 'Enlace Directo' +} + +async def set_exclusive_mode(chat_id, target_mode=None, is_toggle=False): + """ + Activa un modo y desactiva TODOS los demas. + Retorna: (new_state, disabled_mode_name) + disabled_mode_name es el nombre legible del modo que se apagó (si hubo uno). + """ + conf = get_config(chat_id) + + # 1. Identificar qué modo estaba activo antes de limpiar (para el mensaje) + disabled_name = None + for k in ALL_MODES_KEYS: + if conf.get(k, False): + # Ignoramos si es el mismo que vamos a togglear (eso no es "conflicto", es toggle) + if k != target_mode: + disabled_name = MODE_NAMES.get(k, k) + break # Asumimos solo uno activo por las reglas previas + + # 2. Determinar nuevo estado deseado + new_state = True + if target_mode: + if is_toggle: + new_state = not conf.get(target_mode, False) + else: + new_state = True + + # 3. Limpiar TODO siempre (Regla de Oro) + # Incluso si apagamos (new_state False), limpiamos para asegurar consistencia + for k in ALL_MODES_KEYS: + conf[k] = False + # Reset Zips (Clean Slate Rule) + for k in ALL_ZIP_KEYS: + conf[k] = False + + # 4. Aplicar nuevo estado SOLO si es True + if target_mode and new_state: + conf[target_mode] = True + + # 5. Guardar + from firebase_service import save_user_config_fb + await save_user_config_fb(chat_id, conf) + + return new_state, disabled_name + +def can_download(chat_id, max_concurrent=3, cooldown_sec=2): + # Restricciones deshabilitadas a petición del usuario (Modo Ilimitado) + return True, None + +def add_active(chat_id, msg_id, task=None, pid=None): + if chat_id not in active_downloads: + active_downloads[chat_id] = {} + # Guardamos diccionario con task y pid opcional + active_downloads[chat_id][msg_id] = {'task': task, 'pid': pid} + +def remove_active(chat_id, msg_id): + if chat_id in active_downloads and msg_id in active_downloads[chat_id]: + del active_downloads[chat_id][msg_id] + if not active_downloads[chat_id]: + del active_downloads[chat_id] + # También limpiar progreso + remove_progress(chat_id, msg_id) + +# --- FUNCIONES DE PROGRESO (TRACKING EN VIVO) --- + +def update_progress(chat_id, msg_id, percent=None, speed=None, status=None, name=None, url=None): + if chat_id not in task_progress: + task_progress[chat_id] = {} + if msg_id not in task_progress[chat_id]: + task_progress[chat_id][msg_id] = {'percent': 0, 'speed': 'N/A', 'status': 'Esperando', 'name': 'Archivo', 'url': 'N/A'} + + if percent is not None: task_progress[chat_id][msg_id]['percent'] = percent + if speed is not None: task_progress[chat_id][msg_id]['speed'] = speed + if status is not None: task_progress[chat_id][msg_id]['status'] = status + if name is not None: task_progress[chat_id][msg_id]['name'] = name + if url is not None: task_progress[chat_id][msg_id]['url'] = url + +def get_all_progress(): + return task_progress + +def remove_progress(chat_id, msg_id): + if chat_id in task_progress and msg_id in task_progress[chat_id]: + del task_progress[chat_id][msg_id] + if not task_progress[chat_id]: + del task_progress[chat_id] + +async def cancel_all(chat_id): + cancelled_items = [] + if chat_id in active_downloads: + tasks_map = active_downloads[chat_id] + + for mid, info in tasks_map.items(): + # Soportar formato antiguo (solo task) o nuevo (dict) + if isinstance(info, dict): + task = info.get('task') + pid = info.get('pid') + else: + task = info + pid = None + + # --- COLLECT INFO FOR REPORT --- + # Try to get URL/Name from task_progress + url = "Enlace desconocido" + if chat_id in task_progress and mid in task_progress[chat_id]: + url = task_progress[chat_id][mid].get('url', 'Enlace desconocido') + + cancelled_items.append({'url': url, 'msg_id': mid}) + + # 1. Cancelar Task de Python + if task and not task.done(): + task.cancel() + + # 2. Matar proceso del sistema (FFmpeg / Aria2 / 7z) + if pid: + try: + import signal + # En Windows, os.kill con SIGTERM suele funcionar, o taskkill forzado + os.kill(pid, signal.SIGTERM) + print(f"🔪 Process Killed: PID {pid}") + except Exception as e: + print(f"⚠️ Kill Error {pid}: {e}") + # Intento Force Windows + try: + import subprocess + subprocess.run(["taskkill", "/F", "/T", "/PID", str(pid)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + except: pass + + active_downloads.pop(chat_id, None) + # Clean progress entirely for this chat + task_progress.pop(chat_id, None) + + return cancelled_items + +# Cargar base de datos al iniciar +cargar_db() +load_tags() \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/diagnose_key.py b/Twisted Brody Waifus & Creampie BRODY/diagnose_key.py new file mode 100644 index 0000000000000000000000000000000000000000..a200f4a9d2bb7f97a5b3dc6f3e0f5e5162832013 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/diagnose_key.py @@ -0,0 +1,15 @@ +import requests +import json + +api_key = "AIzaSyDl7RbV8tI4gFD5Fy7vcoqtP_phTqh14v0" +url = f"https://generativelanguage.googleapis.com/v1beta/models?key={api_key}" + +print(f"Testing Key: {api_key[:10]}...") + +try: + response = requests.get(url) + print(f"Status Code: {response.status_code}") + print("Response Body:") + print(json.dumps(response.json(), indent=2)) +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/diagnose_tools.py b/Twisted Brody Waifus & Creampie BRODY/diagnose_tools.py new file mode 100644 index 0000000000000000000000000000000000000000..9ddc7b4036d741deeb95377c28513cbfd8ef90e8 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/diagnose_tools.py @@ -0,0 +1,53 @@ +import asyncio +import os +import sys + +# Ensure project root is in path +sys.path.append(os.path.dirname(os.path.abspath(__file__))) + +from utils import descargar_galeria +from config import TOOLS_DIR + +async def check_gallery_dl(): + print("--- Checking Gallery-DL ---") + + # Check executable + tools_path = os.path.join(TOOLS_DIR, "gallery-dl.exe") + pip_path = r"C:\Users\Gonzalo\AppData\Roaming\Python\Python311\Scripts\gallery-dl.exe" + + found = False + if os.path.exists(tools_path): + print(f"✅ Found in tools: {tools_path}") + found = True + elif os.path.exists(pip_path): + print(f"✅ Found in pip: {pip_path}") + found = True + else: + print("⚠️ Not found in standard paths. Relying on PATH.") + + # Check execution + print("\n--- Testing Download (Dry Run) ---") + test_url = "https://twitter.com/Twitter/status/1234567890" # Dummy URL, expectation is failure or specific error, but checking if binary runs + + # We just want to see if it tries to run without crashing python + try: + # Intentionally usage with invalid URL to check if binary launches + print("Running dummy download check...") + + # Use simple version check + exec_path = tools_path if os.path.exists(tools_path) else pip_path + if not os.path.exists(exec_path): + exec_path = "gallery-dl" # Fallback to PATH + + import subprocess + # Use exec_path directly + cmd = [exec_path, "--version"] + print(f"Command: {cmd}") + ver = subprocess.check_output(cmd, shell=True).decode() + print(f"✅ Gallery-DL Version: {ver.strip()}") + + except Exception as e: + print(f"❌ Error running gallery-dl: {e}") + +if __name__ == "__main__": + asyncio.run(check_gallery_dl()) diff --git a/Twisted Brody Waifus & Creampie BRODY/downloader.py b/Twisted Brody Waifus & Creampie BRODY/downloader.py new file mode 100644 index 0000000000000000000000000000000000000000..789a81e502263731db8ca654a978f7d78f132688 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/downloader.py @@ -0,0 +1,1379 @@ + +import re +import math +import os +import time +import asyncio +import yt_dlp +import shutil +import subprocess +import aiohttp +import random +from pyrogram import enums +from config import LIMIT_2GB, HAS_FAST, DOWNLOAD_DIR, TOOLS_DIR, FAST_PATH +from database import get_config, downloads_db, guardar_db, add_active, remove_active, update_progress, url_storage +from utils import sel_cookie, traducir_texto, format_bytes, split_video_by_size, split_file_into_volumes +from utils_chat_actions import chat_action_loop +from tools_media import get_thumb, get_meta, get_audio_dur, progreso +from firebase_service import get_cached_file, save_cached_file, get_bot_config, delete_cached_file, save_user_config_fb, get_cached_file_strict, save_cached_file_strict + +# --- HELPER: SAFE BACKUP --- + + + +# Límite real de Telegram para dividir (1.9 GB para ir seguros) +TG_LIMIT = int(1.9 * 1024 * 1024 * 1024) + +# --- SEMAFORO GLOBAL DE DESCARGAS (Max 5) --- +SEM_DOWNLOAD = asyncio.Semaphore(5) + +# Detectamos si tienes la herramienta Turbo instalada (Cross-Platform) +# Priorizamos tools/ +RE_NAME = "N_m3u8DL-RE.exe" if os.name == 'nt' else "N_m3u8DL-RE" +RE_PATH = os.path.join(TOOLS_DIR, RE_NAME) + +if not os.path.exists(RE_PATH): + RE_PATH = shutil.which("N_m3u8DL-RE") + if not RE_PATH: + if os.path.exists("N_m3u8DL-RE.exe"): RE_PATH = "N_m3u8DL-RE.exe" + elif os.path.exists("N_m3u8DL-RE"): RE_PATH = "./N_m3u8DL-RE" + +HAS_RE = RE_PATH is not None and os.path.exists(RE_PATH) + +async def get_mediafire_link(url): + try: + from utils import load_cookies_dict + cookies = load_cookies_dict(sel_cookie(url)) + async with aiohttp.ClientSession(cookies=cookies) as session: + headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"} + async with session.get(url, headers=headers) as resp: + if resp.status != 200: return None + text = await resp.text() + match = re.search(r'href="([^"]+)"\s+id="downloadButton"', text) + if match: return match.group(1) + match2 = re.search(r'href="([^"]+)"[^>]+aria-label="Download file"', text) + if match2: return match2.group(1) + except Exception as e: print(f"Error Mediafire: {e}") + return None + +async def get_yourupload_link(url): + try: + from utils import load_cookies_dict + cookies = load_cookies_dict(sel_cookie(url)) + headers = {"User-Agent": "Mozilla/5.0", "Referer": url} + async with aiohttp.ClientSession(cookies=cookies) as session: + async with session.get(url, headers=headers) as resp: + if resp.status != 200: return None + text = await resp.text() + match_og = re.search(r'property="og:video"\s+content="([^"]+)"', text) + if match_og: return match_og.group(1) + match_jw = re.search(r"file\s*:\s*['\"]([^'\"]+)['\"]", text) + if match_jw: + link = match_jw.group(1) + return "https://www.yourupload.com" + link if link.startswith("/") else link + except Exception as e: print(f"Error YourUpload: {e}") + return None + +async def get_mp4upload_link(url): + try: + if "embed-" not in url: + vid_id = url.split("/")[-1].replace(".html", "") + url = f"https://www.mp4upload.com/embed-{vid_id}.html" + + from utils import load_cookies_dict + cookies = load_cookies_dict(sel_cookie(url)) + headers = {"User-Agent": "Mozilla/5.0", "Referer": url} + async with aiohttp.ClientSession(cookies=cookies) as session: + async with session.get(url, headers=headers) as resp: + if resp.status != 200: return None + text = await resp.text() + match = re.search(r'src:\s*"([^"]+\.mp4)"', text) + if match: return match.group(1) + except Exception as e: print(f"Error MP4Upload: {e}") + return None + +async def get_cobalt_link(url, quality='1080'): + """ + Usa la API de Cobalt v10 para obtener un link directo. + Disabled: API requires auth now. + """ + return None + +async def get_tikwm_data(url): + """ + Fallback for TikTok using TikWM API (Supports Images/Slideshows). + """ + try: + api_url = f"https://www.tikwm.com/api/?url={url}" + print(f"🎵 TikWM Request: {api_url}") + + async with aiohttp.ClientSession() as session: + headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"} + async with session.get(api_url, headers=headers) as resp: + if resp.status == 200: + data = await resp.json() + if data.get('code') == 0: + return data.get('data') + else: + print(f"⚠️ TikWM API Error: {data}") + except Exception as e: + print(f"❌ TikWM Error: {e}") + return None + +async def procesar_descarga(client, chat_id, url, calidad, datos, msg_orig, context_config=None): + from main import get_config, url_storage, DATA_DIR + from utils import download_parallel + from tools_media import get_meta, get_thumb, progreso + + # --- CONTEXT CONFIG (Frozen) --- + # Si viene con configuración congelada, la usamos. Si no, cargamos dynamic (legacy behavior) + if context_config: + conf = context_config + else: + conf = get_config(chat_id) + + vid_id = datos.get('id') + + vid_id = datos.get('id') + + final = None + multi_files = [] # For Slideshows + thumb = None + + # Identificador único (Timestamp ns + Random 4 digits) para max individualidad + ts = f"{time.time_ns()}_{random.randint(1000, 9999)}" + + # Crear directorio de trabajo aislado para evitar colisiones de archivos y artifacts + # Structure: downloads/url_downloads/job_{id}_{ts}/ + tool_folder = os.path.join(DOWNLOAD_DIR, "url_downloads") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_{chat_id}_{ts}") + if not os.path.exists(job_dir): + try: os.makedirs(job_dir) + except: pass + + # Usar directorio de descargas aislado + base_name = os.path.join(job_dir, f"dl_{chat_id}_{ts}") + # Limpiamos base_name de posibles caracteres raros por si acaso (aunque es solo ID_TS) + + url_descarga = url + ckey = calidad + + # Si viene del Sniffer/JAV Extractor + if calidad.startswith("html_"): + idx = int(calidad.split("_")[1]) + if 'html_links_data' in datos and len(datos['html_links_data']) > idx: + url_descarga = datos['html_links_data'][idx]['url'] + ckey = f"html_{idx}" + else: + await client.send_message(chat_id, "❌ **Enlace expirado (Datos perdidos).**\nPor favor, reenvía el enlace y prueba de nuevo.") + return + else: + ckey = "mp3" if calidad == "mp3" else calidad + + # FIX: Diferenciar cache si es modo documento (Usando conf congelada o fresca) + is_doc_mode = conf.get('doc_mode', False) + if is_doc_mode and calidad != "mp3": + ckey += "_doc" + + # --- ZONA DE CACHE (FIREBASE STRICT) --- + cached_fid = None + if vid_id: + # Use URL + Quality + DocMode strict check + print(f"🔍 [Downloader Debug] Checking Strict Cache: ID={vid_id} | URL={url_descarga} | Q={ckey} | Doc={is_doc_mode}") + cached_fid = await get_cached_file_strict(vid_id, url_descarga, ckey, is_doc_mode) + + # --- SEMAPHORE CHECK & FEEDBACK --- + if SEM_DOWNLOAD.locked(): + # Si el semáforo está rojo (ocupado), avisar que entra en cola + if msg_orig and conf.get('preview_mode', True): + try: + # Count waiters approx + n = len(getattr(SEM_DOWNLOAD, '_waiters', [])) + 1 + s = "s" if n != 1 else "" + q_msg = await client.send_message(chat_id, f"⬇️ En cola: {n} descarga{s} 📁...", reply_to_message_id=msg_orig.id) + except: pass + + async with SEM_DOWNLOAD: + if 'q_msg' in locals() and q_msg: + try: await q_msg.delete() + except: pass + + # Validar si el mensaje original fue borrado (cancelación manual usuario) + # ... (Resto del código) + # --- HELPER LOCAL: Generar Caption --- + def generate_caption(d_datos, d_conf, extra_tag=None): + """ + Genera el caption estandarizado con límite estricto de 1024 caracteres. + Prioriza: Título > Uploader > Tags > Dimensiones > Descripción. + """ + MAX_CAPTION_LEN = 1024 + + # 1. Componentes "Obligatorios" (Prioridad Alta) + t = d_datos.get('titulo', 'Video') + uploader = d_datos.get('uploader') + uploader_url = d_datos.get('uploader_url') + + # Construir cabecera + header = f"**{t}**" + if uploader and uploader_url: + header += f"\n[{uploader}]({uploader_url})" + elif uploader: + header += f"\n{uploader}" + + if extra_tag: + header += f" {extra_tag}" + + # Construir Footer (Hashtags y Dimensiones) + footer = "" + + # Hashtags + tags = d_datos.get('hashtags') + if tags and d_conf.get('meta', True): + footer += f"\n\n{tags}" + + # Dimensiones + w = d_datos.get('width') + h = d_datos.get('height') + if w and h: + footer += f"\n\nDimensiones: {w} x {h}" + + # Calcular espacio restante para la descripción + # Length actual = Header + Footer + (espacio para descripción, al menos 2 saltos de línea) + current_len = len(header) + len(footer) + remaining = MAX_CAPTION_LEN - current_len - 10 # 10 chars de buffer/seguridad + + # 2. Descripción (Relleno hasta donde quepa) + body = "" + if d_conf.get('meta', True): + desc = d_datos.get('descripcion') + if desc: + # Si cabe entera, perfecto + if len(desc) <= remaining: + body = f"\n\n{desc}" + else: + # Si no cabe, truncar + if remaining > 20: # Mínimo razonable para mostrar algo + cut_desc = desc[:remaining-3] + "..." + body = f"\n\n{cut_desc}" + else: + # Si queda muy poco espacio, mejor no poner descripción para no romper el formato + pass + + final_cap = f"{header}{body}{footer}" + + # Safety Fail-safe (Trunca a lo bruto si por algún motivo nos pasamos) + if len(final_cap) > MAX_CAPTION_LEN: + final_cap = final_cap[:MAX_CAPTION_LEN-3] + "..." + + return final_cap + + if cached_fid: + try: + print(f"✨ Firebase Cache Hit: {vid_id} [{ckey}]") + + # --- SUPPORT FOR SPLIT CACHE (List of IDs) --- + file_ids_to_send = [] + if isinstance(cached_fid, list): + file_ids_to_send = cached_fid + else: + file_ids_to_send = [cached_fid] + + total_parts_cache = len(file_ids_to_send) + + for idx, f_id in enumerate(file_ids_to_send): + part_tag = f"[{idx+1}/{total_parts_cache}]" if total_parts_cache > 1 else "" + + # Generar Caption Consistente + cache_tag = f"\n✨ _Cache Hit_{part_tag} `{vid_id}`" + if conf.get('lang') == 'es': cache_tag = f"\n✨ _Desde Memoria_{part_tag} `{vid_id}`" + + final_caption = generate_caption(datos, conf, extra_tag=cache_tag) + + # SEND CACHED DIRECTLY (No Semaphore needed) + try: + if is_doc_mode: + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_DOCUMENT): + await client.send_document(chat_id, f_id, caption=final_caption, reply_to_message_id=msg_orig.id) + else: + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_VIDEO): + await client.send_video(chat_id, f_id, caption=final_caption, reply_to_message_id=msg_orig.id) + except Exception as e_part: + print(f"❌ Error sending cached part {idx}: {e_part}") + return + except Exception as e: + print(f"Cache Send Error: {e}") + cached_fid = None + + # NO CACHE - PROCEED TO DOWNLOAD + status = None + # NO CACHE - PROCEED TO DOWNLOAD + status = None + # Removed "Esperando turno" message per user request (Empty start) + if conf.get('preview_mode', True): + # Placeholder startup message + status = await client.send_message(chat_id, "⬇️ Descargando 📁...", reply_to_message_id=msg_orig.id) + + # SEMAPHORE LIMIT + # Register Task for Anti-Spam / Cancellation + curr_task = asyncio.current_task() + add_active(chat_id, msg_orig.id, curr_task) + + try: + # Variables de control de progreso + last_edit = 0 + start_time = time.time() + loop = client.loop + + # --- DOWNLOAD BLOCK (SEMAPHORED) --- + async with SEM_DOWNLOAD: + # Removed "Iniciando descarga..." edit + + def progress_hook(d): + nonlocal last_edit + nonlocal status + now = time.time() + + # Filtro Anti-Flood (Editar cada 4 segundos máx o al finalizar) + if d['status'] == 'finished' or (now - last_edit) > 4: + last_edit = now + + # Extraer datos de YT-DLP / Fast + percent = d.get('_percent_str', '0%').strip() + # Limpiar caracteres ANSI si Fast los mete + percent = re.sub(r'\x1b\[[0-9;]*m', '', percent) + + speed = d.get('_speed_str', 'N/A').strip() + eta = d.get('_eta_str', 'N/A').strip() + + # Fallback simple si no hay speed string + if speed == 'N/A' and d.get('speed'): + speed = format_bytes(d.get('speed')) + "/s" + + try: + from utils import render_bar + + # Safe parse percent + try: p_val = float(percent.replace('%','')) + except: p_val = 0 + + # Parse bytes to get total estimation if needed, or just bar 0-100 + # For yt-dlp, let's trust percent + bar = render_bar(p_val, 100) + + # Calculate MB (Safe) + cur_bytes = d.get('downloaded_bytes') or 0 + tot_bytes = d.get('total_bytes') or d.get('total_bytes_estimate') or 0 + + try: c_mb = float(cur_bytes) / (1024*1024) + except: c_mb = 0 + + try: t_mb = float(tot_bytes) / (1024*1024) + except: t_mb = 0 + + msg_text = f"⬇️ Descargando 📁 `{c_mb:.1f}/{t_mb:.1f} MB` (`{percent}`)" + + # FIX: Use call_soon_threadsafe to schedule create_task (Fire-and-forget) + # This avoids 'Future attached to different loop' errors with run_coroutine_threadsafe + if status: + loop.call_soon_threadsafe(lambda: loop.create_task(status.edit(msg_text))) + + # Stats update safe + try: update_progress(chat_id, msg_orig.id, percent=p_val, speed=speed, status="Descargando 📥", name=datos.get('titulo','Video'), url=url_descarga) + except: pass + + except Exception as e: + print(f"⚠️ Progress Hook Error: {e}") + + if conf.get('preview_mode', True) and not status: + status = await client.send_message(chat_id, f"⬇️ Descargando 📁...", reply_to_message_id=msg_orig.id) + + # --- LOGICA DE SELECCIÓN DE MOTOR --- + engine_name = "Nativo (Estándar)" + is_direct_download = False + mediafire_link = None + yourupload_link = None + mp4_link = None + + # 1. Mediafire Check + if "mediafire.com" in url_descarga: + # Removed Check msg + mf_link = await get_mediafire_link(url_descarga) + if mf_link: + url_descarga = mf_link + engine_name = "Mediafire (Directo)" + is_direct_download = True + mediafire_link = True + else: + if status: await status.edit("❌ **Error: Mediafire cambió.**\nNo pude sacar el link directo.") + return + + # 2. YourUpload Check + elif "yourupload.com" in url_descarga: + # Removed Check msg + yu_link = await get_yourupload_link(url_descarga) + if yu_link: + url_descarga = yu_link + engine_name = "YourUpload (Directo)" + is_direct_download = True + yourupload_link = True + else: + pass + + # 2b. MP4Upload Check + elif "mp4upload.com" in url_descarga: + # Removed Check msg + mp4_link = await get_mp4upload_link(url_descarga) + if mp4_link: + url_descarga = mp4_link + engine_name = "MP4Upload (Directo)" + is_direct_download = True + else: + if status: await status.edit("❌ **Error: MP4Upload falló.**\nNo pude sacar el video.") + return + + # 2c. Eporner Direct Check + elif "eporner.com" in url_descarga and "/dload/" in url_descarga: + # Limpiar URL (es.eporner -> www.eporner para evitar problemas de certificado/redirección) + url_descarga = re.sub(r'https?://\w+\.eporner\.com', 'https://www.eporner.com', url_descarga) + engine_name = "Eporner (Directo)" + is_direct_download = True + + # 3. Turbo Check (Priority for m3u8 if tool exists) + # Removed Owner Restriction per user request + + usar_turbo = HAS_RE and ".m3u8" in url_descarga and calidad != "mp3" and not mediafire_link and not yourupload_link + + if usar_turbo: + engine_name = "Turbo (N_m3u8DL-RE)" + elif is_direct_download or (HAS_FAST and not calidad.startswith("html_") and conf.get('fast_enabled', True) and "eporner" not in url_descarga): + if not is_direct_download: + engine_name = "Fast (Ultra)" + + # Removed "Descargando ... (Iniciando) 0%" msg + + if usar_turbo: + # Es mucho más rápido que yt-dlp para unir segmentos + pure_name = f"dl_{chat_id}_{ts}" + cmd = [ + RE_PATH, + url_descarga, + "--save-name", pure_name, + "--save-dir", DOWNLOAD_DIR, # Guardar en DOWNLOAD_DIR explicitamente + "--tmp-dir", "tmp", # Temporales + "--no-log", # No llenar la consola + "--auto-select", # Elegir mejor video/audio auto + "--check-segments-count", "false", # No verificar cada segmento (Más velocidad) + "--thread-count", "16", # 16 Hilos de descarga + "--download-retry-count", "10" # Reintentar si falla un trozo + ] + + # Ejecutamos el proceso CON PIPE para leer salida + process = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + + # Registrar PID para Cancelar + add_active(chat_id, msg_orig.id, None, process.pid) + + # Loop para leer progreso de Turbo + while True: + line = await process.stdout.readline() + if not line: break + + line_str = line.decode('utf-8', errors='ignore').strip() + if line_str: print(f"Turbo: {line_str}") # Feedback en consola + + if "Progress:" in line_str or "%" in line_str: + now_t = time.time() + if (now_t - last_edit) > 4: + last_edit = now_t + # Try Standard Turbo Regex + p_match = re.search(r'Progress:\s*([\d\.]+%?)', line_str) + s_match = re.search(r'Speed:\s*([\d\.]+\s*\w+/s)', line_str) + + # Try Alternative Regex (Vid ... 71.24% ... 42.02MBps) + if not p_match: + p_match = re.search(r'(\d+(?:\.\d+)?%)', line_str) + if not s_match: + s_match = re.search(r'(\d+(?:\.\d+)?[KMGT]?Bps)', line_str) + + perc = p_match.group(1) if p_match else "..." + spd = s_match.group(1) if s_match else "..." + + try: + from utils import render_bar + try: p_val = float(perc.replace('%','')) + except: p_val = 0 + + # Fake Totals for Turbo (It streams, hard to know total MB exactly unless parsed) + # We can parse "1.04GB/1.51GB" in the string if present + size_match = re.search(r'([\d\.]+[KMGT]?B)/([\d\.]+[KMGT]?B)', line_str) + sz_curr = size_match.group(1) if size_match else "?" + sz_tot = size_match.group(2) if size_match else "?" + + if status: + # Formato Estandarizado: ⬇️ Descargando 📁 1.04GB/1.51GB (71.24%) + # Si no hay size: ⬇️ Descargando 📁 (Turbo) (71.24%) + if sz_curr != "?": + txt = f"⬇️ Descargando 📁 `{sz_curr}/{sz_tot}` (`{perc}`)" + else: + txt = f"⬇️ Descargando 📁 (Turbo) `{perc}`" # Fallback + + await status.edit(txt) + + update_progress(chat_id, status.id, percent=p_val, speed=spd, status="Descargando 📁", name=datos.get('titulo','Video'), url=url_descarga) + except: pass + + await process.wait() + + # Buscamos qué archivo creó (puede ser mp4 o mkv) + # Fix: Usar pure_name con DOWNLOAD_DIR que es lo que se le pasó al comando + check_base = os.path.join(DOWNLOAD_DIR, pure_name) + for ext in ['.mp4', '.mkv', '.ts']: + if os.path.exists(f"{check_base}{ext}"): + final = f"{check_base}{ext}" + break + + # --- MODO DIRECTO (FAST/MEDIAFIRE PURO) --- + elif is_direct_download or str(vid_id).startswith("direct_"): + + temp_out = f"dl_{chat_id}_{ts}_temp" + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + + # FALLBACK: Si no hay aria2c, usar aiohttp (Python nativo) + if not HAS_FAST and not shutil.which("aria2c"): + # Silent fallback + try: + from utils import load_cookies_dict + cookies = load_cookies_dict(sel_cookie(url_descarga)) + async with aiohttp.ClientSession(cookies=cookies) as session: + async with session.get(url_descarga) as resp: + if resp.status == 200: + total_size = int(resp.headers.get('Content-Length', 0)) + downloaded = 0 + start_t = time.time() + last_edit_t = 0 + + with open(final_temp, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) # 1MB chunks + if not chunk: break + f.write(chunk) + downloaded += len(chunk) + + # Status update + now_t = time.time() + if now_t - last_edit_t > 4: + last_edit_t = now_t + from utils import render_bar + p_f = downloaded/total_size*100 if total_size else 0 + pct = f"{int(p_f)}%" if total_size else "..." + bar = render_bar(downloaded, total_size) if total_size else "░░" * 10 + mb_curr = downloaded / (1024*1024) + mb_total = total_size / (1024*1024) if total_size else 0 + speed = mb_curr / (now_t - start_t) if (now_t - start_t) > 0 else 0 + if status: await status.edit(f"⬇️ Descargando 📁 `{mb_curr:.1f}/{mb_total:.1f} MB` (`{pct}`)") + update_progress(chat_id, status.id if status else 0, percent=p_f, speed=f"{speed:.1f}MB/s", status="Descargando 📁", name=datos.get('titulo','Video'), url=url_descarga) + + final = final_temp + else: + if status: await status.edit(f"❌ Error descarga: {resp.status}") + return + except Exception as e: + print(f"Native DL Error: {e}") + if status: await status.edit(f"❌ Error interno: {e}") + return + + else: + # ARIA2 BLOCK (Solo si existe) + cmd = [ + FAST_PATH if os.path.exists(FAST_PATH) else "aria"+"2c", + url_descarga, + "-o", temp_out, + "-d", DOWNLOAD_DIR, + "-x", "16", "-s", "16", "-j", "1", "-k", "1M", + "--user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", + "--check-certificate=false", + "--allow-overwrite=true", + "--auto-file-renaming=false" + ] + + if yourupload_link: + cmd.extend(["--header", f"Referer: {url}"]) + + cookie_file = sel_cookie(url) + if cookie_file: + cmd.extend(["--load-cookies", cookie_file]) + + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + + # --- ARIA2 PROGRESS PARSER --- + # Format: [#GID 25MiB/100MiB(25%) CN:1 DL:1.2MiB] + track = [time.time(), 0] + aria_error_log = [] + + async def read_stream(stream, callback): + while True: + line = await stream.readline() + if not line: break + await callback(line) + + async def handle_stdout(line): + try: + line_str = line.decode('utf-8', errors='ignore').strip() + if not line_str: return + + # Parse Progress lines + if "CN:" in line_str and "DL:" in line_str and "(" in line_str: + parts = line_str.split() + downloaded = "0" + total = "0" + percent = "0%" + + for p in parts: + if "/" in p and "(" in p: + try: + d_t, per = p.split("(") + downloaded, total = d_t.split("/") + percent = per.replace(")", "") + except: pass + + # Update UI (Throttle 2s) + now = time.time() + if (now - track[0]) > 2: + track[0] = now + d_c = downloaded.replace('MiB','').replace('MB','') + t_c = total.replace('MiB','').replace('MB','') + msg_txt = f"⬇️ Descargando 📁 `{d_c}/{t_c} MB` (`{percent}`)" + try: await status.edit(msg_txt) + except: pass + except: pass + + async def handle_stderr(line): + line_str = line.decode('utf-8', errors='ignore').strip() + if line_str: + aria_error_log.append(line_str) + print(f"Aria2 Error: {line_str}") + + # Run readers concurrently + await asyncio.gather( + read_stream(process.stdout, handle_stdout), + read_stream(process.stderr, handle_stderr) + ) + + await process.wait() + + if process.returncode != 0: + err_msg = "\n".join(aria_error_log[-3:]) # Last 3 lines + print(f"❌ Aria2 Failed (Code {process.returncode}): {err_msg}") + # FALLBACK to Native + if status: await status.edit(f"⚠️ Aria2 Failed (Code {process.returncode}). Switching to Native...") + await asyncio.sleep(1) # Give it a second + + # Set flag to run native block below + # We need to restructure slightly to allow fall-through or recursive call? + # Easiest is to set a flag and put native block in a check that runs if flag is set. + # Since native block is inside "if not use_native: else:", we can't jump easily. + # Refactoring: execute native block IF use_native OR fallback_triggered. + + # Let's signal fallback + pass # Continue execution to Fallback Block logic (handling via restructuring below) + + # QUICK FIX RESTRUCTURE: + # Instead of big IF/ELSE, we use flow control. + + # If we are here, Aria2 Failed. + # We initiate fallback logic manually here or move code. + # Best approach: Copy-Paste Native Logic here as fallback? Or Refactor? + # Refactor is better but risky for "replace_file". + # Let's use a "goto" style by calling a helper or simply running the native code here. + + print("🔄 Initiating Native Fallback...") + try: + from utils import load_cookies_dict + cookies = load_cookies_dict(sel_cookie(url_descarga)) + async with aiohttp.ClientSession(cookies=cookies) as session: + async with session.get(url_descarga) as resp: + if resp.status == 200: + total_size = int(resp.headers.get('Content-Length', 0)) + downloaded = 0 + start_t = time.time() + last_edit_t = 0 + + with open(final_temp, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + downloaded += len(chunk) + + now_t = time.time() + if now_t - last_edit_t > 4: + last_edit_t = now_t + from utils import render_bar + p_f = downloaded/total_size*100 if total_size else 0 + pct = f"{int(p_f)}%" if total_size else "..." + mb_curr = downloaded / (1024*1024) + mb_total = total_size / (1024*1024) if total_size else 0 + speed = mb_curr / (now_t - start_t) if (now_t - start_t) > 0 else 0 + if status: await status.edit(f"⬇️ Descargando (Nativo) 📁 `{mb_curr:.1f}/{mb_total:.1f} MB` (`{pct}`) @ `{speed:.1f} MB/s`") + + final = final_temp + # Success Fallback + else: + if status: await status.edit(f"❌ Fallback Error: {resp.status}") + return + except Exception as e_fall: + print(f"Fallback Exception: {e_fall}") + if status: await status.edit(f"❌ Actual Error: {err_msg}\nFallback Failed: {e_fall}") + return + else: + final = final_temp + # End of Aria2 process + + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + if os.path.exists(final_temp): + # Deducir extension para que get_meta funcione + ext = ".mp4" # Default safe + if "." in url_descarga: + try: + parts = url_descarga.split("/")[-1].split("?")[0].split(".") + if len(parts) > 1: + can_ext = "." + parts[-1] + if len(can_ext) < 6: ext = can_ext + except: pass + + final_path_with_ext = final_temp + ext + try: + os.rename(final_temp, final_path_with_ext) + final = final_path_with_ext + except Exception as e: + print(f"Rename Error: {e}") + final = final_temp + else: + # Fallback wget basico? + pass + + else: + # --- MODO CLÁSICO (YT-DLP) --- + # Para YouTube, Facebook, Twitter, etc. + opts = { + 'outtmpl': f"{base_name}.%(ext)s", + 'quiet': True, + 'no_warnings': True, + 'max_filesize': LIMIT_2GB, + 'progress_hooks': [progress_hook], # HOOK AÑADIDO + 'force_ipv4': False, + 'socket_timeout': 30, + 'http_headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'} + } + + if calidad == "mp3": + opts.update({'format': 'bestaudio/best', 'postprocessors': [{'key': 'FFmpegExtractAudio','preferredcodec': 'mp3'}]}) + elif calidad.isdigit(): + opts['format'] = f"bv*[height<={calidad}]+ba/b[height<={calidad}] / best" + else: + opts['format'] = 'best' + opts['merge_output_format'] = 'mp4' + + cookie_file = sel_cookie(url_descarga) + if cookie_file: opts['cookiefile'] = cookie_file + + if "eporner" in url_descarga: + opts['nocheckcertificate'] = True + + # --- FAST: PREPARAR OPCIONES --- + force_std = False + use_fast = False + + # OPTIMIZACIÓN: Descargas paralelas nativas para todos (a menos que se use Fast) + opts['concurrent_fragment_downloads'] = 8 + + if HAS_FAST and not calidad.startswith("html_") and conf.get('fast_enabled', True) and "eporner" not in url_descarga: + if not any(x in url_descarga for x in ["youtube.com", "youtu.be", "twitter.com", "x.com", "surrit.com", "hvidserv.com", "pornhub.com"]): + use_fast = True + + # Helper para ejecutar descarga Y extraer info + async def run_ytdlp(options): + with yt_dlp.YoutubeDL(options) as ydl: + info = await loop.run_in_executor(None, lambda: ydl.extract_info(url_descarga, download=True)) + return info + + # Intento 1: FAST (si aplica) + info_dict = None + + if use_fast: + print(f"🚀 Intentando Fast para: {url_descarga}") + opts_fast = opts.copy() + opts_fast.update({ + 'external_downloader': FAST_PATH if os.path.exists(FAST_PATH) else 'aria'+'2c', + 'external_downloader_args': ['-x','16','-k','1M','-s','16'], + 'merge_output_format': 'mp4' + }) + try: + info_dict = await run_ytdlp(opts_fast) + except Exception as e: + print(f"⚠️ Fast falló: {e}") + if "WinError 32" in str(e) or "used by another process" in str(e): + raise e + + # Silent Retry + force_std = True + + # Intento 2: STANDARD (Si no se usó Fast o si Fast falló) + if not use_fast or force_std: + try: + info_dict = await run_ytdlp(opts) + except Exception as e: + # RETRY WITHOUT COOKIES LOGIC + err_str = str(e) + print(f"⚠️ Error descarga: {err_str}") + + should_retry_no_cookies = 'cookiefile' in opts and any(x in err_str.lower() for x in ["sign in", "unable to extract", "403", "captcha", "empty", "forbidden", "frag", "download error", "cannot parse", "facebook"]) + + if should_retry_no_cookies: + print("⚠️ Falló con cookies. Reintentando SIN cookies...") + del opts['cookiefile'] + try: + info_dict = await run_ytdlp(opts) + except Exception as e2: + # FALLBACK FINAL: COBALT / TIKWM + print(f"⚠️ Falló Reintento Nativo: {e2}") + + # --- TIKTOK FALLBACK (TIKWM) [RETRY PATH] --- + if "tiktok.com" in url_descarga: + print("🎵 Falló yt-dlp (Retry). Intentando Fallback TIKWM...") + tik_data = await get_tikwm_data(url_descarga) + + if tik_data: + if 'images' in tik_data and tik_data['images']: + print(f"📸 TikTok Slideshow detected: {len(tik_data['images'])} images") + async with aiohttp.ClientSession() as session: + for idx, img_url in enumerate(tik_data['images']): + try: + async with session.get(img_url) as resp: + if resp.status == 200: + img_path = os.path.join(job_dir, f"{base_name}_slide_{idx}.jpg") + with open(img_path, 'wb') as f: + f.write(await resp.read()) + multi_files.append(img_path) + except Exception as e_img: + print(f"Error downloading slide {idx}: {e_img}") + if multi_files: + final = multi_files[0] + info_dict = { + 'title': tik_data.get('title', 'TikTok Slideshow'), + 'uploader': tik_data.get('author', {}).get('nickname', 'TikTok User'), + 'description': tik_data.get('title', ''), + 'ext': 'jpg' + } + else: raise e2 + elif 'play' in tik_data: + print(f"🎥 TikTok Video detected.") + v_url = tik_data['play'] + temp_out = f"dl_{chat_id}_{ts}_tikwm.mp4" + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + async with aiohttp.ClientSession() as session: + async with session.get(v_url) as resp: + if resp.status == 200: + with open(final_temp, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + final = final_temp + info_dict = { + 'title': tik_data.get('title', 'TikTok Video'), + 'uploader': tik_data.get('author', {}).get('nickname', 'TikTok User'), + 'description': tik_data.get('title', ''), + 'ext': 'mp4', + 'duration': tik_data.get('duration', 0) + } + else: raise e2 + else: raise e2 + else: + pass # Try Cobalt + + print("🧬 Intentando Fallback COBALT...") + cobalt_url = await get_cobalt_link(url_descarga, calidad) + if cobalt_url: + # Silent Cobalt + try: + temp_out = f"dl_{chat_id}_{ts}_cobalt" + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + + async with aiohttp.ClientSession() as session: + async with session.get(cobalt_url) as resp: + if resp.status == 200: + with open(final_temp, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + final = final_temp + # Mock info dict for metadata + info_dict = {'title': 'Facebook/Social Video (Cobalt)', 'ext': 'mp4'} + else: + if status: await status.edit(f"❌ Cobalt Server Error: {resp.status}") + raise e2 + except Exception as ec: + print(f"❌ Cobalt Fallback Error: {ec}") + raise e2 + else: + print("❌ Cobalt no devolvió URL.") + raise e2 + else: + # FIX: WinError 32/5 logic + if any(x in err_str for x in ["WinError 32", "WinError 5", "used by another process", "Access is denied"]): + print(f"⚠️ Conflicto de archivos ({err_str}). Reintentando loop de renomb... ") + posible_temp = f"{base_name}.temp.mp4" + posible_final = f"{base_name}.mp4" + renamed = False + for _ in range(5): + await asyncio.sleep(2) + if not os.path.exists(posible_final) and os.path.exists(posible_temp): + try: + os.rename(posible_temp, posible_final) + renamed = True + break + except: pass + if not renamed and not os.path.exists(posible_final): raise e + else: + # SI NO ES COOKIE ERROR NI LOCK ERROR, INTENTAR COBALT / TIKWM + + # --- TIKTOK FALLBACK (TIKWM) --- + if "tiktok.com" in url_descarga: + print("🎵 Falló yt-dlp. Intentando Fallback TIKWM...") + tik_data = await get_tikwm_data(url_descarga) + + if tik_data: + # A. SLIDESHOW (Images) + if 'images' in tik_data and tik_data['images']: + print(f"📸 TikTok Slideshow detected: {len(tik_data['images'])} images") + + async with aiohttp.ClientSession() as session: + for idx, img_url in enumerate(tik_data['images']): + try: + async with session.get(img_url) as resp: + if resp.status == 200: + # Save as .jpg + img_path = os.path.join(job_dir, f"{base_name}_slide_{idx}.jpg") + with open(img_path, 'wb') as f: + f.write(await resp.read()) + multi_files.append(img_path) + except Exception as e_img: + print(f"Error downloading slide {idx}: {e_img}") + + if multi_files: + final = multi_files[0] # Fake final to pass checks + info_dict = { + 'title': tik_data.get('title', 'TikTok Slideshow'), + 'uploader': tik_data.get('author', {}).get('nickname', 'TikTok User'), + 'description': tik_data.get('title', ''), + 'ext': 'jpg' + } + else: + raise e + + # B. VIDEO + elif 'play' in tik_data: + print(f"🎥 TikTok Video detected.") + v_url = tik_data['play'] + temp_out = f"dl_{chat_id}_{ts}_tikwm.mp4" + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + + async with aiohttp.ClientSession() as session: + async with session.get(v_url) as resp: + if resp.status == 200: + with open(final_temp, 'wb') as f: + # Download in chunks + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + final = final_temp + info_dict = { + 'title': tik_data.get('title', 'TikTok Video'), + 'uploader': tik_data.get('author', {}).get('nickname', 'TikTok User'), + 'description': tik_data.get('title', ''), + 'ext': 'mp4', + 'duration': tik_data.get('duration', 0) + } + else: raise e + else: + raise e + else: + # If TikWM failed, try Cobalt? (Or just fail) + pass + + # --- FACEBOOK / OTHER COBALT FALLBACK --- + elif "facebook.com" in url_descarga or "fb.watch" in url_descarga: + print("🧬 Social Media Falló. Intentando Fallback COBALT directo...") + cobalt_url = await get_cobalt_link(url_descarga, calidad) + if cobalt_url: + # Silent Cobalt + try: + temp_out = f"dl_{chat_id}_{ts}_cobalt" + final_temp = os.path.join(DOWNLOAD_DIR, temp_out) + async with aiohttp.ClientSession() as session: + async with session.get(cobalt_url) as resp: + if resp.status == 200: + with open(final_temp, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + final = final_temp + info_dict = {'title': 'Social Video (Cobalt)', 'ext': 'mp4'} + else: raise e + except: raise e + else: raise e + else: + raise e + + # --- METADATA TRANSLATION (POST-EXCUTION) --- + if info_dict: + try: + # 1. Extract Real Info + real_title = info_dict.get('title') + real_desc = info_dict.get('description', '') + real_tags = info_dict.get('tags', []) + + # 2. Translate if needed (Requested: STICTLY LINKED TO LANGUAGE BUTTON) + # 2. Translate if needed (Requested: STICTLY LINKED TO LANGUAGE BUTTON) + # Only translate if language is explicitly 'es' + if conf.get('lang') == 'es': + # Silent Translation + # from ai_service import translate_text_pure, generate_hashtags_ai # REMOVED AI + from utils import traducir_texto + + # A. Título + if real_title: + t_trans = await traducir_texto(real_title) + if t_trans: datos['titulo'] = t_trans + else: datos['titulo'] = real_title + + # B. Descripción + # Lower limit to > 0 to capture everything + if real_desc: + d_trans = await traducir_texto(real_desc[:1200]) # Limit input + if d_trans: datos['descripcion'] = d_trans + else: datos['descripcion'] = real_desc + + # C. Hashtags (STRICT: Original Tags + Text Hashtags NO AI INVENTION) + # Convert list to string + tags_from_yt = real_tags if real_tags else [] + + # Also look for hashtags in description using Regex (Strict) + tags_from_desc = re.findall(r"#[^\s]+", real_desc) if real_desc else [] + + # Combine unique tags + all_tags = list(set(tags_from_yt + tags_from_desc)) + + if all_tags: + tags_raw = " ".join(all_tags) + # Translate Hashtags (Keeping them as tags) + # We pass them to translation. Expected: "#Red #Blue" -> "#Rojo #Azul" + tags_trans = await traducir_texto(tags_raw) + + if tags_trans: + # Post-process to ensure they start with # + clean_t = [] + for t in tags_trans.split(): + if not t.startswith('#'): t = f"#{t}" + clean_t.append(t) + datos['hashtags'] = " ".join(clean_t) + else: + datos['hashtags'] = tags_raw + else: + datos['hashtags'] = "" + + # 3. Extract Dimensions explicitly for 'datos' + datos['width'] = info_dict.get('width') + datos['height'] = info_dict.get('height') + + # Extra check if width/height missing but resolution present + if not datos.get('width') and info_dict.get('resolution'): + # Try parsing "1920x1080" + try: + res_parts = info_dict['resolution'].split('x') + if len(res_parts) == 2: + datos['width'] = int(res_parts[0]) + datos['height'] = int(res_parts[1]) + except: pass + + except Exception as e_meta: + print(f"⚠️ Metadata Translation Error: {e_meta}") + + if calidad == "mp3": final = f"{base_name}.mp3" + else: + # Check Video AND Image extensions + for e in ['.mp4', '.mkv', '.webm', '.jpg', '.jpeg', '.png', '.webp', '.gif']: + if os.path.exists(base_name+e): + final = base_name+e + break + + # --- END DOWNLOAD BLOCK (SEMAPHORE RELEASED) --- + + # --- POST-PROCESADO: DETECCION DE TIPO Y RENOMBRAMIENTO --- + if not final or not os.path.exists(final): + if status: await status.edit("❌ **Error: Archivo no encontrado.**\nLa descarga falló silenciosamente.") + return + + # --- SMART IMAGE ANALYSIS REMOVED (STRICT NO AI) --- + # User requested 0 AI invention. If yt-dlp gives no tags, we send empty tags. + # Logic matches main.py: Only original metadata is preserved. + # --- SILENT VIDEO FIX (Force MP4) --- + # If video has no audio, Telegram sends it as GIF (Animation). + # We force add silent audio to ensure it sends as Video (MP4) with controls. + if calidad != "mp3" and not conf.get('doc_mode') and final.lower().endswith(('.mp4', '.mkv', '.webm')): + from tools_media import has_audio_track, add_silent_audio + has_audio = await asyncio.get_running_loop().run_in_executor(None, lambda: asyncio.run(has_audio_track(final))) + + if not has_audio: + print(f"🔇 Silent Video Detected. Adding dummy audio to force MP4...") + # if status: await status.edit("🔇 Video mudo detectado. Agregando audio silencioso...") + + new_final = await asyncio.get_running_loop().run_in_executor(None, lambda: asyncio.run(add_silent_audio(final))) + + if new_final and os.path.exists(new_final): + # Cleanup old + try: os.remove(final) + except: pass + final = new_final + file_size = os.path.getsize(final) # Update size + pass + + if multi_files: + # If we have multiple files (Slideshow), use them. + files_to_send = multi_files + file_size = sum(os.path.getsize(f) for f in multi_files) + else: + file_size = os.path.getsize(final) + files_to_send = [final] + is_split = False + + # --- SPLIT LOGIC (>1.9GB) --- + if file_size > TG_LIMIT: + # Silent Splitting + + # 1. Intentar corte inteligente (video) + if calidad != "mp3" and not conf.get('doc_mode'): + try: + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_by_size(final, TG_LIMIT)) + if parts: + files_to_send = parts + is_split = True + except Exception as e: + print(f"Error Smart Split: {e}") + parts = [] + + # 2. Fallback: Corte Binario (zip/7z/part) o video fallido + if not is_split: + try: + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_file_into_volumes(final, TG_LIMIT)) + if parts: + files_to_send = parts + is_split = True + except Exception as e: + print(f"Error Binary Split: {e}") + pass + + # --- REDUNDANCY REMOVED --- + + + # --- SUBIDA --- + total_parts = len(files_to_send) + sent_file_ids_list = [] # Collect IDs for caching + + for i, f_path in enumerate(files_to_send): + if not os.path.exists(f_path): continue + + part_msg = f"[{i+1}/{total_parts}]" if total_parts > 1 else "" + + # Status set in progress callback, but initial edit ok? User wants standard message. + # Using placeholder "Subiendo..." first. + if status: await status.edit(f"📤 Subiendo {part_msg}..." if part_msg else "📤 Subiendo Video...") + + # Título y Caption + # title = datos.get('titulo', 'Video') + # caption = f"🎬 **{title}**{part_msg}\n⚙️ {calidad}" + + # FORMAT FIX: Clean caption call (No emojis) + final_caption = generate_caption(datos, conf, extra_tag=f"{part_msg}") + + # --- META & THUMB --- + thumb_path = None + duration = 0 + width = 0 + height = 0 + + if calidad != "mp3" and not conf.get('doc_mode') and f_path.endswith(('.mp4', '.mkv', '.webm')): + try: + # 1. Get Meta First (Duration needed for smart thumb) + w, h, d = await get_meta(f_path) + width, height, duration = w, h, d + except: pass + + # 2. Generar Thumb (Smart Seek) + seek_forced = None + if conf.get('parallel_thumb_mode'): + # Get User Preference (Default 2s) + p_sec = conf.get('parallel_thumb_seek', 2) + + # Convert seconds to HH:MM:SS + m, s = divmod(p_sec, 60) + h, m = divmod(m, 60) + seek_forced = f"{int(h):02d}:{int(m):02d}:{s:02d}" + + thumb_path = await get_thumb(f_path, chat_id, ts, duration, seek_override=seek_forced) + + # --- SEND --- + sent_msg = None + progress_tracking = [time.time(), 0] # [timestamp, percentage] + + try: + if calidad == "mp3": + # Audio + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_AUDIO): + dur_a = await get_audio_dur(f_path) + sent_msg = await client.send_audio( + chat_id, f_path, + caption=final_caption, + title=datos.get('titulo', 'Audio'), + duration=dur_a, + progress=progreso, + progress_args=(status, progress_tracking, f"Subiendo {part_msg}" if is_split else "Subiendo Audio"), + reply_to_message_id=msg_orig.id + ) + elif conf.get('doc_mode'): + # Documento + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_DOCUMENT): + sent_msg = await client.send_document( + chat_id, f_path, + caption=final_caption, + thumb=thumb_path, + progress=progreso, + progress_args=(status, progress_tracking, f"Subiendo {part_msg}" if is_split else "Subiendo Documento"), + reply_to_message_id=msg_orig.id + ) + elif f_path.lower().endswith(('.jpg', '.jpeg', '.png', '.webp')): + # --- MODO FOTO (Fix solicitado) --- + # Usamos send_photo para que Telegram la renderice bonito + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_PHOTO): + sent_msg = await client.send_photo( + chat_id, f_path, + caption=final_caption, + progress=progreso, + progress_args=(status, progress_tracking, f"Subiendo {part_msg}" if is_split else "Subiendo Foto"), + reply_to_message_id=msg_orig.id + ) + else: + # Video + try: + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_VIDEO): + sent_msg = await client.send_video( + chat_id, f_path, + caption=final_caption, + duration=duration, + width=width, + height=height, + thumb=thumb_path, + supports_streaming=True, + progress=progreso, + progress_args=(status, progress_tracking, f"Subiendo {part_msg}" if is_split else "Subiendo Video"), + reply_to_message_id=msg_orig.id + ) + except Exception as e_vid: + print(f"⚠️ Video Send Error: {e_vid}. Fallback to Doc.") + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_DOCUMENT): + sent_msg = await client.send_document( + chat_id, f_path, + caption=final_caption + "\n(Video Fallback)", + thumb=thumb_path, + progress=progreso, + progress_args=(status, progress_tracking, f"Subiendo {part_msg}" if is_split else "Subiendo Video (Fallback)"), + reply_to_message_id=msg_orig.id + ) + + # --- AUTO SAVE TO CACHE --- + # Fixed: Collect ID + if sent_msg: + fid = None + if sent_msg.video: fid = sent_msg.video.file_id + elif sent_msg.document: fid = sent_msg.document.file_id + elif sent_msg.audio: fid = sent_msg.audio.file_id + + if fid: sent_file_ids_list.append(fid) + + except Exception as e_send: + print(f"❌ Upload Error: {e_send}") + if status: await status.edit(f"❌ Error subiendo: {e_send}") + + # Cleanup Part + if thumb_path and os.path.exists(thumb_path): + try: os.remove(thumb_path) + except: pass + + if is_split: + try: os.remove(f_path) + except: pass + + if status: + try: await status.delete() + except: pass + + # --- FINAL CACHE SAVE (AFTER LOOP) --- + if sent_file_ids_list and vid_id: + # Determine if we save a list or a single string + final_cache_payload = sent_file_ids_list[0] if len(sent_file_ids_list) == 1 else sent_file_ids_list + + # Strict Save: ID, URL, Quality, DocMode, FileID/List + print(f"✨ Saving to Cache: {vid_id} (Parts: {len(sent_file_ids_list)})") + # We use create_task to be non-blocking + asyncio.create_task(save_cached_file_strict(vid_id, url_descarga, ckey, is_doc_mode, final_cache_payload)) + + # Cleanup Original if Split or just generic cleanup + if final and os.path.exists(final): + try: os.remove(final) + except: pass + + except Exception as e: + print(f"❌ Error en procesar_descarga: {e}") + if status: + try: await status.edit(f"❌ Error: {str(e)[:100]}") + except: pass + finally: + remove_active(chat_id, msg_orig.id) + # Cleanup Job Dir (Full Folder isolation cleanup) + import shutil + try: + # Ensure job_dir is defined and exists (scope check) + if 'job_dir' in locals() and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + except: pass + + # Fallback specific cleanup if job_dir verification failed (legacy) + if final and os.path.exists(final): + try: os.remove(final) + except: pass + if thumb and os.path.exists(thumb): + try: os.remove(thumb) + except: pass + # Clean up url_storage entry for this download + if vid_id: + st = url_storage.get(chat_id) + if st: + # Si es un dict simple + if isinstance(st, dict) and st.get('id') == vid_id: + url_storage.pop(chat_id, None) + # Si es una lista (links_data) + elif isinstance(st, dict) and 'links_data' in st: + st['links_data'] = [item for item in st['links_data'] if item.get('id') != vid_id] + url_storage[chat_id] = st + +# Cleanup from end diff --git a/Twisted Brody Waifus & Creampie BRODY/downloads/ai_img_5565051026_1768230572.jpg b/Twisted Brody Waifus & Creampie BRODY/downloads/ai_img_5565051026_1768230572.jpg new file mode 100644 index 0000000000000000000000000000000000000000..af804a30cd6f447472c97274f9b74c38a36d83c0 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/downloads/ai_img_5565051026_1768230572.jpg differ diff --git a/Twisted Brody Waifus & Creampie BRODY/firebase_credentials.json b/Twisted Brody Waifus & Creampie BRODY/firebase_credentials.json new file mode 100644 index 0000000000000000000000000000000000000000..41ca8393110bb8dcc47c2aec03eed04ce343eeb8 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/firebase_credentials.json @@ -0,0 +1,13 @@ +{ + "type": "service_account", + "project_id": "waifuofbrody", + "private_key_id": "75e8653e118381202e6ed64758fd61c3a9bfeb77", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC6PzcP5kBFPPEr\n4uelvIKvbVHbesh6KQnsXS/iUnxHoM1g6fSYJHZA7xvqSrETKOjnYSbys8lUG9V2\ntrlhnnxRFD/v7T26hjefEc5AoO1f8wgtJg/Pq+xGSaeXVf67ZCIq893Zb5tNlFKS\nqsqS555syNEuXLRYL7lO1oIr75vXSaKRk26yyCmtVuH2iZnyDbvdvgDzRsUf638h\nnWnYpQtDE0Fp/PSur8JZ7JZ4J0VFlq9xUvYRzaLp3wPIV9E+uNucizUzD2hoKIhN\nEzZZ7XJIhIyJPwyglMILAVAi2FN46B/NHJ88Y0UJFRe6rayXeMPAEZLM9VUCJ3jV\nYNPAxLQDAgMBAAECggEAGNnDdo8h5zsk8NajUwVuqIqdH/xnkIk2Rj/+2iNoasRF\ncxd0Z/KBhtOAtYfGzcgpH2pioIKlq9/U4TSrUp+rdcQObeyJToCHHmXpT81JLwLG\nBgQsmuiVK6G7R2GVjhpjxrhoUxFltvnB9MjuI6DdDiXTZ2y+MYAYqTDNCKC9egGh\nvnmitUnVS+zEBKztWy5cKUdY7Nlq2dvmsWY2+HFmoIrpEnYPikQ8oLViiByWtvUb\nO2mHtTKg61K9LGlqVs7ScZwWazDGVD/GEk+hzDy69xVpWGUKBVa94246EnEvSS+f\nRgZ/8BR3zilfF9PPx4YaEsHyP8MhUMKPYwKwABI+HQKBgQD/eBKNnnHHpWjupkV4\nSn9Iq+P+OJHmtmHqB8z+i+CkppULpZij6TQfzR6fHiQzoFJOK4hsW9ccsJH0ZMjL\nohvNq9e6Oui5c5EzTvRdCXXbjl3tM92T/nMBunMkfXjcsgzazoCN4bOXk/qGc45s\nRhuzNeGYeODSKuP31Cwb82SJVQKBgQC6ok/Dnac10T2vHi1iKPZw+vlultz8LWmn\n6o0tUaU0p3wgy4Q9jpzK6G/HnjDy4+hJx0irCMnNcCElmsjN89IUaYF2Ve39ofy3\n7Uf2lD08l9uxl624y1RY7ExBq79ZboyuNODlSs6YjQgHU1yuzv0F+bZHemBGIGmL\nDw0UHXdn9wKBgDDzwypb6BWHfpnsRneMXuN//IokMODypcSAhiloiD1Epl669orC\nDvjhBzMaRXmXCO5trRCGcKvQsccQ4OEUSRuaCBZpX1rZ6ELaqDyDqY/OsfTX8WeA\nZG06WwHtARHZFFmBJGULkKxE8MZ+shXRQVGPy5C56OqcyV4dy+33L5aZAoGAcZvY\nXkWbwcDrgawnCDfTPJcqO02Om9uxE0xOQCYRIOpLP1Nj3mzvuPyg/qynM1PU1QSA\nkcy5u1rkcpW0YtpnKZHIAxbv1pNC2VuRkOJQHJB8ZbDlSTZM1AyTpu47ft8yt+Ds\nfed5t5cyKfNu2eKaV4bYlM5DyKx2UvYIihQd2aUCgYAp4ibh6gAebD35facfE3J4\n8OmjYeRGurHnhcm0j3TH5nXWPVwNo6IZS56Qbu975GSSRpJEORWhk4rv+bV5VWUV\n3shdshU+Q41VJCssJ5x3Q9MCoYt6WOdndYc2vuhKuC+7HwVLA0e16+iRu+VxPvA0\neNlgWfKUXedSIrFc5lLKZg==\n-----END PRIVATE KEY-----\n", + "client_email": "firebase-adminsdk-fbsvc@waifuofbrody.iam.gserviceaccount.com", + "client_id": "114846004229150488678", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-fbsvc%40waifuofbrody.iam.gserviceaccount.com", + "universe_domain": "googleapis.com" +} \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/firebase_service.py b/Twisted Brody Waifus & Creampie BRODY/firebase_service.py new file mode 100644 index 0000000000000000000000000000000000000000..3d9e74dc927035706862c892f62ea3781006eb4d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/firebase_service.py @@ -0,0 +1,666 @@ +import firebase_admin +from firebase_admin import credentials, firestore +import os +import json +import asyncio + +# Variable global para el cliente de Firestore +db = None + +def init_firebase(): + global db + if db is not None: + return db + + try: + # 1. Intentar cargar desde variable de entorno (JSON RAW) + firebase_json = os.environ.get("FIREBASE_JSON") + + # 2. Si no es JSON raw, intentar ruta de archivo + if not firebase_json: + cred_path = os.environ.get("FIREBASE_CREDENTIALS", "firebase_credentials.json") + if os.path.exists(cred_path): + cred = credentials.Certificate(cred_path) + else: + print("⚠️ [Firebase] No se encontraron credenciales (FIREBASE_JSON ni archivo).") + return None + else: + # Parsear el JSON del string + try: + cred_dict = json.loads(firebase_json) + cred = credentials.Certificate(cred_dict) + except Exception as e: + print(f"❌ [Firebase] Error parseando FIREBASE_JSON: {e}") + return None + + # Inicializar App + if not firebase_admin._apps: + firebase_admin.initialize_app(cred) + + db = firestore.client() + print("🔥 [Firebase] Conectado exitosamente a Firestore.") + return db + + except Exception as e: + print(f"❌ [Firebase] Error inicializando: {e}") + return None + +# Inicializar al importar (o llamar explícitamente en main) +init_firebase() + +from config import BOT_TOKEN + +# Segregar cache por Bot ID para evitar conflictos al cambiar de bot +BOT_ID = BOT_TOKEN.split(":")[0] if ":" in BOT_TOKEN else "global" +CACHE_COLLECTION = f"media_cache_{BOT_ID}" + +async def get_cached_file(video_id, quality): + """ + Busca en la colección del bot actual si existe el file_id. + Retorna el file_id o None. + """ + if not db: return None + + try: + # Usamos el video_id como ID del documento para búsqueda rápida O(1) + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + + loop = asyncio.get_running_loop() + # FIX: Añadir timeout de 5s para evitar hanging si Firebase falla + try: + doc = await asyncio.wait_for(loop.run_in_executor(None, doc_ref.get), timeout=5.0) + except asyncio.TimeoutError: + print(f"⚠️ [Firebase] Cache Read Timeout ({video_id}) - Saltando cache.") + return None + + if doc.exists: + data = doc.to_dict() + # data estructura: {'mp3': 'file_id_1', '720': 'file_id_2', ...} + return data.get(quality) + return None + except Exception as e: + print(f"⚠️ [Firebase] Error leyendo cache: {e}") + return None + +async def get_cached_data(video_id): + """ + Retorna el documento completo del cache (incluyendo meta y todos los formatos). + """ + if not db: return None + try: + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if doc.exists: return doc.to_dict() + except Exception as e: + print(f"⚠️ [Firebase] Error leyendo data cache: {e}") + return None + +async def save_cached_file(video_id, quality, file_id, meta=None): + """ + Guarda o actualiza el file_id para una calidad dada. + """ + if not db: return + + try: + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + + # Usamos set con merge=True para no borrar otras calidades + update_data = { + quality: file_id, + 'last_updated': firestore.SERVER_TIMESTAMP + } + + if meta: + update_data['meta'] = meta # Título, duración, etc si queremos guardar info extra + + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: doc_ref.set(update_data, merge=True)) + + print(f"🔥 [Firebase] Cache guardado: {video_id} [{quality}]") + except Exception as e: + print(f"❌ [Firebase] Error guardando cache: {e}") + +# --- STRICT CACHE LOGIC (URL + Quality + DocMode) --- +import hashlib + +def _compute_variant_key(url, quality, is_doc): + """Genera un hash único basado en los parámetros estrictos.""" + + # Eporner Direct Link Normalization: + # URL style: https://www.eporner.com/dload/VIDEO_ID/QUALITY/TOKEN-filename.mp4 + # We want to key ONLY by VIDEO_ID + QUALITY to allow cache hits even if token changes. + if "eporner.com/dload/" in url: + try: + # Extract ID usually after /dload/ + parts = url.split('/dload/') + if len(parts) > 1: + # Part 1 is video_id: 2pBe2ZZDqtG + vid_id_clean = parts[1].split('/')[0] + # Use this clean ID as the 'url' for the key + url = f"eporner_{vid_id_clean}" + except: pass + + raw = f"{url}|{quality}|{str(is_doc).lower()}" + return hashlib.sha256(raw.encode()).hexdigest() + +async def get_cached_file_strict(video_id, url, quality, is_doc): + """ + Busca una variante exacta en el documento del video. + """ + if not db: return None + try: + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + loop = asyncio.get_running_loop() + try: + doc = await asyncio.wait_for(loop.run_in_executor(None, doc_ref.get), timeout=5.0) + except asyncio.TimeoutError: + return None + + if doc.exists: + data = doc.to_dict() + variants = data.get('variants', {}) + v_key = _compute_variant_key(url, quality, is_doc) + + # DEBUG + print(f"🔍 [Firebase Debug] Key: {v_key} | Variants: {list(variants.keys())}") + + variant = variants.get(v_key) + if variant: + print(f"✨ [Firebase] Cache Estricto ENCONTRADO: {video_id}") + return variant.get('file_id') + + return None + except Exception as e: + print(f"⚠️ [Firebase] Error leyendo cache estricto: {e}") + return None + +async def save_cached_file_strict(video_id, url, quality, is_doc, file_id, meta=None): + """ + Guarda una variante estricta en el documento. + """ + if not db: return + try: + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + v_key = _compute_variant_key(url, quality, is_doc) + + variant_data = { + 'file_id': file_id, + 'url': url, + 'quality': quality, + 'is_doc': is_doc, + 'saved_at': firestore.SERVER_TIMESTAMP + } + + # Validar meta + if meta and isinstance(meta, dict): + # Limpiar meta para evitar recursión o datos corruptos + safe_meta = {k: v for k, v in meta.items() if isinstance(v, (str, int, float, bool))} + variant_data['meta'] = safe_meta + + # Update map inside map: {'variants': {hash: {...}}} + loop = asyncio.get_running_loop() + + # 1. Leer data actual para no sobreescribir otras variantes si set(merge=True) no es suficiente para deep merges de maps + # Firestore merge de mapas reemplaza todo el mapa si no usas notación de puntos. + # FIX: Usar diccionario anidado para set(merge=True) en Python para asegurar merge correcto + + update_payload = { + 'variants': { + v_key: variant_data + }, + 'last_updated': firestore.SERVER_TIMESTAMP + } + + if meta: + update_payload['global_meta'] = meta # Meta general (ej titulo) solo lo último + + await loop.run_in_executor(None, lambda: doc_ref.set(update_payload, merge=True)) + + print(f"🔥 [Firebase] Cache Estricto Guardado: {video_id} [Q:{quality} D:{is_doc}]") + except Exception as e: + print(f"❌ [Firebase] Error guardando cache estricto: {e}") + +async def delete_cached_file(video_id): + """ + Elimina un archivo del cache (útil si el link expira o es inválido). + """ + if not db: return + try: + doc_ref = db.collection(CACHE_COLLECTION).document(str(video_id)) + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, doc_ref.delete) + print(f"🗑 [Firebase] Cache eliminado: {video_id}") + except Exception as e: + print(f"⚠️ [Firebase] Error eliminando cache: {e}") + +async def get_bot_config(): + """ + Obtiene la configuración global del bot (ej: canal de backup). + Retorna un dict con las keys. + """ + if not db: return {} + try: + doc_ref = db.collection('bot_settings').document('global_config') + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if doc.exists: + return doc.to_dict() + return {} + except Exception as e: + print(f"⚠️ [Firebase] Error leyendo config global: {e}") + return {} + +async def save_bot_config(key, value): + """ + Guarda una key especifica en la configuración global. + """ + if not db: return False + try: + doc_ref = db.collection('bot_settings').document('global_config') + + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: doc_ref.set({key: value}, merge=True)) + + print(f"🔥 [Firebase] Config guardada: {key} = {value}") + return True + except Exception as e: + print(f"❌ [Firebase] Error guardando config global: {e}") + return False + +async def load_all_user_configs(): + """Carga todas las configs de usuarios desde Firestore.""" + if not db: return {} + try: + # Ejecutar en thread pool para no bloquear + loop = asyncio.get_running_loop() + docs = await loop.run_in_executor(None, lambda: db.collection('user_configs').stream()) + + # Stream devuelve un generador, iterarlo puede bloquear si son muchos, + # pero es necesario para poblar la RAM inicial. + data = {} + for doc in docs: + try: + data[int(doc.id)] = doc.to_dict() + except: pass + print(f"🔥 [Firebase] Configs cargadas: {len(data)} usuarios.") + return data + except Exception as e: + print(f"⚠️ [Firebase] Config Load Error: {e}") + return {} + +async def save_user_config_fb(chat_id, config_data): + """Guarda/Actualiza la config de un usuario.""" + if not db: return + try: + # Fire-and-forget sync wrapper + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: db.collection('user_configs').document(str(chat_id)).set(config_data, merge=True)) + except Exception as e: + print(f"❌ [Firebase] Save Config Error: {e}") + +async def load_all_hashtags(): + """Carga todos los hashtags.""" + if not db: return {} + try: + loop = asyncio.get_running_loop() + docs = await loop.run_in_executor(None, lambda: db.collection('hashtags').stream()) + + data = {} + for doc in docs: + data[doc.id] = doc.to_dict().get('msgs', []) + print(f"🔥 [Firebase] Hashtags cargados: {len(data)} tags.") + return data + except Exception as e: + print(f"⚠️ [Firebase] Tags Load Error: {e}") + return {} + +async def save_hashtag_fb(tag, msgs_list): + if not db: return + try: + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: db.collection('hashtags').document(tag).set({'msgs': msgs_list}, merge=True)) + except Exception as e: + print(f"❌ [Firebase] Save Tag Error: {e}") + +async def register_user(user_id, first_name, username): + """ + Registra al usuario, cuenta el total y detecta cambio de nombre. + Retorna: (is_new, count, name_changed) + """ + if not db: return (False, 0, False) # Fallback + + try: + # Referencias + user_ref = db.collection('user_configs').document(str(user_id)) + stats_ref = db.collection('bot_settings').document('stats') + + # Ejecutar transacción (pseudo-transacción para simplificar en async wrapper) + # Nota: Firestore async de python no soporta transactions con await facil dentro de lambda + # Haremos una logica optimista/separada por simplicidad y velocidad + + # 1. Obtener User + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, user_ref.get) + + if not doc.exists: + # --- NUEVO USUARIO --- + # 1. Incrementar contador global + try: + # Lectura + Escritura (Riesgo bajo de colision en low traffic) + st_doc = await loop.run_in_executor(None, stats_ref.get) + current_count = st_doc.to_dict().get('user_count', 0) if st_doc.exists else 0 + new_count = current_count + 1 + await loop.run_in_executor(None, lambda: stats_ref.set({'user_count': new_count}, merge=True)) + except: + new_count = 1 # Fallback + + # 2. Guardar Usuario + user_data = { + 'first_name': first_name, + 'username': username, + 'joined_at': firestore.SERVER_TIMESTAMP, + 'user_id': user_id + } + await loop.run_in_executor(None, lambda: user_ref.set(user_data, merge=True)) + return (True, new_count, False) + + else: + # --- USUARIO EXISTENTE --- + data = doc.to_dict() + old_name = data.get('first_name', '') + + # Detectar cambio de nombre + if old_name != first_name: + await loop.run_in_executor(None, lambda: user_ref.set({'first_name': first_name, 'username': username}, merge=True)) + return (False, 0, True) + + return (False, 0, False) + + except Exception as e: + print(f"⚠️ [Firebase] Register Error: {e}") + return (False, 0, False) + +async def get_global_stats(): + """Retorna el diccionario de stats (ej: user_count).""" + if not db: return {} + try: + doc_ref = db.collection('bot_settings').document('stats') + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if doc.exists: return doc.to_dict() + return {} + except: return {} + +# --- USER RULES (Memoria a largo plazo) --- +async def get_user_rules_fb(user_id, persona_id="nsfw"): + """Retorna la lista de reglas de un usuario para una personalidad específica.""" + if not db: return [] + try: + doc_ref = db.collection('user_rules').document(str(user_id)) + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if doc.exists: + data = doc.to_dict() + # MIGRATION CHECK: If 'rules' is at top level, it's legacy + if 'rules' in data and isinstance(data['rules'], list): + # Assume legacy rules belong to 'nsfw' or default + legacy = data.pop('rules') + if 'nsfw' not in data: data['nsfw'] = {'rules': legacy} + else: data['nsfw']['rules'].extend(legacy) + + # Save migration async + await loop.run_in_executor(None, lambda: doc_ref.set(data, merge=True)) + + # Retrieve persona rules + p_data = data.get(persona_id, {}) + return p_data.get('rules', []) + + return [] + except Exception as e: + print(f"⚠️ [Firebase] Error leyendo reglas ({persona_id}): {e}") + return [] + +async def save_user_rule_fb(user_id, rule_text, action="add", persona_id="nsfw"): + """Guarda, elimina o limpia reglas de un usuario (Scoped by Persona).""" + if not db: return False + try: + doc_ref = db.collection('user_rules').document(str(user_id)) + loop = asyncio.get_running_loop() + + # Leemos primero para modificar la lista + doc = await loop.run_in_executor(None, doc_ref.get) + data = doc.to_dict() if doc.exists else {} + + # MIGRATION ON SAVE + if 'rules' in data and isinstance(data['rules'], list): + legacy = data.pop('rules') + if 'nsfw' not in data: data['nsfw'] = {'rules': legacy} + else: data['nsfw']['rules'].extend(legacy) + + # Get target list + if persona_id not in data: data[persona_id] = {'rules': []} + current_rules = data[persona_id].get('rules', []) + + changed = False + if action == "add": + if rule_text not in current_rules: + current_rules.append(rule_text) + changed = True + elif action == "remove": + # Loose match or exact? Exact for now + if rule_text in current_rules: + current_rules = [r for r in current_rules if r != rule_text] + changed = True + elif action == "clear": + current_rules = [] + changed = True + + if changed: + data[persona_id]['rules'] = current_rules + await loop.run_in_executor(None, lambda: doc_ref.set(data, merge=True)) + print(f"🔥 [Firebase] Reglas actualizadas user {user_id} [{persona_id}]: {action}") + return True + return True + except Exception as e: + print(f"❌ [Firebase] Error guardando regla ({persona_id}): {e}") + return False + +# --- GLOBAL PERSONAS (SHARED) --- +async def save_global_persona(pid, data): + """Guarda una personalidad global (Nombre, Prompt, Imágenes).""" + if not db: return + try: + # Use a separate collection for scalable global personas + doc_ref = db.collection('global_personas').document(str(pid)) + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: doc_ref.set(data, merge=True)) + print(f"🌍 [Firebase] Personalidad Global Guardada: {pid}") + except Exception as e: + print(f"❌ [Firebase] Error guardando global persona: {e}") + +async def get_all_global_personas(): + """Retorna todas las personalidades globales {pid: data}.""" + if not db: return {} + try: + loop = asyncio.get_running_loop() + docs = await loop.run_in_executor(None, lambda: db.collection('global_personas').stream()) + + data = {} + for doc in docs: + data[doc.id] = doc.to_dict() + return data + except Exception as e: + print(f"⚠️ [Firebase] Global Personas Load Error: {e}") + return {} + +async def delete_global_persona_fb(pid): + """Elimina una personalidad global.""" + if not db: return + try: + doc_ref = db.collection('global_personas').document(str(pid)) + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, doc_ref.delete) + print(f"🗑 [Firebase] Personalidad Global Eliminada: {pid}") + except Exception as e: + print(f"❌ [Firebase] Error eliminando global persona: {e}") + +# --- CLOUD BODY (AVATARS) --- +async def save_persona_image(persona_id, outfit_id, emotion_id, file_id): + """ + Guarda un File ID de Telegram en la colección de avatares. + Estructura: avatars/{persona_id} -> {outfit_id}: {emotion_id: [file_ids]} + """ + if not db: return False + try: + doc_ref = db.collection('avatars').document(str(persona_id)) + + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + data = doc.to_dict() if doc.exists else {} + + # Estructura profunda: data[outfit][emotion] = list + if outfit_id not in data: data[outfit_id] = {} + if emotion_id not in data[outfit_id]: data[outfit_id][emotion_id] = [] + + # Evitar duplicados exactos + if file_id not in data[outfit_id][emotion_id]: + data[outfit_id][emotion_id].append(file_id) + + # Guardar + await loop.run_in_executor(None, lambda: doc_ref.set(data, merge=True)) + print(f"🔥 [Firebase] Avatar Saved: {persona_id}/{outfit_id}/{emotion_id}") + return True + + return True # Ya existía + except Exception as e: + print(f"❌ [Firebase] Avatar Save Error: {e}") + return False + +async def get_persona_images(persona_id, outfit_id, emotion_id): + """ + Retorna la lista de File IDs para una combinación específica. + """ + if not db: return [] + try: + doc_ref = db.collection('avatars').document(str(persona_id)) + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if doc.exists: + data = doc.to_dict() + outfit_data = data.get(outfit_id, {}) + images = outfit_data.get(emotion_id, []) + return images + return [] + except Exception as e: + print(f"⚠️ [Firebase] Avatar Read Error: {e}") + return [] + +async def get_all_avatars(persona_id): + """Retorna toda la estructura de avatares de una persona.""" + if not db: return {} + try: + doc_ref = db.collection('avatars').document(str(persona_id)) + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + return doc.to_dict() if doc.exists else {} + except: return {} + +async def delete_persona_image(persona_id, outfit_id, emotion_id, file_id_target): + """ + Elimina una imagen específica (por file_id) de la lista. + file_id_target puede ser string o dict {'id':...} + """ + if not db: return False + try: + doc_ref = db.collection('avatars').document(str(persona_id)) + loop = asyncio.get_running_loop() + doc = await loop.run_in_executor(None, doc_ref.get) + + if not doc.exists: return False + + data = doc.to_dict() + + if outfit_id not in data or emotion_id not in data[outfit_id]: + return False + + current_list = data[outfit_id][emotion_id] + + # Filtrar + new_list = [] + found = False + target_str = file_id_target + if isinstance(file_id_target, dict): target_str = file_id_target.get('id') + + for item in current_list: + item_id = item + if isinstance(item, dict): item_id = item.get('id') + + if item_id == target_str: + found = True + else: + new_list.append(item) + + if found: + data[outfit_id][emotion_id] = new_list + await loop.run_in_executor(None, lambda: doc_ref.set(data)) + print(f"🗑 [Firebase] Avatar Deleted: {target_str}") + return True + + return False + except Exception as e: + print(f"❌ [Firebase] Avatar Delete Error: {e}") + return False + +# --- VIRAL SHORTS PERSISTENCE --- +async def save_viral_item_fb(item): + """Guarda un item viral en la colección 'viral_shorts'.""" + if not db: return False + try: + # Usa el ID del item como ID del documento + doc_ref = db.collection('viral_shorts').document(str(item['id'])) + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, lambda: doc_ref.set(item, merge=True)) + print(f"🔥 [Firebase] Viral Item Saved: {item['id']}") + return True + except Exception as e: + print(f"❌ [Firebase] Viral Save Error: {e}") + return False + +async def delete_viral_item_fb(item_id): + """Elimina un item viral de la colección.""" + if not db: return False + try: + doc_ref = db.collection('viral_shorts').document(str(item_id)) + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, doc_ref.delete) + print(f"🗑 [Firebase] Viral Item Deleted: {item_id}") + return True + except Exception as e: + print(f"❌ [Firebase] Viral Delete Error: {e}") + return False + +async def load_all_viral_items_fb(): + """Carga todos los items virales en una lista.""" + if not db: return [] + try: + loop = asyncio.get_running_loop() + docs = await loop.run_in_executor(None, lambda: db.collection('viral_shorts').stream()) + + items = [] + for doc in docs: + try: + items.append(doc.to_dict()) + except: pass + + print(f"🔥 [Firebase] Viral Items Loaded: {len(items)}") + return items + except Exception as e: + print(f"⚠️ [Firebase] Viral Load Error: {e}") + return [] diff --git a/Twisted Brody Waifus & Creampie BRODY/fix_encoding.py b/Twisted Brody Waifus & Creampie BRODY/fix_encoding.py new file mode 100644 index 0000000000000000000000000000000000000000..d4531db4e5c0e9185c8a7d83bef9afe9a6dbe9b9 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/fix_encoding.py @@ -0,0 +1,92 @@ + +import os + +# Content to append +new_function = r""" +from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + +# --- HELPER: PAGINATION GRID --- +def generate_grid_keyboard(current_idx, total_items, prefix_sel, prefix_nav, prefix_jump, prefix_back='menu|tools', extra_rows=None): + ''' + Genera un teclado de cuadrícula (5x2) para selección paginada. + - current_idx: índice actual (0-based) para resaltar (opcional). + - total_items: total de elementos. + - prefix_sel: callback base para selección (ej: 'tiktok|sel|'). Appends index. + - prefix_nav: callback base para nav (ej: 'tiktok|nav|'). Appends '{cur}|prev' or '{cur}|next'. + - prefix_jump: callback para input manual (ej: 'tiktok|jump'). + - prefix_back: callback para volver. + ''' + page_size = 10 + current_page = current_idx // page_size + start_idx = current_page * page_size + end_idx = min(start_idx + page_size, total_items) + + buttons = [] + + # Grid 5x2 + # Row 1: 1-5 + row1 = [] + for i in range(start_idx, min(start_idx + 5, end_idx)): + # Display is 1-based (i+1) + # Highlight current? Maybe simply numbers. + lbl = f'✅ {i+1}' if i == current_idx else f'{i+1}' + row1.append(InlineKeyboardButton(lbl, callback_data=f'{prefix_sel}{i}')) + buttons.append(row1) + + # Row 2: 6-10 + if end_idx > start_idx + 5: + row2 = [] + for i in range(start_idx + 5, end_idx): + lbl = f'✅ {i+1}' if i == current_idx else f'{i+1}' + row2.append(InlineKeyboardButton(lbl, callback_data=f'{prefix_sel}{i}')) + buttons.append(row2) + + # Nav Row: [< Prev] [Jump] [Next >] + nav_row = [] + + # Prev (If not first page) + if start_idx > 0: + # Jump back 10 + target = max(0, start_idx - 10) + nav_row.append(InlineKeyboardButton('⬅️ Anterior', callback_data=f'{prefix_nav}{current_idx}|prev')) + else: + nav_row.append(InlineKeyboardButton('☁️ Inicio', callback_data='ignore')) + + # Jump Button + nav_row.append(InlineKeyboardButton('🔢 Ir a...', callback_data=f'{prefix_jump}')) + + # Next (If not last page) + if end_idx < total_items: + # Jump forward 10 + # target = start_idx + 10 (handled by logic) + nav_row.append(InlineKeyboardButton('Siguiente ➡️', callback_data=f'{prefix_nav}{current_idx}|next')) + else: + nav_row.append(InlineKeyboardButton('☁️ Fin', callback_data='ignore')) + + buttons.append(nav_row) + + # Extra Rows (Control buttons like 'Add', 'Random', 'Delete') + if extra_rows: + for r in extra_rows: + buttons.append(r) + + # Back Row defaults + # buttons.append([InlineKeyboardButton('🔙 Volver', callback_data=prefix_back)]) + + return InlineKeyboardMarkup(buttons) +""" + +try: + # Read Clean File + with open("utils_clean.py", "r", encoding="utf-8") as f: + clean_content = f.read() + + # Write to utils.py + with open("utils.py", "w", encoding="utf-8") as f: + f.write(clean_content) + f.write("\n") + f.write(new_function) + + print("SUCCESS: utils.py restored.") +except Exception as e: + print(f"ERROR: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/fix_webhook.py b/Twisted Brody Waifus & Creampie BRODY/fix_webhook.py new file mode 100644 index 0000000000000000000000000000000000000000..70ab3863073190f200e349b3124120e53bf3323e --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/fix_webhook.py @@ -0,0 +1,19 @@ +import requests +from config import BOT_TOKEN + +def clear_webhook(): + print(f"🔓 Intentando borrar Webhook para el token...") + url = f"https://api.telegram.org/bot{BOT_TOKEN}/deleteWebhook?drop_pending_updates=True" + try: + r = requests.get(url) + print(f"📡 Respuesta Telegram: {r.status_code}") + print(f"📄 Cuerpo: {r.text}") + if r.status_code == 200 and r.json().get('ok'): + print("✅ Webhook eliminado correctamente. Ahora el bot debería recibir mensajes.") + else: + print("⚠️ Hubo un problema eliminando el webhook.") + except Exception as e: + print(f"❌ Error de conexión: {e}") + +if __name__ == "__main__": + clear_webhook() diff --git a/Twisted Brody Waifus & Creampie BRODY/gallery-dl.conf b/Twisted Brody Waifus & Creampie BRODY/gallery-dl.conf new file mode 100644 index 0000000000000000000000000000000000000000..79e43183de542721c79025396284daee7411d0c2 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/gallery-dl.conf @@ -0,0 +1,4 @@ +{ + "downloader": { + } +} diff --git a/Twisted Brody Waifus & Creampie BRODY/google_lens.py b/Twisted Brody Waifus & Creampie BRODY/google_lens.py new file mode 100644 index 0000000000000000000000000000000000000000..1a10f2560784b4df68662266e66503a9a52b0c5c --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/google_lens.py @@ -0,0 +1,123 @@ + +import asyncio +from playwright.async_api import async_playwright +import os + +async def google_lens_screenshot(image_path: str, output_path: str) -> bool: + """ + Uploads an image to Google Lens and captures a screenshot of the results. + Includes STEALTH techniques to avoid Captcha. + """ + print(f"🕵️‍♂️ [GoogleLens] Starting logic for {image_path}") + if not os.path.exists(image_path): + print("❌ Image file not found.") + return False + + async with async_playwright() as p: + try: + # STEALTH ARGS + args = [ + '--no-sandbox', + '--disable-setuid-sandbox', + '--disable-blink-features=AutomationControlled', # CRITICAL: Hides 'navigator.webdriver' + '--disable-infobars', + '--window-size=1920,1080', + '--start-maximized' + ] + + # Launch Browser (Headful to avoid Captcha) + # We use headless=False so Google sees a real GPU/Renderer context. + print("🕵️‍♂️ Launching Visible Browser (To bypass Captcha)...") + browser = await p.chromium.launch(headless=False, args=args) + + # Create Context with Real User Agent & Viewport + context = await browser.new_context( + user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', + viewport={'width': 1920, 'height': 1080}, + locale='es-ES', + timezone_id='America/Lima' + ) + + # Add init script to further hide webdriver property + await context.add_init_script(""" + Object.defineProperty(navigator, 'webdriver', { + get: () => undefined + }); + """) + + page = await context.new_page() + + # 1. Provide a "referenced" navigation if possible or direct + # Going to google.com first, then lens might look more natural + print("🕵️‍♂️ Navigating to Google...") + await page.goto("https://www.google.com/?hl=es", timeout=15000) + await asyncio.sleep(1) # Human pause + + # 2. Go to Lens/Images + print("🕵️‍♂️ Going to Image Search...") + await page.goto("https://www.google.com/imghp?hl=es", timeout=15000) + + # Click Camera Icon + print("🕵️‍♂️ Clicking Camera...") + try: + # Try multiple selectors + btn = await page.wait_for_selector('div[aria-label="Buscar por imágenes"], div[aria-label="Search by image"], span.GKz10d, .nDcEnd', timeout=4000) + await btn.click() + except Exception as e: + print(f"⚠️ Camera icon not found: {e}") + # Try direct upload URL if click fails? No, Google requires interaction usually. + await browser.close() + return False + + await asyncio.sleep(0.5) + + # 3. Upload File + print("🕵️‍♂️ Uploading image...") + input_selector = 'input[type="file"]' + # Be robust waiting for input + try: + await page.wait_for_selector(input_selector, state='attached', timeout=3000) + await page.set_input_files(input_selector, image_path) + except: + # Initial click might have opened a drag modal + await page.set_input_files('input[name="encoded_image"]', image_path) # Fallback input name sometimes + + # 4. Wait for Results + print("🕵️‍♂️ Waiting for results...") + # If captcha appears, URL might stay on /search but with different content, or go to /sorry/ + try: + await page.wait_for_url("**/search?**", timeout=20000) + except: + print("⚠️ URL did not change to search results. Captcha?") + + await page.wait_for_load_state("domcontentloaded") + await asyncio.sleep(2) # Wait for images to render + + # CHECK FOR CAPTCHA + title = await page.title() + content = await page.content() + + if "sorry" in page.url or "captcha" in content.lower() or "unusual traffic" in content.lower(): + print("❌ Google Captcha Detected!") + # Take screenshot of failure for debug? + await page.screenshot(path=output_path) # Send the captcha to user so they see it + await browser.close() + return True # Return true so user sees the captcha image + + # 5. Take Screenshot + # Remove cookie banner if present + try: + await page.evaluate("document.querySelectorAll('[aria-modal=\"true\"]').forEach(e => e.remove())") + except: pass + + await page.screenshot(path=output_path, full_page=False) + + print(f"✅ Screenshot saved to {output_path}") + await browser.close() + return True + + except Exception as e: + print(f"❌ Playwright Error: {e}") + try: await browser.close() + except: pass + return False diff --git a/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody dowload.png b/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody dowload.png new file mode 100644 index 0000000000000000000000000000000000000000..99b34dd64d42fd7dacd1054b2d2caa7fb8740a96 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody dowload.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66fc41948d1e7218f432c928873f3ca345f6f4ab020992188b1042f9d3cc0b07 +size 289754 diff --git a/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody.png b/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody.png new file mode 100644 index 0000000000000000000000000000000000000000..c593c7b0b9a6937a3167dc2e680bd3f9cfdea6b2 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/icons/@twistedbrody.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:056fbd5e69e61bebcbd27996ad1a6f837c9cec0d96d3ce0e627dc0085c17c38c +size 329056 diff --git a/Twisted Brody Waifus & Creampie BRODY/jav_extractor.py b/Twisted Brody Waifus & Creampie BRODY/jav_extractor.py new file mode 100644 index 0000000000000000000000000000000000000000..c972a9a79c186bc16c1f1e99e42d6f8bd6ac53f4 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/jav_extractor.py @@ -0,0 +1,132 @@ +import re +import base64 +import requests +import os +import urllib.parse + +# Headers simulando Chrome en Windows (Menos sospechoso para Cloudflare con Cookies) +JAV_HEADERS = { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36', + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', + 'Accept-Language': 'en-US,en;q=0.9', + 'Referer': 'https://www.google.com/', + 'Connection': 'keep-alive', + 'Upgrade-Insecure-Requests': '1', + 'Sec-Fetch-Dest': 'document', + 'Sec-Fetch-Mode': 'navigate', + 'Sec-Fetch-Site': 'none', + 'Sec-Fetch-User': '?1' +} + +from config import COOKIES_DIR + +def load_cookies(filename): + """Carga cookies desde archivo Netscape en la carpeta de cookies.""" + path = os.path.join(COOKIES_DIR, filename) + cookies = {} + if os.path.exists(path): + try: + with open(path, 'r') as f: + for line in f: + if line.strip().startswith('#') or not line.strip(): continue + parts = line.strip().split('\t') + if len(parts) >= 7: + cookies[parts[5]] = parts[6] + except: pass + return cookies + +def decode_base64(s): + try: + return base64.b64decode(s + '=' * (-len(s) % 4)).decode('utf-8') + except: return None + +def find_m3u8_deep(text): + """Busca cualquier cosa que parezca un m3u8 en el texto sucio.""" + candidates = set() + + # 1. Patrón clásico http...m3u8 + matches = re.findall(r'(https?://[^\s"\'<>]+?\.m3u8[^\s"\'<>]*)', text) + for m in matches: + # Limpiar escapes de JSON + clean = m.replace('\\/', '/') + candidates.add(clean) + + # 2. Patrón Base64 común en JAV (file: "...") + b64_matches = re.findall(r'file\s*:\s*["\']([a-zA-Z0-9+/=]{20,})["\']', text) + for b in b64_matches: + decoded = decode_base64(b) + if decoded and 'http' in decoded and '.m3u8' in decoded: + candidates.add(decoded) + + return candidates + +def extraer_jav_directo(url): + print(f"⚡ [JAV Turbo] Atacando: {url}") + session = requests.Session() + + # Cargar cookies (usando nombres estándar definidos en config.py) + c = load_cookies('cookies_jav.txt') + if not c: c = load_cookies('cookies_pornhub.txt') + session.cookies.update(c) + + final_links = [] + seen = set() + + try: + # Petición principal + r = session.get(url, headers=JAV_HEADERS, timeout=15) + if r.status_code in [403, 503]: + print(f"❌ Cloudflare bloqueo (HTTP {r.status_code}). Las cookies pueden estar vencidas.") + return [] + + html = r.text + + # 1. BÚSQUEDA DIRECTA EN EL HTML PRINCIPAL + found_urls = find_m3u8_deep(html) + for u in found_urls: + if u not in seen: + seen.add(u) + final_links.append({'url': u, 'size': 0, 'res': 'JAV Direct (Main)'}) + + # 2. BÚSQUEDA DE IFRAMES (El video suele estar aquí) + # Buscamos cualquier iframe + iframes = re.findall(r']+src=["\']([^"\']+)["\']', html) + + for iframe_src in iframes: + if not iframe_src.startswith('http'): + if iframe_src.startswith('//'): iframe_src = 'https:' + iframe_src + else: continue + + # Ignorar publicidad obvia + if 'ads' in iframe_src or 'banner' in iframe_src: continue + + print(f"⚡ Escaneando Iframe: {iframe_src}") + + # Si encontramos un iframe, lo guardamos como 'Posible Video' + # Esto sirve para que si fallamos en extraer el m3u8, al menos le demos a yt-dlp el link del iframe + if iframe_src not in seen: + seen.add(iframe_src) + # Lo agregamos con baja prioridad, se sobrescribirá si encontramos el m3u8 dentro + final_links.append({'url': iframe_src, 'size': 0, 'res': 'Iframe Player (YT-DLP)'}) + + try: + # Entramos al iframe + headers_frame = JAV_HEADERS.copy() + headers_frame['Referer'] = url + r_frame = session.get(iframe_src, headers=headers_frame, timeout=10) + + # Buscamos m3u8 dentro del iframe + frame_m3u8s = find_m3u8_deep(r_frame.text) + for u in frame_m3u8s: + if u not in seen: + seen.add(u) + # ¡Bingo! Encontramos el video real dentro del iframe + final_links.insert(0, {'url': u, 'size': 0, 'res': 'JAV Stream (Extracted)'}) + except: + pass + + except Exception as e: + print(f"⚠️ Error JAV Extractor: {e}") + + # Ordenar: Los .m3u8 extraídos van primero, los iframes crudos al final + return sorted(final_links, key=lambda x: 0 if '.m3u8' in x['url'] or '.mp4' in x['url'] else 1) \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/list_models.py b/Twisted Brody Waifus & Creampie BRODY/list_models.py new file mode 100644 index 0000000000000000000000000000000000000000..b778427be7c77b5b09c95dac33b8ca11e336a6bb --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/list_models.py @@ -0,0 +1,12 @@ +import google.generativeai as genai +from config import GEMINI_API_KEY + +genai.configure(api_key=GEMINI_API_KEY) + +print("Listing models...") +try: + for m in genai.list_models(): + if 'generateContent' in m.supported_generation_methods: + print(f"- {m.name}") +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/main.py b/Twisted Brody Waifus & Creampie BRODY/main.py new file mode 100644 index 0000000000000000000000000000000000000000..2a52fd7bcab209e8bd2c66da988a47378b2c56c4 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/main.py @@ -0,0 +1,9738 @@ +import asyncio +import os +import sys +import yt_dlp +import time +import re +import shutil +import logging +import psutil +import pyrogram +from pyrogram import Client, filters, idle +from pyrogram.types import ( + InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery, + InputMediaPhoto, InputMediaDocument, InputMediaVideo, InputMediaAnimation, Message, + BotCommand, WebAppInfo +) +from pyrogram.errors import FloodWait +from io import BytesIO +import aiohttp +import threading +import random +# import uvicorn # Removed but kept for safety if referenced elsewhere, actually removing it is better. +# import uvicorn +# from fastapi import FastAPI +from http.server import HTTPServer, BaseHTTPRequestHandler + +# --- WEB SERVER SETUP (AIOHTTP STREAMING) --- +from aiohttp import web + +async def handle_health(request): + return web.Response(text="OK") + +async def web_download_handler(request): + chat_id = request.match_info.get('chat_id') + msg_id = request.match_info.get('msg_id') + + if not chat_id or not msg_id: return web.Response(status=400, text="Bad Request") + try: + chat_id, msg_id = int(chat_id), int(msg_id) + except: return web.Response(status=400, text="Invalid IDs") + + try: + msg = await app.get_messages(chat_id, msg_id) + if not msg or getattr(msg, 'empty', True): return web.Response(status=404, text="Message not found") + + media = msg.video or msg.document or msg.audio or msg.animation or msg.photo + if not media: return web.Response(status=404, text="No media found") + + file_size = getattr(media, 'file_size', 0) + file_name = getattr(media, 'file_name', 'downloaded_file') + mime_type = getattr(media, 'mime_type', 'application/octet-stream') + + response = web.StreamResponse( + status=200, reason='OK', + headers={ + 'Content-Type': mime_type, + 'Content-Disposition': f'attachment; filename="{file_name}"', + 'Content-Length': str(file_size) + } + ) + await response.prepare(request) + async for chunk in app.stream_media(msg): + await response.write(chunk) + await response.write_eof() + return response + except Exception as e: + print(f"Streaming Error: {e}") + return web.Response(status=500, text="Internal Server Error") + +async def start_web_server(): + app_web = web.Application() + app_web.router.add_get('/', handle_health) + app_web.router.add_get('/dl/{chat_id}/{msg_id}', web_download_handler) + app_web.router.add_get('/dl/{chat_id}/{msg_id}/', web_download_handler) + runner = web.AppRunner(app_web) + await runner.setup() + site = web.TCPSite(runner, '0.0.0.0', 7860) + await site.start() + print("🌍 Servidor Aiohttp (Direct Link) activo en puerto 7860") + +# --- IMPORTACIONES DEL PROYECTO --- +from config import API_ID, API_HASH, BOT_TOKEN, DATA_DIR, COOKIE_MAP, DATABASE_CHANNEL, BASE_DIR, OWNER_ID, GEMINI_API_KEY +from database import get_config, url_storage, hashtag_db, can_download, cancel_all, add_active, remove_active, load_viral, save_viral, viral_music_db, set_exclusive_mode +from utils import format_bytes, limpiar_url, sel_cookie, resolver_url_facebook, descargar_galeria, scan_channel_history, search_saucenao, format_saucenao_results, search_tracemoe, format_tracemoe_results +from utils_chat_actions import chat_action_loop +from jav_extractor import extraer_jav_directo +from downloader import procesar_descarga, SEM_DOWNLOAD +from manga_service import ( + get_all_mangas_paginated, get_manga_metadata, + process_manga_download, get_or_cache_cover, + get_manga_chapters +) +from firebase_service import ( + save_bot_config, get_cached_file, save_cached_file, + get_cached_data, register_user, get_user_rules_fb, + save_user_rule_fb, save_global_persona, + get_all_global_personas, delete_global_persona_fb, + save_persona_image, get_persona_images, + save_viral_item_fb, delete_viral_item_fb, load_all_viral_items_fb # New imports +) +from ai_service import init_ai, ask_gemini, clear_chat_memory, generate_hashtags_ai +from tts_service import generate_tts_audio +from tagger_tool import run_tagger_logic + +# Cache for Avatar Categories (Lazy Loaded) +# Structure: {persona_id: set([cat1, cat2, ...])} +AVATAR_KEYS_CACHE = {} + +# --- SEMAPHORE FOR AUTO CORTE (Max 5 concurrent) --- +SEM_AUTO_CORTE = asyncio.Semaphore(5) +# --- SEMAPHORE FOR CONVERTIDOR QH (Max 5 concurrent) --- +SEM_CONVERT_QH = asyncio.Semaphore(5) +# --- SEMAPHORE FOR CONVERTIDOR MP4 H264 (Max 5 concurrent) --- +SEM_CONVERT_H264 = asyncio.Semaphore(5) +# --- SEMAPHORE FOR COLLAGE (Max 5 concurrent) --- +SEM_COLLAGE = asyncio.Semaphore(5) +# --- SEMAPHORES --- +# Limit downloads to 5 concurrent +SEM_DOWNLOAD = asyncio.Semaphore(5) +# Limit analysis (initial message/extraction) to 3 concurrent to prevent FloodWait +SEM_ANALYSIS = asyncio.Semaphore(3) +# --- SEMAPHORE FOR SUBTITLES (Max 5 concurrent) --- +SEM_SUB = asyncio.Semaphore(5) +# --- SEMAPHORE FOR SMART CUT (Max 3 concurrent) --- +SEM_SMART_CUT = asyncio.Semaphore(3) +# --- SEMAPHORE FOR PARTY MODE (Max 5 concurrent) --- +SEM_PARTY = asyncio.Semaphore(5) +# --- LOCKS FOR PARTY SENDING (Serial sending per Chat) --- +PARTY_SEND_LOCKS = {} + +# --- VIDEO MIXER BUFFER & LOCKS --- +# Buffer: {chat_id: [(msg_id, path), ...]} +VIDEO_MIXER_BUFFERS = {} +VIDEO_MIXER_LOCKS = {} # {chat_id: asyncio.Lock()} +from video_mixer import mix_videos_side_by_side + +# --- NANO BANANA BATCH BUFFER (Multi-Image Support) --- +# Format: {chat_id: {'images': [path1, path2], 'text': "last caption", 'task': asyncio.Task}} +NANO_BATCH_BUFFER = {} + +# --- NANO PENDING CONTEXT (Waiting for Text Prompt) --- +# Format: {chat_id: [img_path1, img_path2]} +NANO_PENDING_CONTEXT = {} + +# --- QUEUE SEMAPHORE (Anti-Crash) --- +SEM_EXCLUSIVE_VIDEO = asyncio.Semaphore(3) + +# --- COLLAGE BATCH BUFFER --- +COLLAGE_BATCH_BUFFER = {} + +async def run_collage_batch(chat_id, client): + """Waits for multiple media files and processes them as a collage.""" + try: + await asyncio.sleep(4.0) # Wait for album/more files (4s is safer for big albums) + + if chat_id not in COLLAGE_BATCH_BUFFER: return + data = COLLAGE_BATCH_BUFFER.pop(chat_id) + + files = data['files'] + wm = data['wm'] + + if not files: return + + # Determine Grid + count = len(files) + conf = get_config(chat_id) + grid = conf.get('collage_grid', None) # If None, auto-calc in tools_media.py + + # Feedback + try: await wm.edit(f"🧩 **Procesando Collage ({count} archivos)...**") + except: pass + + from tools_media import create_mixed_media_collage, get_meta, progreso + + # Process + out_path = await create_mixed_media_collage(files, grid=grid) + + if out_path and os.path.exists(out_path): + # Upload + try: await wm.edit("📤 **Subiendo Collage...**") + except: pass + + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_PHOTO): + await client.send_photo( + chat_id, out_path, + caption=f"🧩 **Collage Generado** ({count} elementos)" + ) + + # Cleanup + os.remove(out_path) + else: + try: await wm.edit("❌ Error creando collage.") + except: pass + + # Cleanup inputs + for f in files: + if os.path.exists(f): + try: os.remove(f) + except: pass + + # Cleanup Job Dir + try: + job_dir = os.path.dirname(files[0]) if files else None + if job_dir and "job_" in os.path.basename(job_dir) and os.path.exists(job_dir): + import shutil + shutil.rmtree(job_dir, ignore_errors=True) + except: pass + + # Auto-OFF Check + from firebase_service import save_user_config_fb + conf['collage_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + await client.send_message(chat_id, "✅ **Proceso Finalizado.** (Modo Apagado)") + try: await wm.delete() + except: pass + + except Exception as e: + print(f"Collage Batch Error: {e}") + if chat_id in COLLAGE_BATCH_BUFFER: COLLAGE_BATCH_BUFFER.pop(chat_id, None) + + +async def run_nano_batch(chat_id, client): + """Espera un momento para agrupar imágenes (album) y luego PIDE EL PROMPT.""" + try: + # Esperar a que lleguen más fotos (simulando álbum) + await asyncio.sleep(2.5) + + # Recuperar datos del buffer + if chat_id not in NANO_BATCH_BUFFER: return + data = NANO_BATCH_BUFFER.pop(chat_id) + + image_paths = data['images'] + wm_msg = data.get('wm') + + if not image_paths: return + + # --- AUTO TRIGGER IF CAPTION PRESENT --- + user_prompt = data.get('text') + if user_prompt and len(user_prompt.strip()) > 0: + print(f"🍌 [NanoBanana] Caption detected: '{user_prompt}'. Triggering immediately.") + + # Delete "Viendo..." message + if wm_msg: + try: await wm_msg.delete() + except: pass + + # Move images to global pending context (so ai_chat_handler finds them) + NANO_PENDING_CONTEXT[chat_id] = image_paths + + # Create MOCK Message to trigger ai_chat_handler + # We need to simulate a Text Message + from types import SimpleNamespace + + mock_msg = SimpleNamespace( + chat=SimpleNamespace(id=chat_id), + from_user=data['msg'].from_user, + text=user_prompt, + caption=None, + photo=None, + document=None, + reply_to_message=None, + video=None, + id=data['msg'].id # Keep original ID or new? Original is fine. + ) + + # Inject methods that might be called + async def mock_reply(text, **kwargs): + return await client.send_message(chat_id, text, **kwargs) + + async def mock_reply_document(document, **kwargs): + return await client.send_document(chat_id, document, **kwargs) + + async def mock_reply_photo(photo, **kwargs): + return await client.send_photo(chat_id, photo, **kwargs) + + mock_msg.reply = mock_reply + mock_msg.reply_document = mock_reply_document + mock_msg.reply_photo = mock_reply_photo + + # Manual Call to Handler + await ai_chat_handler(client, mock_msg) + return + + print(f"🍌 [NanoBanana] Album Collected: {len(image_paths)} images. Waiting for User Prompt.") + + # MOVE TO PENDING CONTEXT (Waiting for text) + existing = NANO_PENDING_CONTEXT.get(chat_id, []) + # Avoid duplicates just in case? No, paths are unique by timestamp. + combined = existing + image_paths + NANO_PENDING_CONTEXT[chat_id] = combined + + # Update existing "Recibido" message or send new one + msg_sent = False + if wm_msg: + try: + await wm_msg.edit_text( + f"✅ **Recibido. Total imágenes: {len(combined)}**\n✍️ **Escribe tu prompt cuando estés listo.**", + reply_markup=wm_msg.reply_markup + ) + msg_sent = True + except: + pass + + if not msg_sent: + await client.send_message( + chat_id, + f"✅ **Recibido. Total imágenes: {len(combined)}**\n✍️ **Escribe tu prompt cuando estés listo.**" + ) + + except Exception as e: + print(f"❌ Nano Batch Error: {e}") + if chat_id in NANO_BATCH_BUFFER: NANO_BATCH_BUFFER.pop(chat_id, None) + +# SPANISH TRANSLATIONS (GLOBAL) +TRANS = { + # Social + 'greeting': 'Saludo', 'bienvenida': 'Bienvenida', 'welcome': 'Bienvenida', 'happy': 'Feliz', 'laugh': 'Risa', 'angry': 'Enojada', 'pouting': 'Puchero', + 'sad': 'Triste', 'shock': 'Sorpresa', 'confused': 'Confundida', 'scared': 'Asustada', 'disgusted': 'Asco', + 'thinking': 'Pensando', 'wink': 'Guiño', 'bored': 'Aburrida', 'tired': 'Cansada', 'drunk': 'Borracha', + 'crazy': 'Loca', 'pleading': 'Suplicando', 'smug': 'Presumida', 'shy': 'Tímida', + # Romance + 'love': 'Enamorada', 'kiss': 'Beso', 'deep_kiss': 'Beso Lengua', 'blow_kiss': 'Beso Aire', + 'hug': 'Abrazo', 'holding': 'Manos', 'lap_pillow': 'Regazo (Almohada)', 'lap_sit': 'Sentada en Ti', + 'feeding': 'Dando Comer', 'headpat': 'Caricias', 'cuddle': 'Acurrucados', 'lean': 'Apoyada', + 'cheek': 'Beso Mejilla', 'forehead': 'Beso Frente', 'ring': 'Anillo', 'date': 'Cita', 'heart': 'Corazón', + 'stare': 'Mirada Fija', + # Outfits + 'casual': 'Casual', 'dress': 'Vestido', 'sundress': 'Vestido Verano', 'wedding': 'Novia', + 'bikini': 'Bikini', 'micro': 'Micro Bikini', 'gym': 'Gimnasio', 'school': 'Colegiala', + 'bloomer': 'Bloomers', 'maid': 'Maid', 'nurse': 'Enfermera', 'police': 'Policía', + 'bunny': 'Conejita', 'cheongsam': 'China', 'kimono': 'Kimono', 'goth': 'Gótica', + 'ol': 'Oficina', 'sweater': 'Suéter', 'pajamas': 'Pijama', 'towel': 'Toalla', 'apron': 'Delantal', + # Soft + 'horny': 'Caliente', 'lingerie': 'Lencería', 'bra': 'Sostén', 'panties': 'Bragas', + 'nude': 'Desnudo Frontal', 'nude_back': 'Desnudo Espalda', 'ass': 'Culo', 'boobs': 'Pechos', + 'nipples': 'Pezones', 'feet': 'Pies', 'legs': 'Piernas', 'armpits': 'Axilas', + 'sweat': 'Sudor', 'oil': 'Aceite', 'bondage': 'Atada', 'collar': 'Collar', + # Hard + 'masturb': 'Dedo/Mast', 'toy_play': 'Juguete', 'blowjob': 'Oral', 'deepthroat': 'Garganta Profunda', + 'cum_mouth': 'Semen Boca', 'facesit': 'Sentada Cara', 'paizuri': 'Cubana', 'handjob': 'Paja', + 'doggy': 'Perrito', 'mission': 'Misionero', 'cowgirl': 'Cabalgando', 'standing': 'De Pie', + 'anal': 'Anal', 'gangbang': 'Grupo', 'double': 'Doble Pen', 'lesbian': 'Lesbico', '69': '69', + # Climax + 'cum_face': 'Semen Cara', 'cum_body': 'Semen Cuerpo', 'creampie': 'Creampie', 'anal_pie': 'Anal Pie', + 'bukkake': 'Bukkake', 'ahegao': 'Ahegao', 'after': 'Post-Sexo', 'mess': 'Sucia', + # Life (and Vulgar) + 'sleep': 'Durmiendo', 'eat': 'Comiendo', 'bath': 'Bañera', 'toilet': 'Baño', 'selfie': 'Selfie', + 'pussy': 'Vagina', 'dick': 'Pene', 'anus': 'Ano', 'spread': 'Abriendo', + 'orgy': 'Orgía', 'cuckold': 'Cornudo', 'sex': 'Sexo', 'slut': 'Puta', 'milk': 'Leche', 'cum': 'Semen', 'threesome': 'Trío', + 'rimjob': 'Beso Negro', 'spit': 'Saliva', 'choking': 'Ahorcando', 'spank': 'Nalgadas', 'fisting': 'Fisting', 'squirt': 'Squirt', + # Cosplay / Extra + 'cat_girl': 'Gatita', 'dog_girl': 'Perrita', 'cow_girl': 'Vaquita', 'fox_girl': 'Zorrita', + 'doctor': 'Doctora', 'teacher': 'Maestra', 'nun': 'Monja', 'witch': 'Bruja', + 'vampire': 'Vampiresa', 'succubus': 'Súcubo', 'elf': 'Elfa', 'goblin': 'Duende', + # Packs + 'pack_boobs': 'Pack Tetas', 'pack_ass': 'Pack Culo', 'pack_pussy': 'Pack Vagina', + 'pack_nude': 'Pack Cuerpo', 'pack_feet': 'Pack Pies', 'pack_dildo': 'Pack Juguetes', + 'pack_underwear': 'Pack Ropa Interior', 'pack_cam': 'Pack Cam/Selfie' +} + +# --- VARIABLES GLOBALES --- +logging.basicConfig(level=logging.INFO) +logger = logging.getLogger(__name__) + +# --- GLOBAL CACHE --- +global_personas = {} + +async def refresh_globals(): + """Recarga las personalidades globales desde Firebase.""" + global global_personas, viral_music_db + try: + global_personas = await get_all_global_personas() + print(f"🌍 [Main] Global Personas Loaded: {len(global_personas)}") + + # ALSO LOAD VIRAL MUSIC DB HERE + viral_music_db = await load_all_viral_items_fb() + print(f"🎵 [Main] Global Viral Items Loaded: {len(viral_music_db)}") + + except Exception as e: + print(f"⚠️ Global Refresh Error: {e}") + +# --- 1. FIX WINDOWS LOOP --- +if os.name == 'nt': + asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) + +# --- 2. CONFIGURACIÓN CLIENTE --- +WORKDIR = "sessions" +if not os.path.exists(WORKDIR): + os.makedirs(WORKDIR) + +app = Client( + "brody_final_v2", + api_id=int(API_ID), + api_hash=API_HASH, + bot_token=BOT_TOKEN, + workers=100, + workdir=WORKDIR, + ipv6=False, + sleep_threshold=60, + max_concurrent_transmissions=16 +) + +BOT_USERNAME = None + +# --- HELPER: LOGICA PARTY --- +async def run_extract_logic(client, chat_id, file_path, mode, val, msg_to_edit=None): + from utils import extract_images_ffmpeg, create_split_zips + + if msg_to_edit: await msg_to_edit.edit(f"🖼 **Extrayendo imágenes ({mode}={val})...**") + else: msg_to_edit = await client.send_message(chat_id, f"🖼 **Extrayendo imágenes ({mode}={val})...**") + + try: + imgs, out_dir = await asyncio.get_running_loop().run_in_executor(None, lambda: extract_images_ffmpeg(file_path, val, mode)) + + if not imgs: + await msg_to_edit.edit("❌ No se pudieron extraer imágenes. Verifica el tiempo/intervalo.") + return False + + conf = get_config(chat_id) + is_zip = conf.get('extract_party_zip', True) + is_doc = conf.get('doc_mode_tools', False) + is_group = conf.get('group_mode_tools', False) + + if is_zip: + await msg_to_edit.edit(f"📦 **Comprimiendo {len(imgs)} imágenes...**") + base_name = f"Extracted_{chat_id}_{int(time.time())}" + zip_files = await asyncio.get_running_loop().run_in_executor(None, lambda: create_split_zips(imgs, base_name)) + + for zp in zip_files: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_DOCUMENT): + await client.send_document(chat_id, zp, caption=f"🖼 **Extractor**: {len(imgs)} fotogramas ({mode}={val})") + if os.path.exists(zp): os.remove(zp) + else: + await msg_to_edit.edit(f"📤 **Enviando {len(imgs)} imágenes...**") + if is_group and len(imgs) > 1: + # Enviar como Media Group (max 10 cada uno) + chunks = [imgs[i:i + 10] for i in range(0, len(imgs), 10)] + for chunk in chunks: + media = [] + for img in chunk: + if is_doc: media.append(InputMediaDocument(media=img)) + else: media.append(InputMediaPhoto(media=img)) + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_PHOTO): + await client.send_media_group(chat_id, media) + else: + # Individual + for img in imgs: + if is_doc: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_DOCUMENT): + await client.send_document(chat_id, img) + else: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_PHOTO): + await client.send_photo(chat_id, img) + + await msg_to_edit.delete() + + # Cleanup Job Dir + import shutil + job_dir = os.path.dirname(file_path) + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + elif os.path.exists(out_dir): + shutil.rmtree(out_dir) + + # Auto-OFF logic + conf = get_config(chat_id) + if not conf.get('auto_extract', False): + conf['extract_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + return True + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Extractor: {e}") + return False + + +async def run_gif_logic(client, chat_id, file_path, msg_to_edit=None): + from utils import video_to_gif_ffmpeg + if msg_to_edit: await msg_to_edit.edit("🎞 **Convirtiendo a GIF...**") + else: msg_to_edit = await client.send_message(chat_id, "🎞 **Convirtiendo a GIF...**") + + try: + gif_file = await asyncio.get_running_loop().run_in_executor(None, lambda: video_to_gif_ffmpeg(file_path)) + if gif_file: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_VIDEO): + await client.send_animation(chat_id, gif_file, caption="🎬 **GIF Creado**") + + # Smart Cleanup + import shutil + job_dir = os.path.dirname(file_path) + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + elif os.path.exists(gif_file): os.remove(gif_file) + + await msg_to_edit.delete() + else: + await msg_to_edit.edit("❌ Error al convertir a GIF.") + except Exception as e: + await msg_to_edit.edit(f"❌ Error: {e}") + finally: + # Auto-OFF + conf = get_config(chat_id) + conf['gif_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + +async def run_sticker_logic(client, chat_id, file_path, msg_to_handle=None): + from utils import create_telegram_sticker + + # Mensaje de espera + wm = await client.send_message(chat_id, "🎭 **Creando Video Sticker (VP9)...**") + + try: + # Generamos el sticker optimizado + sticker_file = await asyncio.get_running_loop().run_in_executor(None, lambda: create_telegram_sticker(file_path, is_emoji=False)) + + if sticker_file: + # Enviamos el sticker + # Nota: Al ser .webm y formato correcto, Telegram debería mostrarlo como sticker. + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_VIDEO): + await client.send_sticker(chat_id, sticker_file) + + # Mensaje de éxito + await wm.edit("✅ **Sticker Generado.**\n(Añádelo a tus favoritos o reenvíalo)") + + if os.path.exists(sticker_file): os.remove(sticker_file) + else: + await wm.edit("❌ Error al crear sticker (FFmpeg).") + + except Exception as e: + await wm.edit(f"❌ Error General: {e}") + finally: + conf = get_config(chat_id) + conf['sticker_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + +async def run_saucenao_logic(client, chat_id, file_path, msg_to_edit=None): + from utils import search_saucenao, format_saucenao_results, search_tracemoe, format_tracemoe_results + + if msg_to_edit: await msg_to_edit.edit("🔍 **Buscando información...**") + else: msg_to_edit = await client.send_message(chat_id, "🔍 **Buscando información...**") + + try: + # 1. SauceNAO + results_sauce = await asyncio.get_running_loop().run_in_executor(None, lambda: search_saucenao(file_path)) + msg_sauce = format_saucenao_results(results_sauce) + + # 2. Trace.moe + results_trace = await asyncio.get_running_loop().run_in_executor(None, lambda: search_tracemoe(file_path)) + msg_trace, video_preview, is_adult = format_tracemoe_results(results_trace) + + # Combine Results + final_msg = f"{msg_sauce}\n\n━━━━━━━━━━━━━━━━━━━━\n\n{msg_trace}" + + # Enviar resultados + # Intentamos enviar como reply a la imagen si es posible, sino editamos el mensaje de espera + await msg_to_edit.edit(final_msg, disable_web_page_preview=True) + + # Opcional: Si trace.moe dio preview, podríamos enviarlo. + # Por ahora lo dejamos solo en texto para no spammear. + + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Búsqueda: {e}") + finally: + # Cleanup file + if os.path.exists(file_path): + try: os.remove(file_path) + except: pass + + # Auto-OFF + conf = get_config(chat_id) + conf['saucenao_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + +async def run_tagger_text_logic(client, chat_id, text, msg): + from ai_service import generate_hashtags_ai + try: + tags = await asyncio.get_running_loop().run_in_executor(None, lambda: generate_hashtags_ai(text)) + await msg.reply(tags) + except Exception as e: + print(f"Error Tagger: {e}") + await msg.reply(f"❌ Error al generar tags: {e}") + +async def run_research_logic(client, chat_id, text=None, image_path=None, msg=None): + from ai_service import research_character_ai + try: + # Feedback visual + status = await msg.reply("🕵️‍♀️ **Investigando a fondo...**") + + tags = await asyncio.get_running_loop().run_in_executor(None, lambda: research_character_ai(text, image_path)) + + await status.edit(tags) + except Exception as e: + print(f"Error Research: {e}") + await msg.reply(f"❌ Error investigando: {e}") + + +async def run_party_logic(client, chat_id, file_path, mode, val, msg_to_edit=None, original_msg=None, context_config=None): + from utils import split_video_generic, cut_video_range + from tools_media import get_meta, get_thumb + + # --- LOAD CONFIG FROM CONTEXT OR DB --- + # Si context_config es None, cargamos la actual (comportamiento legacy/fallback) + # Pero si viene del handler, usaremos la "congelada" al momento de iniciar la tarea. + if context_config is None: + context_config = get_config(chat_id) + + if msg_to_edit: + await msg_to_edit.edit(f"⏳ Procesando Party ({mode}={val})...") + else: + sm = await client.send_message(chat_id, f"⏳ Procesando Party ({mode}={val})...") + msg_to_edit = sm + + try: + if mode == 'parts': + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_generic(file_path, mode, float(val))) + elif mode in ['sec', 'min']: + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_generic(file_path, mode, float(val))) + elif mode == 'range': + pts = str(val).split() + if len(pts) < 2 or len(pts) % 2 != 0: + await msg_to_edit.edit("❌ Formato de rango inválido. Deben ser pares (Ej: '10 20 30 40').") + return False + + parts = [] + for i in range(0, len(pts), 2): + s, e = pts[i], pts[i+1] + p_path = await asyncio.get_running_loop().run_in_executor(None, lambda: cut_video_range(file_path, s, e)) + if p_path: parts.append(p_path) + else: + parts = [] + + if not parts: + await msg_to_edit.edit("❌ Error al procesar el video.") + return False + + # --- LOGICA ZIP MODE --- + # Usamos context_config congelada + is_zip_mode = context_config.get('party_zip', False) + + if is_zip_mode: + await msg_to_edit.edit(f"📦 Comprimiendo {len(parts)} partes en ZIP...") + # Calcular nombre base + base_zip = file_path.rsplit('.', 1)[0] + "_party" + from utils import create_split_zips + + # Crear zips (run in executor for blocking I/O) + zip_files = await asyncio.get_running_loop().run_in_executor(None, lambda: create_split_zips(parts, base_zip)) + + # Limpiar partes originales ya que están en el zip + for p in parts: + try: os.remove(p) + except: pass + + parts = zip_files # Reemplazamos la lista de partes con los ZIPs + + # --- LOGICA ENVIO (Agrupado o Individual) --- + # Usamos context_config congelada + + # FIX: Si es DOC MODE, forzamos thumb=None para que se vea como archivo genérico (icono azul) + send_as_doc_mode = context_config.get('doc_mode_tools', False) + use_group_mode = context_config.get('group_mode_tools', False) and len(parts) > 1 + + # --- LOCK SENDING PHASE PER CHAT --- + # Garantiza que no se mezclen los mensajes si hay varios videos procesándose a la vez en el mismo chat. + if chat_id not in PARTY_SEND_LOCKS: + PARTY_SEND_LOCKS[chat_id] = asyncio.Lock() + + async with PARTY_SEND_LOCKS[chat_id]: + # --- SEND ORIGINAL VIDEO FIRST (User Request) --- + if original_msg: + try: + await msg_to_edit.edit(f"📤 Enviando video original...") + await original_msg.copy(chat_id, caption="🎬 **Video Original**") + except Exception as e: + print(f"Error copying original: {e}") + + if use_group_mode: + await msg_to_edit.edit(f"📤 Enviando {len(parts)} parte(s) en álbum...") + + # Dividir en chunks de 10 (Límite Telegram) + chunks = [parts[i:i + 10] for i in range(0, len(parts), 10)] + ts = int(time.time()) + + for i, chunk in enumerate(chunks): + media_group = [] + temp_thumbs = [] + + for j, p in enumerate(chunk): + try: + thumb = None + width, height, duration = None, None, None + + if not is_zip_mode and not send_as_doc_mode: + w, h, dur = await get_meta(p) + t_path = await get_thumb(p, chat_id, f"{ts}_{i}_{j}") + thumb = t_path + temp_thumbs.append(t_path) + width, height, duration = w, h, dur + + # Caption solo en el primer elemento del grupo para no ensuciar + # Opcional: Poner caption en todos, pero "Party Video" x10 ensucia. + # Dejaremos caption vacía o mínima. + cap = "" + if i == 0 and j == 0: + cap = "🎉 **Party Video** (Álbum)" + + if is_zip_mode or send_as_doc_mode: + # Restoring thumb as downloader.py does. + media_group.append(InputMediaDocument(media=p, thumb=thumb, caption=cap)) + elif p.lower().endswith(('.mp3', '.m4a', '.flac', '.wav', '.ogg')): + media_group.append(InputMediaAudio(media=p, thumb=thumb, caption=cap, duration=duration)) + else: + media_group.append(InputMediaVideo( + media=p, + thumb=thumb, + width=width, + height=height, + duration=duration, + caption=cap + )) + except Exception as e: + print(f"Error preparando media group item {j}: {e}") + + if media_group: + try: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_VIDEO): + await client.send_media_group(chat_id, media_group) + except Exception as e: + print(f"Error enviando Media Group: {e}") + # Fallback a envios individuales si falla el grupo + for item in media_group: + try: + if isinstance(item, InputMediaDocument): + await client.send_document(chat_id, item.media, thumb=item.thumb, caption=item.caption) + elif isinstance(item, InputMediaAudio): + await client.send_audio(chat_id, item.media, thumb=item.thumb, caption=item.caption, duration=item.duration) + else: + await client.send_video(chat_id, item.media, thumb=item.thumb, caption=item.caption) + except: pass + + # Cleanup thumbs del chunk + for t in temp_thumbs: + if os.path.exists(t): os.remove(t) + + else: + # --- ENVIO INDIVIDUAL (Legacy Logic) --- + await msg_to_edit.edit(f"📤 Enviando {len(parts)} {'ZIPs' if is_zip_mode else 'partes'}...") + ts = int(time.time()) + for i, p in enumerate(parts): + try: + thumb = None + width, height, duration = None, None, None + + # Si es video normal, extraemos meta. Si es ZIP, nada. + if not is_zip_mode: + # Extraer meta para cada parte + w, h, dur = await get_meta(p) + thumb = await get_thumb(p, chat_id, f"{ts}_{i}") + width, height, duration = w, h, dur + + # if send_as_doc_mode: thumb = None # COMENTADO: Restauramos thumb + + if is_zip_mode or send_as_doc_mode: + cap_lbl = "🎉 Party ZIP" if is_zip_mode else "🎉 Party Video (Doc)" + if len(parts) > 1: cap_lbl += f" - Parte {i+1}" + + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_DOCUMENT): + await client.send_document( + chat_id, p, + thumb=thumb, + caption=cap_lbl, + force_document=True + ) + else: + if p.lower().endswith(('.mp3', '.m4a', '.flac', '.wav', '.ogg')): + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_AUDIO): + await client.send_audio( + chat_id, p, + duration=duration if duration else None, + thumb=thumb, + caption=f"🎉 Party: Parte {i+1}" if len(parts) > 1 else "🎉 Party Audio" + ) + else: + async with chat_action_loop(client, chat_id, pyrogram.enums.ChatAction.UPLOAD_VIDEO): + await client.send_video( + chat_id, p, + width=width if width else None, + height=height if height else None, + duration=duration if duration else None, + thumb=thumb, + caption=f"🎉 Party: Parte {i+1}" if len(parts) > 1 else "🎉 Party Video" + ) + if thumb and os.path.exists(thumb): os.remove(thumb) + except Exception as e: + print(f"Error enviando parte {i}: {e}") + try: await client.send_document(chat_id, p) + except: pass + + # Cleanup final (Full Job Folder) + import shutil + job_dir = os.path.dirname(file_path) + # Ensure we are deleting a 'job_' folder to avoid accidents + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + try: shutil.rmtree(job_dir, ignore_errors=True) + except: pass + else: + # Fallback cleanup + try: + if os.path.exists(file_path): os.remove(file_path) + for p in parts: + if os.path.exists(p): os.remove(p) + except: pass + + await msg_to_edit.delete() + + # --- AUTO-DISABLE PARTY MODE --- + conf = get_config(chat_id) + # Solo desactivar si NO está en modo Auto-Party (Persistent) + if conf.get('party_mode') and not conf.get('auto_party', False): + conf['party_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + # Avisar y mostrar menú principal + await client.send_message(chat_id, "✅ **Finalizado.**\nModo Party desactivado.", reply_markup=gen_kb(conf, chat_id)) + + return True + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Party: {e}") + return False + + + +# --- 3. DISEÑO DE MENÚ (DISEÑO REFINADO) --- +def gen_kb(conf, user_id=None): + c_on, c_off = "🟢", "🔴" + + # 1. Metadatos (Full width) + s_meta = c_on if conf.get('meta', True) else c_off + btn_meta = InlineKeyboardButton(f"📝 Metadatos: {s_meta}", callback_data="toggle|meta") + + + # 2. Turbo & Doc (Split) + s_turbo = c_on if conf.get('fast_enabled', True) else c_off + btn_turbo = InlineKeyboardButton(f"🚀 Turbo: {s_turbo}", callback_data="toggle|fast") + s_doc = c_on if conf.get('doc_mode', False) else c_off + btn_doc = InlineKeyboardButton(f"📄 Doc: {s_doc}", callback_data="toggle|doc") + + # 3. Agrup (Full width) + s_group = c_on if conf.get('group_mode', True) else c_off + btn_group = InlineKeyboardButton(f"📚 Agrup: {s_group}", callback_data="toggle|group") + + # 4. Auto (Full width) + q_auto_val = conf.get('q_auto') + txt_auto = "Desact." + if q_auto_val == 'max': txt_auto = "Máx" + elif q_auto_val == 'min': txt_auto = "Mín" + btn_auto = InlineKeyboardButton(f"⚙️ Auto: {txt_auto}", callback_data="menu|auto") + + # 5. Idioma (Full width) + lang = conf.get('lang', 'es') + flag = "🇪🇸" if lang == 'es' else "🇺🇸" + btn_lang = InlineKeyboardButton(f"🌐 Idioma: {flag}", callback_data="toggle|lang") + + # 6. Formato (Full width) + fmt = conf.get('fmt', 'mp4') + btn_fmt = InlineKeyboardButton(f"📦 Formato: 📹 {fmt.upper()}", callback_data="toggle|fmt") + + # 7. Modo Party (Split with Auto Party) + btn_party = InlineKeyboardButton("🎉 Modo Party", callback_data="menu|party_init") + + # Auto Party Button (Status indicator) + s_auto_p = "🟢" if conf.get('auto_party', False) else "🔴" + btn_auto_party = InlineKeyboardButton(f"🔁 Auto: {s_auto_p}", callback_data="menu|autoparty_menu") + + # ZIP Party Button + s_zip = "🟢" if conf.get('party_zip', False) else "🔴" + btn_zip = InlineKeyboardButton(f"📦 ZIP: {s_zip}", callback_data="toggle|party_zip") + + # NUEVO: Mini App Web Button + btn_webapp = InlineKeyboardButton( + text="Twisted Brody Manga Flow", + web_app=WebAppInfo(url="https://codebydrody-twistedbrodymangaflow.hf.space/") + ) + + # 8. Preview Mode (Full width) + s_prev = "🟢" if conf.get('preview_mode', True) else "🔴" + btn_prev = InlineKeyboardButton(f"👁️ Preview: {s_prev}", callback_data="toggle|preview") + + kb = [ + [btn_webapp], # 0. Mini App (Top Priority) + [btn_meta], + [btn_turbo, btn_doc], + [btn_group], + [btn_auto], + [btn_lang], + [btn_fmt], + [btn_prev], # Preview Mode + [InlineKeyboardButton("✨ IA Avanzada", callback_data="menu|ai_advanced")], + [InlineKeyboardButton("🧠 Configuración IA", callback_data="menu|ai_config")], + [InlineKeyboardButton("🛠 Herramientas", callback_data="menu|tools")] + ] + + # Admin Panel (Sigue existiendo para el owner como botón extra) + if user_id == OWNER_ID: + kb.append([InlineKeyboardButton("👮‍♂️ Panel Admin (Stats)", callback_data="menu|admin")]) + + return InlineKeyboardMarkup(kb) + +# --- 4. HANDLERS DE MENSAJES --- + +@app.on_message(group=-1) +async def log_message(c, m): + try: + uid = m.from_user.id if m.from_user else "Unknown" + text = m.text if m.text else "[Media/Emoji]" + print(f"📩 [MSG] From: {uid} | Text: {text[:50]}") + except: pass + m.continue_propagation() + +@app.on_message(filters.command("ping")) +async def ping_cmd(c, m): + import socket + import sys + msg = [f"🏓 **Pong!**", f"🐍 Py: {sys.version.split()[0]}"] + + targets = [("google.com", "Google"), ("www.youtube.com", "YouTube")] + + for host, label in targets: + try: + ip = socket.gethostbyname(host) + msg.append(f"✅ {label}: `{ip}`") + except Exception as e: + msg.append(f"❌ {label}: `{e}`") + + await m.reply("\n".join(msg)) + +@app.on_message(filters.command("start")) +async def start_handler(c, m): + uid = m.from_user.id + cid = m.chat.id + + # 0. Check if finishing an upload session + st = url_storage.get(cid) + if st: + # Clear AutoClass Mode + if st.get('autoclass_mode'): + url_storage.pop(cid, None) + await m.reply("🛑 **Modo Auto-Clasificación DESACTIVADO.**") + + elif st.get('ai_config_step') == 'wait_image': + count = st.get('count', 0) + cat = st.get('category', 'Unknown') + await m.reply(f"✅ **Carga Finalizada.**\nSe guardaron total {count} imágenes en `{cat}`.") + url_storage.pop(cid, None) + + try: + from firebase_service import register_user + await register_user(uid, m.from_user.first_name, m.from_user.username) + except: pass + + caption = ( + f"👋 **¡Hola {m.from_user.mention}!**\n\n" + f"🚀 **Twisted Brody Bot Pro** está listo.\n" + f"Configura tus preferencias abajo o envíame un link." + ) + + menu_caption = caption + + if uid == OWNER_ID: menu_caption = "⚙️ **Panel de Control (Modo Dios)**" + + # --- AI WAIFU WELCOME IMAGE --- + # REVERTIDO: El usuario quiere que /start sea SIEMPRE el icono del bot. + # La imagen de bienvenida IA solo se usará si se pide explícitamente a la IA. + + global START_ICON_FILE_ID + if 'START_ICON_FILE_ID' not in globals(): + START_ICON_FILE_ID = None + + try: + if START_ICON_FILE_ID: + # Send using cached file_id + try: + await m.reply_photo(photo=START_ICON_FILE_ID, caption=menu_caption, reply_markup=gen_kb(get_config(m.chat.id), uid)) + return + except Exception as e: + # If file_id is somehow invalid, reset it and try to upload again + print(f"Error using cached START_ICON_FILE_ID: {e}") + START_ICON_FILE_ID = None + + # FIX: Use path relative to this script, more robust than BASE_DIR + base = os.path.dirname(os.path.abspath(__file__)) + icon_path = os.path.join(base, "icons", "@twistedbrody.png") + + if os.path.exists(icon_path): + # DIAGNOSTICS: Check for Git LFS pointer + try: + f_size = os.path.getsize(icon_path) + with open(icon_path, 'rb') as f: + header = f.read(50) # Read enough to see "version https" + + # DEBUG MSG (Remove in production) + # await m.reply(f"🔍 DEBUG: Encontrado {icon_path} ({f_size} bytes). Header: {header[:10]}") + + if b"version https" in header: + await m.reply(f"⚠️ Error: La imagen es un puntero LFS ({f_size} bytes).", reply_markup=gen_kb(get_config(m.chat.id), uid)) + return + + # ATTEMPT 1: Send as Photo + try: + sent_msg = await m.reply_photo(photo=icon_path, caption=menu_caption, reply_markup=gen_kb(get_config(m.chat.id), uid)) + if sent_msg and sent_msg.photo: + START_ICON_FILE_ID = sent_msg.photo.file_id + except Exception as e_photo: + await m.reply(f"⚠️ Falla FOTO: {e_photo}. Intentando DOC...", reply_markup=gen_kb(get_config(m.chat.id), uid)) + # ATTEMPT 2: Send as Document (Force upload) + sent_msg = await m.reply_document(document=icon_path, caption=menu_caption, reply_markup=gen_kb(get_config(m.chat.id), uid)) + if sent_msg and sent_msg.document: + START_ICON_FILE_ID = sent_msg.document.file_id + + except Exception as e_inner: + await m.reply(f"⚠️ Error Interno: {e_inner}", reply_markup=gen_kb(get_config(m.chat.id), uid)) + + else: + # DEBUG: Why is it missing? + icons_dir = os.path.join(base, "icons") + if os.path.exists(icons_dir): + files = os.listdir(icons_dir) + file_list = "\n".join(files) + err_msg = f"⚠️ Icono NO encontrado en: `{icon_path}`\n📂 Archivos en 'icons':\n`{file_list}`" + else: + err_msg = f"⚠️ Carpeta 'icons' NO encontrada en: `{base}`" + + await m.reply(err_msg, reply_markup=gen_kb(get_config(m.chat.id), uid)) + except Exception as e: + await m.reply(f"❌ Error CRITICO: {e}", reply_markup=gen_kb(get_config(m.chat.id), uid)) + +@app.on_message(filters.command("autoclass")) +async def autoclass_handler(c, m): + """Activa el modo de auto-clasificación de imágenes para reacciones.""" + cid = m.chat.id + + # Check Active Persona + conf = get_config(cid) + active_p = conf.get('active_persona', 'nsfw') + + # Store Mode + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['autoclass_mode'] = True + url_storage[cid]['persona_id'] = active_p + + await m.reply( + f"🧠 **Modo Auto-Clasificación ACTIVADO** ({active_p})\n\n" + "📸 **Instrucciones:**\n" + "1. Envía todas las fotos que quieras.\n" + "2. La IA las analizará y las guardará en la categoría correcta (feliz, triste, nsfw, etc).\n" + "3. Usa `/cancel` o toca 'Detener' cuando termines.\n\n" + "👇 _¡Empieza a enviar fotos ahora!_" + ) + +@app.on_message(filters.text & filters.private, group=2) +async def parallel_seek_input_handler(c, m): + cid = m.chat.id + st = url_storage.get(cid) + + if st and st.get('set_parallel_seek_mode'): + try: + val = int(m.text.strip()) + if val < 0: raise ValueError + + conf = get_config(cid) + conf['parallel_thumb_seek'] = val + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + url_storage[cid].pop('set_parallel_seek_mode', None) + + await m.reply( + f"✅ **Segundo de Miniatura Guardado:** `{val}s`\nAhora usaré este segundo para todas las miniaturas paralelas.", + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver al Menú", callback_data="menu|parallel_thumb_init")]]) + ) + m.stop_propagation() + + except ValueError: + await m.reply("❌ **Error:** Envía solo un número válido (ej: `5`).") + m.stop_propagation() # Stop to prevent download logic execution + + +@app.on_message(filters.command(["party", "unir_party", "extractor", "gif", "sticker", "sauce", "saucenao", "tagger", "mp3"])) +async def tool_shortcuts(c, m): + """Atajos rápidos para activar herramientas.""" + cid = m.chat.id + cmd = m.command[0].lower() + + msg_text = "" + reply_markup = None # Add support for buttons + + mode_key = None + + # Map command to mode key + if cmd == "party": mode_key = 'party_mode' + elif cmd == "unir_party": mode_key = 'join_party_mode' + elif cmd == "extractor": mode_key = 'extract_mode' + elif cmd == "gif": mode_key = 'gif_mode' + elif cmd == "sticker": mode_key = 'sticker_mode' + elif cmd in ["sauce", "saucenao"]: mode_key = 'saucenao_mode' + elif cmd == "tagger": mode_key = 'tagger_mode' + elif cmd == "mp3": mode_key = 'mp3_mode' + + # Execute Exclusivity + if mode_key: + val, disabled = await set_exclusive_mode(cid, mode_key) + if disabled: + await m.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Set Specific Messages/Actions + if cmd == "party": + msg_text = "🎉 **Modo Party Activo**\n\n1️⃣ **Configura** abajo 👇\n2️⃣ O **envía video** directo." + from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + reply_markup = InlineKeyboardMarkup([ + [InlineKeyboardButton("🧩 Partes", callback_data="party_sel|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="party_sel|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="party_sel|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + elif cmd == "unir_party": + url_storage.pop(cid, None) # Limpiar clips previos + msg_text = "🔗 **Modo Unir Party Activo**\n\n🎬 Envíame los clips que quieras fusionar uno por uno." + elif cmd == "extractor": + msg_text = "🖼 **Modo Extractor Activo**\n\n🎬 Envíame un video para empezar a sacar fotogramas." + elif cmd == "gif": + msg_text = "🎬 **Creador de GIF Activo**\n\n🎬 Envíame el video que quieras convertir a GIF." + elif cmd == "sticker": + msg_text = "🎭 **Creador de Stickers Activo**\n\n🖼 Envíame una imagen para convertirla en Sticker." + elif cmd in ["sauce", "saucenao"]: + msg_text = "🔍 **Buscador SauceNAO Activo**\n\n🖼 Envíame una imagen (Anime/Art) para buscar su fuente." + elif cmd == "tagger": + msg_text = "🏷️ **Etiquetadora Activa**\n\n📝 Escribe cualquier texto y lo convertiré en hashtags corregidos." + elif cmd == "mp3": + msg_text = "🎵 **Extractor MP3 Activo**\n\n🎬 Envíame un video y extraeré el audio en MP3." + + if msg_text: + await m.reply(msg_text, reply_markup=reply_markup) + +@app.on_message(filters.command("menu") | filters.command("settings") | filters.regex("⚙️ Configuración") | filters.regex("Menu")) +async def cmd_menu(c, m): + uid = m.from_user.id + + # Texto Explicativo Profesional y Extenso + txt = ( + "👑 **Twisted Brody Bot Pro - Guía de Usuario**\n" + "━━━━━━━━━━━━━━━━━━━━━━\n\n" + "¡Bienvenido! Aquí tienes todo lo que necesitas saber para dominar el bot.\n\n" + "🔹 **HERRAMIENTAS DE VIDEO**\n" + "• 🎉 **Party**: Corta videos, extrae clips o divide en partes iguales.\n" + "• 🧩 **Unir Party**: Fusiona múltiples videos en uno solo.\n" + "• 🖼 **Extractor**: Saca fotos de un video (frames exactos o intervalos).\n" + "• 🎬 **GIF**: Crea GIFs animados de alta calidad desde videos.\n" + "• 🎵 **MP3**: Extrae el audio de cualquier video a formato MP3.\n\n" + "🔹 **OTRAS HERRAMIENTAS**\n" + "• 🎭 **Sticker**: Convierte imágenes en stickers para Telegram.\n" + "• 🔍 **SauceNAO**: Encuentra el artista o fuente original de una imagen.\n" + "• 🏷️ **Tagger**: Convierte texto normal en hashtags formateados.\n\n" + "🔹 **ATAJOS RÁPIDOS (COMANDOS)**\n" + "• `/party` - Activar Cortar Video.\n" + "• `/unir_party` - Activar Unir Videos.\n" + "• `/extractor` - Activar Extractor de Fotos.\n" + "• `/gif` - Activar Creador de GIFs.\n" + "• `/mp3` - Activar Extractor de Audio.\n" + "• `/sticker` - Activar Creador de Stickers.\n" + "• `/sauce` - Activar Buscador de Fuentes.\n" + "• `/tagger` - Activar Generador de Hashtags.\n\n" + "🔹 **SISTEMA**\n" + "• `/start` - Reinicio y Panel Principal.\n" + "• `/menu` - Esta guía de ayuda.\n" + "• `/cancel` - Detener todos los procesos.\n" + "• `/ping` - Ver estado y latencia del bot.\n" + "• `/id` - Ver tu ID y el del chat.\n\n" + "💡 **TIP**: ¡Solo envíame un link de **YouTube, X, Pornhub, Eporner o Mediafire** para descargar!" + ) + + await m.reply(txt, reply_markup=gen_kb(get_config(m.chat.id), uid)) + +# --- HELPER: RESET TOTOAL --- +async def full_reset(c, cid, m=None): + """Detiene todo y resetea modos.""" + # 1. Cancelar tareas y procesos + n = await cancel_all(cid) + + # 2. Resetear Configuración (Modos) + conf = get_config(cid) + keys_to_reset = [ + 'party_mode', 'join_party_mode', 'extract_mode', 'gif_mode', + 'sticker_mode', 'saucenao_mode', 'mp3_mode', 'cut_init_mode', + 'cut_auto_mode', 'auto_party', 'resize_mode', 'resize_auto_mode', + 'thumb_mode', 'convert_qh_mode', 'convert_h264_mode', + 'smart_cut_mode', 'collage_mode', 'sub_mode', 'sub_auto_mode', + 'viral_mode', 'research_mode', 'tagger_mode', 'waifux2_mode', + 'parallel_thumb_mode' + ] + for k in keys_to_reset: + conf[k] = False + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # 3. Limpiar Storage + url_storage.pop(cid, None) + + msg_txt = f"🛑 **CANCELADO TOTAL**\n\n✅ Procesos detenidos: {n}\n✅ Modos desactivados\n✅ Memoria limpia" + + if m: + await m.reply(msg_txt, reply_markup=gen_kb(conf, cid)) + else: + await c.send_message(cid, msg_txt, reply_markup=gen_kb(conf, cid)) + +@app.on_message(filters.command("cancel")) +async def cancel_cmd(c, m): + await full_reset(c, m.chat.id, m) + +@app.on_callback_query() +async def cb(c, q): + cid = q.message.chat.id + uid = q.from_user.id + data = q.data + conf = get_config(cid) + msg = q.message + + # 0. Answer query IMMEDIATELY to stop the loading icon + try: await q.answer() + except: pass + + # 1. Anti-Spam (Mejorado para evitar bugs de edición rápida) + now = time.time() + if not hasattr(app, 'click_locks'): app.click_locks = {} + + # Bypass lock for internal calls (mock objects don't have certain real attributes or we can flag them) + is_internal = hasattr(q, 'internal') + if not is_internal and now - app.click_locks.get(uid, 0) < 0.5: + return + + if not is_internal: + app.click_locks[uid] = now + + try: + if data == "cancel": + await full_reset(c, cid, None) + try: await msg.delete() + except: pass + return + + if data == "delete_msg": + await msg.delete() + return + + # --- WAIFU2X HANDLER --- + if data.startswith("waifu2x|"): + file_path = data.split("|")[1] + try: + raw_val = data.split('|')[1] + file_path = raw_val + + # Resolve Short ID + if raw_val.startswith("w2x_"): + if raw_val in url_storage: + val = url_storage[raw_val] + if isinstance(val, dict): file_path = val.get('path') + else: file_path = val + else: + await q.answer("❌ Imagen expirada o no encontrada.", show_alert=True) + return + + if not os.path.exists(file_path): + await q.answer("❌ El archivo ya no existe (expirado).", show_alert=True) + return + + await msg.edit_text("✨ **Mejorando calidad (Waifu2x)...**") + + # Run in Executor to avoid blocking + from utils import waifu2x_upscale + upscaled_path = await asyncio.get_running_loop().run_in_executor( + None, + lambda: waifu2x_upscale(file_path, scale=2, noise=2) + ) + + if upscaled_path: + # Check Tool Config + if conf.get('doc_mode_tools'): + await c.send_document( + cid, + upscaled_path, + caption="✨ **Imagen Mejorada (Waifu2x)**\n2x Upscale + Denoise Level 2" + ) + else: + # Default behavior (Photo as Doc usually, but if user wants doc_mode off, maybe stick to current) + # Waifu2x usually best as Doc/Png. But if user untoggles Doc? + # Original code sent as document regardless. + # Let's keep send_document as default but allow send_photo if they REALLY want compressed? + # No, Waifu2x users probably want quality. + # But let's respect the "Doc" toggle if they want it as... photo? + # If doc_mode_tools is OFF -> send_photo (compressed). + await c.send_photo( + cid, + upscaled_path, + caption="✨ **Imagen Mejorada (Waifu2x)**\n2x Upscale + Denoise Level 2" + ) + await msg.delete() + + try: os.remove(upscaled_path) + except: pass + + else: + await msg.edit("❌ Error: Waifu2x falló (¿Faltan binarios o error de memoria?).") + + except Exception as e: + print(f"Waifu2x Callback Error: {e}") + await msg.edit(f"❌ Error crítico: {e}") + return + + + + + # --- RENVIADO SUBMENU --- + if data == "menu|renviado": + s_dir = "🟢" if conf.get('renviado_directo', False) else "🔴" + s_grp = "🟢" if conf.get('renviado_agrupado', False) else "🔴" + + kb_ren = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Directo: {s_dir}", callback_data="toggle|renviado_directo"), + InlineKeyboardButton(f"Agrupados: {s_grp}", callback_data="toggle|renviado_agrupado")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + await msg.edit_text( + "🔄 **Herramienta: REENVIADO**\n\n" + "🔸 **Directo**: Reenvía videos inmediatamente (desagrupa álbumes).\n" + "🔸 **Agrupados**: Espera 5s y agrupa videos sueltos en un álbum.", + reply_markup=kb_ren + ) + return + + if data == "toggle|preview": + conf['preview_mode'] = not conf.get('preview_mode', True) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh Menu + await msg.edit_reply_markup(reply_markup=gen_kb(conf, uid)) + return + + if data == "toggle|renviado_directo": + # Exclusive Mode (Toggle) + val, disabled = await set_exclusive_mode(cid, 'renviado_directo', is_toggle=True) + + if disabled: + await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) + # Explicitly disable grouped (already done by set_exclusive_mode based on new keys) + # But just in case logic: + if val: + conf['renviado_agrupado'] = False + # await msg.reply("🛑 **Otros modos desactivados.** (Prioridad Reenviado)") # replaced by generic msg + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|renviado', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|renviado_agrupado": + # Exclusive Mode (Toggle) + val, disabled = await set_exclusive_mode(cid, 'renviado_agrupado', is_toggle=True) + + if disabled: + await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) + if val: + conf['renviado_directo'] = False + # await msg.reply("🛑 **Otros modos desactivados.** (Prioridad Reenviado)") + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|renviado', 'answer': q.answer, 'internal': True})()) + return + + if data == "edit|parallel_thumb_seek": + # Set State + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['set_parallel_seek_mode'] = True + + await msg.reply("✏️ **Configurar Segundo de Miniatura**\n\nEnvía el número del segundo que quieres usar para todas las miniaturas (ej: `5`, `10`).") + return + + if data == "toggle|parallel_thumb": + # Exclusive Mode (Toggle) + val, disabled = await set_exclusive_mode(cid, 'parallel_thumb_mode', is_toggle=True) + + if disabled: + await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Submenu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|parallel_thumb_init', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|fusion": + # Exclusive Mode (Toggle) + val, disabled = await set_exclusive_mode(cid, 'fusion_mode', is_toggle=True) + + if disabled: + await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) # Refresh config after set_exclusive_mode + + # Update Button + is_on = conf.get('fusion_mode', False) + status_icon = "🟢" if is_on else "🔴" + + is_auto_on = conf.get('fusion_auto_mode', False) + auto_icon = "🟢" if is_auto_on else "🔴" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Modo: {status_icon}", callback_data="toggle|fusion")], + [InlineKeyboardButton(f"🤖 Modo Automático {auto_icon}", callback_data="fus_auto|menu")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + try: await msg.edit_reply_markup(reply_markup=kb) + except: pass + return + + + # --- AI DOWNLOAD CALLBACK --- + if data.startswith("ai_dl|"): + link_id = data.split("|")[1] + # Recuperar info del link_id + found_key = None + found_url = None + + # Buscar en url_storage alguna key que termine en this link_id (o sea exactamente ese ID) + # Pero url_storage keys son "chatid_linkid" o just "chatid" sometimes. + # Nuestro link_id generado abajo es único. + # Vamos a buscar en todas las llaves del chat + + # OPTIMIZACION: Construimos key esperada + key_attempt = f"{cid}_{link_id}" + if key_attempt in url_storage: + found_key = key_attempt + found_url = url_storage[key_attempt].get('url') + + if not found_url: + await q.answer("❌ El enlace ha expirado.", show_alert=True) + return + + await q.answer("⬇️ Iniciando análisis...") + + # SIMULAR MENSAJE PARA REUTILIZAR 'analyze' + # Creamos un objeto dummy que tenga .text, .chat.id, .from_user ... + # O mejor, llamamos analyze con el mensaje original SI lo editamos, pero analyze usa m.text. + # Vamos a modificar el m.text del mensaje actual a la URL para que analyze lo tome. + + # Hack: Modificar el mensaje objeto en memoria (no en Telegram) y pasarlo. + msg.text = found_url + + # Llamamos analyze. + # Analyze hace: matches regex, checks can_download... + # OJO: analyze usa `m.reply(...)`. Si pasamos `msg` (que es el mensaje del bot con el botón), + # `m.reply` responderá a ese mensaje del bot. Correcto. + + await analyze(c, msg) + return + + + + # --- AI SAUCENAO CALLBACK --- + if data.startswith("ai_sauce|"): + sauce_key = data.split("|")[1] + stored_path = url_storage.get(sauce_key) + if not stored_path or not os.path.exists(stored_path): + await q.answer("❌ La imagen ya expiró o no existe.", show_alert=True) + return + + await q.answer("🔍 Buscando en SauceNAO...", show_alert=False) + + # Ejecutar lógica SauceNAO existente + await run_saucenao_logic(c, cid, stored_path, msg_to_edit=msg) + return + + # --- AI EXTEND CALLBACK --- + if data.startswith("ai_extend|"): + ext_id = data.split("|")[1] + data_stored = url_storage.get(ext_id) + + if not data_stored or 'full_text' not in data_stored: + await q.answer("❌ El mensaje ha expirado.", show_alert=True) + return + + full_txt = data_stored['full_text'] + sauce_id_stored = data_stored.get('sauce_id') + + # Restore ONLY SauceNAO button as requested + btns = [] + if sauce_id_stored: + btns.append([InlineKeyboardButton("🔍 Buscar con SauceNAO", callback_data=f"ai_sauce|{sauce_id_stored}")]) + + # We remove "Extender" and "Listo". Just the search button remains. + kb = InlineKeyboardMarkup(btns) if btns else None + + await msg.edit_text(full_txt, reply_markup=kb) + await q.answer("📜 Mensaje extendido.") + return + + # --- SUBMENÚ HERRAMIENTAS --- + if data == "menu|tools": + # Configuración visual basada en el mockup del usuario + s_auto_p = "🟢" if conf.get('auto_party', False) else "🔴" + s_zip_p = "🟢" if conf.get('party_zip', False) else "🔴" + + s_auto_j = "🟢" if conf.get('auto_join_party', False) else "🔴" + s_zip_j = "🟢" if conf.get('join_party_zip', False) else "🔴" + s_auto_e = "🟢" if conf.get('auto_extract', False) else "🔴" + s_zip_e = "🟢" if conf.get('extract_party_zip', True) else "🔴" + + # Renviado Status + s_ren = "🔴" + if conf.get('renviado_directo'): s_ren = "🟢 (Dir)" + elif conf.get('renviado_agrupado'): s_ren = "🟢 (Agr)" + s_tagger = "🟢" if conf.get('tagger_mode', False) else "🔴" + + kb_tools = [ + [ + InlineKeyboardButton("🎉 Modo Party", callback_data="menu|party_init"), + InlineKeyboardButton(f"🔁 Auto: {s_auto_p}", callback_data="menu|autoparty_menu"), + InlineKeyboardButton(f"📦 ZIP: {s_zip_p}", callback_data="toggle|party_zip") + ], + [ + InlineKeyboardButton("🧩 Modo Unir Party", callback_data="menu|join_init"), + InlineKeyboardButton(f"🔁 Auto: {s_auto_j}", callback_data="menu|auto_j_set"), + InlineKeyboardButton(f"📦 ZIP: {s_zip_j}", callback_data="toggle|join_party_zip") + ], + [ + InlineKeyboardButton("🖼 Extractor", callback_data="menu|extract_init"), + InlineKeyboardButton(f"🔁 Auto: {s_auto_e}", callback_data="menu|auto_e_set"), + InlineKeyboardButton(f"📦 ZIP: {s_zip_e}", callback_data="toggle|extract_party_zip") + ], + [InlineKeyboardButton(f"🔄 Reenviado: {s_ren}", callback_data="menu|renviado")], + [ + InlineKeyboardButton("🎬 GIF", callback_data="menu|gif_init"), + InlineKeyboardButton("🎭 Sticker", callback_data="menu|sticker_init") + ], + [ + InlineKeyboardButton("🎵 Extractor MP3", callback_data="menu|mp3_init") + ], + [ + InlineKeyboardButton("🔍 SauceNAO", callback_data="menu|saucenao_init") + ], + [ + InlineKeyboardButton(f"🏷️ Smart Tagger: {s_tagger}", callback_data="toggle|tagger"), + InlineKeyboardButton(f"🕵️‍♀️ Inv. Profunda: {'🟢' if conf.get('research_mode') else '🔴'}", callback_data="toggle|research") + ], + [ + InlineKeyboardButton("✂️ Corte Inicial", callback_data="menu|cut_init_menu"), + InlineKeyboardButton(f"⚙️ Auto Corte: {'🟢' if conf.get('cut_auto_mode') else '🔴'}", callback_data="menu|cut_auto_menu") + ], + [ + InlineKeyboardButton(f"📥 Convertidor QH: {'🟢' if conf.get('convert_qh_mode') else '🔴'}", callback_data="toggle|convert_qh") + ], + [ + InlineKeyboardButton(f"🎞 Convertidor H.264: {'🟢' if conf.get('convert_h264_mode') else '🔴'}", callback_data="toggle|convert_h264") + ], + + ] + + # --- Dimensionador (Bottom) --- + # --- Dimensionador (Bottom) --- + kb_tools.append([ + InlineKeyboardButton("📐 Dimensionador", callback_data="resize_init"), + InlineKeyboardButton(f"⚙️ Auto: {'🟢' if conf.get('resize_auto_mode') else '🔴'}", callback_data="menu|resize_auto_menu") + ]) + kb_tools.append([ + InlineKeyboardButton("🧩 Menú Collage", callback_data="menu|collage_menu") + ]) + # Smart Cut Row with Auto Toggle + s_smart = "🟢" if conf.get('smart_cut_auto_mode', False) else "🔴" + toggle_cb = "toggle_smart_cut_auto|off|tools" if conf.get('smart_cut_auto_mode', False) else "toggle_smart_cut_auto|on|tools" + + kb_tools.append([ + InlineKeyboardButton("✂️ Smart Cut (Beta)", callback_data="menu|smart_cut_init"), + InlineKeyboardButton(f"🔁 Auto: {s_smart}", callback_data=toggle_cb) + ]) + kb_tools.append([ + InlineKeyboardButton(f"📝 Subtitulado {'(⏳)' if conf.get('sub_mode') and not conf.get('sub_auto_mode') else ''}", callback_data="menu|sub_init"), + InlineKeyboardButton(f"⚙️ Auto: {'🟢' if conf.get('sub_auto_mode') else '🔴'}", callback_data="toggle|sub_auto") + ]) + # VIDEO MIXER BUTTON + mixer_on = "🟢" if conf.get('video_mixer_mode') else "🔴" + kb_tools.append([ + InlineKeyboardButton(f"🎞 Collage Creator: {mixer_on}", callback_data="menu|video_mixer_menu") + ]) + kb_tools.append([ + InlineKeyboardButton("🎵 Short Virales Music", callback_data="menu|viral_init") + ]) + kb_tools.append([ + InlineKeyboardButton(f"🈚 Traductor Manga: {'🟢' if conf.get('translate_manga_mode') else '🔴'}", callback_data="toggle|translate_manga") + ]) + + + kb_tools.append([ + InlineKeyboardButton(f"✨ Waifu2x: {'🟢' if conf.get('waifux2_mode') else '🔴'}", callback_data="toggle|waifux2") + ]) + + kb_tools.append([ + InlineKeyboardButton(f"🎵 Tiktok Fast: {'🟢' if conf.get('tiktok_fast_mode') else '🔴'}", callback_data="menu|tiktok_fast_init") + ]) + + # --- PARALLEL THUMB BUTTON (Customizable) --- + kb_tools.append([ + InlineKeyboardButton(f"📸 Miniatura Personalizada: {'🟢' if conf.get('parallel_thumb_mode') else '🔴'}", callback_data="menu|parallel_thumb_init") + ]) + + # --- FUSION BUTTON --- + f_active = conf.get('fusion_mode') or conf.get('fusion_auto_mode') + kb_tools.append([ + InlineKeyboardButton(f"🎵 Fusión: {'🟢' if f_active else '🔴'}", callback_data="menu|fusion_init") + ]) + + # --- ENLACE DIRECTO BUTTON --- + kb_tools.append([ + InlineKeyboardButton(f"🌐 Enlace Bot: {'🟢' if conf.get('bot_link_mode') else '🔴'}", callback_data="toggle|bot_link_mode") + ]) + + # --- DOC / AGRUP (TOOLS MODE SPECIFIC) --- + s_doc_t = "🟢" if conf.get('doc_mode_tools') else "🔴" + s_grp_t = "🟢" if conf.get('group_mode_tools') else "🔴" + + kb_tools.append([ + InlineKeyboardButton(f"📄 Doc: {s_doc_t}", callback_data="toggle|doc_tools"), + InlineKeyboardButton(f"📚 Agrup: {s_grp_t}", callback_data="toggle|group_tools") + ]) + + kb_tools.append([InlineKeyboardButton("🔙 Volver", callback_data="menu|main")]) + + try: + await msg.edit_text( + "🛠 **Herramientas Avanzadas**\n\n" + "Selecciona una herramienta para configurar (o activa los modos globales):", + reply_markup=InlineKeyboardMarkup(kb_tools) + ) + except Exception as e: + # Ignore "Message Not Modified" errors during menu refresh + if "MESSAGE_NOT_MODIFIED" in str(e): + pass + else: + print(f"⚠️ Error Menu Tools: {e}") + return + + # --- GLOBAL MODES HANDLERS --- + if data == "toggle|bot_link_mode": + val, disabled = await set_exclusive_mode(cid, 'bot_link_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|doc_mode": + conf['doc_mode'] = not conf.get('doc_mode', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "menu|parallel_thumb_init": + s_par = "🟢" if conf.get('parallel_thumb_mode') else "🔴" + s_seek = conf.get('parallel_thumb_seek', 2) + + txt = ( + "📸 **Miniatura Personalizada**\n\n" + "Activa este modo para forzar que la miniatura de tus descargas sea siempre un segundo específico.\n\n" + f"⏱ **Segundo Configurado:** `{s_seek}s`\n" + "1. Configura el segundo deseado.\n" + "2. Activa el modo.\n" + "3. Descarga tus videos." + ) + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Modo: {s_par}", callback_data="toggle|parallel_thumb")], + [InlineKeyboardButton(f"✏️ Configurar Segundo ({s_seek}s)", callback_data="edit|parallel_thumb_seek")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + try: + await msg.edit_text(txt, reply_markup=kb) + except Exception as e: + if "MESSAGE_NOT_MODIFIED" not in str(e): + print(f"Error Thumb Menu: {e}") + return + + if data == "menu|video_mixer_menu": + is_on = conf.get('video_mixer_mode', False) + audio_mode = conf.get('vm_audio_mode', 'mix') + is_persist = conf.get('vm_persist', False) + + # Decouple state + v1_on = audio_mode in ['mix', 'v1'] + v2_on = audio_mode in ['mix', 'v2'] + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ENCENDIDO' if is_on else '🔴 APAGADO'}", callback_data="toggle|video_mixer_mode")], + [ + InlineKeyboardButton(f"1️⃣ Video 1: {'🔊' if v1_on else '🔇'}", callback_data="toggle|vm_v1"), + InlineKeyboardButton(f"2️⃣ Video 2: {'🔊' if v2_on else '🔇'}", callback_data="toggle|vm_v2") + ], + [InlineKeyboardButton(f"📄 Modo Papel: {'🟢 ON' if conf.get('vm_paper_mode') else '🔴 OFF'}", callback_data="toggle|vm_paper")], + [InlineKeyboardButton(f"🔁 Persistente: {'🟢 SI' if is_persist else '🔴 NO'}", callback_data="toggle|vm_persist")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text( + "🎞 **Collage Video Creator**\n\n" + "Une dos videos lado a lado.\n" + " **Modo Papel**: Añade borde blanco y texto estilo meme arriba.", + reply_markup=kb + ) + return + + if data == "toggle|video_mixer_mode": + val, disabled = await set_exclusive_mode(cid, 'video_mixer_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Clear Buffer on toggle + VIDEO_MIXER_BUFFERS.pop(cid, None) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|video_mixer_menu', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|vm_v1": + curr = conf.get('vm_audio_mode', 'mix') + is_v1 = curr in ['mix', 'v1'] + is_v2 = curr in ['mix', 'v2'] + + # Toggle V1 + is_v1 = not is_v1 + + # Calculate new mode + if is_v1 and is_v2: new_mode = 'mix' + elif is_v1 and not is_v2: new_mode = 'v1' + elif not is_v1 and is_v2: new_mode = 'v2' + else: new_mode = 'none' + + conf['vm_audio_mode'] = new_mode + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|video_mixer_menu', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|vm_v2": + curr = conf.get('vm_audio_mode', 'mix') + is_v1 = curr in ['mix', 'v1'] + is_v2 = curr in ['mix', 'v2'] + + # Toggle V2 + is_v2 = not is_v2 + + # Calculate new mode + if is_v1 and is_v2: new_mode = 'mix' + elif is_v1 and not is_v2: new_mode = 'v1' + elif not is_v1 and is_v2: new_mode = 'v2' + else: new_mode = 'none' + + conf['vm_audio_mode'] = new_mode + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|video_mixer_menu', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|vm_persist": + conf['vm_persist'] = not conf.get('vm_persist', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|video_mixer_menu', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|vm_paper": + conf['vm_paper_mode'] = not conf.get('vm_paper_mode', False) + # If Paper Mode ON, we might want to disable Persist or specific things? Not necessarily. + # But we might want to warn about "Text Input" requirement. + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|video_mixer_menu', 'answer': q.answer, 'internal': True})()) + return + + # --- MISSING TOGGLE FIXES --- + if data == "toggle|convert_h264": + val, disabled = await set_exclusive_mode(cid, 'convert_h264_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|convert_qh": + val, disabled = await set_exclusive_mode(cid, 'convert_qh_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + + if data == "toggle|group_mode": + conf['group_mode'] = not conf.get('group_mode', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- AUTO JOIN SET HANDLER (FIX) --- + if data == "menu|auto_j_set": + val, disabled = await set_exclusive_mode(cid, 'auto_join_party', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh Tools Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- AUTO EXTRACT SET HANDLER (FIX) --- + if data == "menu|auto_e_set": + val, disabled = await set_exclusive_mode(cid, 'auto_extract', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh Tools Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- DIMENSIONADOR LOGIC --- + if data == "resize_init": + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("📱 Verticales (9:16)", callback_data="resize_cat|vert")], + [InlineKeyboardButton("🟦 Cuadrados (1:1)", callback_data="resize_cat|sq")], + [InlineKeyboardButton("🎬 Horizontales (16:9)", callback_data="resize_cat|hor")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("📐 **Dimensionador de Video**\n\nElige el tipo de formato que buscas:", reply_markup=kb) + return + + if data.startswith("resize_cat|"): + cat = data.split("|")[1] + rows = [] + if cat == "vert": + rows = [ + [InlineKeyboardButton("📱 9:16 (TikTok/Reels)", callback_data="resize_set|9:16")], + [InlineKeyboardButton("📸 3:4 (Insta Feed)", callback_data="resize_set|3:4")], + [InlineKeyboardButton("📱 9:19.5 (Full Mobile)", callback_data="resize_set|9:19.5")] + ] + elif cat == "sq": + rows = [ + [InlineKeyboardButton("🟦 1:1 (Cuadrado)", callback_data="resize_set|1:1")], + [InlineKeyboardButton("📺 4:3 (iPad/Retro)", callback_data="resize_set|4:3")] + ] + elif cat == "hor": + rows = [ + [InlineKeyboardButton("💻 16:9 (YouTube)", callback_data="resize_set|16:9")], + [InlineKeyboardButton("🎬 2.35:1 (Cinema)", callback_data="resize_set|2.35:1")], + [InlineKeyboardButton("🎞 1.85:1 (Wide)", callback_data="resize_set|1.85:1")] + ] + rows.append([InlineKeyboardButton("🔙 Volver", callback_data="resize_init")]) + + await msg.edit_text(f"📐 **Selecciona el Ratio ({cat.upper()})**:", reply_markup=InlineKeyboardMarkup(rows)) + return + + # --- WAIFUX2 TOGGLE HANDLER --- + if data == "toggle|waifux2": + val, disabled = await set_exclusive_mode(cid, 'waifux2_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data.startswith("resize_set|"): + ratio = data.split("|")[1] + + val, disabled = await set_exclusive_mode(cid, 'resize_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) # Refresh + conf['resize_target'] = ratio + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await msg.edit_text(f"📐 **Modo Dimensionador Activo**\n\nTarget: `{ratio}`\n\n🎬 **Envíame el video ahora** y lo adaptaré a ese formato (Zoom + Crop).") + return + + if data == "menu|fusion_init": + from tools_fusion import init_fusion_menu + await init_fusion_menu(c, cid, conf, edit_msg=q.message) + await q.answer() + return + + + if data == "toggle|fusion": + val, disabled = await set_exclusive_mode(cid, 'fusion_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Config & UI (Manual Edit to keep it smooth) + conf = get_config(cid) + is_on = conf.get('fusion_mode', False) + status_icon = "🟢" if is_on else "🔴" + + is_auto_on = conf.get('fusion_auto_mode', False) + auto_icon = "🟢" if is_auto_on else "🔴" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Modo: {status_icon}", callback_data="toggle|fusion")], + [InlineKeyboardButton(f"🤖 Modo Automático {auto_icon}", callback_data="fus_auto|menu")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + text = ( + "🎵 **Herramienta de Fusión**\n\n" + "Mezcla audio y video fácilmente.\n" + "1. Activa el modo.\n" + "2. Envía un **Video Base**.\n" + "3. Envía un **Audio** (o video para extraer audio).\n" + "4. Configura la mezcla final." + ) + + try: await msg.edit_text(text, reply_markup=kb) + except: pass + return + + if data.startswith("fus|") or data.startswith("fus_auto|"): + from tools_fusion import fusion_callback + await fusion_callback(c, q) + return + + # --- TIKTOK FAST CALLBACK --- + if data.startswith("menu|tiktok") or data.startswith("toggle|tiktok") or data.startswith("tiktok|"): + from tiktok_tool import tiktok_callback + await tiktok_callback(c, q, conf) + return + + # --- COLLAGE SUBMENU --- + if data == "menu|collage_menu": + # Grid Toggles + c_3x3 = conf.get('collage_auto_3x3', False) + c_2x2 = conf.get('collage_auto_2x2', False) + c_2x1 = conf.get('collage_auto_2x1', False) + + # Type Status + c_type = conf.get('collage_type', 'png') + s_png = "🟢" if c_type == 'png' else "⚪" + s_thumb = "🟢" if c_type == 'thumb' else "⚪" + + kb = InlineKeyboardMarkup([ + # Row 3x3 + [ + InlineKeyboardButton("🧩 Collage 3x3", callback_data="pre_collage_select|3x3"), + InlineKeyboardButton(f"Auto: {'🟢' if c_3x3 else '🔴'}", callback_data="toggle|collage_auto_3x3") + ], + # Row 2x2 + [ + InlineKeyboardButton("🧩 Collage 2x2", callback_data="pre_collage_select|2x2"), + InlineKeyboardButton(f"Auto: {'🟢' if c_2x2 else '🔴'}", callback_data="toggle|collage_auto_2x2") + ], + # Row 2x1 + [ + InlineKeyboardButton("🧩 Collage 2x1 (2 Fotos)", callback_data="pre_collage_select|2x1"), + InlineKeyboardButton(f"Auto: {'🟢' if c_2x1 else '🔴'}", callback_data="toggle|collage_auto_2x1") + ], + # Type Selector + [ + InlineKeyboardButton(f"🖼 PNG {s_png}", callback_data="set_collage_type_menu|png"), + InlineKeyboardButton(f"🎞 Miniatura {s_thumb}", callback_data="set_collage_type_menu|thumb") + ], + # Personalizado Row + [ + InlineKeyboardButton("✏️ Personalizado", callback_data="toggle|custom_thumb_mode"), + InlineKeyboardButton(f"Auto: {'🟢' if conf.get('custom_thumb_auto') else '🔴'}", callback_data="toggle|custom_thumb_auto") + ], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("🧩 **Menú Collage**\n\n1. Elige una distribución (3x3, 2x2...).\n2. Configura los botones de abajo para decirle al **Auto** qué formato enviar.", reply_markup=kb) + return + + # --- TYPE SETTER (Main Menu) --- + if data.startswith("set_collage_type_menu|"): + new_type = data.split("|")[1] + conf['collage_type'] = new_type + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|collage_menu', 'answer': q.answer, 'internal': True})()) + return + + # --- PRE COLLAGE SELECTION (Grid -> Type) --- + if data.startswith("pre_collage_select|"): + grid = data.split("|")[1] + + kb = InlineKeyboardMarkup([ + [ + InlineKeyboardButton("🖼 Imagen (PNG)", callback_data=f"set_collage_final|{grid}|png"), + InlineKeyboardButton("🎞 Video (Miniatura)", callback_data=f"set_collage_final|{grid}|thumb") + ], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|collage_menu")] + ]) + await msg.edit_text(f"🧩 **Collage {grid}**\n\n¿Cómo quieres el resultado?", reply_markup=kb) + return + + # --- COLLAGE FINAL SET --- + if data.startswith("set_collage_final|"): + parts = data.split("|") + grid = parts[1] + ctype = parts[2] + + val, disabled = await set_exclusive_mode(cid, 'collage_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) + conf['collage_grid'] = grid + conf['collage_type'] = ctype + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Check if Auto is ON for this grid + is_auto = conf.get(f'collage_auto_{grid}', False) + auto_txt = " (AUTO ON)" if is_auto else " (1 Uso)" + type_txt = "PNG" if ctype == 'png' else "Miniatura" + + await msg.edit_text(f"🧩 **Modo Collage Activo**\nGrid: `{grid}` | Tipo: `{type_txt}`{auto_txt}\n\n🎬 **Envíame un video** ahora.") + return + + if data.startswith("toggle_smart_cut_auto|"): + # Format: toggle_smart_cut_auto|{state}|{source} + parts = data.split("|") + # We ignore state hardcoding, we just toggle safely using exclusive logic + + val, disabled = await set_exclusive_mode(cid, 'smart_cut_auto_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Tools + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|custom_thumb_mode": + # is_toggle=True logic in set_exclusive_mode handles toggle + new_val, disabled = await set_exclusive_mode(cid, 'custom_thumb_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + conf = get_config(cid) + if new_val: + url_storage[cid] = {'custom_thumb_step': 'wait_video'} + await msg.edit_text("✏️ **Modo Personalizado Activo**\n\n1️⃣ Envíame el **VIDEO** primero.\n2️⃣ Luego te pediré la miniatura.") + else: + url_storage.pop(cid, None) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|collage_menu', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|custom_thumb_auto": + conf['custom_thumb_auto'] = not conf.get('custom_thumb_auto', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|collage_menu', 'answer': q.answer, 'internal': True})()) + return + + # --- CUSTOM THUMB CATALOG NAVIGATION --- + if data == "custom|show_catalog": + st = url_storage.get(cid, {}) + thumbs = st.get('custom_thumbs_list', []) + + if not thumbs: + await q.answer("⚠️ Catálogo vacío o expirado.", show_alert=True) + return + + # Show first thumb + initial_thumb = thumbs[0] + kb = InlineKeyboardMarkup([ + [ + InlineKeyboardButton("⬅️", callback_data="custom|cat|nav|0"), + InlineKeyboardButton("✅ Usar (0s)", callback_data="custom|cat|sel|0"), + InlineKeyboardButton("➡️", callback_data="custom|cat|nav|1") + ], + [InlineKeyboardButton(f"📄 1 / {len(thumbs)}", callback_data="ignore")], + [InlineKeyboardButton("🔙 Volver a Subir", callback_data="custom|back_upload")] + ]) + # Edit to Media - NO, Delete and Send New for reliability (Text -> Photo) + await msg.delete() + caption = f"🎞 **Catálogo: 0s**\nFrame 1 de {len(thumbs)}" + await c.send_photo(cid, initial_thumb, caption=caption, reply_markup=kb) + return + + if data == "custom|back_upload": + # Return to "Send Image" prompt + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🎞 Ver Catálogo Generado", callback_data="custom|show_catalog")], + [InlineKeyboardButton("❌ Cancelar", callback_data="menu|tools")] + ]) + # We cannot "edit_media" back to text easily if it was a photo. + # Easier to delete and send new text, or edit text if it was text (it wasn't). + # It was a media message. + # We will try to edit caption if it's media, or just send new message. + await msg.delete() + await c.send_message(cid, "🖼 **Muy bien.**\nEnvíame una **Imagen** de tu galería para usarla como portada.", reply_markup=kb) + return + + if data.startswith("custom|cat|"): + action = data.split("|")[2] + + st = url_storage.get(cid, {}) + thumbs = st.get('custom_thumbs_list', []) + v_path = st.get('video_path') + + if not thumbs or not v_path: + await q.answer("❌ Sesión expirada.", show_alert=True) + return + + if action == "nav": + idx = int(data.split("|")[3]) + if idx < 0: idx = len(thumbs) - 1 + if idx >= len(thumbs): idx = 0 + + curr_thumb = thumbs[idx] + ts_label = f"{idx * 10}s" # Aprox label + + kb = InlineKeyboardMarkup([ + [ + InlineKeyboardButton("⬅️", callback_data=f"custom|cat|nav|{idx-1}"), + InlineKeyboardButton(f"✅ Usar ({ts_label})", callback_data=f"custom|cat|sel|{idx}"), + InlineKeyboardButton("➡️", callback_data=f"custom|cat|nav|{idx+1}") + ], + [InlineKeyboardButton(f"📄 {idx+1} / {len(thumbs)}", callback_data="ignore")], + [InlineKeyboardButton("❌ Cancelar", callback_data="menu|tools")] + ]) + + try: + # Force caption update to ensure UI refresh visibility + caption = f"🎞 **Catálogo: {ts_label}**\nFrame {idx+1} de {len(thumbs)}" + await msg.edit_media(InputMediaPhoto(curr_thumb, caption=caption), reply_markup=kb) + except Exception as e: + print(f"Nav Error: {e}") + return + + elif action == "sel": + idx = int(data.split("|")[3]) + t_path = thumbs[idx] + + await msg.delete() + wait = await c.send_message(cid, "⚙️ **Aplicando Miniatura...**") + + # Logic Duplicate from image_handler but clean + from tools_media import embed_thumbnail, get_meta + + out_path = await embed_thumbnail(v_path, t_path) + if out_path: + await wait.edit("📤 **Enviando Resultado...**") + w, h, dur = await get_meta(out_path) + + try: + await c.send_video(cid, out_path, thumb=t_path, width=w, height=h, duration=dur, caption="✏️ **Video Personalizado**") + except: + await c.send_document(cid, out_path, thumb=t_path, caption="✏️ **Video Personalizado**") + + # Cleanup Job Dir + import shutil + job_dir = os.path.dirname(v_path) # Assuming v_path is in a job dir + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + else: + if os.path.exists(out_path): os.remove(out_path) + if os.path.exists(v_path): os.remove(v_path) + # Clean all thumbs + for t in thumbs: + if os.path.exists(t): os.remove(t) + await wait.delete() + + # Auto Check + if conf.get('custom_thumb_auto', False): + url_storage[cid] = {'custom_thumb_step': 'wait_video'} + # Mini reminder + kb_auto = InlineKeyboardMarkup([[InlineKeyboardButton("🛑 Detener Auto", callback_data="toggle|custom_thumb_mode")]]) + await c.send_message(cid, "✅ **Listo.**\nEnvíame el siguiente **VIDEO**.", reply_markup=kb_auto) + else: + conf['custom_thumb_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + url_storage.pop(cid, None) + await c.send_message(cid, "✅ **Proceso Finalizado.**") + else: + await wait.edit("❌ Error Embed.") + return + + # --- AUTO RESIZE MENU --- + if data == "menu|resize_auto_menu": + is_on = conf.get('resize_auto_mode', False) + curr_val = conf.get('resize_auto_val', '9:16') # Default + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|resize_auto")], + [InlineKeyboardButton(f"📐 Valor: {curr_val}", callback_data="ignore")], + [ + InlineKeyboardButton("9:16 (Tik)", callback_data="resize_auto_set|9:16"), + InlineKeyboardButton("3:4 (Insta)", callback_data="resize_auto_set|3:4"), + InlineKeyboardButton("1:1 (Sq)", callback_data="resize_auto_set|1:1") + ], + [ + InlineKeyboardButton("16:9 (YT)", callback_data="resize_auto_set|16:9"), + InlineKeyboardButton("4:3 (Retro)", callback_data="resize_auto_set|4:3"), + InlineKeyboardButton("2.35:1 (Cine)", callback_data="resize_auto_set|2.35:1") + ], + [ + InlineKeyboardButton("9:19.5 (Full)", callback_data="resize_auto_set|9:19.5") + ], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("⚙️ **Configuración Auto Dimensionador**\n\nSi está ACTIVO, todos los videos se redimensionarán automáticamente a este formato (Crop/Fill).", reply_markup=kb) + return + + # --- AUTO RESIZE ACTIONS --- + if data == "toggle|resize_auto": + new_state = await set_exclusive_mode(cid, 'resize_auto_mode', is_toggle=True) + + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|resize_auto_menu', 'answer': q.answer, 'internal': True})()) + return + + if data.startswith("resize_auto_set|"): + val = data.split("|")[1] + conf['resize_auto_val'] = val + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + asyncio.create_task(q.answer(f"✅ Valor guardado: {val}")) + + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|resize_auto_menu', 'answer': q.answer, 'internal': True})()) + return + + # --- SMART CUT INIT --- + if data == "menu|smart_cut_init": + val, disabled = await set_exclusive_mode(cid, 'smart_cut_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + conf = get_config(cid) # Refresh + + # Check Auto State + is_auto = conf.get('smart_cut_auto_mode', False) + auto_txt = "🟢 Auto: ON" if is_auto else "🔴 Auto: OFF" + auto_cb = "toggle_smart_cut_auto|off" if is_auto else "toggle_smart_cut_auto|on" + + await msg.edit_text( + "🧠 **Smart Cut (Detector de Intro)**\n\n" + "🎬 **Envíame un video** y detectaré automáticamente el final de la intro (cambio de escena) para cortarla.\n" + "⚠️ _Beta: Puede fallar si la intro no tiene cortes claros._", + reply_markup=InlineKeyboardMarkup([ + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + ) + return + + if data.startswith("toggle_smart_cut_auto|"): + parts = data.split("|") + val = parts[1] == "on" + + # If enabling Auto, we might want exclusivity or not? + # User wants "Modo Automático" to be exclusive. + # So if ON, call exclusive mode. + if val: + val_x, disabled = await set_exclusive_mode(cid, 'smart_cut_mode') # Active mode is smart cut + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + conf = get_config(cid) + conf['smart_cut_auto_mode'] = True # Set auto flag + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + else: + conf['smart_cut_auto_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh menu + target_menu = "menu|smart_cut_init" + if len(parts) > 2 and parts[2] == "tools": + target_menu = "menu|tools" + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': target_menu, 'answer': q.answer, 'internal': True})()) + return + + if data == "menu|sub_init": + val, disabled = await set_exclusive_mode(cid, 'sub_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("📝 **Modo Subtitulado Activo (1 Uso)**\n\n🎬 **Envíame un video** y le generaré subtítulos.\n_(Si deseas que quede fijo, activa el botón 'Auto' en el menú)_") + return + + if data == "toggle|sub_auto": + new_val = not conf.get('sub_auto_mode', False) + + # Exclusivity: If Auto ON, active sub_mode + if new_val: + val, disabled = await set_exclusive_mode(cid, 'sub_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + conf = get_config(cid) + conf['sub_auto_mode'] = True + msg_txt = "✅ **Auto Subtitulado: ENCENDIDO** (Prioridad Alta)" + else: + conf['sub_auto_mode'] = False + # Optionally disable sub_mode if relying on auto + # But manual mode might persist. + # Just saving usage. + msg_txt = "❌ **Auto Subtitulado: APAGADO**" + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + # Notify state + try: await c.answer_callback_query(q.id, msg_txt) + except: pass + return + + # --- VIRAL MUSIC TOOL --- + if data == "menu|viral_init": + is_on = conf.get('viral_mode', False) + count = len(viral_music_db) + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"⚙️ Estado Recolección: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|viral_mode")], + [InlineKeyboardButton(f"📚 Ver Catálogo ({count})", callback_data="menu|viral_catalog")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text( + f"🎵 **Short Virales Music**\n\n" + f"📦 **Items en catálogo:** {count}\n\n" + f"Activa la **Recolección** y envíame videos/audios para guardarlos. " + f"Luego usa el **Catálogo** para verlos aleatoriamente.", + reply_markup=kb + ) + return + + + + if data == "toggle|viral_mode": + val, disabled = await set_exclusive_mode(cid, 'viral_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|viral_init', 'answer': q.answer, 'internal': True})()) + return + + if data == "menu|viral_catalog" or data == "viral_next" or data.startswith("viral_nav|") or data.startswith("viral_sel|") or data.startswith("viral_send_all|"): + if not viral_music_db: + await c.answer_callback_query(q.id, "❌ El catálogo está vacío.", show_alert=True) + return + + # --- VIRAL CATALOG LOGIC START --- + target_idx = -1 + send_batch = False + + # Intercept explicit "send batch" action + if data.startswith("viral_send_all|"): + target_idx = int(data.split("|")[1]) + send_batch = True + + # Case A: Random / Init + elif data == "viral_next" or data == "menu|viral_catalog": + import random + if viral_music_db: + if data == "menu|viral_catalog": + target_idx = 0 + else: + item = random.choice(viral_music_db) + try: target_idx = viral_music_db.index(item) + except: target_idx = 0 + + # Case B: Navigation (Paging) + elif data.startswith("viral_nav|"): + parts = data.split("|") + current_idx = int(parts[1]) + direction = parts[2] + + if direction == 'next': + target_idx = min(current_idx + 10, len(viral_music_db) - 1) + if target_idx == current_idx: target_idx = 0 + elif direction == 'prev': + target_idx = max(0, current_idx - 10) + else: + target_idx = current_idx # Fallback + + # Case C: Direct Selection / Jump (Calculated previously or passed) + elif data.startswith("viral_sel|"): + target_idx = int(data.split("|")[1]) + + # --- UNIFIED DISPLAY BLOCK --- + if target_idx != -1 and viral_music_db: + # Ensure bounds + if target_idx < 0: target_idx = len(viral_music_db) - 1 + if target_idx >= len(viral_music_db): target_idx = 0 + + item = viral_music_db[target_idx] + iid = item['id'] + + from utils import generate_grid_keyboard + + page_size = 10 + current_page = target_idx // page_size + start_idx = current_page * page_size + end_idx = min(start_idx + page_size, len(viral_music_db)) + batch_count = end_idx - start_idx + + extra_rows = [ + [ + InlineKeyboardButton("🗑️ Eliminar", callback_data=f"viral_del|{iid}"), + InlineKeyboardButton("🎲 Aleatorio 10", callback_data="viral_next") + ], + [InlineKeyboardButton(f"🚀 Enviar Todo el Lote ({batch_count})", callback_data=f"viral_send_all|{target_idx}")], + [InlineKeyboardButton("🔙 Menú Viral", callback_data="menu|viral_init")] + ] + + kb = generate_grid_keyboard( + current_idx=target_idx, + total_items=len(viral_music_db), + prefix_sel="viral_sel|", + prefix_nav="viral_nav|", + prefix_jump="viral_jump", + extra_rows=extra_rows + ) + + try: + try: await msg.delete() + except: pass + + if send_batch: + wm = await c.send_message(cid, f"⏳ **Enviando lote de {batch_count} items...**") + + for i in range(start_idx, end_idx): + m_item = viral_music_db[i] + fid = m_item['file_id'] + itype = m_item['type'] + cap = f"🎵 Item {i+1} | ID: `{m_item['id']}`" + try: + if itype == 'video': await c.send_video(cid, fid, caption=cap) + elif itype == 'audio': await c.send_audio(cid, fid, caption=cap) + elif itype == 'voice': await c.send_voice(cid, fid, caption=cap) + except Exception as e: + print(f"Error enviando item {i}: {e}") + + await wm.delete() + + if not send_batch: + m_item = viral_music_db[target_idx] + fid = m_item['file_id'] + itype = m_item['type'] + cap = f"🎵 Seleccionado: {target_idx+1}\nID: `{m_item['id']}`" + try: + if itype == 'video': await c.send_video(cid, fid, caption=cap) + elif itype == 'audio': await c.send_audio(cid, fid, caption=cap) + elif itype == 'voice': await c.send_voice(cid, fid, caption=cap) + except: pass + + menu_text = f"🎵 **Catálogo Viral** [{target_idx+1}/{len(viral_music_db)}]\n🏷️ Seleccionado: **{target_idx+1}**" + await c.send_message(cid, menu_text, reply_markup=kb) + + except Exception as e: + await c.send_message(cid, f"❌ Error al mostrar catálogo: {e}") + return + + if data == "viral_jump": + url_storage[cid] = {'viral_step': 'wait_jump'} + await msg.reply("🔢 **Escribe el número** al que quieres ir (1 - " + str(len(viral_music_db)) + "):", quote=True) + await q.answer() + return + + if data.startswith("viral_del|"): + iid = data.split("|")[1] + # Find and remove + found = False + for i, item in enumerate(viral_music_db): + if item['id'] == iid: + viral_music_db.pop(i) + # save_viral() -> Firebase + asyncio.create_task(delete_viral_item_fb(iid)) + found = True + break + + if found: + await c.answer_callback_query(q.id, "✅ Eliminado.") + # Trigger next + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'viral_next', 'answer': q.answer, 'internal': True})()) + else: + await c.answer_callback_query(q.id, "⚠️ Ya no existe.", show_alert=True) + return + + if data == "menu|cut_init_menu": + val, disabled = await set_exclusive_mode(cid, 'cut_init_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + txt = "✂️ **Corte Inicial Activo**\n\n🎬 **Envíame el video** que quieres recortar al inicio." + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]]) + + if not val: # If toggled off + await msg.edit_text("⚙️ Modo Corte Desactivado.", reply_markup=kb) + return + + if msg.photo or msg.caption: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # --- CONVERTIDOR QH TOGGLE --- + if data == "toggle|convert_qh": + val, disabled = await set_exclusive_mode(cid, 'convert_qh_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- CONVERTIDOR MP4 H264 TOGGLE --- + if data == "toggle|convert_h264": + val, disabled = await set_exclusive_mode(cid, 'convert_h264_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Menu (Internal to bypass Anti-Spam) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- TRADUCTOR MANGA TOGGLE --- + if data == "toggle|translate_manga": + val, disabled = await set_exclusive_mode(cid, 'translate_manga_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + + + # --- TOGGLE AUTO RANDOM --- + + + + # --- THUMB RANDOM FRAME --- + + + if data == "menu|ai_advanced": + # Usamos una sola variable 'ai_model_mode' para garantizar exclusividad + # Valores: 'gemini_2' (default), 'gemini_3', 'nano_banana' + mode = conf.get('ai_model_mode', 'gemini_2') + + # Estados visuales + st_g2 = "🟢 ACTIVO" if mode == 'gemini_2' else "🔴" + st_g3 = "🟢 ACTIVO" if mode == 'gemini_3' else "🔴" + st_nb = "🟢 ACTIVO" if mode == 'nano_banana' else "🔴" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"⚡ Gemini 2 Flash: {st_g2}", callback_data="ai_set_mode|gemini_2")], + [ + InlineKeyboardButton(f"💎 Gemini 3 Pro: {st_g3}", callback_data="ai_set_mode|gemini_3"), + InlineKeyboardButton("⚙️", callback_data="menu|ai_tools_config") + ], + [ + InlineKeyboardButton(f"🍌 Nano Banana Pro: {st_nb}", callback_data="ai_set_mode|nano_banana"), + InlineKeyboardButton("⚙️ Config", callback_data="menu|ai_advanced_conf") + ], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|main")] + ]) + + desc = "**✨ Configuración de Cerebro IA**\n\n" + if mode == 'gemini_2': + desc += "✅ **Modo Actual:** Gemini 2 Flash (Rápido, Gratis).\n_Comportamiento estándar._" + elif mode == 'gemini_3': + desc += "✅ **Modo Actual:** Gemini 3 (Premium).\n_Máxima inteligencia. Usa tus cookies._" + elif mode == 'nano_banana': + desc += "✅ **Modo Actual:** Nano Banana Pro (Solo Imágenes).\n_El bot solo dibujará, no chatea._" + + await msg.edit_text(desc, reply_markup=kb) + return + + if data.startswith("ai_set_mode|"): + new_mode = data.split("|")[1] + conf['ai_model_mode'] = new_mode + + # Limpiar flags antiguos por si acaso + conf['gemini_3_mode'] = (new_mode == 'gemini_3') + conf['nano_banana_mode'] = (new_mode == 'nano_banana') + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': "menu|ai_advanced", 'answer': q.answer, 'internal': True})()) + return + + # --- AI TOOLS CONFIG (NEW MENU) --- + if data == "menu|ai_tools_config": + is_search = conf.get('google_search_mode', True) + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"🔎 Google Search: {'🟢 ON' if is_search else '🔴 OFF'}", callback_data="toggle|google_search")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_advanced")] + ]) + + await msg.edit_text( + "⚙️ **Herramientas de IA**\n\n" + "Activa o desactiva herramientas específicas que usa Gemini 3 Pro.", + reply_markup=kb + ) + return + + # --- CONFIGURACIÓN AVANZADA IMAGEN (NANO/GEMINI) --- + if data == "menu|ai_advanced_conf": + # Leer valores actuales (defaults) + curr_ratio = conf.get('ai_img_ratio', '1:1') + is_doc = conf.get('ai_img_as_doc', False) + curr_temp = conf.get('ai_temp', 1.0) + curr_batch = conf.get('ai_img_batch', 1) + + # Status Icons + st_doc = "🟢 ON" if is_doc else "🔴 OFF" + + kb = InlineKeyboardMarkup([ + [ + InlineKeyboardButton(f"📐 Ratio: {curr_ratio}", callback_data="menu|ai_conf_ratio") + ], + + # Batch Size (Toggle) + [InlineKeyboardButton(f"🔢 Batch: {curr_batch}", callback_data="toggle|ai_img_batch")], + + # Nano Banana Config (Menu) + [InlineKeyboardButton("🍌 Config Nano Banana", callback_data="menu|ai_nano_config")], + + [InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_advanced")] + ]) + + await msg.edit_text( + "🛠️ **Configuración Avanzada de Imagen**\n\n" + "Ajusta los parámetros de generación para **Nano Banana** y **Gemini**.", + reply_markup=kb + ) + return + + # --- SUBMENU: AI NANO BANANA CONFIG (NEW) --- + if data == "menu|ai_nano_config": + # Toggle Status + s_doc = "🟢" if conf.get('ai_img_as_doc', False) else "🔴" + s_w2x = "🟢" if conf.get('waifu2x_auto', False) else "🔴" + curr_res = conf.get('ai_img_res', '1K') + + # Explanation about Doc Mode Exception + # Logic is: If ai_img_as_doc is explicitly set (True/False), it overrides Global. + # Wait, the requirement says: "Nano Banana Pro must still send content as a document... if its internal mode is active." + # So we need an explicit toggle for THIS tool. + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"📄 Enviar como Doc: {s_doc}", callback_data="toggle|ai_img_as_doc_nano")], + [InlineKeyboardButton(f"✨ Auto Waifu2x: {s_w2x}", callback_data="toggle|waifu2x_auto")], + [InlineKeyboardButton(f"🖥 Res: {curr_res}", callback_data="menu|ai_conf_res")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_advanced_conf")] + ]) + + await msg.edit_text( + "🍌 **Configuración Nano Banana Pro**\n\n" + "🔸 **Enviar como Doc**: Si está activo, enviarimagenes generadas como archivo (Sin compresión), IGNORANDO el modo global.\n" + "🔸 **Auto Waifu2x**: Mejora automáticamente la resolución (Crea 2 imágenes: Original + HD) sin preguntar.\n" + "🔸 **Res (Waifu2x)**: Define el nivel de escalado (1K=x2, 4K=x4, 8K=x8).", + reply_markup=kb + ) + return + + if data == "toggle|ai_img_as_doc_nano": + conf['ai_img_as_doc'] = not conf.get('ai_img_as_doc', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_nano_config', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|waifu2x_auto": + conf['waifu2x_auto'] = not conf.get('waifu2x_auto', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_nano_config', 'answer': q.answer, 'internal': True})()) + return + + # --- SUBMENU: RATIO --- + if data == "menu|ai_conf_ratio": + ratios = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"] + curr = conf.get('ai_img_ratio', '1:1') + + buttons = [] + row = [] + for r in ratios: + lbl = f"✅ {r}" if r == curr else r + buttons.append(InlineKeyboardButton(lbl, callback_data=f"ai_set_val|ratio|{r}")) + if len(row) == 3: + buttons.append(row) + row = [] + if row: buttons.append(row) + + buttons.append([InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_advanced_conf")]) + + await msg.edit_text("📐 **Selecciona Relación de Aspecto:**", reply_markup=InlineKeyboardMarkup(buttons)) + return + + # --- SUBMENU: RES --- + if data == "menu|ai_conf_res": + res_opts = ["1K", "2K", "4K", "8K"] + curr = conf.get('ai_img_res', '1K') + + buttons = [] + for r in res_opts: + lbl = f"✅ {r}" if r == curr else r + buttons.append([InlineKeyboardButton(lbl, callback_data=f"ai_set_val|res|{r}")]) + + buttons.append([InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_nano_config")]) + + await msg.edit_text("🖥 **Selecciona Resolución (Upscale):**\n_(Afecta detalles y nitidez)_", reply_markup=InlineKeyboardMarkup(buttons)) + return + + # --- SET VALUE GENERIC --- + if data.startswith("ai_set_val|"): + parts = data.split("|") + setting = parts[1] # ratio, res + val = parts[2] + + if setting == "ratio": conf['ai_img_ratio'] = val + if setting == "res": conf['ai_img_res'] = val + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Return to Main Config + ret_menu = "menu|ai_advanced_conf" + if setting == "res": ret_menu = "menu|ai_nano_config" + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': ret_menu, 'answer': q.answer, 'internal': True})()) + return + + # --- TOGGLE DOC MODE --- + if data == "toggle|ai_img_as_doc": + conf['ai_img_as_doc'] = not conf.get('ai_img_as_doc', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_advanced_conf', 'answer': q.answer, 'internal': True})()) + return + + # --- TOGGLE BATCH SIZE --- + if data == "toggle|ai_img_batch": + curr = conf.get('ai_img_batch', 1) + nxt = curr + 1 + if nxt > 4: nxt = 1 + conf['ai_img_batch'] = nxt + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_advanced_conf', 'answer': q.answer, 'internal': True})()) + return + + # --- TOGGLE GOOGLE SEARCH --- + if data == "toggle|google_search": + conf['google_search_mode'] = not conf.get('google_search_mode', True) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_tools_config', 'answer': q.answer, 'internal': True})()) + return + + # --- MISSING HANDLERS (PARTY, JOIN, EXTRACT, ETC) --- + + + if data == "toggle|tagger": + val, disabled = await set_exclusive_mode(cid, 'tagger_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "toggle|research": + val, disabled = await set_exclusive_mode(cid, 'research_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + # Refresh + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "menu|cut_auto_menu": + is_on = conf.get('cut_auto_mode', False) + curr_val = conf.get('cut_auto_val', '15') # Default 15s + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|cut_auto")], + [InlineKeyboardButton(f"⏱ Valor: {curr_val}s", callback_data="ignore")], + [InlineKeyboardButton("🚫 Intro PH (3s)", callback_data="cut_auto_set|3")], + [ + InlineKeyboardButton("5s", callback_data="cut_auto_set|5"), + InlineKeyboardButton("10s", callback_data="cut_auto_set|10"), + InlineKeyboardButton("15s", callback_data="cut_auto_set|15"), + InlineKeyboardButton("30s", callback_data="cut_auto_set|30") + ], + [InlineKeyboardButton("✏️ Personalizado", callback_data="cut_auto_set|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("⚙️ **Configuración Auto Corte**\n\nSi está ACTIVO, todos los videos que envíes en el modo 'Corte Inicial' se cortarán automáticamente con este valor.", reply_markup=kb) + return + + # --- AUTO CORTE ACTIONS --- + if data == "toggle|cut_auto": + conf['cut_auto_mode'] = not conf.get('cut_auto_mode', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # REFRESH MENU IN-PLACE + is_on = conf.get('cut_auto_mode', False) + curr_val = conf.get('cut_auto_val', '15') + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|cut_auto")], + [InlineKeyboardButton(f"⏱ Valor: {curr_val}s", callback_data="ignore")], + [InlineKeyboardButton("🚫 Intro PH (3s)", callback_data="cut_auto_set|3")], + [ + InlineKeyboardButton("5s", callback_data="cut_auto_set|5"), + InlineKeyboardButton("10s", callback_data="cut_auto_set|10"), + InlineKeyboardButton("15s", callback_data="cut_auto_set|15"), + InlineKeyboardButton("30s", callback_data="cut_auto_set|30") + ], + [InlineKeyboardButton("✏️ Personalizado", callback_data="cut_auto_set|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("⚙️ **Configuración Auto Corte**\n\nSi está ACTIVO, todos los videos que envíes en el modo 'Corte Inicial' se cortarán automáticamente con este valor.", reply_markup=kb) + return + + if data == "cut_auto_set|custom": + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['cut_auto_step'] = 'val_wait' + await msg.edit_text("✍️ **Ingresa el valor personalizado**\n\nEjemplos: `10` (segundos), `01:05` (1 min 5 seg).", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|cut_auto_menu")]])) + return + + if data.startswith("cut_auto_set|"): + val = data.split("|")[1] + conf['cut_auto_val'] = val + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await q.answer(f"✅ Valor guardado: {val}s") + + # REFRESH MENU IN-PLACE + is_on = conf.get('cut_auto_mode', False) + curr_val = conf.get('cut_auto_val', '15') + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|cut_auto")], + [InlineKeyboardButton(f"⏱ Valor: {curr_val}s", callback_data="ignore")], + [InlineKeyboardButton("🚫 Intro PH (3s)", callback_data="cut_auto_set|3")], + [ + InlineKeyboardButton("5s", callback_data="cut_auto_set|5"), + InlineKeyboardButton("10s", callback_data="cut_auto_set|10"), + InlineKeyboardButton("15s", callback_data="cut_auto_set|15"), + InlineKeyboardButton("30s", callback_data="cut_auto_set|30") + ], + [InlineKeyboardButton("✏️ Personalizado", callback_data="cut_auto_set|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + try: + await msg.edit_text("⚙️ **Configuración Auto Corte**\n\nSi está ACTIVO, todos los videos que envíes en el modo 'Corte Inicial' se cortarán automáticamente con este valor.", reply_markup=kb) + except: pass # In case content is identical (Telegram error) + return + + # --- SECCION: CONFIGURACION IA (Personalidades) --- + if data == "menu|ai_config": + # 1. DATA MIGRATION CHECK + # We want 'ai_images' to be dict of personas: {'nsfw': {cat: ...}, 'custom1': {cat: ...}} + # Old format: 'ai_images': { 'welcome': ... } (Directly categories) + # Detect old format by checking if 'welcome'/'greeting' is a key at top level of ai_images + if 'ai_images' not in conf: conf['ai_images'] = {} + current_imgs = conf['ai_images'] + + # Check if it looks like old schema (has category keys directly) + is_legacy = any(key in current_imgs for key in ['welcome', 'greeting', 'admire']) + if is_legacy: + # MIGRATE + legacy_data = current_imgs.copy() + conf['ai_images'] = { + 'nsfw': legacy_data + } + # Set default persona if not set + if 'active_persona' not in conf: conf['active_persona'] = 'formal' + + # Save immediately + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + if 'active_persona' not in conf: conf['active_persona'] = 'formal' + active_p = conf['active_persona'] + + # Standard Personas + standards = [ + ('formal', "🎩 Formal"), + ('pasiva', "🧘‍♀️ Pasiva"), + ('profesional', "👔 Profesional"), + ('agresiva', "💢 Agresiva"), + ('timida', "😳 Tímida") + ] + + kb_rows = [] + + # 1. Standards + for pid, pname in standards: + status = "🟢" if active_p == pid else "⚪" + kb_rows.append([InlineKeyboardButton(f"{pname} {status}", callback_data=f"ai_set_p|{pid}")]) + + # 2. NSFW (Special Visual) + status_nsfw = "🟢" if active_p == 'nsfw' else "⚪" + row_nsfw = [InlineKeyboardButton(f"🔞 Waifu NSFW {status_nsfw}", callback_data="ai_set_p|nsfw")] + # Only show Body Config if this acts as Visual (it does) + # But the user wants "Cuerpo" button next to it or accessible. + # Plan: Toggle button, and IF active (or separate button), show Config. + # User req: "todos cambiara con un botó ocion de verde y rojo... solo esas tienen decho a tener sus cuerpo" + # Let's add a "⚙️" button next to it. + row_nsfw.append(InlineKeyboardButton("⚙️ Config", callback_data="ai_conf|body|nsfw")) + kb_rows.append(row_nsfw) + + # 3. Customs (Local + Global) + local_customs = conf.get('custom_personas', {}) + # Merge: Global overrides local if same ID + all_customs = {**local_customs, **global_personas} + + for cid_key, cdata in all_customs.items(): + cname = cdata.get('name', 'Custom') + status_c = "🟢" if active_p == cid_key else "⚪" + kb_rows.append([ + InlineKeyboardButton(f"👤 {cname} {status_c}", callback_data=f"ai_set_p|{cid_key}"), + + InlineKeyboardButton("✏️", callback_data=f"ai_conf|edit_ask|{cid_key}"), + InlineKeyboardButton("🗑", callback_data=f"ai_conf|del_p_ask|{cid_key}") + ]) + + # 4. Expressions & Focus Mode (REMOVED) + # kb_rows.append([ + # InlineKeyboardButton(f"Expresiones: {green}", callback_data="toggle|ai_green_mode"), + # InlineKeyboardButton(f"Boto f: {focus}", callback_data="toggle|ai_focus_mode") + # ]) + + # 5. Add & Back + # kb_rows.append([InlineKeyboardButton("➕ Agregar Personalidad", callback_data="ai_add_persona")]) + # 5. Add Voice & Back + v_status = "🟢" if conf.get('voice_mode') else "🔴" + kb_rows.append([InlineKeyboardButton(f"🎙️ Voz: {v_status}", callback_data="toggle|voice_mode")]) + kb_rows.append([InlineKeyboardButton("🔙 Volver", callback_data="menu|main")]) + + # Calculate Display Title + current_display = active_p.title() + # 1. Standard? + for pid, pname in standards: + if pid == active_p: current_display = pname + # 2. NSFW? + if active_p == 'nsfw': current_display = "🔞 Waifu NSFW" + # 3. Custom? + if active_p in all_customs: + current_display = all_customs[active_p].get('name', active_p.title()) + + kb = InlineKeyboardMarkup(kb_rows) + txt = (f"🧠 **Personalidad Actual:** {current_display}\n\n" + "Selecciona el comportamiento de la IA.") + + # Fix persistent media + if msg.photo or msg.video or msg.animation or msg.sticker or msg.document: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # --- SET ACTIVE PERSONA --- + if data.startswith("ai_set_p|"): + new_p = data.split("|")[1] + conf['active_persona'] = new_p + # Clear memory to ensure fresh start with new persona + clear_chat_memory(cid) + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + # Refresh Menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': "menu|ai_config", 'answer': q.answer, 'internal': True})()) + return + + # --- AUTO COLLAGE TOGGLE --- + if data == "toggle|collage_auto": + conf['collage_auto_mode'] = not conf.get('collage_auto_mode', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + # --- VOICE MODE TOGGLE --- + if data == "toggle|voice_mode": + conf['voice_mode'] = not conf.get('voice_mode', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + # Refresh Menu (Internal to bypass Anti-Spam) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_config', 'answer': q.answer, 'internal': True})()) + return + + # --- BODY CONFIG (HIERARCHICAL) --- + if data.startswith("ai_conf|body"): + parts = data.split("|") + persona_id = parts[2] if len(parts) > 2 else 'nsfw' + + p_name = "Waifu NSFW" + is_nsfw = (persona_id == 'nsfw') + if is_nsfw: p_name = "Waifu NSFW 🔞" + + # Name Lookup (Local -> Global) + if not is_nsfw: + if persona_id in conf.get('custom_personas', {}): + p_name = conf['custom_personas'][persona_id].get('name', 'Custom') + elif persona_id in global_personas: + p_name = global_personas[persona_id].get('name', 'Global Custom') + + # DEFINICIÓN DE GRUPOS + groups = [ + ('social', '📂 Emociones & Social'), + ('romance', '📂 Romance & Cariño'), + ('outfits', '📂 Cosplay & Outfits'), + ('nsfw_soft', '📂 NSFW Soft & Tease'), + ('nsfw_hard', '📂 NSFW Actos'), + ('nsfw_climax', '📂 NSFW Clímax'), + ('vulgar', '📂 Vulgar & Anatomía'), + ('life', '📂 Contexto / Vida'), + ('pack', '📂 Packs (Colección)') + ] + + buttons = [] + for gid, gname in groups: + buttons.append([InlineKeyboardButton(gname, callback_data=f"ai_conf|group|{gid}|{persona_id}")]) + + buttons.append([InlineKeyboardButton("🔙 Volver", callback_data="menu|ai_config")]) + + kb = InlineKeyboardMarkup(buttons) + txt = f"💃 **Cuerpo: {p_name}**\n\nSelecciona una categoría para gestionar las imágenes de reacción." + + if msg.photo or msg.video or msg.animation or msg.sticker or msg.document: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # --- GROUP VIEW (Folders) --- + if data.startswith("ai_conf|group|"): + parts = data.split("|") + gid, pid = parts[2], parts[3] + + # DATA DEFINITION (Hardcoded Map) + + # CLEAR STATE (Safety: Going back always turns off upload) + url_storage.pop(cid, None) + + AVATAR_DATA = { + 'social': ['welcome', 'greeting', 'happy', 'laugh', 'angry', 'pouting', 'sad', 'shock', 'confused', 'scared', 'disgusted', 'thinking', 'wink', 'bored', 'tired', 'drunk', 'crazy', 'pleading', 'smug', 'shy'], + 'romance': ['love', 'kiss', 'deep_kiss', 'blow_kiss', 'hug', 'holding', 'lap_pillow', 'lap_sit', 'feeding', 'headpat', 'cuddle', 'lean', 'cheek', 'forehead', 'ring', 'date', 'heart', 'stare'], + 'outfits': ['casual', 'dress', 'sundress', 'wedding', 'bikini', 'micro', 'gym', 'school', 'bloomer', 'maid', 'nurse', 'doctor', 'police', 'bunny', 'cat_girl', 'dog_girl', 'cow_girl', 'fox_girl', 'cheongsam', 'kimono', 'goth', 'ol', 'sweater', 'pajamas', 'towel', 'apron', 'teacher', 'nun', 'witch', 'vampire', 'succubus', 'elf'], + 'nsfw_soft': ['horny', 'lingerie', 'bra', 'panties', 'nude', 'nude_back', 'ass', 'boobs', 'nipples', 'feet', 'legs', 'armpits', 'sweat', 'oil', 'bondage', 'collar'], + 'nsfw_hard': ['masturb', 'toy_play', 'blowjob', 'deepthroat', 'cum_mouth', 'facesit', 'paizuri', 'handjob', 'doggy', 'mission', 'cowgirl', 'standing', 'anal', 'gangbang', 'double', 'lesbian', '69'], + 'nsfw_climax': ['cum_face', 'cum_body', 'creampie', 'anal_pie', 'bukkake', 'ahegao', 'after', 'mess'], + 'vulgar': ['pussy', 'dick', 'anus', 'spread', 'orgy', 'cuckold', 'sex', 'slut', 'milk', 'cum', 'threesome', 'rimjob', 'spit', 'choking', 'spank', 'fisting', 'squirt'], + 'life': ['sleep', 'eat', 'bath', 'toilet', 'selfie'], + 'pack': ['pack_boobs', 'pack_ass', 'pack_pussy', 'pack_nude', 'pack_feet', 'pack_dildo', 'pack_underwear', 'pack_cam'] + } + + # SPANISH TRANSLATIONS -> Moved to Global Scope + + + cat_list = AVATAR_DATA.get(gid, []) + + # --- FETCH COUNTS (New) --- + from firebase_service import get_all_avatars + # This returns {outfit: {emotion: [file_ids]}} + # We want total across all outfits? Or just default? + # Usually users just use 'default' outfit for now. + # Let's count TOTAL unique if possible or just use 'default' as primary. + # Simple approach: Get 'default' outfit counts. + av_counts = {} + try: + full_data = await get_all_avatars(pid) or {} + # Merge checks: if outfit not specified, check all? + # User flow: Uploads go to 'default'. + # Let's verify 'default' key exists. + def_data = full_data.get('default', {}) + for c_k, c_v in def_data.items(): + if isinstance(c_v, list): av_counts[c_k] = len(c_v) + except Exception as e: + print(f"Error fetching counts: {e}") + + # Generate Buttons Matrix (2 columns) + buttons = [] + row = [] + for cat in cat_list: + # Icono de carpeta siempre 📂 y nombre traducido + display_name = TRANS.get(cat, cat.replace('_', ' ').title()) + + # Count + c_num = av_counts.get(cat, 0) + + label = f"📂 {display_name} ({c_num})" + + row.append(InlineKeyboardButton(label, callback_data=f"ai_conf|cat|{cat}|{pid}|{gid}")) # Pass GID for back button + if len(row) == 2: + buttons.append(row) + row = [] + if row: buttons.append(row) + + buttons.append([InlineKeyboardButton("🔙 Volver", callback_data=f"ai_conf|body|{pid}")]) + + kb = InlineKeyboardMarkup(buttons) + g_name = gid.replace('_', ' ').title() + await msg.edit_text(f"📂 **Carpeta: {g_name}**\nSelecciona una sub-carpeta para subir fotos.", reply_markup=kb) + return + + # --- ADD CATEGORY FLOW --- + if data.startswith("ai_conf|add_cat|"): + parts = data.split("|") + pid = parts[2] + + # Ask for name + # State storage + url_storage[cid] = {'action': 'ai_add_cat_wait', 'pid': pid} + + await msg.edit_text(f"✍️ **Nueva Característica para {pid}:**\n\nEscribe el nombre de la emoción o rasgo (ej: `Enojada`, `Sonrojada`, `Llorando`).\n\n_Esto creará un nuevo grupo de imágenes._", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data=f"ai_conf|body|{pid}")]])) + return + + if data.startswith("ai_conf|cat|"): + parts = data.split("|") + cat = parts[2] + pid = parts[3] if len(parts) > 3 else 'nsfw' + gid = parts[4] if len(parts) > 4 else 'social' + + # DIRECT UPLOAD FLOW + + # Mapas de texto + c_name = TRANS.get(cat, cat.replace('_', ' ').title()) + + # Trigger Upload Mode Directly + + + # Count Logic Logic + # Only show "Catálogo" if count > 0 + + # Fetch local count or use what we fetched + # av_counts was fetched in group view? No, this is cat view. + # Rerun fetch or pass it? Usually safer to fetch again or assume 0 if not passed. + # Let's fetch quickly. + from firebase_service import get_persona_images + existing_imgs = await get_persona_images(pid, 'default', cat) + e_count = len(existing_imgs) + + # Retrieve current upload state + st = url_storage.get(cid, {}) + is_upload_active = st.get('ai_config_step') == 'wait_image' and st.get('category') == cat + + # Message + status_txt = "🟢 **ENCENDIDO** (Envía fotos ahora)" if is_upload_active else "🔴 **APAGADO** (Subida bloqueada)" + + txt = ( + f"📂 **Carpeta: {c_name}**\n" + f"📊 **Imágenes:** {e_count}\n" + f"📡 **Estado Subida:** {status_txt}\n\n" + f"Controla si el bot debe recibir nuevas imágenes o no." + ) + + # Buttons + rows = [] + + # Toggle Button + if is_upload_active: + rows.append([InlineKeyboardButton("🛑 PAUSAR SUBIDA", callback_data=f"ai_conf|toggle_up|{cat}|off|{pid}|{gid}")]) + else: + rows.append([InlineKeyboardButton("🟢 ACTIVAR SUBIDA", callback_data=f"ai_conf|toggle_up|{cat}|on|{pid}|{gid}")]) + + if e_count > 0: + rows.append([InlineKeyboardButton(f"🖼 Ver Catálogo ({e_count})", callback_data=f"ai_conf|catnav|{cat}|0|view|{pid}|{gid}")]) + + rows.append([InlineKeyboardButton("🔙 Volver", callback_data=f"ai_conf|group|{gid}|{pid}")]) + + kb = InlineKeyboardMarkup(rows) + + # If user sent media? The handler below handles uploads. This is just Text menu. + if msg.photo: # If reused + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # --- TOGGLE UPLOAD HANDLER --- + if data.startswith("ai_conf|toggle_up|"): + parts = data.split("|") + cat = parts[2] + mode = parts[3] + pid = parts[4] + gid = parts[5] + + if mode == "on": + # Activate + url_storage[cid] = {'ai_config_step': 'wait_image', 'category': cat, 'persona_id': pid, 'count': 0, 'gid': gid} + await q.answer("🟢 Subida ACTIVADA. Envía fotos.", show_alert=False) + else: + # Deactivate + url_storage.pop(cid, None) + await q.answer("🔴 Subida PAUSADA.", show_alert=False) + + # Recalculate UI State for Refresh + is_upload_active = (mode == "on") + + # Fetch needed data again for display + c_name = TRANS.get(cat, cat.replace('_', ' ').title()) + from firebase_service import get_persona_images + existing_imgs = await get_persona_images(pid, 'default', cat) + e_count = len(existing_imgs) + + status_txt = "🟢 **ENCENDIDO** (Envía fotos ahora)" if is_upload_active else "🔴 **APAGADO** (Subida bloqueada)" + + txt = ( + f"📂 **Carpeta: {c_name}**\n" + f"📊 **Imágenes:** {e_count}\n" + f"📡 **Estado Subida:** {status_txt}\n\n" + f"Controla si el bot debe recibir nuevas imágenes o no." + ) + + # Buttons + rows = [] + if is_upload_active: + rows.append([InlineKeyboardButton("🛑 PAUSAR SUBIDA", callback_data=f"ai_conf|toggle_up|{cat}|off|{pid}|{gid}")]) + else: + rows.append([InlineKeyboardButton("🟢 ACTIVAR SUBIDA", callback_data=f"ai_conf|toggle_up|{cat}|on|{pid}|{gid}")]) + + if e_count > 0: + rows.append([InlineKeyboardButton(f"🖼 Ver Catálogo ({e_count})", callback_data=f"ai_conf|catnav|{cat}|0|view|{pid}|{gid}")]) + + rows.append([InlineKeyboardButton("🔙 Volver", callback_data=f"ai_conf|group|{gid}|{pid}")]) + + try: + await msg.edit_text(txt, reply_markup=InlineKeyboardMarkup(rows)) + except Exception as e: + print(f"Error editing text: {e}") + return + + # --- CATALOG VIEWER --- + if data.startswith("ai_conf|catnav|"): + # ai_conf|catnav|{cat}|{idx}|{action}|{pid}|{gid} + parts = data.split("|") + cat = parts[2] + idx = int(parts[3]) + action = parts[4] + pid = parts[5] + gid = parts[6] + + from firebase_service import get_persona_images, delete_persona_image + imgs = await get_persona_images(pid, 'default', cat) + + if not imgs: + await q.answer("⚠️ Carpeta vacía.", show_alert=True) + # Go back to upload view + return await cb(c, type('obj', (object,), {'message': msg, 'data': f"ai_conf|cat|{cat}|{pid}|{gid}", 'answer': q.answer})()) + + # Navigation Logic + if idx < 0: idx = len(imgs) - 1 + if idx >= len(imgs): idx = 0 + + curr = imgs[idx] + fid = curr if isinstance(curr, str) else curr.get('id') + ftype = 'photo' if isinstance(curr, str) else curr.get('type', 'photo') + + # Buttons: < > Delete Back + row_nav = [ + InlineKeyboardButton("⬅️", callback_data=f"ai_conf|catnav|{cat}|{idx-1}|view|{pid}|{gid}"), + InlineKeyboardButton(f"{idx+1}/{len(imgs)}", callback_data="ignore"), + InlineKeyboardButton("➡️", callback_data=f"ai_conf|catnav|{cat}|{idx+1}|view|{pid}|{gid}") + ] + row_act = [ + InlineKeyboardButton("🗑 Borrar", callback_data=f"ai_conf|catdel|{cat}|{idx}|{pid}|{gid}"), + InlineKeyboardButton("🔙 Volver", callback_data=f"ai_conf|cat|{cat}|{pid}|{gid}") + ] + kb = InlineKeyboardMarkup([row_nav, row_act]) + + # Caption + c_name = TRANS.get(cat, cat.replace('_', ' ').title()) + txt = f"📂 **{c_name}** ({idx+1}/{len(imgs)})" + + media = None + if ftype == 'photo': media = InputMediaPhoto(fid, caption=txt) + elif ftype == 'video': media = InputMediaVideo(fid, caption=txt) + elif ftype == 'animation': media = InputMediaAnimation(fid, caption=txt) + elif ftype == 'document': media = InputMediaDocument(fid, caption=txt) + elif ftype == 'sticker': media = None # Stickers cannot be InputMedia for edit + + # Fallback if unknown type strictly to avoid error if possible, but if it is sticker we must be careful + if not media and ftype != 'sticker': media = InputMediaPhoto(fid, caption=txt) + + try: + if action == 'view': + # If we have media object AND current message is editable media (not sticker) + can_edit = (msg.photo or msg.video or msg.animation or msg.document) and media + + if can_edit: + await msg.edit_media(media, reply_markup=kb) + else: + # Must delete and resend (Sticker -> Photo, Photo -> Sticker, etc) + await msg.delete() + if ftype == 'sticker': + await c.send_sticker(msg.chat.id, fid, reply_markup=kb) + elif ftype == 'video': + await c.send_video(msg.chat.id, fid, caption=txt, reply_markup=kb) + elif ftype == 'animation': + await c.send_animation(msg.chat.id, fid, caption=txt, reply_markup=kb) + elif ftype == 'document': + await c.send_document(msg.chat.id, fid, caption=txt, reply_markup=kb) + else: + await c.send_photo(msg.chat.id, fid, caption=txt, reply_markup=kb) + except Exception as e: + print(f"⚠️ Catalog Edit Error: {e}") + # If edit fails (e.g. type change), delete and send + try: await msg.delete() + except: pass + + if ftype == 'sticker': await c.send_sticker(msg.chat.id, fid, reply_markup=kb) + elif ftype == 'video': await c.send_video(msg.chat.id, fid, caption=txt, reply_markup=kb) + elif ftype == 'animation': await c.send_animation(msg.chat.id, fid, caption=txt, reply_markup=kb) + elif ftype == 'document': await c.send_document(msg.chat.id, fid, caption=txt, reply_markup=kb) + else: await c.send_photo(msg.chat.id, fid, caption=txt, reply_markup=kb) + return + + # --- CATALOG DELETE --- + if data.startswith("ai_conf|catdel|"): + parts = data.split("|") + cat = parts[2] + idx = int(parts[3]) + pid = parts[4] + gid = parts[5] + + from firebase_service import get_persona_images, delete_persona_image + imgs = await get_persona_images(pid, 'default', cat) + if 0 <= idx < len(imgs): + target = imgs[idx] + # Delete + await delete_persona_image(pid, 'default', cat, target) + await q.answer("🗑 Imagen borrada.") + + # Refresh at same index (or prev if last) + new_len = len(imgs) - 1 + if new_len == 0: + # Empty -> Go back + return await cb(c, type('obj', (object,), {'message': msg, 'data': f"ai_conf|cat|{cat}|{pid}|{gid}", 'answer': q.answer})()) + + if idx >= new_len: idx = new_len - 1 + + # Redirect to view + return await cb(c, type('obj', (object,), {'message': msg, 'data': f"ai_conf|catnav|{cat}|{idx}|view|{pid}|{gid}", 'answer': q.answer})()) + return + + # --- DELETE CATEGORY FLOW --- + if data.startswith("ai_conf|del_cat_ask|"): + parts = data.split("|") + cat, pid = parts[2], parts[3] + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("✅ Sí, Borrar", callback_data=f"ai_conf|del_cat_do|{cat}|{pid}"), + InlineKeyboardButton("❌ Cancelar", callback_data=f"ai_conf|cat|{cat}|{pid}")] + ]) + await msg.edit_text(f"🗑️ **¿Borrar categoría '{cat}'?**\n\nSe perderán todas las imágenes configuradas para esta reacción.", reply_markup=kb) + return + + if data.startswith("ai_conf|del_cat_do|"): + parts = data.split("|") + cat, pid = parts[2], parts[3] + + # Global + if pid in global_personas and 'images' in global_personas[pid] and cat in global_personas[pid]['images']: + del global_personas[pid]['images'][cat] + await save_global_persona(pid, global_personas[pid]) + + # Local + if pid in conf.get('ai_images', {}) and cat in conf['ai_images'][pid]: + del conf['ai_images'][pid][cat] + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Back to menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|body|{pid}", 'answer': q.answer, 'internal': True})()) + return + + # --- EDIT PERSONA FLOW --- + if data.startswith("ai_conf|edit_ask|"): + pid = data.split("|")[2] + # Ask what to edit + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("📝 Nombre", callback_data=f"ai_conf|edit_field|name|{pid}"), + InlineKeyboardButton("🧠 Prompt", callback_data=f"ai_conf|edit_field|prompt|{pid}")], + [InlineKeyboardButton("🔙 Cancelar", callback_data="menu|ai_config")] + ]) + await msg.edit_text(f"✏️ **Editar Personalidad:**\n¿Qué deseas cambiar?", reply_markup=kb) + return + + if data.startswith("ai_conf|edit_field|"): + parts = data.split("|") + field, pid = parts[2], parts[3] + + url_storage[cid] = {'action': 'ai_edit_p_wait', 'pid': pid, 'field': field} + + f_label = "Nombre" if field == 'name' else "Prompt" + await msg.edit_text(f"✍️ **Editando {f_label}:**\n\nEnvía ahora el nuevo valor.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data="menu|ai_config")]])) + return + + # --- DELETE PERSONA FLOW --- + if data.startswith("ai_conf|del_p_ask|"): + pid = data.split("|")[2] + cname = conf.get('custom_personas', {}).get(pid, {}).get('name', 'Custom') + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🗑 SÍ, ELIMINAR", callback_data=f"ai_conf|del_p_do|{pid}")], + [InlineKeyboardButton("🔙 Cancelar", callback_data="menu|ai_config")] + ]) + await msg.edit_text(f"⚠️ **¿Estás seguro de eliminar a '{cname}'?**\n\nEsta acción no se puede deshacer.", reply_markup=kb) + return + + if data.startswith("ai_conf|del_p_do|"): + pid = data.split("|")[2] + + # 1. Try Delete Global + await delete_global_persona_fb(pid) + await asyncio.sleep(0.5) # Wait for propagation + await refresh_globals() + + # 2. Try Delete Local (Legacy) + if 'custom_personas' in conf and pid in conf['custom_personas']: + del conf['custom_personas'][pid] + + # If was active, reset to nsfw + if conf.get('active_persona') == pid: + conf['active_persona'] = 'nsfw' + + # Clean images (Optional, can keep or delete) + # For global, images are in the document, so deleting doc deletes images. + # For local legacy images: + if 'ai_images' in conf and pid in conf['ai_images']: + del conf['ai_images'][pid] + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await q.answer("🗑 Personalidad eliminada.") + + # Go back to menu (Refresh) + # We call the menu handler directly. + # IMPORTANT: To ensure UI updates, we pass a dummy 'random' data or ensure menu rebuilds. + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': "menu|ai_config", 'answer': q.answer, 'internal': True})()) + return + + # --- MODE SETTER --- + if data.startswith("ai_conf|setmode|"): + parts = data.split("|") + cat, new_mode = parts[2], parts[3] + pid = parts[4] if len(parts) > 4 else 'nsfw' + + # Init structure + if 'ai_images' not in conf: conf['ai_images'] = {} + if pid not in conf['ai_images']: conf['ai_images'][pid] = {} + if cat not in conf['ai_images'][pid]: conf['ai_images'][pid][cat] = {'images': []} + + img_count = len(conf['ai_images'][pid][cat].get('images', [])) + + # Special Logic for Modes + if new_mode == 'single': + # Go to Catalog to Select + if img_count == 0: + await q.answer("⚠️ No hay imágenes. Sube alguna primero.", show_alert=True) + return + # Open Catalog in SELECT mode + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|nav|{cat}|0|select|{pid}", 'answer': q.answer, 'internal': True})()) + return + + elif new_mode == 'subset': + # Ask for numbers + if img_count == 0: + await q.answer("⚠️ No hay imágenes.", show_alert=True) + return + + # Store PID in storage for input handler + url_storage[cid] = {'ai_config_step': 'wait_subset', 'category': cat, 'persona_id': pid} + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data=f"ai_conf|cat|{cat}|{pid}")]]) + txt = (f"🔢 **Modo Personalizado ({cat.upper()})**\n\n" + f"Tienes **{img_count}** imágenes.\n" + f"Escribe los números que quieres usar, separados por espacio.\n" + f"Ejemplo: `1 3 5`") + if msg.photo or msg.video or msg.animation or msg.sticker or msg.document: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # For Random, just set and refresh + conf['ai_images'][pid][cat]['mode'] = new_mode + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|cat|{cat}|{pid}", 'answer': q.answer, 'internal': True})()) + return + + if data.startswith("ai_conf|nav|"): + parts = data.split("|") + # format: ai_conf|nav|cat|idx|mode|pid + cat, idx, mode = parts[2], int(parts[3]), parts[4] + pid = parts[5] if len(parts) > 5 else 'nsfw' + + ai_imgs = conf.get('ai_images', {}).get(pid, {}).get(cat, {'images': []}) + imgs = ai_imgs.get('images', []) + + if not imgs: + await q.answer("⚠️ No hay imágenes.", show_alert=True) + # Go back + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|cat|{cat}|{pid}", 'answer': q.answer, 'internal': True})()) + return + + # Wrap index + n = len(imgs) + if idx < 0: idx = n - 1 + if idx >= n: idx = 0 + + # Wrapper for legacy string items + item = imgs[idx] + if isinstance(item, str): item = {'id': item, 'type': 'photo'} + + file_id = item['id'] + ftype = item.get('type', 'photo') + + # Buttons + # Row 1: Nav + btn_prev = InlineKeyboardButton("⬅️", callback_data=f"ai_conf|nav|{cat}|{idx-1}|{mode}|{pid}") + btn_next = InlineKeyboardButton("➡️", callback_data=f"ai_conf|nav|{cat}|{idx+1}|{mode}|{pid}") + btn_count = InlineKeyboardButton(f"{idx+1}/{n}", callback_data="ignore") + + # Row 2: Action + if mode == 'select': + btn_action = InlineKeyboardButton("✅ Seleccionar", callback_data=f"ai_conf|act|{cat}|{idx}|select|{pid}") + else: # view + btn_action = InlineKeyboardButton("🗑 Borrar", callback_data=f"ai_conf|act|{cat}|{idx}|delete|{pid}") + + # Row 3: Back + btn_back = InlineKeyboardButton("🔙 Volver", callback_data=f"ai_conf|cat|{cat}|{pid}") + + kb = InlineKeyboardMarkup([ + [btn_prev, btn_count, btn_next], + [btn_action], + [btn_back] + ]) + + txt = f"🖼 **Catálogo ({cat.upper()})**\nItem {idx+1} de {n}\nTipo: {ftype.upper()}" + if mode == 'select': txt += "\n\n👇 Pulsa 'Seleccionar' para usar este." + + try: + # Media Switching logic (same as before) + if ftype == 'sticker': + await msg.delete() + await c.send_sticker(cid, file_id, reply_markup=kb) + elif ftype == 'video': + await msg.edit_media(InputMediaVideo(file_id, caption=txt), reply_markup=kb) + elif ftype == 'animation': + await msg.edit_media(InputMediaAnimation(file_id, caption=txt), reply_markup=kb) + else: + await msg.edit_media(InputMediaPhoto(file_id, caption=txt), reply_markup=kb) + + except Exception as e: + try: await msg.delete() + except: pass + if ftype == 'video': await c.send_video(cid, file_id, caption=txt, reply_markup=kb) + elif ftype == 'animation': await c.send_animation(cid, file_id, caption=txt, reply_markup=kb) + elif ftype == 'sticker': await c.send_sticker(cid, file_id, reply_markup=kb) + else: await c.send_photo(cid, file_id, caption=txt, reply_markup=kb) + return + + # --- ACTIONS (Select / Delete) --- + if data.startswith("ai_conf|act|"): + parts = data.split("|") + cat, idx, action = parts[2], int(parts[3]), parts[4] + pid = parts[5] if len(parts) > 5 else 'nsfw' + + if action == 'select': + # Set Config + if 'ai_images' not in conf: conf['ai_images'] = {} + if pid not in conf['ai_images']: conf['ai_images'][pid] = {} + if cat not in conf['ai_images'][pid]: conf['ai_images'][pid][cat] = {} + + # Get ID + imgs = conf['ai_images'][pid][cat].get('images', []) + if idx < len(imgs): + conf['ai_images'][pid][cat]['active'] = imgs[idx] + conf['ai_images'][pid][cat]['mode'] = 'single' + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await q.answer("✅ Imagen seleccionada.") + # Go back to menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|cat|{cat}|{pid}", 'answer': q.answer, 'internal': True})()) + return + + elif action == 'delete': + if 'ai_images' in conf and pid in conf['ai_images'] and cat in conf['ai_images'][pid]: + imgs = conf['ai_images'][pid][cat].get('images', []) + if idx < len(imgs): + # Delete + popped = imgs.pop(idx) + # Clean active if was this one + if conf['ai_images'][pid][cat].get('active') == popped: + conf['ai_images'][pid][cat]['active'] = None + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await q.answer("🗑 Borrada.") + + # Refresh nav (idx may change) + if not imgs: + # Empty -> Back to menu + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|cat|{cat}|{pid}", 'answer': q.answer, 'internal': True})()) + return + + # Show next (or prev if was last) + new_idx = idx if idx < len(imgs) else len(imgs) - 1 + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|nav|{cat}|{new_idx}|view|{pid}", 'answer': q.answer, 'internal': True})()) + return + + # --- UPLOAD TRIGGER --- + if data.startswith("ai_conf|upload|"): + parts = data.split("|") + cat = parts[2] + pid = parts[3] if len(parts) > 3 else 'nsfw' + + # Set user state + url_storage[cid] = {'ai_config_step': 'wait_image', 'category': cat, 'persona_id': pid} + + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data=f"ai_conf|cat|{cat}|{pid}")]]) + txt = (f"📤 **Subir Archivos a {cat.upper()}**\n\n" + f"Envía ahora tus fotos, videos, gifs o stickers.\n" + f"Se agregarán automáticamente a la personalidad: **{pid.upper()}**.") + + if msg.photo or msg.video or msg.animation or msg.sticker or msg.document: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + # --- ADD CUSTOM PERSONA TRIGGER --- + if data == "ai_add_persona": + # Set state + url_storage[cid] = {'ai_add_step': 'wait_name'} + + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data="menu|ai_config")]]) + txt = ("👤 **Nueva Personalidad**\n\n" + "Escribe el **NOMBRE** de tu nueva waifu/personalidad.\n" + "Ejemplo: `Goth Girl`, `Tsundere`, `Mi Novia`.") + + if msg.photo or msg.video or msg.animation or msg.sticker or msg.document: + await msg.delete() + await c.send_message(cid, txt, reply_markup=kb) + else: + await msg.edit_text(txt, reply_markup=kb) + return + + if data.startswith("ai_conf|upload|"): + cat = data.split("|")[2] + url_storage[cid] = {'ai_config_step': 'wait_image', 'category': cat} + + txt = f"📤 **Subir Imagen para {cat.upper()}**\n\nEnvíame la imagen (o varias si quieres armar pack)." + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Cancelar", callback_data=f"ai_conf|cat|{cat}")]]) + + if msg.photo or msg.caption: await msg.edit_caption(txt, reply_markup=kb) + else: await msg.edit_text(txt, reply_markup=kb) + return + + if data.startswith("ai_conf|clear|"): + cat = data.split("|")[2] + if 'ai_images' in conf and cat in conf['ai_images']: + # conf['ai_images'][cat]['images'] = [] # Clear list + # conf['ai_images'][cat]['active'] = None + # Better: Reset structure + conf['ai_images'][cat] = {'mode': 'single', 'images': [], 'active': None} + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await q.answer("🗑 Pack eliminado.", show_alert=True) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': f"ai_conf|cat|{cat}", 'answer': q.answer, 'internal': True})()) + return + if msg.photo or msg.caption: + await msg.edit_caption(txt, reply_markup=kb_tools) + else: + await msg.edit_text(txt, reply_markup=kb_tools) + return + + # 1. Iniciadores de Herramientas (Modos Exclusivos) + if data == "menu|join_init": + val, disabled = await set_exclusive_mode(cid, 'join_party_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + url_storage.pop(cid, None) # Limpiar clips previos + + await msg.edit_text( + "🔗 **Modo Unir Party Activo**\n\n🎬 **¡Envíame los clips ahora!**\nLos iré registrando uno por uno.", + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]]) + ) + return + + if data == "menu|party_init": + val, disabled = await set_exclusive_mode(cid, 'party_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🧩 Partes", callback_data="party_sel|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="party_sel|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="party_sel|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("🎉 **Modo Party Activo**\n\n1️⃣ **Configura** abajo 👇\n2️⃣ O **envía video** directo.", reply_markup=kb) + return + + if data == "menu|extract_init": + val, disabled = await set_exclusive_mode(cid, 'extract_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("🖼 **Modo Extractor Activo**\n\n🎬 Envíame un video para empezar a sacar fotogramas.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + if data == "menu|gif_init": + val, disabled = await set_exclusive_mode(cid, 'gif_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("🎬 **Creador de GIF Activo**\n\n🎬 Envíame el video que quieras convertir a GIF.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + if data == "menu|sticker_init": + val, disabled = await set_exclusive_mode(cid, 'sticker_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("🎭 **Creador de Stickers Activo**\n\n🖼 Envíame una imagen para convertirla en Sticker.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + if data == "menu|mp3_init": + val, disabled = await set_exclusive_mode(cid, 'mp3_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("🎵 **Extractor MP3 Activo**\n\n🎬 Envíame un video y extraeré el audio en MP3.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + if data == "menu|saucenao_init": + val, disabled = await set_exclusive_mode(cid, 'saucenao_mode') + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + await msg.edit_text("🔍 **Buscador SauceNAO Activo**\n\n🖼 Envíame una imagen (Anime/Art) para buscar su fuente.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + # 2. Menús de Configuración AUTO (Mockup del usuario) + + + if data.startswith("set_aj|"): + val = data.split("|")[1] == "on" + conf['auto_join_party'] = val + if val: + conf['auto_party'] = False + conf['auto_extract'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + # Volver a Herramientas (Bypass anti-spam) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + if data == "menu|auto_e_set": + s = "🟢 Activado (Siempre ON)" if conf.get('auto_extract') else "🔴 Desactivado (Auto-OFF)" + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🟢 Siempre Activo", callback_data="set_ae|on")], + [InlineKeyboardButton("🔴 Desactivar (Auto-OFF)", callback_data="set_ae|off")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + txt = f"🔁 **Auto Extractor**\n\nEstado Actual: {s}\n\nSi activas esto, el Extractor NO se desactivará tras procesar un video." + if msg.photo or msg.caption: await msg.edit_caption(txt, reply_markup=kb) + else: await msg.edit_text(txt, reply_markup=kb) + return + + + + + + + + + + # --- SECCION: EXTRACTOR DE IMAGENES --- + + if data == "extract_menu": + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("⏱ Segundos", callback_data="extract_sel|sec"), InlineKeyboardButton("🕒 Minutos", callback_data="extract_sel|min")], + [InlineKeyboardButton("🎯 Frame Exacto", callback_data="extract_sel|exact")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + txt = "🖼 **Opciones de Extracción**\n¿Cómo quieres extraer las imágenes?" + if msg.photo or msg.caption: await msg.edit_caption(txt, reply_markup=kb) + else: await msg.edit_text(txt, reply_markup=kb) + return + + if data.startswith("extract_sel|"): + mode = data.split("|")[1] + if mode == "sec": + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("5s", callback_data="extract_val|sec|5"), InlineKeyboardButton("10s", callback_data="extract_val|sec|10")], + [InlineKeyboardButton("15s", callback_data="extract_val|sec|15"), InlineKeyboardButton("20s", callback_data="extract_val|sec|20")], + [InlineKeyboardButton("25s", callback_data="extract_val|sec|25"), InlineKeyboardButton("30s", callback_data="extract_val|sec|30")], + [InlineKeyboardButton("45s", callback_data="extract_val|sec|45"), InlineKeyboardButton("60s", callback_data="extract_val|sec|60")], + [InlineKeyboardButton("✏ Personalizado", callback_data="extract_val|sec|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="extract_menu")] + ]) + await msg.edit_text("⏱ **Extraer cada X Segundos**\nSelecciona el intervalo:", reply_markup=kb) + elif mode == "min": + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("5m", callback_data="extract_val|min|5"), InlineKeyboardButton("10m", callback_data="extract_val|min|10")], + [InlineKeyboardButton("15m", callback_data="extract_val|min|15"), InlineKeyboardButton("20m", callback_data="extract_val|min|20")], + [InlineKeyboardButton("25m", callback_data="extract_val|min|25"), InlineKeyboardButton("30m", callback_data="extract_val|min|30")], + [InlineKeyboardButton("✏ Personalizado", callback_data="extract_val|min|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="extract_menu")] + ]) + await msg.edit_text("🕒 **Extraer cada X Minutos**\nSelecciona el intervalo:", reply_markup=kb) + elif mode == "exact": + await msg.edit_text("🎯 **Frame Exacto**\nEnvíame el tiempo exacto (ej: `01:23` o `45`) para extraer ese fotograma:", + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="extract_menu")]])) + url_storage[cid] = {'extract_step': 'wait_exact', 'file': url_storage.get(cid, {}).get('file')} + return + + if data.startswith("extract_val|"): + pts = data.split("|") + mode, val = pts[1], pts[2] + st = url_storage.get(cid, {}) + f_p = st.get('file') + + # 1. Custom Check FIRST (Avoid DL) + if val == "custom": + await msg.edit_text(f"✏ **Intervalo Personalizado ({mode})**\nEnvíame el número de {mode} deseado:", + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data=f"extract_sel|{mode}")]])) + # Preserve ST (keep extract_msg) + st['extract_step'] = f'wait_custom_{mode}' + url_storage[cid] = st + return + + # 2. Deferred Download (Only if NOT custom) + if not f_p or not os.path.exists(f_p): + extract_msg = st.get('extract_msg') + if extract_msg: + # Confirmacion Visual + await msg.edit(f"✅ **Configurado: {val} ({mode})**") + wait = await msg.reply(f"⬇️ **Descargando para extraer...**\n🚀 Velocidad Máxima Activada") + + from utils import download_parallel + from tools_media import progreso + import random + import config + + # Create Temp Dir + tool_folder = os.path.join(config.DATA_DIR, "extract_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + job_dir = os.path.join(tool_folder, f"job_{cid}_{time.time_ns()}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + # Ext guess + ext = ".mp4" + if extract_msg.video and extract_msg.video.file_name: _, ext = os.path.splitext(extract_msg.video.file_name) + elif extract_msg.document and extract_msg.document.file_name: _, ext = os.path.splitext(extract_msg.document.file_name) + + f_p = await download_parallel(c, extract_msg, os.path.join(job_dir, f"extract_{cid}{ext}"), progress=progreso, progress_args=(wait, [0,0], "Descargando")) + if not f_p: f_p = await c.download_media(extract_msg, file_name=os.path.join(job_dir, f"extract_{cid}{ext}")) + + if not f_p: + await wait.edit("❌ Error descargando video.") + return + + # Update storage + st['file'] = f_p + url_storage[cid] = st + else: + return await q.answer("❌ Video expiró.", show_alert=True) + + # Ejecutar lógica + await run_extract_logic(c, cid, f_p, mode, val, msg) + return + + + if data.startswith("set_ae|"): + val = data.split("|")[1] == "on" + conf['auto_extract'] = val + if val: + conf['auto_party'] = False + conf['auto_join_party'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + return + + + + # --- SECCION: PARTY MODE REFACTORED --- + + # --- AUTO PARTY MENU & CUSTOM --- + if data == "menu|autoparty_menu": + is_on = conf.get('auto_party', False) + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|auto_party")], + [InlineKeyboardButton("⚙️ Personalizado", callback_data="menu|auto_party_custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await msg.edit_text("🔁 **Menu Auto Party**\n\nSi activas esto, el Modo Party NO se desactivará al terminar un video.\nTodos los videos que envíes serán procesados.", reply_markup=kb) + return + + if data == "menu|auto_party_custom": + cust_on = conf.get('auto_party_custom', False) + cust_cfg = conf.get('auto_party_cfg') + + txt_cfg = "Sin Config" + if cust_cfg: + m, v = cust_cfg + txt_cfg = f"{m}={v}" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Fijo: {'🟢 SI' if cust_on else '🔴 NO'}", callback_data="auto_party_toggle|custom")], + [InlineKeyboardButton(f"🔧 Config: {txt_cfg}", callback_data="ignore")], + [InlineKeyboardButton("🧩 Partes", callback_data="auto_party_set_mode|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="auto_party_set_mode|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="auto_party_set_mode|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|autoparty_menu")] + ]) + await msg.edit_text("⚙️ **Auto Party Personalizado**\n\nSi 'Fijo' está ON, usaré siempre esta configuración sin preguntar por cada video.", reply_markup=kb) + return + + if data == "auto_party_toggle|custom": + conf['auto_party_custom'] = not conf.get('auto_party_custom', False) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|auto_party_custom', 'answer': q.answer, 'internal': True})()) + return + + if data.startswith("auto_party_set_mode|"): + mode = data.split("|")[1] + if mode == "parts": + bts = [ + [InlineKeyboardButton("2", callback_data="auto_party_save|parts|2"), InlineKeyboardButton("3", callback_data="auto_party_save|parts|3"), InlineKeyboardButton("4", callback_data="auto_party_save|parts|4")], + [InlineKeyboardButton("5", callback_data="auto_party_save|parts|5"), InlineKeyboardButton("10", callback_data="auto_party_save|parts|10")], + [InlineKeyboardButton("✏️ Manual", callback_data="auto_party_input|parts")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|auto_party_custom")] + ] + await msg.edit("🧩 **(Auto) Dividir en Partes**\nConfiguración por defecto:", reply_markup=InlineKeyboardMarkup(bts)) + elif mode == "time": + bts = [ + [InlineKeyboardButton("10s", callback_data="auto_party_save|sec|10"), InlineKeyboardButton("30s", callback_data="auto_party_save|sec|30"), InlineKeyboardButton("1m", callback_data="auto_party_save|min|1")], + [InlineKeyboardButton("5m", callback_data="auto_party_save|min|5"), InlineKeyboardButton("10m", callback_data="auto_party_save|min|10")], + [InlineKeyboardButton("✏️ Manual", callback_data="auto_party_input|sec")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|auto_party_custom")] + ] + await msg.edit("⏱ **(Auto) Por Duración**\nConfiguración por defecto:", reply_markup=InlineKeyboardMarkup(bts)) + elif mode == "range": + url_storage[cid] = {'auto_party_input_mode': 'range'} + await msg.edit("✂️ **(Auto) Rango Fijo**\nEnvía el rango (ej: `00:00 00:10`).\nSe aplicará a TODOS los videos (cuidado si duran menos).", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|auto_party_custom")]])) + return + + if data.startswith("auto_party_save|"): + pts = data.split("|") + mode, val = pts[1], pts[2] + conf['auto_party_cfg'] = (mode, val) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|auto_party_custom', 'answer': q.answer, 'internal': True})()) + return + + if data.startswith("auto_party_input|"): + mode = data.split("|")[1] + url_storage[cid] = {'auto_party_input_mode': mode} + await msg.edit(f"✍️ **Ingresa el valor Auto ({mode}):**", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|auto_party_custom")]])) + return + + # --- JOIN PARTY EXECUTE --- + if data == "party_join_now": + # Usamos la lógica compartida (inyección de dependencias si hiciera falta, pero es global) + await run_join_party_logic(c, cid, msg) + return + + # 1. Menu Principal Party (Opciones o Iniciador) + if data == "party_menu": + # Usar set_exclusive_mode para asegurar limpieza + await set_exclusive_mode(cid, 'party_mode') + + # Recargar config actualizada + conf = get_config(cid) + + # MOSTRAR MENU SIEMPRE (Refactor: Pre-Config or Post-Config) + # Opciones de configuración + kb_p = InlineKeyboardMarkup([ + [InlineKeyboardButton("🧩 Partes", callback_data="party_sel|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="party_sel|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="party_sel|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + st = url_storage.get(cid) + if st and 'file' in st and os.path.exists(st['file']): + # YA tenemos video -> Mostrar Video Options + await msg.edit("✂️ **Modo Party (Video Cargado)**\nSelecciona una opción para procesar:", reply_markup=kb_p) + else: + # NO tenemos video -> Mostrar Opciones de Pre-Configuración + await msg.edit_text("✂️ **Modo Party Activo**\n\n1️⃣ **Configura** el corte abajo 👇\n2️⃣ O **envía el video** directo (te preguntaré después).", reply_markup=kb_p) + return + + # 2. Selección de Herramienta Party + if data.startswith("party_sel|"): + mode = data.split("|")[1] + if mode == "parts": + bts = [ + [InlineKeyboardButton("2", callback_data="party_exec|parts|2"), InlineKeyboardButton("3", callback_data="party_exec|parts|3"), InlineKeyboardButton("4", callback_data="party_exec|parts|4")], + [InlineKeyboardButton("5", callback_data="party_exec|parts|5"), InlineKeyboardButton("10", callback_data="party_exec|parts|10")], + [InlineKeyboardButton("✏️ Manual", callback_data="party_input|parts")], + [InlineKeyboardButton("🔙 Volver", callback_data="party_menu")] # Volver a Opciones + ] + await msg.edit("🧩 **Dividir en Partes**\n¿En cuántas partes cortarlo?", reply_markup=InlineKeyboardMarkup(bts)) + elif mode == "time": + bts = [ + [InlineKeyboardButton("10s", callback_data="party_exec|sec|10"), InlineKeyboardButton("30s", callback_data="party_exec|sec|30"), InlineKeyboardButton("1m", callback_data="party_exec|min|1")], + [InlineKeyboardButton("5m", callback_data="party_exec|min|5"), InlineKeyboardButton("10m", callback_data="party_exec|min|10")], + [InlineKeyboardButton("✏️ Manual (seg)", callback_data="party_input|sec"), InlineKeyboardButton("✏️ Manual (min)", callback_data="party_input|min")], + [InlineKeyboardButton("🔙 Volver", callback_data="party_menu")] # Volver a Opciones + ] + await msg.edit("⏱ **Dividir por Duración**\n¿De cuánto cada parte?", reply_markup=InlineKeyboardMarkup(bts)) + elif mode == "range": + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['party_input_mode'] = 'range' + await msg.edit("✂️ **Cortar Rango(s)**\n\nEnvía pares de inicio y fin.\nEjemplo: `00:10 01:30` (Un corte)\nEjemplo Múltiple: `00:10 00:20 01:00 01:30` (Dos cortes)", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="party_menu")]])) + return + + if data.startswith("party_input|"): + mode = data.split("|")[1] + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['party_input_mode'] = mode + await msg.edit(f"✍️ **Ingresa el valor** para dividir ({mode}):", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="party_sel|"+mode if mode in ['parts'] else "party_menu")]])) + return + + if data.startswith("party_exec|"): + pts = data.split("|") + mode, val = pts[1], pts[2] + st = url_storage.get(cid, {}) + + # Si se lanzó sin archivo (por config previa rara?), pedir video + if 'file' not in st: + # --- DEFERRED DOWNLOAD LOGIC --- + if 'party_msg' in st or msg.reply_to_message: + # Tarea Asíncrona (Queue System) + + async def party_worker(client, chat_id, message_vid, mode_w, val_w, wait_msg): + # Check Queue Status + if SEM_PARTY.locked(): + try: + await wait_msg.edit(f"⏳ **En Cola (Posición {len(SEM_PARTY._waiters) if hasattr(SEM_PARTY, '_waiters') else '?'})...**\nEsperando turno.") + except: pass + + async with SEM_PARTY: + try: + await wait_msg.edit(f"⬇️ **Bajando video para {mode_w}={val_w}...**\n(Descarga Diferida)") + + from utils import download_parallel + from tools_media import progreso + + # Determinar extensión + ext = ".mp4" + if message_vid.audio: ext = ".mp3" + if message_vid.document and message_vid.document.file_name: _, ext = os.path.splitext(message_vid.document.file_name) + elif message_vid.video and message_vid.video.file_name: _, ext = os.path.splitext(message_vid.video.file_name) + elif message_vid.audio and message_vid.audio.file_name: _, ext = os.path.splitext(message_vid.audio.file_name) + + f_p = await download_parallel(client, message_vid, os.path.join(DATA_DIR, f"party_{chat_id}_{message_vid.id}{ext}"), concurrency=8, progress=progreso, progress_args=(wait_msg, [0,0], "Descargando")) + if not f_p: f_p = await client.download_media(message_vid, file_name=os.path.join(DATA_DIR, f"party_{chat_id}_{message_vid.id}{ext}")) + + if f_p and os.path.exists(f_p): + # Proceed with Logic + await run_party_logic(client, chat_id, f_p, mode_w, val_w, wait_msg) + else: + await wait_msg.edit("❌ Error en descarga diferida.") + except Exception as e: + print(f"Party Worker Error: {e}") + try: await wait_msg.edit(f"❌ Error interno: {e}") + except: pass + + # Detectar mensaje origen (Reply o Storage) + m_target = msg.reply_to_message if msg.reply_to_message else st.get('party_msg') + + if m_target: + # Lanzar Worker + wait = await msg.edit(f"⏳ **Añadido a la cola**...") + asyncio.create_task(party_worker(c, cid, m_target, mode, val, wait)) + url_storage.pop(cid, None) + return + else: + await msg.edit("❌ Error: No se encontró el video original.") + return + + else: + url_storage[cid] = st + url_storage[cid]['party_pending'] = (mode, val) + await msg.edit(f"✅ **Configurado:** `{mode}={val}`\n\n🎬 **Ahora envíame el video** para procesarlo.") + return + + # EJECUTAR DIRECTAMENTE + await msg.delete() + await run_party_logic(c, cid, st['file'], mode, val) + url_storage.pop(cid, None) + return + + # --- CUT INIT LOGIC --- + if data.startswith("cut_input|"): + mode = data.split("|")[1] + url_storage[cid] = url_storage.get(cid, {}) + url_storage[cid]['cut_input_mode'] = mode + await msg.edit(f"✍️ **Ingresa el tiempo a eliminar del inicio**\n\nEjemplos: `10` (segundos), `01:20` (min:seg).\nEl video empezará desde ese punto.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")]])) + return + + if data.startswith("cut_exec|"): + val = data.split("|")[1] + st = url_storage.get(cid, {}) + f_path = st.get('file') + + if not f_path or not os.path.exists(f_path): + await q.answer("❌ El archivo expiró.", show_alert=True) + return + + await msg.edit(f"✂️ **Cortando inicio ({val})...**\nProcesando...") + + from tools_media import cut_video_start, get_meta, get_thumb + + # FIX: Call async directly (now re-encoding) + out = await cut_video_start(f_path, val) + + if out: + await msg.edit("📤 **Enviando video cortado...**") + w, h, dur = await get_meta(out) + t_path = await get_thumb(out, cid, int(time.time())) + + from tools_media import progreso + try: + await c.send_video(cid, out, width=w, height=h, duration=dur, thumb=t_path, caption=f"✂️ **Corte Inicial ({val})**", progress=progreso, progress_args=(msg, [0,0], None)) + except Exception as e: + await c.send_document(cid, out, caption=f"✂️ **Corte Inicial ({val})**", progress=progreso, progress_args=(msg, [0,0], None)) + + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(out): os.remove(out) + await msg.delete() + + # Auto-OFF + conf['cut_init_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + else: + await msg.edit("❌ Error al cortar el video.") + + # Cleanup original + if os.path.exists(f_path): os.remove(f_path) + url_storage.pop(cid, None) + return + + # --- SECCION: DESCARGAS --- + if data.startswith("dl|"): + raw_val = data.split("|")[1] + quality, l_key = None, cid # Fallback legacy + + if "_" in raw_val: + quality, lid = raw_val.rsplit("_", 1) + l_key = f"{cid}_{lid}" + d_st = url_storage.get(l_key) + + # Falback / Debug + if not d_st: + print(f"❌ [DEBUG] Key Missing: {l_key}. Available Keys in keys(): {[k for k in url_storage.keys() if str(cid) in str(k)]}") + else: + quality = raw_val + d_st = url_storage.get(cid) + + if not d_st: return await q.answer("⚠️ Link expiró o es muy antiguo.", show_alert=True) + + await msg.delete() + # url_storage.pop(l_key, None) # PERSISTENCE FIX: Do not delete immediately to allow re-clicks or queue checks + + d_st['fast_enabled'] = conf.get('fast_enabled', True) + target_msg = msg.reply_to_message if msg.reply_to_message else msg + asyncio.create_task(procesar_descarga(c, cid, d_st['url'], quality, d_st, target_msg)) + return + + # --- SECCION: CONFIGURACION --- + if data.startswith("toggle|"): + k = data.split("|")[1] + + # --- MODIFIERS (NON-EXCLUSIVE) --- + if k == "meta": conf['meta'] = not conf.get('meta', True) + elif k == "fast": conf['fast_enabled'] = not conf.get('fast_enabled', True) + elif k == "doc": conf['doc_mode'] = not conf.get('doc_mode', False) + elif k == "group": conf['group_mode'] = not conf.get('group_mode', True) + elif k == "lang": conf['lang'] = 'es' if conf.get('lang', 'es') == 'orig' else 'orig' + elif k == "fmt": conf['fmt'] = 'mp3' if conf.get('fmt', 'mp4') == 'mp4' else 'mp4' + elif k == "party_zip": conf['party_zip'] = not conf.get('party_zip', False) + elif k == "join_party_zip": conf['join_party_zip'] = not conf.get('join_party_zip', False) + elif k == "extract_party_zip": conf['extract_party_zip'] = not conf.get('extract_party_zip', True) + elif k == "ai_green_mode": conf['ai_green_mode'] = not conf.get('ai_green_mode', False) + elif k == "ai_focus_mode": conf['ai_focus_mode'] = not conf.get('ai_focus_mode', False) + + # --- TOOLS SPECIFIC MODES --- + elif k == "doc_tools": conf['doc_mode_tools'] = not conf.get('doc_mode_tools', False) + elif k == "group_tools": conf['group_mode_tools'] = not conf.get('group_mode_tools', False) + + # --- FUSION MODE (Exclusive) --- + elif k == "fusion": + new_val, disabled = await set_exclusive_mode(cid, 'fusion_mode', is_toggle=True) + # Refresh Menu + from tools_fusion import init_fusion_menu + + # Delete old message to avoid spam if it was a menu + try: await msg.delete() + except: pass + + await init_fusion_menu(c, cid, conf) + + txt = "🟢 ACTIVADO" if new_val else "🔴 DESACTIVADO" + if disabled: txt += f"\n(🛑 Se desactivó: {disabled})" + await q.answer(txt) + return + + # --- EXCLUSIVE MODES --- + elif k == "tagger": + val, disabled = await set_exclusive_mode(cid, 'tagger_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + elif k == "research": + val, disabled = await set_exclusive_mode(cid, 'research_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + elif k == "translate_manga": + val, disabled = await set_exclusive_mode(cid, 'translate_manga_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + elif k == "sub_auto": + val, disabled = await set_exclusive_mode(cid, 'sub_auto_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + elif k == "auto_party": + val, disabled = await set_exclusive_mode(cid, 'auto_party', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|autoparty_menu', 'answer': q.answer, 'internal': True})()) + return + elif k == "auto_join_party": + val, disabled = await set_exclusive_mode(cid, 'auto_join_party', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # MENU REFRESH LOGIC + # If from tools or known tool toggle + if k in ["party_zip", "join_party_zip", "extract_party_zip", "auto_join_party", "tagger", "research", "translate_manga", "sub_auto", "doc_tools", "group_tools"]: + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|tools', 'answer': q.answer, 'internal': True})()) + elif k in ["ai_green_mode", "ai_focus_mode"]: + await cb(c, type('obj', (object,), {'message': msg, 'from_user': q.from_user, 'data': 'menu|ai_config', 'answer': q.answer, 'internal': True})()) + else: + await msg.edit_reply_markup(gen_kb(conf, uid)) + return + + # --- LOGICA: EJECUTAR UNIÓN --- + if data == "party_join_now": + st = url_storage.get(cid) + if not st or 'join_clips' not in st or not st['join_clips']: + return await q.answer("❌ No hay clips registrados.", show_alert=True) + + clips = st['join_clips'] + url_storage.pop(cid, None) # Limpiar inmediatamente + + await msg.edit_text(f"⏳ **Descargando {len(clips)} clips...**\nEsto puede tardar según el tamaño.") + + from utils import merge_videos_ffmpeg, download_parallel + paths = [] + try: + # 1. Descargar todos (Modo TURBO x16) + for i, m_clip in enumerate(clips): + await msg.edit_text(f"🚀 **Bajando CLIP {i+1}/{len(clips)} (TURBO x16)...**") + p = await download_parallel(c, m_clip, os.path.join(DATA_DIR, f"join_{cid}_{i}.mp4")) + if p: paths.append(p) + + if len(paths) < 2: + await msg.edit_text("❌ Error: Se necesitan al menos 2 clips válidos.") + return + + # 2. Unir + await msg.edit_text(f"🎬 **Fucionando {len(paths)} clips...**\nEspere un momento.") + out_p = os.path.join(DATA_DIR, f"joined_{cid}_{int(time.time())}.mp4") + final_v = await asyncio.get_running_loop().run_in_executor(None, lambda: merge_videos_ffmpeg(paths, out_p)) + + if not final_v or not os.path.exists(final_v): + await msg.edit_text("❌ Error al unir los videos.") + return + + # 3. Enviar + await msg.edit_text("📤 **Enviando video unido...**") + + limit_bytes = 1.9 * 1024 * 1024 * 1024 + + # --- LOGICA: ZIP (Modo Unir) --- + if conf.get('join_party_zip', False): + await msg.edit_text("📦 **Comprimiendo en ZIP...**") + from utils import create_split_zips, split_file_into_volumes + # Crear zip inicial + zip_files = await asyncio.get_running_loop().run_in_executor(None, lambda: create_split_zips([final_v], f"Joined_Party_{cid}")) + + if zip_files: + for zp in zip_files: + # Si el ZIP resultante es > 1.9GB (raro para un solo video pero posible), dividir en volúmenes + if os.path.getsize(zp) > limit_bytes: + await msg.edit_text("📦 **Archivo masivo detectado, dividiendo en volúmenes...**") + volumes = await asyncio.get_running_loop().run_in_executor(None, lambda: split_file_into_volumes(zp, limit_bytes)) + for vol in volumes: + await c.send_document(cid, vol, caption=f"📦 **ZIP Volumen**: `{os.path.basename(vol)}`") + if os.path.exists(vol) and vol != zp: os.remove(vol) + else: + await c.send_document(cid, zp, caption="📦 **Join Party ZIP**") + + if os.path.exists(zp): os.remove(zp) + else: + await msg.edit_text("❌ Error al comprimir el video.") + else: + from tools_media import get_meta, get_thumb + from utils import split_video_by_size + + # Chequeo de tamaño para video directo + final_size = os.path.getsize(final_v) + v_to_send = [final_v] + + if final_size > limit_bytes: + await msg.edit_text("🎬 **Video muy grande detectado, dividiendo en partes jugables...**") + v_to_send = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_by_size(final_v, limit_bytes)) + + # Enviar partes + for i, v_part in enumerate(v_to_send): + w, h, dur = await get_meta(v_part) + thm = await get_thumb(v_part, cid, f"join_{int(time.time())}_{i}") + + # Respetar Doc Mode + is_doc = conf.get('doc_mode', False) + cap = f"🔗 **Video Unido Part {i+1}**" if len(v_to_send) > 1 else "🔗 **Video Unido (Party Join)**" + + if is_doc: + await c.send_document(cid, v_part, thumb=thm, caption=cap) + else: + await c.send_video(cid, v_part, width=w, height=h, duration=dur, thumb=thm, caption=cap) + + if thm and os.path.exists(thm): os.remove(thm) + if v_part != final_v and os.path.exists(v_part): os.remove(v_part) + + if os.path.exists(final_v): os.remove(final_v) + for p in paths: + if os.path.exists(p): os.remove(p) + + await msg.delete() + + # Auto Disable Logic (Igual que Party Mode) + if not conf.get('auto_join_party', False): + conf['join_party_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, "✅ **Unión finalizada.**\nModo Unir Party desactivado.", reply_markup=gen_kb(conf, cid)) + + except Exception as e: + await msg.edit_text(f"❌ Error crítico en Join: {e}") + return + + if data == "menu|auto": + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🌟 Máxima Calidad", callback_data="set_auto|max")], + [InlineKeyboardButton("📉 Mínimo Peso", callback_data="set_auto|min")], + [InlineKeyboardButton("🔴 Desactivar", callback_data="set_auto|off")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|main")] + ]) + await msg.edit_text("⚙️ **Auto-Descarga**", reply_markup=kb) + return + + if data.startswith("set_auto|"): + v = data.split("|")[1] + conf['q_auto'] = None if v == "off" else v + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await msg.edit_text("⚙️ **Configuración Actualizada**", reply_markup=gen_kb(conf, uid)) + return + + if data == "menu|party_off": + conf['party_mode'] = False + url_storage.pop(cid, None) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await msg.edit_text("⚙️ **Panel de Configuración**\n🛑 Se desactivó el modo/herramienta: Modo Party", reply_markup=gen_kb(conf, uid)) + return + + if data == "menu|main": + await msg.edit_text("⚙️ **Panel de Configuración**", reply_markup=gen_kb(conf, uid)) + return + + if data == "menu|admin" or data == "admin|refresh": + if uid != OWNER_ID: return await q.answer("🔒", show_alert=True) + + # --- Estadísticas del Sistema --- + cpu = psutil.cpu_percent() + ram = psutil.virtual_memory().percent + + # Red (MB enviados desde arranque) + net = psutil.net_io_counters() + sent = net.bytes_sent / (1024*1024) + recv = net.bytes_recv / (1024*1024) + + # --- Estadísticas de Tareas Detalladas --- + from database import get_all_progress + all_prog = get_all_progress() + + active_tasks_count = 0 + tasks_detail = [] + + # Usuarios únicos interactuando + active_users_interact = len(url_storage) + + for cid_task, msg_map in all_prog.items(): + try: + u_info = await c.get_users(cid_task) + u_name = u_info.first_name + except: u_name = f"ID:{cid_task}" + + for mid, info in msg_map.items(): + active_tasks_count += 1 + p = info.get('percent', 0) + s = info.get('status', 'Procesando') + sp = info.get('speed', 'N/A') + nm = info.get('name', 'Archivo')[:20] + u = info.get('url', 'N/A') + # Formato: 👤 Nombre: [Descargando] 45% (12MB/s) - Video - Link + tasks_detail.append(f"👤 **{u_name}**: [{s}] `{int(p)}%` ({sp})\n📝 _{nm}_ | 🔗 {u}") + + from firebase_service import db + st_doc = db.collection('bot_settings').document('stats').get() + u_count = st_doc.to_dict().get('user_count', 0) if st_doc.exists else 0 + + txt = ( + f"👮‍♂️ **Panel de Control Total**\n" + f"━━━━━━━━━━━━━━━━━━━━━━\n\n" + f"📊 **SISTEMA**\n" + f"🖥 **CPU:** `{cpu}%` | 🧠 **RAM:** `{ram}%`\n" + f"⬆️ **Subido:** `{sent:.1f} MB` | ⬇️ **Bajado:** `{recv:.1f} MB`\n\n" + f"👥 **ESTADÍSTICAS**\n" + f"✨ **Usuarios Totales:** `{u_count}`\n" + f"🖱 **Interactuando:** `{active_users_interact}`\n" + f"🔥 **Tareas en Vivo:** `{active_tasks_count}`\n\n" + + ("\n".join(tasks_detail[:15]) if tasks_detail else "_Sin tareas activas_") + + (f"\n_... y {len(tasks_detail)-15} más_" if len(tasks_detail) > 15 else "") + + f"\n\n🆔 **Tu ID:** `{uid}`" + ) + + kb_admin = InlineKeyboardMarkup([ + [InlineKeyboardButton("🔄 Actualizar", callback_data="admin|refresh")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|main")] + ]) + + if data == "admin|refresh": + try: await msg.edit_text(txt, reply_markup=kb_admin) + except: pass + else: + await msg.edit_text(txt, reply_markup=kb_admin) + return + + # --- SECCION: FUSION TOOL --- + if data.startswith("fus_opt|"): + opt = data.split("|")[1] # v_on, v_off, a_on, a_off + st = url_storage.get(cid) + if not st: return await q.answer("❌ Sesión expirada.", show_alert=True) + + # Logic + if opt == "v_on": st['keep_v'] = True + elif opt == "v_off": st['keep_v'] = False + elif opt == "a_on": st['keep_a'] = True + elif opt == "a_off": st['keep_a'] = False + + url_storage[cid] = st + + # Re-render KB + kv = st.get('keep_v', False) + ka = st.get('keep_a', True) + + t_v = "🔊 Video: ON" if kv else "🔇 Video: OFF" + t_a = "🔊 Audio: ON" if ka else "🔇 Audio: OFF" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(t_v, callback_data=f"fus_opt|{'v_off' if kv else 'v_on'}"), + InlineKeyboardButton(t_a, callback_data=f"fus_opt|{'a_off' if ka else 'a_on'}")], + [InlineKeyboardButton("✅ FUSIONAR", callback_data="fus_exec")], + [InlineKeyboardButton("❌ Cancelar", callback_data="cancel")] + ]) + await msg.edit_reply_markup(kb) + return + + if data == "fus_exec": + st = url_storage.get(cid) + if not st or 'video_path' not in st or 'audio_path' not in st: + return await q.answer("❌ Falta información.", show_alert=True) + + v_path = st['video_path'] + a_path = st['audio_path'] + keep_v = st.get('keep_v', False) + keep_a = st.get('keep_a', True) + + url_storage.pop(cid, None) # Clear immediately + + await msg.edit_text("🧬 **Fusionando Streams...**\n(Cortando audio al tamaño del video...)") + + from tools_fusion import process_fusion, get_thumb + from tools_media import get_meta + from utils import DATA_DIR + + out_path = os.path.join(DATA_DIR, f"fusion_{cid}_{int(time.time())}.mp4") + + success, err = await process_fusion(v_path, a_path, out_path, keep_video_audio=keep_v, keep_added_audio=keep_a) + + if success: + await msg.edit_text("📤 **Enviando Fusión...**") + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time()), duration=dur) + + try: + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, thumb=t_path, + caption=f"🧬 **Video Fusionado**\n🔊 V:{'ON' if keep_v else 'OFF'} | 🎵 A:{'ON' if keep_a else 'OFF'}" + ) + except Exception as e: + await c.send_document(cid, out_path, thumb=t_path, caption="🧬 **Video Fusionado**") + + # Cleanup + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(out_path): os.remove(out_path) + await msg.delete() + else: + await msg.edit_text(f"❌ Error en Fusión:\n`{err}`") + + # Cleanup Inputs + if os.path.exists(v_path): os.remove(v_path) + if os.path.exists(a_path): os.remove(a_path) + return + + # --- SECCION: MANGA FLOW --- + if data == "menu|mflow": + await q.answer("🔄 Cargando catálogo...") + mgs = await get_all_mangas_paginated() + if not mgs: return await q.answer("⚠️ Catálogo vacío.", show_alert=True) + url_storage[cid] = {'catalog_list': mgs} + curr = mgs[0] + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("⬅️", callback_data=f"catalog|nav|{len(mgs)-1}"), InlineKeyboardButton(f"1/{len(mgs)}", callback_data="ignore"), InlineKeyboardButton("➡️", callback_data=f"catalog|nav|1")], + [InlineKeyboardButton("📥 VER MANGA", callback_data=f"catalog|sel|{curr['id']}")], + [InlineKeyboardButton("🔙 Salir", callback_data="menu|main")] + ]) + txt = f"📚 **Manga Flow**\n\n📌 **{curr['title']}**\n👤 {curr['author']}" + if curr.get('cover'): + await msg.delete() + await c.send_photo(cid, curr['cover'], caption=txt, reply_markup=kb) + else: + await msg.edit(txt, reply_markup=kb) + return + + if data.startswith("catalog|"): + m_m = data.split("|")[1] + if m_m == "nav": + px = int(data.split("|")[2]) + lst = url_storage.get(cid, {}).get('catalog_list', []) + if not lst: return + if px < 0: px = len(lst)-1 + if px >= len(lst): px = 0 + cur = lst[px] + kb_n = InlineKeyboardMarkup([[InlineKeyboardButton("⬅️", callback_data=f"catalog|nav|{px-1}"), InlineKeyboardButton(f"{px+1}/{len(lst)}", callback_data="ignore"), InlineKeyboardButton("➡️", callback_data=f"catalog|nav|{px+1}")], [InlineKeyboardButton("📥 VER", callback_data=f"catalog|sel|{cur['id']}")], [InlineKeyboardButton("🔙 Salir", callback_data="menu|main")]]) + await msg.edit_media(InputMediaPhoto(cur['cover'], caption=f"📚 **Manga Flow**\n📌 **{cur['title']}**"), reply_markup=kb_n) + elif m_m == "sel": + mi = data.split("|")[2] + t = next((m for m in url_storage[cid]['catalog_list'] if m['id'] == mi), None) + url_storage[cid]['manga_data'] = t + # AÑADIDO BOTÓN IMAGENES + kb_d = InlineKeyboardMarkup([ + [InlineKeyboardButton("📦 ZIP", callback_data="manga_sel|zip"), InlineKeyboardButton("📄 PDF", callback_data="manga_sel|pdf")], + [InlineKeyboardButton("🖼 Ver Imágenes", callback_data="manga_sel|images")], + [InlineKeyboardButton("🔙 Volver", callback_data="catalog|nav|0")] + ]) + await msg.edit_caption(f"📚 **{t['title']}**\nDescargar:", reply_markup=kb_d) + return + + if data.startswith("manga_sel|"): + pts = data.split("|") + mg = url_storage.get(cid, {}).get('manga_data') + + # Si eligió formato, preguntar calidad (si es ZIP/PDF) o enviar directo (Imagenes) + if len(pts) == 2: + fmt = pts[1] + if fmt == "images": + await msg.delete() + sm = await c.send_message(cid, f"⏳ Obteniendo imágenes...") + + # FIX: Respetar configuración de Doc y Grupo + conf = get_config(cid) + doc_m = conf.get('doc_mode', False) + grp_m = conf.get('group_mode', True) + + asyncio.create_task(process_manga_download(c, cid, mg, "images", "original", sm, doc_mode=doc_m, group_mode=grp_m)) + else: + kb_q = InlineKeyboardMarkup([[InlineKeyboardButton("💎 Original", callback_data=f"manga_sel|{fmt}|original")], [InlineKeyboardButton("⚡ WebP", callback_data=f"manga_sel|{fmt}|webp")], [InlineKeyboardButton("🔙 Atrás", callback_data=f"menu|main")]]) + await msg.edit_text(f"Calidad:", reply_markup=kb_q) + elif len(pts) == 3: + await msg.delete() + sm = await c.send_message(cid, f"⏳ Descargando {pts[1].upper()}...") + asyncio.create_task(process_manga_download(c, cid, mg, pts[1], pts[2], sm)) + return + + + except Exception as e: + print(f"Callback Error: {e}") + try: await q.answer("❌ Error en el botón.", show_alert=True) + except: pass + + + +# --- HELPER: RENVIADO QUEUE --- +async def process_renviado_queue(chat_id, client): + """Espera 5s y envía lo que haya en la cola agrupado (Smart Batching + GIF fix).""" + await asyncio.sleep(5) + + st = url_storage.get(chat_id) + if not st or 'renviado_queue' not in st: return + + queue = st['renviado_queue'] + if not queue: return + + # Consumir cola + msgs_to_send = list(queue) + # Limpiar cola inmediatamente + st['renviado_queue'] = [] + url_storage[chat_id] = st + + # --- SMART BATCHING LOGIC --- + current_batch = [] + current_type = None # 'visual' (photo/video/gif) or 'doc' + + # List to track temp files for cleanup + files_to_clean = [] + + async def flush(): + nonlocal current_batch, current_type + if not current_batch: return + + try: + if len(current_batch) == 1: + # Single item -> Send Individually (Group requires 2+) + item = current_batch[0] + # Check type based on InputMedia class or current_type + if isinstance(item, InputMediaPhoto): + await client.send_photo(chat_id, item.media, caption=item.caption) + elif isinstance(item, InputMediaVideo): + # Works for both file_id and local path (GIF fix) + await client.send_video(chat_id, item.media, caption=item.caption) + elif isinstance(item, InputMediaDocument): + await client.send_document(chat_id, item.media, caption=item.caption) + else: + # 2+ items -> Send Group + await client.send_media_group(chat_id, current_batch) + except Exception as e: + print(f"Error flushing batch ({len(current_batch)} items): {e}") + # Fallback logic could go here + pass + current_batch = [] + current_type = None + + try: + for m in msgs_to_send: + # 1. Identify Media Type & Create Input Object + m_type = None + media_obj = None + + try: + if m.sticker: + m_type = 'sticker' + elif m.photo: + m_type = 'visual' + media_obj = InputMediaPhoto(m.photo.file_id, caption=m.caption) + elif m.video: + m_type = 'visual' + media_obj = InputMediaVideo(m.video.file_id, caption=m.caption) + elif m.animation: + m_type = 'visual' + # FIX: GIF (Animation) must be DOWNLOADED AND CONVERTED to be grouped as video + # 1. Download as temp file (preserve original nature or just .mp4 logic) + f_name = f"gif_r_{chat_id}_{m.id}_{int(time.time())}.mp4" + d_path = os.path.join(DATA_DIR, f_name) + + # Download sync + path = await client.download_media(m, file_name=d_path) + + if path: + # 2. TRANSCODE (Convert) to real H.264 MP4 to fix Headers/Container + # Needed 'convert_to_h264' from tools_media + try: + from tools_media import convert_to_h264 + converted_path = await convert_to_h264(path) + + if converted_path and os.path.exists(converted_path): + # Success conversion + files_to_clean.append(path) # Delete original download later + path = converted_path + else: + # Conversion failed? Use original download as fallback + pass + except Exception as e: + print(f"GIF Convert Error: {e}") + + media_obj = InputMediaVideo(path, caption=m.caption) + files_to_clean.append(path) + else: + continue # Skip if failed + + elif m.document: + m_type = 'doc' + media_obj = InputMediaDocument(m.document.file_id, caption=m.caption) + except Exception as e: + print(f"Error prepping media: {e}") + continue + + if not m_type: continue + + # 2. Check Logic + if m_type == 'sticker': + await flush() + try: await m.copy(chat_id) + except: pass + continue + + # Type Mismatch + if current_type and current_type != m_type: + await flush() + + # 3. Add to Batch + current_type = m_type + current_batch.append(media_obj) + + # 4. Max Size Check (10) + if len(current_batch) >= 10: + await flush() + + # Final Flush + await flush() + + finally: + # Cleanup Temps + for f in files_to_clean: + if os.path.exists(f): + try: os.remove(f) + except: pass + + + +# --- HELPER: AUTO THUMB QUEUE --- +async def process_single_thumb_auto(client, chat_id, message): + try: + from tools_media import get_meta, embed_thumbnail, progreso + from utils import download_parallel + import random + import subprocess + + # 1. Download (Turbo 32) + # We create a message for progress tracking + dl_msg = await message.reply("⬇️ **Iniciando...**", quote=True) + + v_path = os.path.join(DATA_DIR, f"thumb_auto_v_{chat_id}_{message.id}_{int(time.time())}.mp4") + + # Use existing 'progreso' callback + v_path = await download_parallel(client, message, v_path, concurrency=8, progress=progreso, progress_args=(dl_msg, [0,0], "Descargando")) + + if not v_path: + await dl_msg.edit("❌ Error Descarga") + return + + # 2. Random Frame logic + await dl_msg.edit("🎲 **Generando portada aleatoria...**") + w, h, dur = await get_meta(v_path) + if dur <= 0: dur = 5 + rand_time = random.uniform(0, dur) + + thumb_path = f"tmp_auto_thumb_{chat_id}_{message.id}.jpg" + cmd = ["ffmpeg", "-ss", str(rand_time), "-i", v_path, "-vframes", "1", "-q:v", "2", thumb_path, "-y"] + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + + if os.path.exists(thumb_path): + # 3. Embed Thumbnail + await dl_msg.edit("📤 **Procesando y Subiendo...**") + out_path = await embed_thumbnail(v_path, thumb_path) + + if out_path: + try: + # Upload with Progress + await client.send_video( + chat_id, + out_path, + caption=f"🎲 **Portada Aleatoria** (`{int(rand_time)}s`)", + thumb=thumb_path, + width=w, height=h, duration=dur, + progress=progreso, progress_args=(dl_msg, [0,0], "Enviando") + ) + except: + await client.send_document(chat_id, out_path, caption=f"🎲 **Portada Aleatoria** (`{int(rand_time)}s`)", thumb=thumb_path, progress=progreso, progress_args=(dl_msg, [0,0], "Enviando")) + + # Cleanup + try: + os.remove(out_path) + os.remove(thumb_path) + os.remove(v_path) + except: pass + await dl_msg.delete() + + else: + await dl_msg.edit("❌ Error Embed") + else: + await dl_msg.edit("❌ Error Frame Extract") + + except Exception as e: + print(f"Auto Thumb Error: {e}") + try: await dl_msg.edit(f"❌ Error: {e}") + except: pass + +async def check_thumb_queue(chat_id, client): + """ + Gestiona la cola con semáforo manual (Max 5 concurrentes). + Se llama cada vez que se añade un video o termina uno. + """ + st = url_storage.get(chat_id, {}) + + # Init vars + if 'thumb_active_count' not in st: st['thumb_active_count'] = 0 + if 'thumb_auto_queue' not in st: st['thumb_auto_queue'] = [] + + MAX_CONCURRENT = 5 + + # LOOP: Launch tasks while slots available and queue not empty + while st['thumb_active_count'] < MAX_CONCURRENT and st['thumb_auto_queue']: + # Pop next message + next_msg = st['thumb_auto_queue'].pop(0) + + # Increment active + st['thumb_active_count'] += 1 + url_storage[chat_id] = st + + # Launch Task + asyncio.create_task(run_thumb_task_wrapper(client, chat_id, next_msg)) + + # Update state ref + st = url_storage.get(chat_id, {}) + +async def run_thumb_task_wrapper(client, chat_id, message): + """Wrapper para ejecutar la tarea y luego liberar el slot.""" + try: + await process_single_thumb_auto(client, chat_id, message) + except Exception as e: + print(f"Task Wrapper Error: {e}") + finally: + # Decrement Active + st = url_storage.get(chat_id, {}) + if 'thumb_active_count' in st and st['thumb_active_count'] > 0: + st['thumb_active_count'] -= 1 + url_storage[chat_id] = st + + # Trigger Check Queue (Recursion via Task) + asyncio.create_task(check_thumb_queue(chat_id, client)) + +@app.on_message(filters.photo | filters.document | filters.video | filters.animation | filters.sticker, group=-1) +async def image_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # --- BOT LINK MODE (Top Priority) --- + if conf.get('bot_link_mode') and (getattr(m, 'video', None) or getattr(m, 'document', None) or getattr(m, 'animation', None) or getattr(m, 'audio', None)): + + # 1. Enlace Local (Pruebas PC) + link_local = f"http://127.0.0.1:7860/dl/{cid}/{m.id}" + + # 2. Enlace Público (HuggingFace / VPS) + # HuggingFace Spaces usa la variable de entorno SPACE_HOST + hf_host = os.environ.get('SPACE_HOST') + + if hf_host: + # Si estamos en HuggingFace, el puerto interno 7860 mapea directo al dominio principal con HTTPS + link_vps = f"https://{hf_host}/dl/{cid}/{m.id}" + vps_label = "🚀 **Para Hugging Face (Público):**" + vps_note = "_Nota: Este enlace usa los servidores de Hugging Face y ya tiene HTTPS._" + else: + # Si no es HuggingFace, intentamos sacar la IP pública (VPS Tradicional) + public_ip = "127.0.0.1" + try: + import aiohttp + async with aiohttp.ClientSession() as session: + async with session.get('https://api.ipify.org') as resp: + if resp.status == 200: + public_ip = await resp.text() + except Exception as e: + print(f"Error fetching public IP: {e}") + + link_vps = f"http://{public_ip}:7860/dl/{cid}/{m.id}" + vps_label = "🌍 **Para el VPS (Público):**" + vps_note = "_Nota: El enlace público requiere que el puerto 7860 esté abierto en el firewall del VPS._" + + msg_text = ( + f"🔗 **Enlaces Directos Generados:**\n\n" + f"🖥 **Para tu PC Local (Pruebas):**\n{link_local}\n\n" + f"{vps_label}\n{link_vps}\n\n" + f"{vps_note}" + ) + + await m.reply(msg_text, disable_web_page_preview=True) + m.stop_propagation() + return + + # --- RENVIADO TOOL LOGIC (Top Priority) --- + if conf.get('renviado_directo'): + # Directo: Reenviar copia limpia (esto desagrupa álbumes naturalmente) + await m.copy(cid) + m.stop_propagation() + return + + if conf.get('renviado_agrupado'): + # Agrupado: Cola de 5s + st = url_storage.get(cid, {}) + if 'renviado_queue' not in st: st['renviado_queue'] = [] + + st['renviado_queue'].append(m) + + # Cancelar tarea previa si existe (debounce) + if 'renviado_task' in st and not st['renviado_task'].done(): + st['renviado_task'].cancel() + + # Nueva tarea + st['renviado_task'] = asyncio.create_task(process_renviado_queue(cid, c)) + url_storage[cid] = st + + m.stop_propagation() + return + + # --- RESEARCH MODE (HIGH PRIORITY) --- + if conf.get('research_mode'): + wm = await m.reply("🕵️‍♀️ **Analizando imagen...**") + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"research_{cid}_{int(time.time())}.jpg")) + + if f_p: + await wm.delete() + # Call Research Logic + await run_research_logic(c, cid, text=None, image_path=f_p, msg=m) + # Cleanup + try: os.remove(f_p) + except: pass + else: + await wm.edit("❌ Error al descargar imagen.") + + m.stop_propagation() + return + + # --- CUSTOM THUMBNAIL MODE (Image Step) --- + st = url_storage.get(cid, {}) + if conf.get('custom_thumb_mode') and st.get('custom_thumb_step') == 'wait_thumb': + # Received Thumb + wait = await m.reply("⬇️ **Bajando Miniatura...**") + + # Use parallel download with progress + from utils import download_parallel + from tools_media import progreso + + t_path = await download_parallel(c, m, os.path.join(DATA_DIR, f"custom_thumb_{cid}_{m.id}.jpg"), concurrency=8, progress=progreso, progress_args=(wait, [0,0], "Bajando Miniatura (x16)")) + if not t_path: t_path = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"custom_thumb_{cid}_{m.id}.jpg"), progress=progreso, progress_args=(wait, [0,0], "Bajando Miniatura")) + + v_path = st.get('video_path') + if t_path and v_path and os.path.exists(v_path): + await wait.edit("⚙️ **Aplicando Miniatura...**") + from tools_media import embed_thumbnail, get_meta + + out_path = await embed_thumbnail(v_path, t_path) + if out_path: + await wait.edit("📤 **Enviando Resultado...**") + w, h, dur = await get_meta(out_path) + + try: + await c.send_video( + cid, out_path, + thumb=t_path, width=w, height=h, duration=dur, + caption="✏️ **Video Personalizado**", + progress=progreso, progress_args=(wait, [0,0], "Subiendo") + ) + except: + await c.send_document(cid, out_path, thumb=t_path, caption="✏️ **Video Personalizado**", progress=progreso, progress_args=(wait, [0,0], "Subiendo")) + + # Cleanup + if os.path.exists(out_path): os.remove(out_path) + if os.path.exists(v_path): os.remove(v_path) + if os.path.exists(t_path): os.remove(t_path) + await wait.delete() + + # Auto Check + if conf.get('custom_thumb_auto', False): + url_storage[cid] = {'custom_thumb_step': 'wait_video'} + await m.reply("✅ **Listo.**\nEnvíame el siguiente **VIDEO**.") + else: + conf['custom_thumb_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + url_storage.pop(cid, None) + await m.reply("✅ **Proceso Finalizado.**") + else: + await wait.edit("❌ Error Embed.") + else: + await wait.edit("❌ Error: Falta video o miniatura.") + + m.stop_propagation() + return + + # --- THUMBNAIL MODE (High Priority) --- + + + # 0. AI Config Upload (High Priority) + st = url_storage.get(cid) + # conf = get_config(cid) # Already loaded above + # print(f"[DEBUG] Image Handler | CID: {cid} | State: {st} | Config Step: {st.get('ai_config_step') if st else 'None'}") + + # --- AUTO-CLASS MODE --- + if st and st.get('autoclass_mode'): + pid = st.get('persona_id', 'nsfw') + + # 1. Download + dl_msg = await m.reply("🧠 **Analizando...**", quote=True) + # Unique paths + f_name = f"autoclass_{cid}_{int(time.time())}.jpg" + f_path = os.path.join(DATA_DIR, f_name) + + try: + path = await m.download(file_name=f_path) + except Exception as e: + await dl_msg.edit(f"❌ Error descarga: {e}") + return + + if not path: + await dl_msg.edit("❌ Error: No se pudo descargar.") + return + + # 2. Get Categories + # Default cats + cats = ['bienvenida', 'greeting', 'admire', 'happy', 'sad', 'angry', 'surprised', 'love', 'shy'] + + # Add Global Cats + if pid in global_personas and 'images' in global_personas[pid]: + cats.extend(list(global_personas[pid]['images'].keys())) + + # Add Local Cats + if 'ai_images' in conf and pid in conf['ai_images']: + cats.extend(list(conf['ai_images'][pid].keys())) + + # Add NSFW cats explicitely to ensure they are available even if empty + cats.extend(['nsfw', 'sex', 'boobs', 'ass', 'cum', 'ahegao']) + + # Deduplicate + cats = list(set(cats)) + + # 3. Classify + from ai_service import classify_image + predicted_cat = await asyncio.get_running_loop().run_in_executor(None, lambda: classify_image(path, cats)) + + # 4. Save + # Get fid/type + fid = m.photo.file_id if m.photo else (m.sticker.file_id if m.sticker else None) + ftype = 'photo' if m.photo else 'sticker' + + if not fid and m.document: + fid = m.document.file_id + # guess type + if 'video' in m.document.mime_type: ftype = 'video' + + if fid: + # Save to Firebase/Local Config + asyncio.create_task(save_persona_image(pid, 'default', predicted_cat, {'id': fid, 'type': ftype})) + + # Cache update + if pid not in AVATAR_KEYS_CACHE: AVATAR_KEYS_CACHE[pid] = set() + AVATAR_KEYS_CACHE[pid].add(predicted_cat) + + # Translate Category + cat_display = TRANS.get(predicted_cat, predicted_cat.replace('_', ' ').title()) + + # 5. Reply + kb_stop = InlineKeyboardMarkup([[InlineKeyboardButton("🛑 Detener / Cancelar", callback_data="cancel_all")]]) + await dl_msg.edit( + f"✅ **Imagen Guardada**\n" + f"👤 **Cuerpo:** `{pid}`\n" + f"📂 **Categoría:** `{cat_display}`", + reply_markup=kb_stop + ) + else: + await dl_msg.edit("❌ No pude obtener ID del archivo.") + + # 4. Clean up (Job Dir) + try: + import shutil + job_dir = os.path.dirname(f_path) + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + elif os.path.exists(f_path): + os.remove(f_path) + except Exception as e: + print(f"Autoclass cleanup error: {e}") + + m.stop_propagation() + return + + if st and st.get('ai_config_step') == 'wait_image': + cat = st.get('category') + pid = st.get('persona_id', 'nsfw') + + # Get File ID & Type + fid = None + ftype = 'photo' + + if m.photo: + fid = m.photo.file_id + ftype = 'photo' + elif m.sticker: + fid = m.sticker.file_id + ftype = 'sticker' + elif m.animation: + fid = m.animation.file_id + ftype = 'animation' + elif m.video: + fid = m.video.file_id + ftype = 'video' + elif m.document: + # Check mime type + mime = m.document.mime_type + fid = m.document.file_id + if mime and 'image' in mime: ftype = 'photo' + elif mime and 'video' in mime: ftype = 'video' + else: ftype = 'document' # Fallback + + if fid: + # NEW CLOUD BODY LOGIC + # Save to 'avatars' collection via save_persona_image + # Default outfit for now: 'default' + + # Increment session count + st['count'] = st.get('count', 0) + 1 + url_storage[cid] = st + + # Fire and forget save + # We save the WHOLE item {'id': ..., 'type': ...} so we know how to send it back + asyncio.create_task(save_persona_image(pid, 'default', cat, {'id': fid, 'type': ftype})) + + # Update Cache Immediate + if pid not in AVATAR_KEYS_CACHE: AVATAR_KEYS_CACHE[pid] = set() + AVATAR_KEYS_CACHE[pid].add(cat) + + # Reply confirmation + gid = st.get('gid', 'social') # get GID for back button + + kb = InlineKeyboardMarkup([[InlineKeyboardButton("✅ Terminado", callback_data=f"ai_conf|group|{gid}|{pid}")]]) + + await m.reply(f"✅ **Foto #{st['count']} guardada** en `{cat}`.\nSigue enviando...", reply_markup=kb) + m.stop_propagation() + return + + # 0.5 AI Config Subset Input + if st and st.get('ai_config_step') == 'wait_subset': + cat = st.get('category') + pid = st.get('persona_id', 'nsfw') + txt = m.text.strip() + + # Cancel logic + if txt.lower() == "/cancel": + url_storage.pop(cid, None) + await m.reply("❌ Cancelado.") + return + + try: + # Parse numbers + nums = [int(x) for x in txt.split()] + if not nums: raise ValueError("Empty") + + # Validate against real count + ai_imgs = conf.get('ai_images', {}).get(pid, {}).get(cat, {'images': []}) + count = len(ai_imgs.get('images', [])) + + # Convert to 0-indexed indices + final_subset = [] + for n in nums: + if 1 <= n <= count: + final_subset.append(n-1) # 0-indexed + + if not final_subset: + await m.reply("⚠️ Ningún número válido. Usa índices del 1 al " + str(count)) + return + + # Save + if 'ai_images' not in conf: conf['ai_images'] = {} + if pid not in conf['ai_images']: conf['ai_images'][pid] = {} + if cat not in conf['ai_images'][pid]: conf['ai_images'][pid][cat] = {} + + conf['ai_images'][pid][cat]['mode'] = 'subset' + conf['ai_images'][pid][cat]['subset'] = final_subset + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Success msg with Menu + # Success msg with Menu + # from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton (GLOBAL ALREADY) + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver a Configurar", callback_data=f"ai_conf|cat|{cat}|{pid}")]]) + await m.reply(f"✅ **Modo Personalizado Activado**\nUsando {len(final_subset)} imágenes seleccionadas.", reply_markup=kb) + + url_storage.pop(cid, None) + return + + except Exception as e: + await m.reply("❌ Error leyendo números. Asegúrate de enviarlos separados por espacio (Ej: `1 3 5`).") + return + + # 1. Sticker Mode + if conf.get('sticker_mode'): + wm = await m.reply("⬇️ **Bajando Imagen para Sticker...**") + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"sticker_{cid}.jpg")) + if f_p: + await wm.delete() + await run_sticker_logic(c, cid, f_p) + else: + await wm.edit("❌ Error al descargar imagen.") + m.stop_propagation() + return + + # 2. SauceNAO Mode + if conf.get('saucenao_mode'): + wm = await m.reply("⬇️ **Bajando para SauceNAO...**") + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"sauce_{cid}.jpg")) + if f_p: + await wm.delete() + await run_saucenao_logic(c, cid, f_p, None) # msg_to_edit=None, function creates one + else: + await wm.edit("❌ Error al descargar imagen.") + m.stop_propagation() + return + + m.continue_propagation() + + +async def run_mp3_logic(c, cid, f_path, msg_to_edit=None): + from tools_media import extract_audio, get_audio_dur + + if msg_to_edit: await msg_to_edit.edit("🎵 **Extrayendo Audio MP3...**") + else: msg_to_edit = await c.send_message(cid, "🎵 **Extrayendo Audio MP3...**") + + mp3_path = await extract_audio(f_path) + if mp3_path: + await msg_to_edit.edit("📤 **Subiendo Audio...**") + dur = await get_audio_dur(mp3_path) + try: + await c.send_audio(cid, mp3_path, title=os.path.basename(mp3_path), duration=dur, caption="🎵 **Audio Extraído**") + await msg_to_edit.delete() + except Exception as e: + await msg_to_edit.edit(f"❌ Error al subir: {e}") + + # Cleanup + # Cleanup (Job Dir) + import shutil + job_dir = os.path.dirname(f_path) + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + elif os.path.exists(mp3_path): os.remove(mp3_path) + else: + await msg_to_edit.edit("❌ Error: No se pudo extraer el audio (quizás no tiene pista de audio).") + + # Smart Cleanup + import shutil + job_dir = os.path.dirname(f_path) + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + elif os.path.exists(f_path): os.remove(f_path) + + # Auto Disable + conf = get_config(cid) + conf['mp3_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + try: await msg_to_edit.edit(msg_to_edit.text + "\n🛑 Se desactivó el modo/herramienta: Audio MP3") + except: pass + +# --- AUTO JOIN TASKS (Debounce) --- +AUTO_JOIN_TASKS = {} + +async def run_join_party_logic(client, chat_id, msg_to_edit=None): + """ + Lógica compartida para unir clips. + Se llama desde el botón 'Unir ahora' O automáticamente tras X segundos. + """ + st = url_storage.get(chat_id, {}) + clips = st.get('join_clips', []) + + # Si no hay mensaje para editar, enviamos uno nuevo o usamos el último clip + if not msg_to_edit: + if clips: + last_m = clips[-1] + msg_to_edit = await client.send_message(chat_id, "⏳ **Iniciando Unión Automática...**") + else: + return + + if not clips: + try: await msg_to_edit.edit("❌ No hay clips registrados para unir.") + except: pass + return + + try: + if len(clips) < 2: + try: await msg_to_edit.edit("⚠️ Se necesitan al menos 2 clips para unir.\nEnvíame más.") + except: pass + return + + await msg_to_edit.edit(f"🔗 **Uniendo {len(clips)} clips...**\n⬇️ Bajando videos...") + + from utils import download_parallel, merge_videos_ffmpeg + from tools_media import get_meta, get_thumb, progreso + + downloaded_files = [] + + # 1. Crear carpeta de trabajo única para el Join (Nested) + tool_folder = os.path.join(DATA_DIR, "join_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_join_{chat_id}_{time.time_ns()}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + # 1. Descargar todos + for i, m_clip in enumerate(clips): + await msg_to_edit.edit(f"⬇️ **Bajando clip {i+1}/{len(clips)}...**") + + # Nombre temporal seguro + ext = ".mp4" + if m_clip.video and m_clip.video.file_name: _, ext = os.path.splitext(m_clip.video.file_name) + elif m_clip.document and m_clip.document.file_name: _, ext = os.path.splitext(m_clip.document.file_name) + + fname = os.path.join(job_dir, f"clip_{i}_{m_clip.id}{ext}") + + # Descarga + f_p = await download_parallel(client, m_clip, fname, concurrency=4) + if not f_p: f_p = await client.download_media(m_clip, file_name=fname) + + if f_p and os.path.exists(f_p): + downloaded_files.append(f_p) + else: + await msg_to_edit.edit(f"❌ Error bajando clip {i+1}. Abortando.") + # Cleanup parcial + for f in downloaded_files: + if os.path.exists(f): os.remove(f) + return + + # 2. Unir + await msg_to_edit.edit("🔗 **Procesando unión (FFmpeg)...**") + output_join = os.path.join(job_dir, f"merged_{chat_id}_{int(time.time())}.mp4") + + final_path = await asyncio.get_running_loop().run_in_executor(None, lambda: merge_videos_ffmpeg(downloaded_files, output_join)) + + # 3. Enviar + if final_path and os.path.exists(final_path): + await msg_to_edit.edit("📤 **Enviando video unido...**") + w, h, dur = await get_meta(final_path) + t_path = await get_thumb(final_path, chat_id, int(time.time())) + + try: + await client.send_video( + chat_id, final_path, + width=w, height=h, duration=dur, thumb=t_path, + caption=f"🔗 **Party Unida ({len(clips)} clips)**", + progress=progreso, progress_args=(msg_to_edit, [0,0], "Enviando") + ) + except Exception as e: + await client.send_document(chat_id, final_path, caption=f"🔗 Party Unida ({len(clips)} clips)") + + if t_path and os.path.exists(t_path): os.remove(t_path) + # os.remove(final_path) # No needed, rmtree handles it + + # Reset + url_storage.pop(chat_id, None) + AUTO_JOIN_TASKS.pop(chat_id, None) + + try: await msg_to_edit.delete() + except: pass + + await client.send_message(chat_id, "✅ **Unión Completada.**") + + # Auto-OFF + conf = get_config(chat_id) + conf['join_party_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + await client.send_message(chat_id, "🛑 Se desactivó el modo/herramienta: Unir Party") + + else: + await msg_to_edit.edit("❌ Error al unir los videos.") + + except Exception as e: + print(f"Join Error: {e}") + try: await msg_to_edit.edit(f"❌ Error crítico: {e}") + except: pass + + # Cleanup Job Dir (All files) + import shutil + try: shutil.rmtree(job_dir, ignore_errors=True) + except: pass + +async def party_worker(client, chat_id, message_vid, mode_w, val_w, wait_msg, context_config=None): + # Check Queue Status + if SEM_PARTY.locked(): + try: + await wait_msg.edit(f"⏳ **En Cola (Posición {len(SEM_PARTY._waiters) if hasattr(SEM_PARTY, '_waiters') else '?'})...**\nEsperando turno.") + except: pass + + async with SEM_PARTY: + try: + await wait_msg.edit(f"⬇️ **Bajando video para {mode_w}={val_w}...**\n(Descarga Diferida)") + + from utils import download_parallel + from tools_media import progreso + + # Determinar extensión + ext = ".mp4" + if message_vid.audio: ext = ".mp3" + if message_vid.document and message_vid.document.file_name: _, ext = os.path.splitext(message_vid.document.file_name) + elif message_vid.video and message_vid.video.file_name: _, ext = os.path.splitext(message_vid.video.file_name) + elif message_vid.audio and message_vid.audio.file_name: _, ext = os.path.splitext(message_vid.audio.file_name) + + # Create Job Directory (Nested for Tool Isolation) + # Structure: downloads/party_temp/job_{id}_{ts}/ + tool_folder = os.path.join(DATA_DIR, "party_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_{chat_id}_{time.time_ns()}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + f_p = await download_parallel(client, message_vid, os.path.join(job_dir, f"party_{chat_id}_{message_vid.id}{ext}"), concurrency=8, progress=progreso, progress_args=(wait_msg, [0,0], "Descargando")) + if not f_p: f_p = await client.download_media(message_vid, file_name=os.path.join(job_dir, f"party_{chat_id}_{message_vid.id}{ext}")) + + if f_p and os.path.exists(f_p): + # Proceed with Logic + await run_party_logic(client, chat_id, f_p, mode_w, val_w, wait_msg, original_msg=message_vid, context_config=context_config) + else: + await wait_msg.edit("❌ Error en descarga diferida.") + except Exception as e: + print(f"Party Worker Error: {e}") + try: await wait_msg.edit(f"❌ Error interno: {e}") + except: pass + +@app.on_message(filters.video | filters.document | filters.audio | filters.animation) +async def party_video_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # --- NANO BANANA EXCLUSION CHECK (Images as Documents) --- + # If Nano Banana is active, it handles its own images (even files). + # Party Mode shouldn't steal them. + if conf.get('ai_model_mode') == 'nano_banana': + is_pos_image = False + if m.photo: is_pos_image = True + elif m.document and m.document.mime_type and m.document.mime_type.startswith('image/'): is_pos_image = True + elif m.document and m.document.file_name: + _, ext = os.path.splitext(m.document.file_name) + if ext.lower() in ['.jpg', '.jpeg', '.png', '.webp', '.bmp', '.heic']: + is_pos_image = True + + if is_pos_image: + # Let ai_chat_handler handle it + return await m.continue_propagation() + + # --- LOGICA: UNIR PARTY (COLECCIÓN) --- + # --- LOGICA: UNIR PARTY (COLECCIÓN) --- + if conf.get('join_party_mode'): + st = url_storage.get(cid, {}) + if 'join_clips' not in st: st['join_clips'] = [] + + # Registrar clip + st['join_clips'].append(m) + + # Borrar mensaje de confirmación anterior si existe + last_msg_id = st.get('join_confirm_msg_id') + if last_msg_id: + try: + await c.delete_messages(cid, last_msg_id) + except: pass + + url_storage[cid] = st # Guardar clips + + count = len(st['join_clips']) + + # Generar nuevo mensaje de confirmación + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("✅ Sí, Unir ahora", callback_data="party_join_now")], + [InlineKeyboardButton("❌ Cancelar", callback_data="menu|party_init")] + ]) + + if count == 1: + sent_m = await m.reply("✅ **Clip registrado (1).**\nEnvíame otro clip...", quote=True) + st['join_confirm_msg_id'] = sent_m.id + else: + sent_m = await m.reply( + f"📹 **He recibido {count} clips.**\n¿Comienzo a descargarlos y unirlos?", + reply_markup=kb, + quote=True + ) + st['join_confirm_msg_id'] = sent_m.id + + url_storage[cid] = st + return + + # --- SMART CUT LOGIC (Top Priority within Tools) --- + if conf.get('smart_cut_mode'): + if SEM_SMART_CUT.locked(): + wait = await m.reply("⏳ **En Cola de Procesamiento (Smart Cut)...**\n_Esperando turno_") + else: + wait = await m.reply("🧠 **Analizando Intro...**\n⬇️ Bajando video...") + + async with SEM_SMART_CUT: + if wait.text.startswith("⏳"): await wait.edit("🧠 **Analizando Intro...**\n⬇️ Bajando video...") + + from utils import download_parallel + from tools_media import smart_cut_video, get_meta, get_thumb + from tools_media import progreso as prog_callback + + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"smart_{cid}_{m.id}.mp4"), progress=prog_callback, progress_args=(wait, [0,0], "Descargando")) + if not f_p: f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"smart_{cid}_{m.id}.mp4")) + + if f_p and os.path.exists(f_p): + res_tuple = await smart_cut_video(f_p) + + if res_tuple: + out_path, cut_time = res_tuple + await wait.edit(f"✂️ **Intro Detectada ({cut_time}s)**\nEnviando video cortado...") + + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + + try: + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, thumb=t_path, + caption=f"🧠 **Smart Cut** (Intro: {cut_time}s)", + progress=prog_callback, progress_args=(wait, [0,0], "Enviando") + ) + except: + await c.send_document(cid, out_path, caption=f"🧠 **Smart Cut** (Intro: {cut_time}s)") + + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(out_path): os.remove(out_path) + else: + await wait.edit("⚠️ **No se detectó intro.**\nEnviando original (Directo)...") + + # Try to use file_id from message to avoid re-upload + sent_ok = False + try: + target_file_id = None + if m.video: target_file_id = m.video.file_id + elif m.document: target_file_id = m.document.file_id + elif m.animation: target_file_id = m.animation.file_id + + if target_file_id: + await c.send_video( + cid, target_file_id, + caption="video original sin cambios (smart cut no encontrado)" + ) + sent_ok = True + except Exception as e: + print(f"Smart Cut Direct Send Error: {e}") + + if not sent_ok: + w, h, dur = await get_meta(f_p) + t_path = await get_thumb(f_p, cid, int(time.time())) + + try: + await c.send_video( + cid, f_p, + width=w, height=h, duration=dur, thumb=t_path, + caption="video original sin cambios (smart cut no encontrado)", + progress=prog_callback, progress_args=(wait, [0,0], "Enviando") + ) + except: + await c.send_document(cid, f_p, caption="video original sin cambios (smart cut no encontrado)") + + if t_path and os.path.exists(t_path): os.remove(t_path) + + if os.path.exists(f_p): os.remove(f_p) + else: + await wait.edit("❌ Error descragando video.") + + # Auto Logic + if not conf.get('smart_cut_auto_mode', False): + conf['smart_cut_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + try: await wait.delete() + except: pass + await c.send_message(cid, "✅ **Proceso Finalizado.**\n🛑 Se desactivó el modo/herramienta: Smart Cut") + else: + try: await wait.delete() + except: pass + + return + + if not conf.get('party_mode') and not conf.get('auto_party') and not conf.get('join_party_mode') and not conf.get('extract_mode') and not conf.get('gif_mode') and not conf.get('mp3_mode') and not conf.get('cut_init_mode') and not conf.get('cut_auto_mode') and not conf.get('convert_qh_mode') and not conf.get('convert_h264_mode') and not conf.get('resize_mode') and not conf.get('resize_auto_mode') and not conf.get('custom_thumb_mode') and not conf.get('fusion_mode') and not conf.get('fusion_auto_mode') and not conf.get('fusion_auto_audio_capture'): + return m.continue_propagation() + + st = url_storage.get(cid, {}) + + # --- FUSION AUTO MODE (Wait Audio Step) --- + if conf.get('fusion_auto_audio_capture', False): + wait = await m.reply("⬇️ **Guardando referencia del Audio Predeterminado...**") + + file_id = None + if m.audio: file_id = m.audio.file_id + elif m.voice: file_id = m.voice.file_id + elif m.document: file_id = m.document.file_id + elif m.video: file_id = m.video.file_id + + if not file_id: + await wait.edit("❌ Por favor envía un archivo válido (Audio, Nota de voz, Video o Documento).") + return + + conf['fusion_default_audio'] = file_id + conf['fusion_auto_audio_capture'] = False # Auto OFF after capturing + + from firebase_service import save_user_config_fb + import asyncio + asyncio.create_task(save_user_config_fb(cid, conf)) + + from tools_fusion import show_fusion_auto_menu + await wait.edit("✅ **Audio Predeterminado Guardado correctamente (ID de Telegram vinculado).**") + await show_fusion_auto_menu(c, cid, conf) + return + + # --- FUSION AUTO MODE FLOW --- + + # Global semaphore to prevent FFmpeg CPU/RAM death on mass uploads + if 'fusion_auto_sem' not in globals(): + global fusion_auto_sem + import asyncio + fusion_auto_sem = asyncio.Semaphore(5) + + if conf.get('fusion_auto_mode', False): + from tools_fusion import get_fusion_session, show_fusion_panel + + if conf.get('fusion_default_audio'): + if m.video or m.document or m.animation: + wait = await m.reply("🤖 **Fusión Automática:** En cola... ⏳") + + async with fusion_auto_sem: + await wait.edit("🤖 **Fusión Automática:** Inicializando...") + + file_id = conf['fusion_default_audio'] + + # Create a reliable unique hash for this specific file_id so it downloads the new one if changed + import hashlib + clean_id = hashlib.md5(file_id.encode()).hexdigest()[:15] + a_path = os.path.join(DATA_DIR, f"fus_auto_a_{cid}_{clean_id}.mp3") + + if not os.path.exists(a_path): + await wait.edit("🤖 **Fusión Automática:** Recuperando audio predeterminado de la nube...") + try: + a_path = await c.download_media(file_id, file_name=a_path) + except Exception as e: + await wait.edit("❌ El audio predeterminado ya no es accesible. Por favor guárdalo de nuevo.") + return + + if not a_path or not os.path.exists(a_path): + await wait.edit("❌ Fallo obteniendo el audio predeterminado.") + return + + await wait.edit("🤖 **Fusión Automática:** Descargando video objetivo...") + from utils import download_parallel + from tools_media import progreso + + filename = getattr(m.video, 'file_name', None) or getattr(m.document, 'file_name', None) or getattr(m.animation, 'file_name', None) or ".mp4" + _, ext = os.path.splitext(filename) + ts = int(time.time()) + # Ensure unique filename by appending m.id (Message ID) for concurrent batches + v_path = os.path.join(DATA_DIR, f"fus_auto_v_{ts}_{m.id}_{cid}{ext}") + + f_p = await download_parallel(c, m, v_path, concurrency=16, progress=progreso, progress_args=(wait, [0,0], "Bajando Video")) + if not f_p: f_p = await c.download_media(m, file_name=v_path) + + if not f_p: + await wait.edit("❌ Error bajando video.") + return + + await wait.edit("⚙️ **Fusión Automática:** Mezclando y renderizando...") + + sess = await get_fusion_session(cid) + out_path = os.path.join(DATA_DIR, f"fusion_auto_final_{ts}_{m.id}_{cid}.mp4") + + from tools_fusion import process_fusion + ok, err = await process_fusion( + f_p, a_path, out_path, + keep_video_audio=conf.get('fusion_auto_cfg_v', True), + keep_added_audio=conf.get('fusion_auto_cfg_a', True), + safe_mode=sess.get('safe_mode', False), + vol_v=conf.get('fusion_auto_vol_v', 100), + vol_a=conf.get('fusion_auto_vol_a', 100) + ) + + if ok: + await wait.edit("📤 **Fusión Automática:** Subiendo...") + from tools_media import get_meta, get_thumb + w, h, dur = await get_meta(out_path) + thumb = await get_thumb(out_path, cid, ts) + + + try: + await c.send_video( + cid, out_path, + caption="🤖 **Fusión Automática Terminada**", + width=w, height=h, duration=dur, thumb=thumb, + progress=progreso, progress_args=(wait, [0,0], "Enviando") + ) + except Exception as e: + try: await c.send_document(cid, out_path, caption="🤖 **Fusión Automática** (Fallback Doc)", thumb=thumb) + except: pass + + if thumb and os.path.exists(thumb): os.remove(thumb) + if os.path.exists(out_path): os.remove(out_path) + await wait.delete() + else: + await wait.edit(f"❌ Error Fusión Automática:\n`{err}`") + + if os.path.exists(f_p): os.remove(f_p) + return + else: + return # Ignore messages that aren't videos in auto mode + + else: + await m.reply("⚠️ El Modo Automático está activado, pero falta el Audio Predeterminado. Ve al submenú para establecerlo.") + return + + # --- FUSION MANUAL MODE FLOW --- + if conf.get('fusion_mode', False): + from tools_fusion import get_fusion_session, show_fusion_panel + sess = await get_fusion_session(cid) + + if not sess['video']: + # STEP 1: Register Video Base + sess['video'] = m + sess['step'] = 1 + await m.reply("🎥 **Video Registrado (1).**\n\nAhora envíame el **AUDIO** (o video).") + return + + else: + # STEP 2: Register Audio + sess['audio'] = m + sess['step'] = 2 + + # Show Panel + await show_fusion_panel(c, cid) + return + + + + # --- CUSTOM THUMB MODE (Video Step + Catalog Gen) --- + if conf.get('custom_thumb_mode', False) and st.get('custom_thumb_step') == 'wait_video': + wait = await m.reply("⬇️ **Bajando Video Base...**") + + # Download with Progress + from utils import download_parallel + from tools_media import progreso + + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"custom_base_{cid}_{m.id}.mp4"), concurrency=16, progress=progreso, progress_args=(wait, [0,0], "Bajando Video (x16)")) + if not f_p: f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"custom_base_{cid}_{m.id}.mp4"), progress=progreso, progress_args=(wait, [0,0], "Bajando Video")) + + if f_p: + await wait.edit("🎞 **Generando Catálogo de Miniaturas...**\n(Cada 5s)") + from tools_media import generate_catalog_thumbs + + thumbs = await generate_catalog_thumbs(f_p, interval=5) + + url_storage[cid] = { + 'custom_thumb_step': 'wait_thumb', + 'video_path': f_p, + 'custom_thumbs_list': thumbs + } + + if thumbs: + # Ask for custom image FIRST, with option for Catalog + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("🎞 Ver Catálogo Automático", callback_data="custom|show_catalog")], + [InlineKeyboardButton("❌ Cancelar", callback_data="menu|tools")] + ]) + + await wait.delete() + await c.send_message(cid, "✅ **Video Recibido.**\n\n1️⃣ Envíame una **IMAGEN** para usar de portada.\n2️⃣ O abre el cátalogo de frames del video.", reply_markup=kb) + else: + await wait.edit("⚠️ No pude generar miniaturas del video.\n**Envía una imagen manual** para usarla.") + + else: + await wait.edit("❌ Error descarga video.") + return + + # --- CONVERTIDOR QH FLOW (QUEUE + TURBO x32) --- + if conf.get('convert_qh_mode', False): + # 1. Detectar si es Imagen (para no convertirla a video) + is_image = False + original_ext = "" + + if m.photo: + is_image = True + original_ext = ".jpg" + elif m.document: + if m.document.mime_type and m.document.mime_type.startswith("image/"): + is_image = True + if m.document.file_name: + _, original_ext = os.path.splitext(m.document.file_name) + if original_ext.lower() in ['.jpg', '.jpeg', '.png', '.webp', '.heic', '.bmp']: + is_image = True + + # Si es imagen, procesamos como imagen (pass-through o conversión simple si hiciera falta) + if is_image: + wait = await m.reply("⬇️ **Bajando Imagen...**") + # Descargar con nombre original/extensión correcta + # Usamos download_media de pyrogram directo para imágenes, es rápido. + dl_path = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"qh_img_{cid}_{m.id}{original_ext}")) + + if dl_path and os.path.exists(dl_path): + await wait.edit("📤 **Enviando Imagen...**") + try: + # Enviar como FOTO (Normal) como pidió el usuario + await c.send_photo(cid, dl_path, caption="📦 **Imagen (QH)**") + except Exception as e: + # Fallback a documento solo si falla + await c.send_document(cid, dl_path, caption="📦 **Imagen (QH)**") + + os.remove(dl_path) + await wait.delete() + else: + await wait.edit("❌ Error descargando imagen.") + return + + # 2. Si NO es imagen (Video/Audio), flujo normal de Video + if SEM_CONVERT_QH.locked(): + wait = await m.reply("⏳ **En Cola de Procesamiento...**\n_Esperando turno (Máx 5 simultáneos)_") + else: + wait = await m.reply("⬇️ **Bajando TURBO (x32)...**\n🚀 Convertidor QH Activo") + + async with SEM_CONVERT_QH: + if wait.text.startswith("⏳"): await wait.edit("⬇️ **Bajando TURBO (x32)...**\n🚀 Convertidor QH Activo") + + from utils import download_parallel + from tools_media import progreso + + # Force MP4 for Videos + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"conv_qh_{cid}_{m.id}.mp4"), concurrency=32, progress=progreso, progress_args=(wait, [0,0], "Descargando")) + + if not f_p: + # Fallback + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"conv_qh_{cid}_{m.id}.mp4")) + + if f_p: + await wait.edit("📤 **Enviando Video Convertido...**") + from tools_media import get_meta, get_thumb + w, h, dur = await get_meta(f_p) + t_path = await get_thumb(f_p, cid, int(time.time())) + + try: + await c.send_video(cid, f_p, width=w, height=h, duration=dur, thumb=t_path, caption=f"📦 **Convertido QH**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + except Exception as e: + await c.send_document(cid, f_p, caption=f"📦 **Convertido QH** (Doc Fallback)", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(f_p): os.remove(f_p) + await wait.delete() + else: + await wait.edit("❌ Error en descarga.") + return + + # --- DIMENSIONADOR FLOW --- + if conf.get('resize_mode'): + target = conf.get('resize_target', '9:16') + wait = await m.reply(f"📐 **Dimensionador Activo**\nTarget: `{target}`\n⬇️ Bajando video...") + + from utils import download_parallel + from tools_media import resize_video, progreso, get_meta, get_thumb + + # Download + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"resize_{cid}_{m.id}.mp4"), concurrency=32, progress=progreso, progress_args=(wait, [0,0], "Descargando")) + if not f_p: + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"resize_{cid}_{m.id}.mp4")) + + if f_p and os.path.exists(f_p): + await wait.edit(f"⚙️ **Redimensionando a {target}...**\n(Zoom + Crop al centro)") + + # Process + out_path = await resize_video(f_p, target) + + if out_path and os.path.exists(out_path): + await wait.edit("📤 **Enviando Video Redimensionado...**") + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + + try: + await c.send_video(cid, out_path, width=w, height=h, duration=dur, thumb=t_path, caption=f"📐 **Redimensionado a {target}**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + except: + await c.send_document(cid, out_path, caption=f"📐 **Redimensionado a {target}**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + + # Cleanup + if t_path and os.path.exists(t_path): os.remove(t_path) + os.remove(out_path) + # Auto-OFF + conf['resize_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, "✅ **Proceso Finalizado.**\n🛑 Se desactivó el modo/herramienta: Dimensionador") + else: + await wait.edit("❌ Error al procesar el video.") + + if os.path.exists(f_p): os.remove(f_p) + try: await wait.delete() + except: pass + else: + await wait.edit("❌ Error descragando video.") + return + + # --- CONVERTIDOR MP4 H264 FLOW (QUEUE + TURBO x32 + FFMPEG) --- + if conf.get('convert_h264_mode', False): + if SEM_CONVERT_H264.locked(): + wait = await m.reply("⏳ **En Cola de Procesamiento...**\n_Esperando turno (Máx 5 simultáneos)_") + else: + wait = await m.reply("⬇️ **Bajando TURBO (x32)...**\n🚀 Convertidor H.264 Activo") + + async with SEM_CONVERT_H264: + if wait.text.startswith("⏳"): await wait.edit("⬇️ **Bajando TURBO (x32)...**\n🚀 Convertidor H.264 Activo") + + from utils import download_parallel + from tools_media import progreso, convert_to_h264, get_meta, get_thumb + + # Descarga en modo documento (para aceptar MKV, TS, AVI crudos) + original_path = os.path.join(DATA_DIR, f"tmp_h264_{cid}_{m.id}") # Sin extension para que download_parallel o fallback decidan o usar extension original + + # Intentamos adivinar extension del nombre de archivo si es documento + ext = "" + if m.document and m.document.file_name: + _, ext = os.path.splitext(m.document.file_name) + elif m.video and m.video.file_name: + _, ext = os.path.splitext(m.video.file_name) + elif m.animation: + # Treat Animation/GIF as MP4 source for ffmpeg + ext = ".mp4" + + if not ext: ext = ".mp4" # Default + original_path += ext + + f_p = await download_parallel(c, m, original_path, concurrency=32, progress=progreso, progress_args=(wait, [0,0], "Descargando")) + + if not f_p: + f_p = await c.download_media(m, file_name=original_path) + + if f_p and os.path.exists(f_p): + await wait.edit("⚙️ **Convirtiendo a MP4 H.264...**\nEsto puede tardar según el peso.") + + # Conversion FFMPEG + h264_path = await convert_to_h264(f_p) + + if h264_path and os.path.exists(h264_path): + await wait.edit("📤 **Enviando Video H.264...**") + w, h, dur = await get_meta(h264_path) + t_path = await get_thumb(h264_path, cid, int(time.time())) + + try: + # Send as Video + await c.send_video(cid, h264_path, width=w, height=h, duration=dur, thumb=t_path, caption=f"🎞 **Convertido H.264**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + except Exception as e: + await c.send_document(cid, h264_path, caption=f"🎞 **Convertido H.264** (Doc Fallback)", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + + if t_path and os.path.exists(t_path): os.remove(t_path) + os.remove(h264_path) + else: + await wait.edit("❌ **Error en la conversión.**\nQuizás el archivo está dañado.") + + if os.path.exists(f_p): os.remove(f_p) + try: await wait.delete() + except: pass + else: + await wait.edit("❌ Error en descarga.") + return + + # --- AUTO RESIZE SPECIFIC FLOW --- + if conf.get('resize_auto_mode', False) and 'party_pending' not in st: + # Check Semaphore Status (Reusing SEM_AUTO_CORTE for shared resource limit) + if SEM_AUTO_CORTE.locked(): + wait = await m.reply("⏳ **En Cola de Procesamiento (Resize)...**\n_Esperando turno_") + else: + wait = await m.reply("⬇️ **Bajando para Redimensionar...**\n🚀 Velocidad Máxima Activada") + + async with SEM_AUTO_CORTE: + if wait.text.startswith("⏳"): await wait.edit("⬇️ **Bajando...**") + + # 1. Download + ext = ".mp4" + if m.document and m.document.file_name: _, ext = os.path.splitext(m.document.file_name) + elif m.video and m.video.file_name: _, ext = os.path.splitext(m.video.file_name) + + from utils import download_parallel + from tools_media import progreso, resize_video, get_meta, get_thumb + + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"resize_{cid}_{m.id}{ext}"), progress=progreso, progress_args=(wait, [0,0], "Descargando")) + + if not f_p: f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"resize_{cid}_{m.id}{ext}")) + + if f_p and os.path.exists(f_p): + val = conf.get('resize_auto_val', '9:16') + await wait.edit(f"📐 **Redimensionando a {val}...**") + + # 2. PROCESAR + out_path = await resize_video(f_p, val) + + if out_path: + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + + await wait.edit("📤 **Enviando video redimensionado...**") + try: + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, thumb=t_path, + caption=f"✅ **Auto Dimensionador** (`{val}`)", + progress=progreso, progress_args=(wait, [0,0], "Enviando") + ) + except Exception as e: + await c.send_document(cid, out_path, caption=f"✅ **Auto Dimensionador** (`{val}`)", thumb=t_path) + + if t_path and os.path.exists(t_path): os.remove(t_path) + os.remove(out_path) + else: + await wait.edit("❌ Error al redimensionar.") + + if os.path.exists(f_p): os.remove(f_p) + try: await wait.delete() + except: pass + else: + await wait.edit("❌ Error en descarga.") + return + + # --- AUTO CORTE SPECIFIC FLOW (QUEUE) --- + if conf.get('cut_auto_mode', False) and 'party_pending' not in st: + # Check Semaphore Status + if SEM_AUTO_CORTE.locked(): + wait = await m.reply("⏳ **En Cola de Procesamiento...**\n_Esperando turno (Máx 5 simultáneos)_") + else: + wait = await m.reply("⬇️ **Bajando TURBO (x16)...**\n🚀 Velocidad Máxima Activada") + + async with SEM_AUTO_CORTE: + if wait.text.startswith("⏳"): await wait.edit("⬇️ **Bajando TURBO (x16)...**\n🚀 Velocidad Máxima Activada") + + # Determine Extension + ext = ".mp4" + if m.audio: ext = ".mp3" + if m.document and m.document.file_name: _, ext = os.path.splitext(m.document.file_name) + elif m.video and m.video.file_name: _, ext = os.path.splitext(m.video.file_name) + elif m.audio and m.audio.file_name: _, ext = os.path.splitext(m.audio.file_name) + + from utils import download_parallel + from tools_media import progreso + f_p = await download_parallel(c, m, os.path.join(DATA_DIR, f"party_{cid}_{m.id}{ext}"), progress=progreso, progress_args=(wait, [0,0], "Descargando")) + + if not f_p: + f_p = await c.download_media(m, file_name=os.path.join(DATA_DIR, f"party_{cid}_{m.id}{ext}")) + + # Logic Auto Cut + val = conf.get('cut_auto_val', '15') + await wait.edit(f"✂️ **Auto Corte Activo ({val}s)**\nProcesando...") + + from tools_media import cut_video_start, get_meta, get_thumb + out = await cut_video_start(f_p, val) + + if out: + await wait.edit("📤 **Enviando video cortado...**") + w, h, dur = await get_meta(out) + t_path = await get_thumb(out, cid, int(time.time())) + + try: + if out.lower().endswith(('.mp3', '.m4a', '.flac', '.wav', '.ogg')): + # Send as Audio + await c.send_audio(cid, out, caption=f"✂️ **Corte Inicial Auto ({val}s)**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + else: + # Send as Video + await c.send_video(cid, out, width=w, height=h, duration=dur, thumb=t_path, caption=f"✂️ **Corte Inicial Auto ({val}s)**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + except Exception as e: + await c.send_document(cid, out, caption=f"✂️ **Corte Inicial Auto ({val}s)**", progress=progreso, progress_args=(wait, [0,0], "Enviando")) + + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(out): os.remove(out) + await wait.delete() + if os.path.exists(f_p): os.remove(f_p) + else: + await wait.edit("❌ Error en Auto Corte.") + return + + # --- STANDARD FLOW (No Queue / One-by-One Manual) --- + + # --- DEFERRED DOWNLOAD CHECK --- + # Si NO hay configuración pendiente, NO descargar. Preguntar primero. + if 'party_pending' not in st and not (conf.get('gif_mode') or conf.get('mp3_mode') or conf.get('cut_init_mode') or conf.get('extract_mode')): + # --- CUSTOM AUTO PARTY CHECK (Priority) --- + if conf.get('auto_party') and conf.get('auto_party_custom') and conf.get('auto_party_cfg'): + mode_c, val_c = conf.get('auto_party_cfg') + # Direct Queue (Using global party_worker) + wait_msg = await m.reply(f"⏳ **Auto Party ({mode_c}={val_c})**\nEncolando...") + asyncio.create_task(party_worker(c, cid, m, mode_c, val_c, wait_msg, context_config=conf)) + return + + # Guardar mensaje para después + url_storage[cid] = {'party_step': 'wait_mode', 'party_msg': m} + + # from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + kb_p = InlineKeyboardMarkup([ + [InlineKeyboardButton("🧩 Partes", callback_data="party_sel|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="party_sel|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="party_sel|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|party_off")] + ]) + await m.reply("✂️ **Modo Party Activo**\n\n1️⃣ **Configura** el corte abajo 👇\n2️⃣ El video se descargará **después** de configurar.", reply_markup=kb_p) + return + + return + + # --- DEFERRED EXTRACT MODE CHECK --- + if conf.get('extract_mode') and 'extract_pending' not in st: + # Ignore if auto_extract is ON (let it download) + if conf.get('auto_extract', False): + pass + else: + url_storage[cid] = {'extract_step': 'wait_mode', 'extract_msg': m} + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("⏱ Segundos", callback_data="extract_sel|sec"), InlineKeyboardButton("🕒 Minutos", callback_data="extract_sel|min")], + [InlineKeyboardButton("🎯 Frame Exacto", callback_data="extract_sel|exact")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + # Check if we should delete user message to keep chat clean or just reply? + # Party mode replies. We reply. + await m.reply("🖼 **Modo Extractor Activo**\n\n1️⃣ **Configura** abajo 👇\n2️⃣ El video se descargará **después** de configurar.", reply_markup=kb) + return + + wait = await m.reply("⬇️ **Bajando TURBO (x16)...**\n🚀 Velocidad Máxima Activada") + + from utils import download_parallel + from tools_media import progreso + + # Determine Extension + ext = ".mp4" + if m.audio: ext = ".mp3" + if m.document and m.document.file_name: _, ext = os.path.splitext(m.document.file_name) + elif m.video and m.video.file_name: _, ext = os.path.splitext(m.video.file_name) + elif m.audio and m.audio.file_name: _, ext = os.path.splitext(m.audio.file_name) + + # Create Job Directory (Nested) + tool_folder = os.path.join(DATA_DIR, "general_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_{cid}_{time.time_ns()}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + f_p = await download_parallel(c, m, os.path.join(job_dir, f"party_{cid}{ext}"), progress=progreso, progress_args=(wait, [0,0], "Descargando")) + + if not f_p: + # Fallback manual por si acaso + f_p = await c.download_media(m, file_name=os.path.join(job_dir, f"party_{cid}{ext}")) + + # ¿Hay una acción pendiente? + if 'party_pending' in st: + mode, val = st['party_pending'] + await run_party_logic(c, cid, f_p, mode, val, wait, original_msg=m, context_config=conf) + url_storage.pop(cid, None) + elif conf.get('gif_mode'): + # Solo GIF, sin menú de opciones + await run_gif_logic(c, cid, f_p, wait) + elif conf.get('mp3_mode'): + # Solo MP3, sin menú + await run_mp3_logic(c, cid, f_p, wait) + elif conf.get('cut_init_mode'): + # Ir al menú de corte (Manual) + url_storage[cid] = {'cut_step': 'wait_time', 'file': f_p} + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("5s", callback_data="cut_exec|00:05"), InlineKeyboardButton("10s", callback_data="cut_exec|00:10"), InlineKeyboardButton("30s", callback_data="cut_exec|00:30")], + [InlineKeyboardButton("1m", callback_data="cut_exec|01:00"), InlineKeyboardButton("✏️ Manual", callback_data="cut_input|manual")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await wait.edit("✂️ **Corte Inicial**\n¿Cuánto tiempo quieres cortar del inicio?\n(El video empezará DESPUÉS de este tiempo)", reply_markup=kb) + elif conf.get('extract_mode'): + # Ir al menú de extracción + url_storage[cid] = {'extract_step': 'wait_mode', 'file': f_p} + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("⏱ Segundos", callback_data="extract_sel|sec"), InlineKeyboardButton("🕒 Minutos", callback_data="extract_sel|min")], + [InlineKeyboardButton("🎯 Frame Exacto", callback_data="extract_sel|exact")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + await wait.edit("🖼 **Modo Extractor**\n¿Cómo quieres extraer las imágenes?", reply_markup=kb) + else: + # Modo clásico: El usuario envió el video y AHORA elige + url_storage[cid] = {'party_step': 'wait_mode', 'file': f_p} + kb_p = InlineKeyboardMarkup([ + [InlineKeyboardButton("🧩 Partes", callback_data="party_sel|parts"), InlineKeyboardButton("⏱ Tiempo", callback_data="party_sel|time")], + [InlineKeyboardButton("✂️ Rango", callback_data="party_sel|range")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|party_off")] + ]) + await wait.edit("✂️ **Modo Party**\nSelecciona una opción:", reply_markup=kb_p) + + +@app.on_message(filters.text & ~filters.command(["start", "help", "id", "menu", "cancel", "user", "setsudo"]), group=1) +async def input_handler(c, m): + # Fix: Combined logic for ID detection and party mode input + cid = m.chat.id + text = m.text.strip() + + # 0. Check Party Input Mode first (Existing Logic) + # 0. Check Party Input Mode first (Existing Logic) + st = url_storage.get(cid) + conf = get_config(cid) # FIX: Define conf + + # --- TIKTOK JUMP INPUT --- + if st and st.get('tiktok_step') == 'wait_jump': + try: + val = int(text) + # Find closest valid index (1-based input -> 0-based idx) + target = max(0, val - 1) + + # Use TikTok Tool Logic + from tiktok_tool import show_catalog, VIRAL_CATALOG # Import locally + total = len(VIRAL_CATALOG) + target = min(target, total - 1) + + # Clear state + url_storage[cid].pop('tiktok_step', None) + + await m.reply(f"✅ Saltando a {target + 1}...") + await show_catalog(c, cid, target) + except ValueError: + await m.reply("❌ Introduce un número válido.") + return + + # --- VIRAL CATALOG JUMP INPUT --- + if st and st.get('viral_step') == 'wait_jump': + try: + val = int(text) + target = max(0, val - 1) + target = min(target, len(viral_music_db) - 1) + + url_storage[cid].pop('viral_step', None) + + await m.reply(f"✅ Saltando a {target + 1}...") + + # Show Item (Reuse logic block manually or via callback hack) + # Manual show + item = viral_music_db[target] + iid = item['id'] + itype = item['type'] + fid = item['file_id'] + cap = item.get('caption', "") + + from utils import generate_grid_keyboard + from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + + extra_rows = [ + [ + InlineKeyboardButton("🗑️ Eliminar", callback_data=f"viral_del|{iid}"), + InlineKeyboardButton("🎲 Aleatorio", callback_data="viral_next") + ], + [InlineKeyboardButton("🔙 Menú Viral", callback_data="menu|viral_init")] + ] + kb = generate_grid_keyboard(target, len(viral_music_db), "viral_sel|", "viral_nav|", "viral_jump", extra_rows=extra_rows) + + caption_txt = f"🎵 **Catálogo Viral** [{target+1}/{len(viral_music_db)}]\nID: `{iid}`\n{cap}" + if itype == 'video': await c.send_video(cid, fid, caption=caption_txt, reply_markup=kb) + elif itype == 'audio': await c.send_audio(cid, fid, caption=caption_txt, reply_markup=kb) + elif itype == 'voice': await c.send_voice(cid, fid, caption=caption_txt, reply_markup=kb) + + except ValueError: + await m.reply("❌ Introduce un número válido.") + return + + # --- CUT AUTO CUSTOM VALUE INPUT --- + if st and st.get('auto_party_input_mode'): + mode = st.get('auto_party_input_mode') + val = text + conf['auto_party_cfg'] = (mode, val) + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + await m.reply(f"✅ **Auto Configurado:** {mode}={val}") + url_storage[cid].pop('auto_party_input_mode', None) + + # Show menu again (Trigger callback hack) + await cb(c, type('obj', (object,), {'message': m, 'from_user': m.from_user, 'data': 'menu|auto_party_custom', 'answer': lambda *args, **kwargs: None, 'internal': True})()) + return + + if st and st.get('cut_auto_step') == 'val_wait': + val = text + conf['cut_auto_val'] = val + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + url_storage[cid]['cut_auto_step'] = None # Clear step + + # Show updated menu + is_on = conf.get('cut_auto_mode', False) + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado: {'🟢 ACTIVO' if is_on else '🔴 APAGADO'}", callback_data="toggle|cut_auto")], + [InlineKeyboardButton(f"⏱ Valor: {val}s", callback_data="ignore")], + [ + InlineKeyboardButton("5s", callback_data="cut_auto_set|5"), + InlineKeyboardButton("10s", callback_data="cut_auto_set|10"), + InlineKeyboardButton("15s", callback_data="cut_auto_set|15"), + InlineKeyboardButton("30s", callback_data="cut_auto_set|30") + ], + [InlineKeyboardButton("✏️ Personalizado", callback_data="cut_auto_set|custom")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + # User requested specific feedback explaining automation + await m.reply(f"✅ **Valor guardado:** `{val}`\n\nAhora, si usas el modo **Corte Inicial**, cortará automáticamente **{val}** de cualquier video que mandes.", reply_markup=kb) + # Check auto-off for cut_auto if needed? The logic seems to be "set value" here, not run logic. + return + + # --- CUT INIT MANUAL INPUT --- + if st and st.get('cut_input_mode') == 'manual': + val = text + # Feedback moved below after validation of file + + f_path = st.get('file') + f_path = st.get('file') + if f_path and os.path.exists(f_path): + # Format feedback + fb_str = val + if ":" in val: + parts = val.split(":") + if len(parts) == 2: + fb_str = f"{val} ({parts[0]} min {parts[1]} seg)" + else: + fb_str = f"{val} ({val} segundos)" + + await m.reply(f"✅ Recibido: `{fb_str}`. Procesando...") + + from tools_media import cut_video_start, get_meta, get_thumb + # FIX: Call async directly, do not use run_in_executor + out = await cut_video_start(f_path, val) + + if out: + w, h, dur = await get_meta(out) + t_path = await get_thumb(out, cid, int(time.time())) + from tools_media import progreso + # Send with progress + pm = await m.reply("📤 **Iniciando subida...**") + + # CHECK DOC MODE TOOLS + conf = get_config(cid) + is_doc_tools = conf.get('doc_mode_tools', False) + + try: + if is_doc_tools: + await c.send_document(cid, out, thumb=t_path, caption=f"✂️ **Corte Inicial ({fb_str})**", progress=progreso, progress_args=(pm, [0,0], None)) + else: + await c.send_video(cid, out, width=w, height=h, duration=dur, thumb=t_path, caption=f"✂️ **Corte Inicial ({fb_str})**", progress=progreso, progress_args=(pm, [0,0], None)) + except: + await c.send_document(cid, out, caption=f"✂️ **Corte Inicial ({fb_str})**", progress=progreso, progress_args=(pm, [0,0], None)) + + await pm.delete() + + if t_path and os.path.exists(t_path): os.remove(t_path) + if os.path.exists(out): os.remove(out) + else: + await m.reply("❌ Error al cortar.\nFormato posible de tiempo incorrecto (Ej: `00:10`).") + + if os.path.exists(f_path): os.remove(f_path) + url_storage.pop(cid, None) + + # Auto-OFF + conf['cut_init_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, "🛑 Se desactivó el modo/herramienta: Corte Inicial") + + else: + await m.reply("❌ Archivo expiró.") + url_storage.pop(cid, None) + + m.stop_propagation() + return + + # 0.5 Tagger/Research Mode Support (Top Priority for Text) + # 0.5 Tagger/Research Mode Support (Top Priority for Text) + is_tagger = conf.get('tagger_mode') + is_research = conf.get('research_mode') + + if is_tagger and is_research: + # DUAL SMART MODE + if not text.startswith("/"): + # Use research logic but it will handle the smart context because we will update the prompt + await run_research_logic(c, cid, text=text, msg=m) + m.stop_propagation() + return + + if is_tagger: + # Ignore commands + if not text.startswith("/"): + await run_tagger_text_logic(c, cid, text, m) + m.stop_propagation() + return + elif is_research: + if not text.startswith("/"): + await run_research_logic(c, cid, text=text, msg=m) + m.stop_propagation() + return + + # BLOCK INTERACTIONS IF IN CONFIG MODE + if st and (st.get('ai_config_step') or st.get('ai_add_step')): + # Allow only if it matches specific logic below? + # ai_add_step handles its own logic below. + # ai_config_step handles subset below? No, subset is in image_handler (weird location but ok) + + # Check if it was handled by image_handler (wait_subset) + # image_handler filters are media. subset is text. + # So where is wait_subset handled?!? + # It is handled in image_handler in the file I viewed earlier? + # Let me re-verify that. + pass # Placeholder for thought + + # Re-reading: subset logic WAS inside image_handler but that function decorator was media only. + # That means subset text input (e.g. "1 3 5") was NEVER working if image_handler only had media filters. + # UNLESS image_handler had filters.text too? + # View showed: @app.on_message(filters.photo | filters.document | filters.video | filters.animation | filters.sticker) + # It does NOT have text. + # So line 2221 "if st and st.get('ai_config_step') == 'wait_subset':" inside image_handler is DEAD CODE for text inputs. + # Fixing this: I should move that logic to input_handler OR add filters.text to image_handler. + # Adding filters.text to image_handler makes it a "general handler" which is essentially what input_handler is. + # Better to move it or handle it in input_handler. + + # But for now, user request is 'block others'. + # If I block others here, I might block valid inputs if I don't move the logic. + # Assuming the user only complained about "other functions" responding. + + if st and st.get('ai_config_step') == 'wait_image': + await m.reply("⚠️ **Modo Subida Activo**\nSolo acepto imágenes.\nPulsa **🛑 PAUSAR SUBIDA** si ya terminaste, o escribe /start.") + m.stop_propagation() + return + + + # --- FLOW: ADD CUSTOM PERSONA --- + if st and 'ai_add_step' in st: + step = st['ai_add_step'] + if text.lower() == "/cancel": + url_storage.pop(cid, None) + await m.reply("❌ Cancelado.") + return + + if step == 'wait_name': + # Save name, ask prompt + url_storage[cid]['new_persona_name'] = text + url_storage[cid]['ai_add_step'] = 'wait_prompt' + + await m.reply(f"👤 **Nombre:** {text}\n\n🧠 **Ahora define su COMPORTAMIENTO (Prompt).**\nDescribe cómo debe hablar, su actitud, palabras clave, etc.\n\n_Tip: Puedes escribir 'Misma que NSFW' para copiar la base._") + return + + elif step == 'wait_prompt': + name = st.get('new_persona_name', 'Custom') + prompt = text + + # Save to Global (Shared) + # Save to Global (Shared) + # import time # Removed to avoid shadowing global time + pid = f"cust_{int(time.time())}" + + p_data = {'name': name, 'prompt': prompt, 'images': {}} + await save_global_persona(pid, p_data) + await refresh_globals() + + # Auto-Activate (Local User Config) + conf = get_config(cid) + conf['active_persona'] = pid + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + url_storage.pop(cid, None) + + from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("⚙️ Configurar Cuerpo", callback_data=f"ai_conf|body|{pid}")], + [InlineKeyboardButton("🔙 Volver al Menú", callback_data="menu|ai_config")] + ]) + await m.reply(f"✅ **Personalidad Global Creada: {name}**\n\n🧠 Ya está activa y visible para todos. Configura su cuerpo.", reply_markup=kb) + return + + # --- FLOW: ADD CATEGORY (NEW) --- + if st and st.get('action') == 'ai_add_cat_wait': + pid = st.get('pid', 'nsfw') + if text.lower() == "/cancel": + url_storage.pop(cid, None) + await m.reply("❌ Cancelado.") + return + + # Normalize key + key_raw = text.strip() + key_clean = re.sub(r'[^a-zA-Z0-9]', '_', key_raw).lower() + + if not key_clean: + await m.reply("❌ Nombre inválido. Usa letras y números.") + return + + conf = get_config(cid) + + # Check Global First + if pid in global_personas: + p_data = global_personas[pid] + if 'images' not in p_data: p_data['images'] = {} + + if key_clean not in p_data['images']: + p_data['images'][key_clean] = {'mode': 'single', 'images': []} + await save_global_persona(pid, p_data) + # Don't need refresh_globals() full here, just local update is enough for now, + # but good to stay synced. + global_personas[pid] = p_data + else: + await m.reply(f"⚠️ La reacción `{key_raw}` ya existía (Global).") + url_storage.pop(cid, None) + return + else: + # Local Legacy + if 'ai_images' not in conf: conf['ai_images'] = {} + if pid not in conf['ai_images']: conf['ai_images'][pid] = {} + + if key_clean not in conf['ai_images'][pid]: + conf['ai_images'][pid][key_clean] = {'mode': 'single', 'images': []} + asyncio.create_task(save_user_config_fb(cid, conf)) + else: + await m.reply(f"⚠️ La reacción `{key_raw}` ya existía.") + url_storage.pop(cid, None) + return + + url_storage.pop(cid, None) + + # Redirect back + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver a configurar", callback_data=f"ai_conf|body|{pid}")]]) + await m.reply(f"✅ **Característica Creada:** `{key_raw}`\n\nAhora aparecerá en el menú.", reply_markup=kb) + return + + # --- FLOW: SUBSET CONFIG (Moved from Image Handler) --- + if st and st.get('ai_config_step') == 'wait_subset': + cat = st.get('category') + pid = st.get('persona_id', 'nsfw') + + if text.lower() == "/cancel": + url_storage.pop(cid, None) + await m.reply("❌ Cancelado.") + return + + try: + # Parse numbers + nums = [int(x) for x in text.split()] + if not nums: raise ValueError("Empty") + + conf = get_config(cid) + # Validate against real count + # Check Global First + ai_imgs = {} + is_global = False + + if pid in global_personas and 'images' in global_personas[pid] and cat in global_personas[pid]['images']: + ai_imgs = global_personas[pid]['images'][cat] + is_global = True + else: + # Local + ai_imgs = conf.get('ai_images', {}).get(pid, {}).get(cat, {'images': []}) + + count = len(ai_imgs.get('images', [])) + + # Convert to 0-indexed indices + final_subset = [] + for n in nums: + if 1 <= n <= count: + final_subset.append(n-1) # 0-indexed + + if not final_subset: + await m.reply("⚠️ Ningún número válido. Usa índices del 1 al " + str(count)) + return + + # Save + if is_global: + p_data = global_personas[pid] + p_data['images'][cat]['mode'] = 'subset' + p_data['images'][cat]['subset'] = final_subset + await save_global_persona(pid, p_data) + global_personas[pid] = p_data + else: + if 'ai_images' not in conf: conf['ai_images'] = {} + if pid not in conf['ai_images']: conf['ai_images'][pid] = {} + if cat not in conf['ai_images'][pid]: conf['ai_images'][pid][cat] = {} + + conf['ai_images'][pid][cat]['mode'] = 'subset' + conf['ai_images'][pid][cat]['subset'] = final_subset + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + # Success msg with Menu + from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver a Configurar", callback_data=f"ai_conf|cat|{cat}|{pid}")]]) + await m.reply(f"✅ **Modo Personalizado Activado**\nUsando {len(final_subset)} imágenes seleccionadas.", reply_markup=kb) + + url_storage.pop(cid, None) + return + + except Exception as e: + await m.reply(f"❌ Error: {e}") + return + + # --- FLOW: EDIT PERSONA TEXT HANDLER --- + if st and st.get('action') == 'ai_edit_p_wait': + pid = st.get('pid') + field = st.get('field') + + if text.lower() == "/cancel": + url_storage.pop(cid, None) + await m.reply("❌ Edición Cancelada.") + return + + # Validate Input + if len(text) > 1000: # Limit Prompt + await m.reply("⚠️ Texto muy largo. Intenta algo más corto.") + return + + conf = get_config(cid) + + # 1. Global Persona Check + if pid in global_personas: + p_data = global_personas[pid] + if field == 'name': + if len(text) > 30: + await m.reply("⚠️ Nombre muy largo (máx 30 chars).") + return + p_data['name'] = text + msg_success = f"✅ **Nombre Global Editado:** {text}" + else: + p_data['prompt'] = text + msg_success = f"✅ **Prompt Global Actualizado.**" + + await save_global_persona(pid, p_data) + # Update local cache + global_personas[pid] = p_data + + else: + # 2. Local Legacy Check + if 'custom_personas' not in conf: conf['custom_personas'] = {} + if pid not in conf['custom_personas']: conf['custom_personas'][pid] = {} + + if field == 'name': + if len(text) > 30: + await m.reply("⚠️ Nombre muy largo (máx 30 chars).") + return + conf['custom_personas'][pid]['name'] = text + msg_success = f"✅ **Nombre cambiado a:** {text}" + else: + conf['custom_personas'][pid]['prompt'] = text + msg_success = f"✅ **Prompt actualizado.**" + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + url_storage.pop(cid, None) + + # Return to Menu + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver al Menú", callback_data="menu|ai_config")]]) + await m.reply(msg_success, reply_markup=kb) + return + + # Return to Menu + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Volver al Menú", callback_data="menu|ai_config")]]) + await m.reply(msg_success, reply_markup=kb) + return + + # --- INPUT: PAPER MODE (VIDEO MIXER) --- + if st and 'vm_paper_pending' in st: + pending = st['vm_paper_pending'] + if not text: return + + # We have text and pending videos + wm = pending['wm'] + msgs = pending['msgs'] # List of [m1, m2] (Pyrogram Message Objects) + text_input = text + + # Clear state + url_storage[cid].pop('vm_paper_pending') + + try: await wm.edit("⬇️ **Descargando videos (Modo Papel)...**") + except: pass + + # Download + # We need client 'c' to download. + from utils import download_parallel + + paths = [] + for i, msg_v in enumerate(msgs): + try: + # Determine Ext + ext = ".mp4" + if msg_v.photo: ext = ".jpg" + elif msg_v.document: + if msg_v.document.mime_type and msg_v.document.mime_type.startswith('image/'): ext = ".jpg" + elif msg_v.document.file_name: _, ext = os.path.splitext(msg_v.document.file_name) + elif msg_v.video and msg_v.video.file_name: _, ext = os.path.splitext(msg_v.video.file_name) + + # Name unique + f_path = os.path.join(DATA_DIR, f"paper_in_{cid}_{int(time.time())}_{i}{ext}") + dl_path = await download_parallel(c, msg_v, f_path) + if not dl_path: dl_path = await c.download_media(msg_v, file_name=f_path) + + if dl_path and os.path.exists(dl_path): + paths.append(dl_path) + except Exception as e: + print(f"DL Error: {e}") + + if len(paths) < 2: + await wm.edit("❌ Error descargando videos.") + return + + # Process + await wm.edit(f"🎨 **Generando Meme...**\nTexto: `{text_input}`") + + from video_mixer import mix_videos_paper + conf = get_config(cid) + audio_mode = conf.get('vm_audio_mode', 'mix') + + out_path = await mix_videos_paper(paths[0], paths[1], text_input, audio_mode=audio_mode) + + if out_path: + await wm.edit("📤 **Subiendo...**") + + # Detect Type + is_img_out = out_path.endswith(".jpg") + + try: + if is_img_out: + await c.send_photo( + cid, out_path, + caption=f"📝 **Modo Papel**\nTexto: {text_input}" + ) + else: + # Video + from tools_media import get_meta + w, h, dur = await get_meta(out_path) + await c.send_video( + cid, out_path, + caption=f"📝 **Modo Papel**\nTexto: {text_input}", + width=w, height=h, duration=dur + ) + except Exception as e: + # Fallback + await c.send_document(cid, out_path, caption="📝 **Modo Papel**") + + await wm.delete() + + # Cleanup + try: + os.remove(out_path) + for p in paths: os.remove(p) + except: pass + + # Persist Check + if conf.get('vm_persist', False) and conf.get('video_mixer_mode', False): + # Stay in mode... but buffers are cleared. + await m.reply("✅ **Listo.**\nEnvíame otros 2 videos para otro meme.", + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("🔙 Menu", callback_data="menu|video_mixer_menu")]])) + else: + # Auto OFF + conf['video_mixer_mode'] = False + conf['vm_paper_mode'] = False # Disable sub-mode too? Usually safer. + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await m.reply("✅ **Proceso Finalizado.**") + + else: + await wm.edit("❌ Error Generando Video.") + + m.stop_propagation() + return + + if st and 'party_input_mode' in st: + mode = st['party_input_mode'] + url_storage[cid].pop('party_input_mode', None) + + if 'file' not in st: + url_storage[cid]['party_pending'] = (mode, text) + await m.reply(f"✅ **Configurado (Split):** `{mode}={text}`\n\n🎬 **Envía el video** ahora.") + return + + await run_party_logic(c, cid, st['file'], mode, text, original_msg=st.get('party_msg')) + url_storage.pop(cid, None) + return + + if st and 'extract_step' in st: + step = st['extract_step'] + f_p = st.get('file') + + # --- DEFERRED DOWNLOAD (INPUT HANDLER) --- + if not f_p or not os.path.exists(f_p): + extract_msg = st.get('extract_msg') + if extract_msg: + # Confirmacion Visual + await m.reply(f"✅ **Configurado: {text}**") + wait = await m.reply(f"⬇️ **Descargando para extraer...**\n🚀 Velocidad Máxima Activada") + + from utils import download_parallel + from tools_media import progreso + import random + import config + + # Create Temp Dir + tool_folder = os.path.join(config.DATA_DIR, "extract_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + job_dir = os.path.join(tool_folder, f"job_{cid}_{time.time_ns()}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + # Ext guess + ext = ".mp4" + if extract_msg.video and extract_msg.video.file_name: _, ext = os.path.splitext(extract_msg.video.file_name) + elif extract_msg.document and extract_msg.document.file_name: _, ext = os.path.splitext(extract_msg.document.file_name) + + f_p = await download_parallel(c, extract_msg, os.path.join(job_dir, f"extract_{cid}{ext}"), progress=progreso, progress_args=(wait, [0,0], "Descargando")) + if not f_p: f_p = await c.download_media(extract_msg, file_name=os.path.join(job_dir, f"extract_{cid}{ext}")) + + if not f_p: + await wait.edit("❌ Error descargando video.") + return + + # clean wait msg + try: await wait.delete() + except: pass + else: + await m.reply("❌ Video expiró.") + url_storage.pop(cid, None) + return + + url_storage.pop(cid, None) + + if step.startswith('wait_custom_'): + mode = step.split('_')[-1] + await run_extract_logic(c, cid, f_p, mode, text) + elif step == 'wait_exact': + await run_extract_logic(c, cid, f_p, 'exact', text) + return + + # 1. RAW MANGA ID CHECK (AlphaNumeric ~20 chars) + # Ejemplo: sX2wxwVUjoJzWmN0W2cG + if re.match(r'^[a-zA-Z0-9]{20}$', text): + wm = await m.reply("⬇️ **Analizando ID de Manga...**") + await show_manga_menu(c, m, text, wait_msg=wm) + return + + m.continue_propagation() + + +# --- COLLAGE TOOL HANDLER --- +@app.on_message((filters.video | filters.document | filters.photo) & filters.private) +async def collage_video_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # Priority Auto Check: + # If explicit 'collage_mode' is True, use it (manual or previously set). + # IF NOT, check if any AUTO is True. If so, ACTIVATE it on the fly. + active_auto = None + if conf.get('collage_auto_3x3'): active_auto = '3x3' + elif conf.get('collage_auto_2x2'): active_auto = '2x2' + elif conf.get('collage_auto_2x1'): active_auto = '2x1' + + # If Auto is detected, override/activate mode + if active_auto: + conf['collage_mode'] = True + conf['collage_grid'] = active_auto + # We don't save to DB here to avoid spamming writes, passed in memory or just used. + # But 'run_collage_logic' reads from 'conf', which is a dict. This update affects the local dict. + + # Check if Collage Mode is active + if conf.get('collage_mode'): + # --- BATCH BUFFER LOGIC --- + if cid not in COLLAGE_BATCH_BUFFER: + # First item in batch + wm = await m.reply("🧩 **Collage: Recibido 1/N...**\n(Envía más o espera a que se procese)") + COLLAGE_BATCH_BUFFER[cid] = {'files': [], 'wm': wm} + # Start Batch Timer + asyncio.create_task(run_collage_batch(cid, c)) + + # Download Media to Temp + wm = COLLAGE_BATCH_BUFFER[cid]['wm'] + try: await wm.edit("⬇️ ...") + except: pass + + # Determine Ext + ext = ".jpg" # Default if photo + if m.video: ext = ".mp4" + elif m.document: _, ext = os.path.splitext(m.document.file_name or "file.mp4") + + # Create Temp Path + ts = int(time.time()) + rnd = random.randint(1000, 9999) + # Unique Job Folder per Chat/Batch? Or shared temp? Shared temp but unique files. + tool_folder = os.path.join(DATA_DIR, "collage_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + f_path = os.path.join(tool_folder, f"col_in_{cid}_{ts}_{rnd}{ext}") + + # Download + # Assuming photos are small, video/doc normal download + if m.photo: + await c.download_media(m, file_name=f_path) + else: + from utils import download_parallel + from tools_media import progreso + p = await download_parallel(c, m, f_path, progress=progreso, progress_args=(wm, [0,0], "Agregando...")) + if not p: await c.download_media(m, file_name=f_path) + + if os.path.exists(f_path): + COLLAGE_BATCH_BUFFER[cid]['files'].append(f_path) + cnt = len(COLLAGE_BATCH_BUFFER[cid]['files']) + try: await wm.edit(f"🧩 **Collage: Recibido {cnt}/N...**\n(Espera 4s para procesar)") + except: pass + + m.stop_propagation() + return + + # If not active, propagate to standard handlers (Party, Tools, etc.) + m.continue_propagation() + +# --- LINK REFACTOR MODE HANDLER --- +@app.on_message(filters.command(["refactorización_de_enlaces", "refactor_on", "refactor_off"]) & filters.private) +async def refactor_mode_command(c, m): + cid = m.chat.id + try: + current_st = get_config(cid).get('refactor_mode', False) + cmd = m.command[0].lower() + + # Logic for determining new state based on command name or argument + if cmd == "refactor_on": + new_st = True + elif cmd == "refactor_off": + new_st = False + else: + # Generic command: /refactorización_de_enlaces + if len(m.command) < 2: + state = "ON 🟢" if current_st else "OFF 🔴" + await m.reply(f"ℹ️ **Modo Refactorización:** {state}\nUso: `/refactor_on`, `/refactor_off` o `/refactorización_de_enlaces on/off`") + return + + arg = m.command[1].lower() + new_st = True if arg == 'on' else False + + conf = get_config(cid) + conf['refactor_mode'] = new_st + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + state_txt = "ACTIVADO 🟢" if new_st else "DESACTIVADO 🔴" + await m.reply(f"✅ **Refactorización de Enlaces:** {state_txt}") + + except Exception as e: + await m.reply(f"❌ Error: {e}") + +# --- REFACTOR INTERCEPTOR (High Priority) --- +@app.on_message(filters.regex(r"https?://(www\.)?facebook\.com/share/r/") & filters.private, group=-5) +async def refactor_link_interceptor(c, m): + cid = m.chat.id + conf = get_config(cid) + + # Only if enabled + if not conf.get('refactor_mode', False): + m.continue_propagation() + return + + url = m.text.strip() + + # Check if handleable + if 'share/r/' in url: + await m.reply("🔄 **Analizando enlace (puede tardar unos segundos)...**") + try: + # Use yt-dlp to resolve the redirect and get ID + import yt_dlp + + # Run in executor to avoid blocking + def get_fb_id(u): + opts = { + 'quiet': True, + 'headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'} + } + with yt_dlp.YoutubeDL(opts) as ydl: + info = ydl.extract_info(u, download=False) + return info.get('id') + + real_id = await asyncio.get_running_loop().run_in_executor(None, get_fb_id, url) + + if real_id: + new_url = f"https://www.facebook.com/reel/{real_id}" + await m.reply(f"🔄 **Link Refactorizado:**\n{new_url}", disable_web_page_preview=True) + else: + await m.reply("⚠️ No se pudo extraer el ID del enlace.") + + except Exception as e: + print(f"Refactor Error: {e}") + m.continue_propagation() + return + else: + m.continue_propagation() + + +# --- VIDEO MIXER HANDLER --- +@app.on_message((filters.video | filters.document | filters.photo) & filters.private, group=-2) +async def video_mixer_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + if conf.get('video_mixer_mode'): + await run_video_mixer_logic(c, cid, m) + m.stop_propagation() + return + + m.continue_propagation() + +async def run_video_mixer_logic(c, cid, m): + # 1. Init Buffer & Lock (Thread-Safeish) + if cid not in VIDEO_MIXER_BUFFERS: + VIDEO_MIXER_BUFFERS[cid] = [] + if cid not in VIDEO_MIXER_LOCKS: + VIDEO_MIXER_LOCKS[cid] = asyncio.Lock() + + buff = VIDEO_MIXER_BUFFERS[cid] + + # 2. Add to Buffer (Store Message, Don't Download Yet) + # We reply to acknowledge receipt + wm = await m.reply("⬇️ ...") + + process_pair = None + + async with VIDEO_MIXER_LOCKS[cid]: + # Append tuple: (msg_id, message_object, reply_msg_object) + buff.append((m.id, m, wm)) + buff.sort(key=lambda x: x[0]) + + needed = 2 + if len(buff) >= needed: + process_pair = [buff.pop(0) for _ in range(needed)] + + # 3. Feedback Loop (Wait or Start) + if not process_pair: + try: + await wm.edit(f"✅ **Recibí 1 Archivo.**\n🎥 **Envíame el siguiente** (Video o Foto) para mezclar.") + except: pass + return + + # Continue with processing + try: + # Check Paper Mode + conf = get_config(cid) + if conf.get('vm_paper_mode', False): + # PAPER MODE: Don't mix yet. Ask for Text. + # Store the pair in a specific wait state. + + # Clean UI first + m1, wm1 = process_pair[0][1], process_pair[0][2] + m2, wm2 = process_pair[1][1], process_pair[1][2] + + try: await wm1.delete() + except: pass + + # We use the second wm to ask + target_wm = wm2 + + # Save pending pair + if cid not in url_storage: url_storage[cid] = {} + + url_storage[cid]['vm_paper_pending'] = { + 'wm': target_wm, + 'msgs': [m1, m2] + } + + await target_wm.edit("✍️ **Modo Papel: Falta Texto**\n\nEscribe el texto que irá en la parte superior (Meme).") + return + + # 4. START PROCESS (Standard Mix) + + v1_data = process_pair[0] # (id, msg, wm) + v2_data = process_pair[1] + + m1, wm1 = v1_data[1], v1_data[2] + m2, wm2 = v2_data[1], v2_data[2] + + # UI Cleanup: Delete first waiting message, keep second for progress + try: await wm1.delete() + except: pass + + target_wm = wm2 + try: await target_wm.edit("⬇️ **Recibidos 2 Clips. Comenzando descarga...**") + except: pass + + from utils import download_parallel + from tools_media import progreso + + # Helper Download function + async def dl_clip(msg, index): + # Determine Ext + ext = ".mp4" + is_static_img = False + + if msg.photo: + ext = ".jpg" + is_static_img = True + elif msg.video and msg.video.file_name: _, ext = os.path.splitext(msg.video.file_name) + elif msg.document: + if msg.document.mime_type and msg.document.mime_type.startswith('image/'): + ext = ".jpg" + is_static_img = True + elif msg.document.file_name: + _, ext = os.path.splitext(msg.document.file_name) + + f_path = os.path.join(DATA_DIR, f"vmix_{cid}_{msg.id}_{int(time.time())}{ext}") + + # Download + if is_static_img: + # Direct download for images (faster/simpler) + path = await c.download_media(msg, file_name=f_path) + else: + path = await download_parallel(c, msg, f_path, progress=progreso, progress_args=(target_wm, [0,0], f"Descargando Clip {index}/2")) + if not path: path = await c.download_media(msg, file_name=f_path) + + return path + + # Sequential Download (safer for progress bar updates) + v1_path = await dl_clip(m1, 1) + if not v1_path: + await target_wm.edit("❌ Error descargando Archivo 1") + return + + v2_path = await dl_clip(m2, 2) + if not v2_path: + await target_wm.edit("❌ Error descargando Archivo 2") + return + + # 5. MIXING + try: + await target_wm.edit("✅ **Descargas Completas.**\n🎬 **Comenzando a mezclar...**") + except: pass + + # (Continue to mixing logic below...) + + # Variables are already set above: v1_path, v2_path + + conf = get_config(cid) + a_mode = conf.get('vm_audio_mode', 'mix') + + # RUN MIXER + from video_mixer import mix_videos_side_by_side + from tools_media import get_meta, get_thumb + + out_path = await mix_videos_side_by_side(v1_path, v2_path, audio_mode=a_mode) + + if out_path: + await target_wm.edit("📤 **Subiendo...**") + + is_img_out = out_path.endswith(".jpg") + + try: + if is_img_out: + await c.send_photo( + cid, out_path, + caption="🎞 **Collage Video Creator (Mixer)**" + ) + else: + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, thumb=t_path, + caption="🎞 **Collage Video Creator (Mixer)**", + progress=progreso, progress_args=(target_wm, [0,0], "Subiendo") + ) + + if t_path and os.path.exists(t_path): os.remove(t_path) + except Exception as e: + await c.send_document(cid, out_path, caption="🎞 **Collage Video Creator (Mixer)**") + + # Cleanup Progress Msg + try: await target_wm.delete() + except: pass + + # Cleanup Output and Thumb + if t_path and os.path.exists(t_path): os.remove(t_path) + os.remove(out_path) + else: + await target_wm.edit("❌ Error al mezclar videos.") + + # Cleanup Inputs + if os.path.exists(v1_path): os.remove(v1_path) + if os.path.exists(v2_path): os.remove(v2_path) + + # Persistence Check + if not conf.get('vm_persist', False): + # Only Auto-Off if buffer is empty? + # Smart Check: + remaining = 0 + async with VIDEO_MIXER_LOCKS[cid]: + remaining = len(buff) + + if remaining == 0: + conf['video_mixer_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, "✅ **Proceso Finalizado.** (Modo Apagado)") + else: + # Persist ON -> Just confirm + pass + + except Exception as e: + import traceback + print(f"❌ Video Mixer Error: {e} | Type: {type(e)}") + traceback.print_exc() + try: await wm.edit(f"❌ Error CRÍTICO Video Mixer:\n`{e}`\nType: `{type(e)}`") + except: pass + # Clean specific file if failed to add + # (Only if variable 'path' exists and not in buffer) + +# --- SMART CUT HANDLER --- +@app.on_message((filters.video | filters.document) & filters.private, group=1) # Group 1 to avoid fighting with Collage? Or same group. +# Defaults are group 0. If multiple match, multiple run? Pyrogram stops on stop_propagation. +# I'll check Collage Mode. If active, it takes over. +# If Smart Cut Mode is active, it takes over. +async def smart_cut_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + if conf.get('smart_cut_mode'): + # Check Exclusivity (Collage vs Smart Cut) happens at Activation Time. + await run_smart_cut_logic(c, cid, m) + m.stop_propagation() + return + + m.continue_propagation() + +async def run_smart_cut_logic(c, cid, m): + wm = await m.reply("⬇️ **Descargando para Smart Cut...**") + dl_path = None + out_path = None + + try: + timestamp = int(time.time()) + dl_path = os.path.join("downloads", f"smart_in_{cid}_{timestamp}.mp4") + + # Download with Progress + # Download with Progress + from tools_media import smart_cut_video, get_meta, progreso, get_thumb + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Smart Cut")) + + await wm.edit("🧠 **Analizando intro...**\n_Buscando cambios de escena..._") + + # Run detection and cut + res = await smart_cut_video(dl_path) + + if res and res[0]: + out_path, cut_time = res + await wm.edit(f"✂️ **Intro detectada: {cut_time:.2f}s**\n📤 Enviando video cortado...") + + # Generate Thumbnail from the NEW video + t_path = await get_thumb(out_path, cid, int(time.time())) + + # Send video with Progress + w, h, dur = await get_meta(out_path) + times = [0, 0] + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, + thumb=t_path, # Attach new thumbnail + caption=f"🧠 **Smart Cut Aplicado**\n\n✂️ Se eliminaron los primeros **{cut_time:.2f}s**.", + progress=progreso, progress_args=(wm, times, "Subiendo Smart Cut") + ) + + # Cleanup Thumb + if t_path and os.path.exists(t_path): + try: os.remove(t_path) + except: pass + else: + await wm.edit("⚠️ **No se detectó una intro clara.**\nEl video empieza directo o el cambio es muy sutil.") + + except Exception as e: + print(f"Smart Cut Error: {e}") + await wm.edit(f"❌ Error: {e}") + + finally: + # Cleanup + if dl_path and os.path.exists(dl_path): + try: os.remove(dl_path) + except: pass + if out_path and os.path.exists(out_path): + try: os.remove(out_path) + except: pass + + # Robust Auto-OFF + conf = get_config(cid) + conf['smart_cut_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + + try: await c.send_message(cid, "✅ **Smart Cut Finalizado (Auto-OFF)**") + except: pass + try: await wm.delete() + except: pass + + +async def run_collage_logic(c, cid, m): + """ + Handles the collage creation process. + """ + conf = get_config(cid) + ctype = conf.get('collage_type', 'png') + grid = conf.get('collage_grid', '3x3') + + # 1. Download Video + wm = await m.reply("⬇️ **Descargando para Collage...**") + + try: + # Determine path + timestamp = int(time.time()) + # Create Job Directory + # Create Job Directory (Nested) + tool_folder = os.path.join(DATA_DIR, "collage_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_{cid}_{timestamp}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + dl_path = os.path.join(job_dir, f"collage_in_{cid}_{timestamp}.mp4") + + from tools_media import create_video_collage, get_meta, progreso + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Collage")) + + await wm.edit(f"🧩 **Generando Collage {grid} (esto puede tardar)...**") + + # 2. Generate Collage Image + collage_path = await create_video_collage(dl_path, grid=grid) + + if not collage_path or not os.path.exists(collage_path): + await wm.edit("❌ Error: No se pudo crear el collage.") + return + + # 3. Send Result + await wm.edit("📤 **Subiendo resultado...**") + times = [0, 0] + + if ctype == 'png': + # Send as Photo + await c.send_photo( + cid, collage_path, + caption=f"🧩 **Collage {grid} Generado**", + progress=progreso, progress_args=(wm, times, "Subiendo Collage (IMG)") + ) + else: + # Send as Video Thumbnail + w, h, dur = await get_meta(dl_path) + if dur == 0: dur = 10 + + await c.send_video( + cid, + dl_path, + thumb=collage_path, + width=w, + height=h, + duration=dur, + caption=f"🧩 **Video con Portada Collage ({grid})**", + progress=progreso, progress_args=(wm, times, "Subiendo Collage (Ovid)") + ) + + # 4. Clean up + try: + if 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + import shutil + shutil.rmtree(job_dir, ignore_errors=True) + else: + if os.path.exists(collage_path): os.remove(collage_path) + if os.path.exists(dl_path): os.remove(dl_path) + except: pass + + await wm.delete() + + # 5. Auto-OFF (Check Specific AUTO) + is_auto = conf.get(f'collage_auto_{grid}', False) + + if not is_auto: + conf['collage_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, f"✅ **Modo Collage ({grid}) Finalizado**") + pass + + except Exception as e: + print(f"Collage Logic Error: {e}") + await wm.edit(f"❌ Error crítico: {e}") + + +async def run_subtitle_logic(c, cid, m): + wm = await m.reply("⬇️ **Descargando para Subtitular...**") + dl_path = None + out_path = None + + try: + timestamp = int(time.time()) + # Create Job Directory + # Create Job Directory (Nested) + tool_folder = os.path.join(DATA_DIR, "subtitle_temp") + if not os.path.exists(tool_folder): os.makedirs(tool_folder) + + job_dir = os.path.join(tool_folder, f"job_{cid}_{timestamp}_{random.randint(1000, 9999)}") + if not os.path.exists(job_dir): os.makedirs(job_dir) + + dl_path = os.path.join(job_dir, f"sub_in_{cid}_{timestamp}.mp4") + + # Download + from tools_media import generate_subtitles_video, get_meta, get_thumb, progreso + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Subtítulos")) + + await wm.edit("📝 **Generando Subtítulos (Whisper AI)...**\n_Esto puede tardar unos minutos..._") + + # Subtitle Generation + out_path = await generate_subtitles_video(dl_path, cid) + + if out_path and os.path.exists(out_path): + await wm.edit("📤 **Subiendo video subtitulado...**") + + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + times = [0, 0] + + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, + thumb=t_path, + caption="📝 **Video Subtitulado (Automático)**\n_Generado con Whisper AI_", + progress=progreso, progress_args=(wm, times, "Subiendo Subtitulado") + ) + + if t_path and os.path.exists(t_path): + try: os.remove(t_path) + except: pass + else: + await wm.edit("❌ Error: No se pudieron generar los subtítulos.") + + except Exception as e: + print(f"Sub Error: {e}") + await wm.edit(f"❌ Error: {e}") + + finally: + # Cleanup Job Dir + import shutil + job_dir = os.path.dirname(dl_path) if dl_path else None + + if job_dir and 'job_' in os.path.basename(job_dir) and os.path.exists(job_dir): + shutil.rmtree(job_dir, ignore_errors=True) + else: + if dl_path and os.path.exists(dl_path): + try: os.remove(dl_path) + except: pass + if out_path and os.path.exists(out_path): + try: os.remove(out_path) + except: pass + + # Auto-OFF Check + conf = get_config(cid) + if not conf.get('sub_auto_mode'): + conf['sub_mode'] = False + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(cid, conf)) + try: await c.send_message(cid, "✅ **Subtitulado Finalizado**") + except: pass + else: + # Auto Mode: Stay ON. + pass + + try: await wm.delete() + except: pass + +@app.on_message((filters.video | filters.document) & filters.private, group=2) +async def sub_video_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # Check Auto Mode or Manual Mode + active = conf.get('sub_mode') + + # Priority Auto Check: If auto is set, ensure active is True (runtime check) + if conf.get('sub_auto_mode'): + active = True + conf['sub_mode'] = True # Ensure consistency + + if active: + # Use SEM_SUB (5 max) + + if SEM_SUB.locked(): + msg = await m.reply("⏳ En cola de subtitulado...", quote=True) + else: + msg = None + + async with SEM_SUB: + if msg: + try: await msg.delete() + except: pass + await run_subtitle_logic(c, cid, m) + + m.stop_propagation() + return + + + +# --- TIKTOK FAST VIDEO HANDLER --- +# Usamos group=-1 para tener PRIORIDAD sobre otros handlers (que suelen ser group=0 o 1) +# Así evitamos que la IA o el downloader genérico capturen el video primero. +@app.on_message((filters.video | filters.animation | filters.document) & filters.private, group=-1) +async def exclusive_video_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # Priority Check: Fusion Mode receives video first (Group 0) + if conf.get('fusion_mode'): + m.continue_propagation() + return + + # Check if we need to handle this video + is_tiktok = conf.get('tiktok_fast_mode') + is_thumb = conf.get('parallel_thumb_mode') + + if not is_tiktok and not is_thumb: + m.continue_propagation() + return + + # Check validity (Video/Anim/DocVideo) + is_vid = m.video or m.animation or (m.document and m.document.mime_type and m.document.mime_type.startswith('video')) + if not is_vid: + m.continue_propagation() + return + + # --- QUEUE LOGIC --- + if SEM_EXCLUSIVE_VIDEO.locked(): + await m.reply("⏳ **En cola...** (Servidor ocupado, espere un momento)", quote=True) + + async with SEM_EXCLUSIVE_VIDEO: + # 1. TIKTOK FAST MODE + if is_tiktok: + wm = await m.reply("⬇️ **Descargando para Tiktok Fast...**") + try: + import time + import random + ts = int(time.time()) + rnd = random.randint(1000, 9999) + path = os.path.join("downloads", f"tk_in_{cid}_{ts}_{rnd}.mp4") + + await m.download(file_name=path) + + from tiktok_tool import process_tiktok_video + await process_tiktok_video(c, m, path) + + try: await wm.delete() + except: pass + + except Exception as e: + try: await wm.edit(f"❌ Error Tiktok Fast: {e}") + except: pass + + m.stop_propagation() + return + + # 2. PARALLEL THUMB MODE (Miniatura Personalizada) + if is_thumb: + wm = await m.reply("⬇️ **Descargando para Miniatura...**") + try: + import time + import random + ts = int(time.time()) + rnd = random.randint(1000, 9999) + # Determine extension + ext = ".mp4" + if m.video and m.video.file_name: _, ext = os.path.splitext(m.video.file_name) + elif m.document and m.document.file_name: _, ext = os.path.splitext(m.document.file_name) + + dl_path = os.path.join("downloads", f"thumb_in_{cid}_{ts}_{rnd}{ext}") + await m.download(file_name=dl_path) + + await wm.edit("📸 **Generando Miniatura...**") + + # Get Configured Second + seek_time = conf.get('parallel_thumb_seek', 2) + thumb_path = os.path.join("downloads", f"thumb_out_{cid}_{ts}_{rnd}.jpg") + + # Extract Thumb + cmd = [ + "ffmpeg", "-y", "-ss", str(seek_time), + "-i", dl_path, "-vframes", "1", "-q:v", "2", + thumb_path + ] + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL + ) + await process.wait() + + if os.path.exists(thumb_path): + await wm.edit("📤 **Enviando...**") + from tools_media import get_meta + w, h, dur = await get_meta(dl_path) + + caption = f"📸 **Miniatura Personalizada**\n⏱ Frame: `{seek_time}s`" + + try: + await c.send_video( + cid, dl_path, thumb=thumb_path, + caption=caption, width=w, height=h, duration=dur + ) + except: + await c.send_document( + cid, dl_path, thumb=thumb_path, caption=caption + ) + + try: os.remove(thumb_path) + except: pass + + else: + await wm.edit(f"⚠️ **Error:** No se pudo extraer miniatura en el segundo {seek_time}.") + + # Cleanup Input + if os.path.exists(dl_path): os.remove(dl_path) + try: await wm.delete() + except: pass + + except Exception as e: + print(f"Parallel Thumb Error: {e}") + try: await wm.edit(f"❌ Error Miniatura: {e}") + except: pass + + m.stop_propagation() + return + +# --- VIRAL SHORTS MUSIC HANDLER --- +@app.on_message((filters.video | filters.audio | filters.voice) & filters.private, group=3) +async def viral_handler(c, m): + cid = m.chat.id + conf = get_config(cid) + + # Intercept ONLY if mode is ON + if conf.get('viral_mode'): + # Save to DB + ftype = 'video' + fid = None + + if m.video: + fid = m.video.file_id + ftype = 'video' + elif m.audio: + fid = m.audio.file_id + ftype = 'audio' + elif m.voice: + fid = m.voice.file_id + ftype = 'voice' + + if fid: + import random + # Add random suffix to prevent exact millisecond collisions during mass-forwards + item_id = f"{int(time.time()*1000)}_{random.randint(1000, 9999)}" + + item = { + 'id': item_id, + 'type': ftype, + 'file_id': fid, + 'date': int(time.time()), + 'user': cid, + 'caption': m.caption or "" + } + viral_music_db.append(item) + # save_viral() -> Firebase + asyncio.create_task(save_viral_item_fb(item)) + + # Avoid sending a reply for EVERY item in a media group to prevent FloodWait crashes + if not m.media_group_id: + try: + await m.reply(f"✅ **Guardado en Catálogo Short/Music**\nID: `{item['id']}`", quote=True) + except FloodWait as e: + await asyncio.sleep(e.value) + else: + # Optionally, notify the console for media group items silently + print(f"📦 Media group item '{item_id}' added to catalog silently.") + + m.stop_propagation() + +# --- SMART TAGGER (NEW) --- +@app.on_message(filters.command(["fixwaifu"]) & filters.private) +async def fix_waifu_server_handler(c, m): + """Comando de rescate para arreglar la instalación de Waifu2x en el servidor.""" + await m.reply("🛠 **Iniciando Auto-Reparación de Waifu2x...**\nBuscando el archivo perdido...") + + import os + import shutil + import stat + + target_dir = "bin/waifu2x" + target_bin = os.path.join(target_dir, "waifu2x-ncnn-vulkan") + found_path = None + + # 1. Buscar recursivamente en bin/ + for root, dirs, files in os.walk("bin"): + if "waifu2x-ncnn-vulkan" in files: + found_path = os.path.join(root, "waifu2x-ncnn-vulkan") + break + + if not found_path: + await m.reply("❌ Error: No encontré el archivo `waifu2x-ncnn-vulkan` en ninguna parte de la carpeta `bin/`.\n¿Seguro que subiste el ZIP descomprimido?") + return + + # 2. Moverlo al lugar correcto (si no está ahí ya) + try: + if os.path.abspath(found_path) != os.path.abspath(target_bin): + if not os.path.exists(target_dir): + os.makedirs(target_dir) + + # Mover archivo + shutil.move(found_path, target_bin) + await m.reply(f"📦 Archivo movido de:\n`{found_path}`\na:\n`{target_bin}`") + else: + await m.reply("✅ El archivo ya estaba en el lugar correcto.") + + # 3. Dar Permisos de Ejecución (+x) + st = os.stat(target_bin) + os.chmod(target_bin, st.st_mode | stat.S_IEXEC) + await m.reply("🔑 **Permisos de ejecución concedidos.**\n\n✨ **¡Waifu2x debería funcionar ahora!** Pruébalo con una foto.") + + except Exception as e: + await m.reply(f"❌ Error crítico moviendo/permisos: {e}") + +# --- TAG HANDLERS --- +@app.on_message(filters.command(["tag", "rename"]) & filters.private) +async def tag_command_handler(c, m): + """ + Comando /tag o /rename para analizar videos con IA + sin descargar todo el archivo (Chunk Start). + """ + if not m.reply_to_message or (not m.reply_to_message.video and not m.reply_to_message.document and not m.reply_to_message.photo): + await m.reply("❌ **Uso:** Responde a un video/foto/archivo con `/tag`") + return + + # Delegate to tool logic + await run_tagger_logic(c, m) + m.stop_propagation() + return + + + +# --- TAGGER VIDEO HANDLER --- +@app.on_message((filters.video | filters.document) & filters.private, group=4) +async def tagger_video_handler(c, m): + """Intercepta videos cuando el modo Tagger está activo para Smart Tagging.""" + conf = get_config(m.chat.id) + if conf.get('tagger_mode'): + # Delegar a Smart Tagger (Logic) + await run_tagger_logic(c, m) + m.stop_propagation() + else: + m.continue_propagation() + +# --- AI IMAGE ANALYZER (PHOTO HANDLER) --- +@app.on_message(filters.photo) +async def photo_analysis_handler(c, m): + """Analiza fotos usando Gemini Vision (Auto) o SauceNAO (Manual).""" + # Check if this is a reply to a specific command or if it's just a general image + if m.reply_to_message: + # If replying to a bot message that asked for something specific? + pass + + conf = get_config(m.chat.id) + cid = m.chat.id + + # --- EXCLUSIVE MODES CHECK (Mixer, Tagger, etc) --- + if conf.get('video_mixer_mode') or conf.get('tagger_mode'): + m.continue_propagation() # Let specific handlers (even if expecting video) deal with it or ignore + return + + # --- WAIFUX2 MODE (Priority) --- + if conf.get('waifux2_mode'): + wm = await m.reply("✨ **Mejorando con Waifu2x...**\n_Esto puede tardar unos segundos..._") + try: + # Download + dl_path = os.path.join("downloads", f"w2x_in_{cid}_{int(time.time())}.jpg") + await m.download(file_name=dl_path) + + # Upscale + from utils import waifu2x_upscale + out_path = await asyncio.get_running_loop().run_in_executor(None, lambda: waifu2x_upscale(dl_path)) + + if out_path and os.path.exists(out_path): + await m.reply_document(document=out_path, caption="✨ **Waifu2x Completo (x2)**") + try: os.remove(out_path) + except: pass + else: + await wm.edit("❌ Error: Waifu2x falló.") + + if os.path.exists(dl_path): os.remove(dl_path) + await wm.delete() + except Exception as e: + await wm.edit(f"❌ Error Waifu2x: {e}") + + m.stop_propagation() + return + + # --- REDIRECT TO NANO BANANA --- + if conf.get('ai_model_mode') == 'nano_banana': + return await ai_chat_handler(c, m) # Hand off to drawing logic make sure ai_chat_handler is visible or imported + + cid = m.chat.id + # Check rate limit (simpler for now) + + # Check if "Modo Portada" is active (SPECIAL FLOW) + # This takes precedence over general AI analysis + + # Check simple state to avoid conflict with other specific flows if needed + st = url_storage.get(cid) + print(f"[DEBUG] Photo Analysis | CID: {cid} | State: {st}") + + # --- TAGGER MODE INTERCEPT --- + if conf.get('tagger_mode'): + # Delegar a Smart Tagger (Imagen/Video) + await run_tagger_logic(c, m) + m.stop_propagation() + return + + # BLOCK IF IN CONFIG MODE + if st and (st.get('ai_config_step') == 'wait_image' or st.get('ai_add_step')): + m.stop_propagation() + return + + if st and ('extract_step' in st or 'party_input_mode' in st or 'saucenao_mode' in st.get('config', {})): + m.continue_propagation() + return + + # Si hay caption, puede ser un comando, dejar pasar + if m.caption and m.caption.startswith("/"): + m.continue_propagation() + return + + wm = await m.reply("🔍 **Analizando imagen...**") + try: + # Download photo + dl_path = os.path.join("downloads", f"ai_img_{cid}_{int(time.time())}.jpg") + await m.download(file_name=dl_path) + + # Ask AI with image + # Get Config & Persona + conf = get_config(cid) + active_p = conf.get('active_persona', 'nsfw') + + # --- MANGA TRANSLATOR MODE --- + if conf.get('translate_manga_mode'): + try: + # 1. Ask Gemini for Translation + prompt = ( + "ACT AS A PROFESSIONAL MANGA TRANSLATOR.\n" + "Translate ALL text in this image to SPANISH.\n" + "Format the output clearly by panels (e.g., 'Panel 1: ...', 'Panel 2: ...').\n" + "If there is SFX (Sound Effects), translate them in brackets [Boom].\n" + "Return ONLY the translated text. Do not add introductory conversational filler." + ) + + response = await asyncio.get_running_loop().run_in_executor(None, lambda: ask_gemini( + prompt, cid, dl_path, + active_persona='formal', # Force formal/neutral for translation + user_rules=[], + green_mode=False, + focus_mode=False + )) + + # 2. Extract Text + txt = response if isinstance(response, str) else response.get('text', 'Error en traducción.') + + # 3. Send Result + await wm.delete() + await m.reply(f"🈚 **Traducción Manga:**\n\n{txt}", quote=True) + + # 4. Cleanup + try: os.remove(dl_path) + except: pass + + return # Stop here + + except Exception as e_trans: + print(f"Manga Trans Error: {e_trans}") + await wm.edit(f"❌ Error traduciendo: {e_trans}") + return + + + # Get Rules + user_rules = await get_user_rules_fb(cid, persona_id=active_p) + + if not m.caption: + # --- DUAL LENS MODE (Google + Yandex) --- + await wm.edit("🕵️‍♂️ **Buscando en Google y Yandex...**\n_Abriendo navegadores..._") + + from google_lens import google_lens_screenshot + from yandex_lens import yandex_lens_screenshot + + # Paths + ts = int(time.time()) + out_google = os.path.join("downloads", f"lens_g_{cid}_{ts}.png") + out_yandex = os.path.join("downloads", f"lens_y_{cid}_{ts}.png") + + # Run PARALLEL + # We use return_exceptions=True to ensure one failure doesn't stop the other + results = await asyncio.gather( + google_lens_screenshot(dl_path, out_google), + yandex_lens_screenshot(dl_path, out_yandex), + return_exceptions=True + ) + + # Process Results + res_google = results[0] if isinstance(results[0], bool) else False + res_yandex = results[1] if isinstance(results[1], bool) else False + + media_group = [] + + # Google Result + if res_google and os.path.exists(out_google): + from pyrogram.types import InputMediaPhoto + media_group.append(InputMediaPhoto(out_google, caption="🇺🇸 **Google Lens**")) + + # Yandex Result + if res_yandex and os.path.exists(out_yandex): + from pyrogram.types import InputMediaPhoto + media_group.append(InputMediaPhoto(out_yandex, caption="🇷🇺 **Yandex Images** (Mejor NSFW)")) + + # Send + if media_group: + await wm.delete() + if len(media_group) == 1: + # Single photo (reply_photo) because reply_media_group requires 2+ usually, + # but pyrogram handles list of 1 ok? No, usually list of 1 acts as single. + # Safety check: + p = media_group[0].media + cpt = media_group[0].caption + await m.reply_photo(p, caption=cpt) + else: + await m.reply_media_group(media_group) + else: + await wm.edit("❌ Fallaron ambas búsquedas (Timeouts o Captchas).") + + # Cleanup + try: + if os.path.exists(out_google): os.remove(out_google) + if os.path.exists(out_yandex): os.remove(out_yandex) + if os.path.exists(dl_path): os.remove(dl_path) + except: pass + + return + + # Ask AI with image (If caption exists) + user_text = m.caption + + response = await asyncio.get_running_loop().run_in_executor(None, lambda: ask_gemini( + user_text, cid, + image_paths=[dl_path], # Pass as list to new arg + active_persona=active_p, + user_rules=user_rules, + green_mode=conf.get('ai_green_mode', False), + focus_mode=conf.get('ai_focus_mode', False) + )) + + # Store for SauceNAO button + sauce_id = f"sauce_{cid}_{int(time.time())}" + url_storage[sauce_id] = dl_path + + # Prepare Button + kb = InlineKeyboardMarkup([[InlineKeyboardButton("🔍 Buscar con SauceNAO", callback_data=f"ai_sauce|{sauce_id}")]]) + + if isinstance(response, dict) and response.get('action') == 'TRIGGER_TOOL' and response.get('tool') == 'sauce': + # AI wants to use SauceNAO. Execute it automatically. + txt = response.get('text') + # Append status + if txt: txt += "\n\n🔍 **Ejecutando búsqueda automática (SauceNAO)...**" + else: txt = "🔍 **La IA sugiere buscar la fuente. Ejecutando SauceNAO...**" + + await wm.edit(txt) + + # Execute SauceNAO Logic (from utils) + try: + results = await search_saucenao(dl_path, limit=3) + s_txt = format_saucenao_results(results) + + final_txt = f"{txt}\n\n{s_txt}" + # Limit length + if len(final_txt) > 4000: final_txt = final_txt[:4000] + "..." + + await wm.delete() + await m.reply(final_txt, reply_markup=kb, quote=True, disable_web_page_preview=True) + return + + except Exception as e_sauce: + print(f"❌ Auto-Sauce Error: {e_sauce}") + await wm.delete() + await m.reply(f"{txt}\n\n❌ Error en búsqueda automática: {e_sauce}", reply_markup=kb) + return + + # --- SAVE REACTION TRIGGER (NEW) --- + if isinstance(response, dict) and response.get('action') == 'TRIGGER_TOOL' and response.get('tool') == 'save_reaction': + target_cat = response.get('category') + + # Get File ID + fid = m.photo.file_id if m.photo else (m.document.file_id if m.document else None) + ftype = 'photo' if m.photo else 'document' + + if fid and target_cat: + # Save (AWAIT to ensure it is written before we verify or user checks) + await save_persona_image(active_p, 'default', target_cat, {'id': fid, 'type': ftype}) + + # Cache update + if active_p not in AVATAR_KEYS_CACHE: AVATAR_KEYS_CACHE[active_p] = set() + AVATAR_KEYS_CACHE[active_p].add(target_cat) + + # Fetch actual count for confirmation + from firebase_service import get_persona_images + curr_imgs = await get_persona_images(active_p, 'default', target_cat) + c_count = len(curr_imgs) + + # Translate + cat_disp = TRANS.get(target_cat, target_cat.replace('_', ' ').title()) + + response_txt = response.get('text', "Entendido.") + + await wm.delete() + await m.reply( + f"{response_txt}\n\n✅ **Imagen Guardada**\n👤 **Cuerpo:** `{active_p}`\n📂 **Categoría:** `{cat_disp} ({c_count})`", + reply_markup=kb, + quote=True + ) + return + else: + await m.reply("❌ No pude guardar la imagen (Falta ID o Categoría).") + + # Normal Text Response + txt = response if isinstance(response, str) else response.get('text', 'Imagen analizada.') + + # --- LOGICA EXTENDER (SPLIT) --- + delimiter = "===EXTENDED===" + if delimiter in txt: + parts = txt.split(delimiter) + summary = parts[0].strip() + # Reconstruct clean full text with exactly one blank line + full_text = f"{summary}\n\n{parts[1].strip()}" + + # Store full text AND sauce_id + ext_id = f"ext_{cid}_{int(time.time())}" + url_storage[ext_id] = {'full_text': full_text, 'sauce_id': sauce_id} + + # Button + kb_ext = InlineKeyboardMarkup([ + [InlineKeyboardButton("📜 Extender Mensaje", callback_data=f"ai_extend|{ext_id}")], + [InlineKeyboardButton("🔍 Buscar con SauceNAO", callback_data=f"ai_sauce|{sauce_id}")] + ]) + + await wm.delete() + await m.reply(summary, reply_markup=kb_ext, quote=True) + return + + if conf.get('voice_mode'): + try: + audio_f = await generate_tts_audio(txt, active_p) + if audio_f: + await m.reply_voice(audio_f) + os.remove(audio_f) + except Exception as e_tts: + print(f"TTS Error: {e_tts}") + + # Fix: Append to inline_keyboard list, not the object + # Fix: Use 'dl_path' instead of undefined 'path' + # Note: dl_path is local file, waifu2x needs reply or file. + # But callback 'waifu2x' usually expects a message reply. + # The button logic in callback_handler uses 'download_media' on the message, so we just need a trigger. + # However, passing path string in callback_data might be too long and invalid if it's a file path. + # Actually, standard 'waifu2x' callback handles message reply. + # Let's just pass "auto" or empty. + + kb.inline_keyboard.append([InlineKeyboardButton("✨ Mejorar (Waifu2x)", callback_data="w2x_manual")]) + await wm.delete() + await m.reply(txt, reply_markup=InlineKeyboardMarkup(kb), quote=True) + + except Exception as e: + # Solo mostrar error si preview_mode está ON (o sea wm existe) + # Si no, fallar silenciosamente o loggear en consola. + if wm: + await wm.edit(f"❌ Error al analizar: {e}") + else: + print(f"❌ Error silencioso (Preview OFF): {e}") + + +@app.on_message(filters.text & (filters.regex("http") | filters.regex("www") | filters.regex("twisted-brody-manga-flow"))) +async def analyze(c, m): + cid = m.chat.id + import re # FIX: Ensure re is available locally since it's used/imported later in this function + + # --- CONFLICT FIX: AI vs AUTO-DL --- + # Si el mensaje tiene más de 3 palabras, asumimos que es una conversación para la IA. + # Excepción: Si es un link de Manga Flow (usualmente largo pero sin espacios) + msg_words = m.text.strip().split() + # FIX: Allow massive link lists + # If len > 3, check if it's mostly URLs + urls_found = re.findall(r"(https?://\S+)", m.text) + + if len(msg_words) > 3: + # If we have many URLs (e.g. almost as many as words), it is a link list, NOT chat. + # Let's say if we have at least 2 URLs and they make up > 30% of words? + # Or simpler: if we have URLs, we process them. + # But we don't want to break "Can you download this http://video.com?" (7 words, 1 link) -> Chat ID detection usually handles this? + # Actually, analyze IS the download handler. + # Original logic: > 3 words -> Chat. + # New logic: If > 3 words BUT we have found multiple URLs (>= 2), we assume it's a batch request. + if len(urls_found) < 2: + m.continue_propagation() + return + + if not can_download(cid)[0]: return await m.reply("⚠️ Espera a que terminen tus descargas.") + # url_storage.pop(cid, None) # Removido para permitir múltiples links concurrentes + match = re.search(r"(https?://\S+)", m.text) + if not match: return + l_u = limpiar_url(match.group(1)) + + # Generar ID único BASE para este grupo de links + base_link_id = int(time.time() * 1000) + + # Extract ALL URLs + urls = re.findall(r"(https?://\S+)", m.text) + unique_urls = list(set(urls)) # Deduplicate + + # Security Limit (increased to 1000 as requested) + if len(unique_urls) > 1000: + await m.reply(f"⚠️ **Demasiados enlaces.** procesando los primeros 1000...") + unique_urls = unique_urls[:1000] + + # Process each URL concurrently + tasks = [] + for i, raw_url in enumerate(unique_urls): + clean_url = limpiar_url(raw_url) + # Unique ID for EACH link: Base + Index + link_id_suffix = f"{base_link_id}_{i}" + + # Launch Task + tasks.append(asyncio.create_task(process_url_flow(c, m, clean_url, link_id_suffix))) + + # Pequeno delay para no saturar inmediatamente el loop o API rates si son muchos + if i > 0: await asyncio.sleep(0.5) + +async def process_url_flow(c, m, l_u, link_id_suffix): + """ + Procesa un enlace individual (Audio, Video, Galeria, Manga, etc). + Encapsulado para soportar Multi-Link. + """ + cid = m.chat.id + import re + from pyrogram.errors import FloodWait + + # Throttle Analysis to prevent FloodWait loop + async with SEM_ANALYSIS: + # Generar ID único para este link + # Usamos el suffix pasado o uno nuevo si no hay + if link_id_suffix: + link_id = hex(int(link_id_suffix.split('_')[0]) + int(link_id_suffix.split('_')[1]))[2:] + else: + link_id = hex(int(time.time() * 1000))[2:] + + storage_key = f"{cid}_{link_id}" + + # --- AUTO-MP3 CHECK --- + conf = get_config(cid) + if conf.get('fmt') == 'mp3': + wm = None # Silent Analysis + # wm = await m.reply(f"🎵 **Analizando MP3...**\n`{l_u}`", quote=True) + url_info = {'url': l_u, 'titulo': "Audio Auto-MP3", 'fast_enabled': conf.get('fast_enabled', True)} + asyncio.create_task(procesar_descarga(c, cid, l_u, "mp3", url_info, m, context_config=conf)) + try: await wm.delete() + except: pass + return + + # 1. MANGA FLOW CHECK + if "twisted-brody-manga-flow" in l_u: + wm = None + if conf.get('preview_mode', True): + wm = None # Silent Analysis for Manga + # wm = await m.reply("⬇️ **Analizando Manga...**", quote=True) + try: + if "#manga/" in l_u: raw_id = l_u.split("#manga/")[1] + elif "/manga/" in l_u: raw_id = l_u.split("/manga/")[1] + else: + await wm.edit("❌ Error: ID no encontrado en el link.") + return + + match_id = re.match(r'^([a-zA-Z0-9]+)', raw_id) + mi_l = match_id.group(1) if match_id else raw_id.split("?")[0].strip() + + await show_manga_menu(c, m, mi_l, wait_msg=wm) + except Exception as e: + if wm: await wm.edit(f"❌ Error Manga: {e}") + return + + # 2. GALLERY CHECK (X, Pinterest, Instagram) + gallery_sent = False + if any(x in l_u for x in ['twitter.com', 'x.com', 'pinterest.com', 'instagram.com', 'facebook.com']): + wm_gal = None + try: + c_file = sel_cookie(l_u) + async with SEM_DOWNLOAD: + res_gal = await asyncio.get_running_loop().run_in_executor(None, lambda: descargar_galeria(l_u, c_file)) + + if len(res_gal) == 3: paths, tmp, metadata_text = res_gal + else: paths, tmp = res_gal; metadata_text = "" + + if paths: + conf = get_config(cid) + is_doc = conf.get('doc_mode', False) + is_group = conf.get('group_mode', False) + + if conf.get('preview_mode', True): + cnt = len(paths) + txt_n = "imagen" if cnt == 1 else "imágenes" + wm_gal = await m.reply(f"📁 Encontré un álbum de {cnt} {txt_n}", quote=True) + # Small delay to let user read + await asyncio.sleep(2) + try: await wm_gal.edit(f"📁 Enviando {txt_n}... `{cnt}/{cnt}` 📤") + except: pass + + if is_doc: + for p in paths: + try: await c.send_document(cid, p, reply_to_message_id=m.id) + except: pass + else: + if is_group and len(paths) > 1: + # ALBUM LOGIC (Chunked) + album_caption = "" + try: + # Silent analysis (no edit) + if not metadata_text or len(metadata_text) < 2: + album_caption = "" + else: + from ai_service import translate_text_pure + tags_found = re.findall(r"#[^\s]+", metadata_text) + tags_str = " ".join(tags_found) + text_only = re.sub(r"#[^\s]+", "", metadata_text).strip() + final_title = "" + raw_desc = "" + if text_only: + lines = text_only.split('\n') + raw_title = lines[0].strip()[:100] + if len(lines) > 1: raw_desc = "\n".join(lines[1:]).strip()[:800] + trans_title = await asyncio.get_running_loop().run_in_executor(None, lambda: translate_text_pure(raw_title, "es")) + final_title = f"**{trans_title if trans_title else raw_title}**" + + caption_parts = [] + if final_title: caption_parts.append(final_title) + if raw_desc: caption_parts.append(raw_desc) + if tags_str: caption_parts.append(tags_str) + album_caption = "\n\n".join(caption_parts) + except Exception as e_ai: + print(f"AI Album Fail: {e_ai}") + album_caption = "" + + from pyrogram.types import InputMediaPhoto + + # Batching logic 10 items max per album + batch_size = 10 + for i in range(0, len(paths), batch_size): + chunk = paths[i:i + batch_size] + media = [] + for j, p in enumerate(chunk): + # Put caption only on the VERY first message of the sequence + cap = album_caption if (i == 0 and j == 0) else "" + media.append(InputMediaPhoto(p, caption=cap)) + + try: await c.send_media_group(cid, media, reply_to_message_id=m.id) + except: + for p in chunk: await c.send_photo(cid, p, reply_to_message_id=m.id) + + # Small delay to ensure order + await asyncio.sleep(1) + else: + # INDIVIDUAL LOGIC + for i, p in enumerate(paths): + caption = "" + try: + # Silent analysis (no edit) + if not metadata_text or len(metadata_text) < 2: + caption = "" + else: + from ai_service import translate_text_pure + tags_found = re.findall(r"#[^\s]+", metadata_text) + tags_str = " ".join(tags_found) + text_only = re.sub(r"#[^\s]+", "", metadata_text).strip() + final_title = "" + raw_desc = "" + if text_only: + lines = text_only.split('\n') + raw_title = lines[0].strip()[:100] + if len(lines) > 1: + raw_desc = "\n".join(lines[1:]).strip()[:800] + if conf.get('lang') == 'es': + raw_desc = await asyncio.get_running_loop().run_in_executor(None, lambda: translate_text_pure(raw_desc, "es")) + + if conf.get('lang') == 'es': + trans_title = await asyncio.get_running_loop().run_in_executor(None, lambda: translate_text_pure(raw_title, "es")) + final_title = f"**{trans_title if trans_title else raw_title}**" + else: final_title = f"**{raw_title}**" + + final_tags = tags_str # Simplified for brevity, logic remains same + caption_parts = [] + if final_title: caption_parts.append(final_title) + if raw_desc: caption_parts.append(raw_desc) + if final_tags: caption_parts.append(final_tags) + caption = "\n\n".join(caption_parts) + except: caption = "" + try: await c.send_photo(cid, p, caption=caption, reply_to_message_id=m.id) + except: pass + + gallery_sent = True + import shutil + try: shutil.rmtree(tmp) + except: pass + if wm_gal: await wm_gal.delete() + + except Exception as e: + # Silent fail for gallery, verify video next + pass + + # 3. NORMALIZAR FACEBOOK + if "facebook.com" in l_u or "fb.watch" in l_u: + l_u = await resolver_url_facebook(l_u) + + wm = None + wm = None + if conf.get('preview_mode', True): + # Silent Analysis Standard + pass + # try: + # wm = await m.reply(f"⬇️ **Analizando...**\n`{l_u}`", quote=True) + # except FloodWait as e: + # print(f"🌊 FloodWait in Analysis: Sleeping {e.value}s") + # await asyncio.sleep(e.value + 2) + # wm = await m.reply(f"⬇️ **Analizando...**\n`{l_u}`", quote=True) + # except Exception as e: + # print(f"❌ Msg Error: {e}") + # return + + # 4. JAV TURBO SNIFFER + if any(x in l_u for x in ['jav', 'hpjav', 'missav', 'javtrailers', '7mmtv']): + try: + links = extraer_jav_directo(l_u) + if links: + btns = [] + for i, l in enumerate(links[:8]): + btns.append([InlineKeyboardButton(f"🚀 {l['res']}", callback_data=f"dl|html_{i}_{link_id}")]) + btns.append([InlineKeyboardButton("❌ Cancelar", callback_data="cancel")]) + + url_storage[storage_key] = {'url': l_u, 'id': f"jav_{int(time.time())}", 'titulo': "JAV Video", 'html_links_data': links} + if wm: await wm.delete() + await m.reply(f"🎬 **JAV Detectado**", reply_markup=InlineKeyboardMarkup(btns), quote=True) + return + except: pass + + # 5. DIRECT SITES & EPORNER FIX + eporner_id = None + is_direct = any(x in l_u for x in ['mediafire.com', 'yourupload.com', 'mp4upload.com', 'rule34video.com/get_file/']) + + if "eporner.com" in l_u and "/dload/" in l_u: + is_direct = True + try: + # URL format: .../dload/VIDEO_ID/... + parts = l_u.split('/dload/') + if len(parts) > 1: + eporner_id = parts[1].split('/')[0] + except: pass + + # Surrit Direct Check (Fix for ID "video" collision) + surrit_id = None + if "surrit.com" in l_u and ".m3u8" in l_u: + is_direct = True + try: + # URL format: https://surrit.com/UUID/quality/video.m3u8 + # Regex for UUID + match = re.search(r'([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})', l_u) + if match: + surrit_id = match.group(1) + except: pass + + if not is_direct and re.search(r'\.(mp4|mkv|webm|avi|mov)(/|\?|$)', l_u, re.I): is_direct = True + + if is_direct: + # Use Eporner/Surrit ID if available, otherwise fallback to timestamp + if eporner_id: + final_id = f"eporner_{eporner_id}" + elif surrit_id: + final_id = f"surrit_{surrit_id}" + else: + final_id = f"direct_{int(time.time())}" + + print(f"DEBUG: Detect: Ep={eporner_id} Su={surrit_id} | Final: {final_id}") + + url_storage[storage_key] = {'url': l_u, 'id': final_id, 'titulo': "Enlace Directo"} + # KEY FIX: Button must use 'link_id' (HEX) so CallbackHandler can find the storage entry. + # We pass 'direct' as quality placeholder which matches existing handler logic. + btns = [[InlineKeyboardButton("⬇️ Descargar Ahora", callback_data=f"dl|direct_{link_id}")], [InlineKeyboardButton("❌ Cancelar", callback_data="cancel")]] + if wm: await wm.delete() + await m.reply(f"📦 **Archivo Detectado**", reply_markup=InlineKeyboardMarkup(btns), quote=True) + return + + # 6. YT-DLP STANDARD + try: + y_o = {'quiet': True, 'force_ipv4': False, 'nocheckcertificate': True, 'http_headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'}} + c_file = sel_cookie(l_u) + if c_file: y_o['cookiefile'] = c_file + + y_i = None + try: + # Attempt 1 + y_i = await asyncio.get_running_loop().run_in_executor(None, lambda: yt_dlp.YoutubeDL(y_o).extract_info(l_u, download=False)) + except Exception as e1: + # Attempt 2 (No Cookies) + if 'cookiefile' in y_o: + del y_o['cookiefile'] + try: y_i = await asyncio.get_running_loop().run_in_executor(None, lambda: yt_dlp.YoutubeDL(y_o).extract_info(l_u, download=False)) + except Exception as e2: raise e2 + else: raise e1 + + if y_i and 'entries' in y_i: + # MULTI-VIDEO HANDLING (Twitter/X Albums) + if any(x in l_u for x in ['twitter.com', 'x.com']): + entries = y_i['entries'] + count = len(entries) + if count > 1: + if wm: await wm.edit(f"🎬 **Álbum Twitter detectado ({count} videos).**\n⬇️ Descargando todos...") + else: await m.reply(f"🎬 **Álbum Twitter detectado ({count} videos).**\n⬇️ Descargando todos...", quote=True) + + for idx, entry in enumerate(entries): + # Construct minimal info for each video + # FIX: Prefer 'url' -> 'formats'[best] -> 'webpage_url' + target_url = entry.get('url') + + # Extra check for formats if url is None (Common in some playlist extractions) + if not target_url and entry.get('formats'): + # Intelligent Format Selection for Twitter + # 1. Look for Best Format with BOTH Video and Audio + best_merged = None + for f in entry['formats']: + if f.get('vcodec') != 'none' and f.get('acodec') != 'none': + best_merged = f + + # 2. Look for M3U8 (Master Playlist) + best_m3u8 = None + for f in entry['formats']: + if 'm3u8' in f.get('url', '') or f.get('ext') == 'm3u8': + best_m3u8 = f + + if best_merged: + target_url = best_merged.get('url') + elif best_m3u8: + target_url = best_m3u8.get('url') + else: + # Fallback to last (highest quality, risk of video-only) if nothing else + try: + best_fmt = entry['formats'][-1] + target_url = best_fmt.get('url') + except: pass + + # Debug Log + print(f"🔍 [Twitter Debug] Entry {idx}: ID={entry.get('id')} | URL={target_url}") + + if not target_url: target_url = entry.get('webpage_url', l_u) + + sub_info = { + 'url': target_url, + 'id': entry.get('id'), + 'titulo': f"{entry.get('title', 'Video')} ({idx+1}/{count})", + 'uploader': entry.get('uploader'), + 'uploader_url': entry.get('uploader_url') + } + + # Auto-download BEST quality for albums to avoid menu spam + # Using slight delay to avoid floodwait on start + asyncio.create_task(procesar_descarga(c, cid, sub_info['url'], "best", sub_info, m, context_config=conf)) + await asyncio.sleep(1.5) + + if wm: + try: await wm.delete() + except: pass + return + else: + y_i = entries[0] + else: + # Default behavior for other sites (take first) + y_i = y_i['entries'][0] + + y_b, y_f = [], [] + formats = y_i.get('formats', []) + for fl in formats: + hv = fl.get('height') + if hv and hv not in y_f: + y_f.append(hv) + label = f"{fl.get('width', '???')}x{hv}" if fl.get('width') else f"{hv}p" + f_size = fl.get('filesize') or fl.get('filesize_approx') + if not f_size: + tbr = fl.get('tbr') or ((fl.get('vbr') or 0) + (fl.get('abr') or 0)) + dur = y_i.get('duration') or fl.get('duration') + if tbr and dur: f_size = (tbr * 1024 * dur) / 8 + + if f_size: + from utils import format_bytes + label += f" ({format_bytes(f_size)})" + y_b.append([InlineKeyboardButton(f"🎬 {label}", callback_data=f"dl|{hv}_{link_id}")]) + + if not y_b and formats: + if next((f for f in reversed(formats) if f.get('vcodec') != 'none'), None): + y_b.append([InlineKeyboardButton("🎬 Calidad Única / Best", callback_data=f"dl|best_{link_id}")]) + + y_b.append([InlineKeyboardButton("🎵 Audio MP3", callback_data=f"dl|mp3_{link_id}")]) + y_b.append([InlineKeyboardButton("❌ Cancelar", callback_data="cancel")]) + + url_info = {'url': l_u, 'id': y_i.get('id'), 'titulo': y_i.get('title')} + if 'surrit.com' in l_u and str(y_i.get('id')) in ['playlist', 'video']: + match_uuid = re.search(r'surrit\.com/([a-zA-Z0-9-]+)', l_u) + if match_uuid: url_info['id'] = match_uuid.group(1) + + url_storage[storage_key] = url_info + + # AUTO QUALITY LOGIC + q_auto = conf.get('q_auto') + if q_auto in ['max', 'min']: + target_q = None + if y_f: + start_l = sorted([int(x) for x in y_f]) + if q_auto == 'max': target_q = str(start_l[-1]) + else: target_q = str(start_l[0]) + else: + if q_auto == 'max': target_q = "best" + + if target_q: + if wm: await wm.edit(f"⚙️ **Auto-Calidad ({q_auto.upper()}):** {target_q}p") + d_st = url_storage[storage_key] + d_st['fast_enabled'] = conf.get('fast_enabled', True) + asyncio.create_task(procesar_descarga(c, cid, d_st['url'], target_q, d_st, m, context_config=conf)) + if wm: + try: await wm.delete() + except: pass + return + + if wm: await wm.delete() + await m.reply(f"🎬 **{y_i.get('title', 'Video Detectado')}**", reply_markup=InlineKeyboardMarkup(y_b), quote=True) + except Exception as e: + # TIKTOK FALLBACK (Main Process Level) + # If downloader failed and raised exception, we try here as last resort. + err_str = str(e) + if "tiktok.com" in l_u and ("Unsupported URL" in err_str or "Video no encontrado" in err_str): + if wm: await wm.edit("🔄 **Intentando Fallback (TikWM)...**") + from downloader import get_tikwm_data + try: + tik_data = await get_tikwm_data(l_u) + if tik_data: + # Determine Type + if 'images' in tik_data and tik_data['images']: + # It's an image slideshow + cnt = len(tik_data['images']) + txt_n = "imagen" if cnt == 1 else "imágenes" + if wm: await wm.edit(f"📁 Encontré un álbum de {cnt} {txt_n}\n⏳ Descargando...") + + # Manual Download & Send Logic for Main + import aiohttp + paths = [] + async with aiohttp.ClientSession() as session: + for idx, img_url in enumerate(tik_data['images']): + async with session.get(img_url) as resp: + if resp.status == 200: + f_p = os.path.join("downloads", f"tk_slide_{cid}_{int(time.time())}_{idx}.jpg") + with open(f_p, 'wb') as f: + f.write(await resp.read()) + paths.append(f_p) + + if paths: + # Send + if wm: + try: await wm.edit(f"📁 Enviando {txt_n}... `{len(paths)}/{cnt}` 📤") + except: pass + + if len(paths) > 1: + # Send as Album + from pyrogram.types import InputMediaPhoto + media = [InputMediaPhoto(p) for p in paths[:10]] # Limit 10 per album + await c.send_media_group(cid, media, reply_to_message_id=m.id) + else: + await c.send_photo(cid, paths[0], reply_to_message_id=m.id) + + # Cleanup + for p in paths: + try: os.remove(p) + except: pass + return + + elif 'play' in tik_data: + # Video + v_url = tik_data['play'] + if wm: await wm.edit("⬇️ **Descargando Video (TikWM)...**") + + f_path = os.path.join("downloads", f"tk_vid_{cid}_{int(time.time())}.mp4") + async with aiohttp.ClientSession() as session: + async with session.get(v_url) as resp: + if resp.status == 200: + with open(f_path, 'wb') as f: + while True: + chunk = await resp.content.read(1024*1024) + if not chunk: break + f.write(chunk) + + if os.path.exists(f_path): + if wm: await wm.delete() + await c.send_video(cid, f_path, caption=f"🎬 **{tik_data.get('title','TikTok')}**", reply_to_message_id=m.id) + try: os.remove(f_path) + except: pass + return + + except Exception as e_tik: + print(f"❌ TikWM Main Error: {e_tik}") + + # Si gallery_sent es true, probablemente era un post mixto o solo imagenes, no mostrar error de video + if gallery_sent: + if wm: await wm.delete() + return + + if wm: + await wm.edit(f"❌ Error al analizar `{l_u}`:\n\n`{str(e)[:100]}`") + else: + print(f"❌ Error Silencioso: {str(e)[:100]}") + +async def show_manga_menu(c, m, manga_id, wait_msg=None): + cid = m.chat.id + meta_m = await get_manga_metadata(manga_id) + + if not meta_m: + if wait_msg: await wait_msg.edit("❌ **Error:** Manga no encontrado (ID inválido o DB vacía).") + return + + url_storage[cid] = {'manga_data': meta_m} + + if wait_msg: await wait_msg.delete() + + # BOTONES SOLICITADOS: + # [ ZIP ] [ PDF ] + # [ Enviar Imágenes ] + kb_m_f = InlineKeyboardMarkup([ + [InlineKeyboardButton("📦 ZIP", callback_data="manga_sel|zip"), InlineKeyboardButton("📄 PDF", callback_data="manga_sel|pdf")], + [InlineKeyboardButton("🖼 Ver Imágenes", callback_data="manga_sel|images")], + [InlineKeyboardButton("🔙 Cancelar", callback_data="cancel")] + ]) + + txt = f"📚 **{meta_m['title']}**\n👤 {meta_m.get('author', 'Desconocido')}\n\n⬇️ **Selecciona formato:**" + + # OLD: if meta_m.get('cover'): await c.send_photo(cid, meta_m['cover'], ... + + # NEW: Cache Logic + cover_ref = meta_m.get('cover') + if cover_ref: + # Intentar obtener ID cacheado o generar uno nuevo + if wait_msg: + try: await wait_msg.edit("🖼 **Procesando portada...**") + except: pass + + final_cover = await get_or_cache_cover(c, cid, manga_id, cover_ref) + + try: await wait_msg.delete() + except: pass + + try: + await c.send_photo(cid, final_cover, caption=txt, reply_markup=kb_m_f) + except Exception as e: + print(f"❌ Error enviando Cover: {e}") + # Fallback: Enviar texto con botones si la foto falla + await c.send_message(cid, txt, reply_markup=kb_m_f) + else: + if wait_msg: await wait_msg.delete() + await c.send_message(cid, txt, reply_markup=kb_m_f) + +# --- COMANDOS ADICIONALES --- + +@app.on_message(filters.command("id")) +async def id_command(c, m): + await m.reply_text(f"🆔 **ID del Chat:** `{m.chat.id}`") + +@app.on_message(filters.command("cancel")) +async def cancel_cmd(c, m): + cid = m.chat.id + conf = get_config(cid) + + # 1. IDENTIFICAR MODO ACTIVO (Para reporte) + active_mode_name = "Bot" + # Map keys to readable names + mode_map = { + 'party_mode': 'Modo Party', + 'join_party_mode': 'Modo Unir Party', + 'extract_mode': 'Modo Extractor', + 'gif_mode': 'Modo GIF', + 'sticker_mode': 'Modo Sticker', + 'saucenao_mode': 'Modo Sauce', + 'mp3_mode': 'Modo MP3', + 'cut_init_mode': 'Modo Corte Inicial', + 'cut_auto_mode': 'Modo Auto Corte', + 'auto_party': 'Modo Auto Party', + 'resize_mode': 'Modo Resize', + 'resize_auto_mode': 'Modo Auto Resize', + 'thumb_mode': 'Modo Maker Thumb', + 'convert_qh_mode': 'Modo Converter QH', + 'convert_h264_mode': 'Modo Converter H264', + 'smart_cut_mode': 'Modo Smart Cut', + 'collage_mode': 'Modo Collage', + 'sub_mode': 'Modo Subtítulos', + 'sub_auto_mode': 'Modo Auto Sub', + 'viral_mode': 'Modo Viral', + 'tagger_mode': 'Modo Tagger', + 'translate_manga_mode': 'Modo Traductor Manga' + } + + found_mode = False + for k, name in mode_map.items(): + if conf.get(k): + active_mode_name = name + found_mode = True + break + + # 2. EJECUTAR CANCELACIÓN (Obtener lista detallada) + cancelled_items = await cancel_all(cid) # Returns list of dicts {'url':..., 'msg_id':...} + count = len(cancelled_items) + + # 3. LIMPIEZA GLOBAL + # Reset UI logic keys + url_storage.pop(cid, None) + # Reset Modes (Exclusivity) + await set_exclusive_mode(cid, None) # Clears all ALL_MODES_KEYS + + # 4. GENERAR REPORTE + msg_out = "" + + if count > 0: + if count == 1: + # Caso Único: "Se canceló la descarga en Modo X." + # Si enlace disponible, lo mostramos? El usuario pidió mensaje simple Específico para este caso. + # "Se canceló la descarga en Modo Party." + msg_out = f"🛑 **Se canceló la descarga en {active_mode_name}.**" + else: + # Caso Múltiple: "Se cancelaron 3 descargas." + Lista + msg_out = f"🛑 **Se cancelaron {count} descargas.**\n" + for i, item in enumerate(cancelled_items): + url = item.get('url', 'Desconocido') + msg_out += f"{i+1}. {url}\n" + elif found_mode: + # No descargas, pero modo estaba activo + msg_out = f"🛑 **Se desactivó el {active_mode_name}.**" + else: + # Nada activo + msg_out = "🛑 **No hay procesos activos para cancelar.**" + + await m.reply(msg_out) + +@app.on_message(filters.command("reset")) +async def reset_cmd(c, m): + if m.from_user.id != OWNER_ID: return + await m.reply("🔴 **Reiniciando Servidor...**\nEl bot volverá en unos segundos.") + print(f"🔄 RESTART COMMAND RECEIVED FROM {m.from_user.id}. RESTARTING...") + + # Reinicio forzado del proceso + os.execv(sys.executable, [sys.executable] + sys.argv) + + +@app.on_message(filters.command("user")) +async def user_profile_cmd(c, m): + uid = m.from_user.id + txt = f"🆔 **Perfil de Usuario**\n👤 **Nombre:** {m.from_user.first_name}\n🔢 **ID:** `{uid}`" + await m.reply(txt) + +@app.on_message(filters.command("setsudo")) +async def setsudo_cmd(c, m): + if m.from_user.id != OWNER_ID: return + if len(m.command) < 2: return + new_id = int(m.command[1]) + # Lógica de guardado en Firebase... + await m.reply(f"👮‍♂️ Admin añadido: `{new_id}`") + +# --- AI HANDLER (TEXTO GENERAL) --- +# --- AI HANDLER (TEXTO GENERAL + MULTIMEDIA NANO BANANA) --- +@app.on_message(filters.text | filters.photo | filters.document | filters.video) +async def ai_chat_handler(c, m): + """Maneja mensajes de texto generales y multimedia para Nano Banana usando Gemini AI.""" + # --- AI DISABLED BY USER REQUEST --- + return + + # Ignorar si es parte de un flujo de espera (ej. pyromod) + + user_txt = m.text or m.caption or "" + + # EXCLUSIVE CHECK FOR NANO BANANA: Allow media messages + conf = get_config(m.chat.id) + is_nano_banana = conf.get('ai_model_mode') == 'nano_banana' + + # --- VALIDACION DE ENTRADA NANO BANANA --- + # Si es Nano Banana y envía video, bloquear con mensaje específico. + if is_nano_banana and (m.video or (m.document and m.document.mime_type and m.document.mime_type.startswith('video/'))): + await m.reply( + "⚠️ **Estás en el modo Nano Banana Pro.**\n\n" + "Acabas de enviar un video y esta herramienta trabaja únicamente con imágenes.\n" + "Por favor, vuelve a enviar el contenido en formato de imagen o cambia de IA." + ) + return + + # If not text and not Nano Banana, ignore media messages here (let other handlers take them) + if not user_txt and not is_nano_banana: + return + + + # EXCLUSIVE FLOW CHECK: + # If user is in a configuration flow (editing persona, adding category, etc), AI should NOT reply. + # The input_handler (Group 1) will handle it. + st = url_storage.get(m.chat.id) + conf = get_config(m.chat.id) # Load config early to check modes + + if conf.get('tagger_mode') or conf.get('research_mode') or conf.get('cut_init_mode'): return # Exclusivity for Tagger, Research & Cut Init + + if st and ( + 'ai_add_step' in st or + 'ai_config_step' in st or + 'party_input_mode' in st or + 'extract_step' in st or + 'cut_auto_step' in st or + 'vm_paper_pending' in st or # Exclusivity for Paper Mode Text + st.get('action') in ['ai_edit_p_wait', 'ai_add_cat_wait'] + ): + return + + # FAST PASS: Si es solo link o texto corto con link, ignorar (lo toma input_handler/analyze) + has_http = "http" in user_txt + if has_http and len(user_txt.split()) <= 3: + return + + # FIX: Si analyze() lo dejó pasar (porque era largo), nosotros lo tomamos aquí. + # No necesitamos más lógica extra, el flujo es correcto. + + # Manejo de Reply (Contexto) + # Manejo de Reply (Contexto o Imagen) + img_path_reply = None + if m.reply_to_message: + # Texto + if m.reply_to_message.text: + reply_txt = m.reply_to_message.text + if len(reply_txt) > 200: reply_txt = reply_txt[:200] + "..." + user_txt = f"[En respuesta a: '{reply_txt}']\nUsuario dice: {user_txt}" + + # Imagen + if m.reply_to_message.photo: + try: + wm_r = await m.reply("🔍 Analizando imagen respondida...") + # Use absolute path to ensure AI service finds it + filename = f"ai_reply_{m.chat.id}_{int(time.time())}.jpg" + img_path_reply = os.path.abspath(os.path.join("downloads", filename)) + + await m.reply_to_message.download(file_name=img_path_reply) + await wm_r.delete() + print(f"🖼️ Imagen descargada para análisis: {img_path_reply}") + except Exception as e_img: + print(f"❌ Error descargando reply image: {e_img}") + + # --- NANO BANANA BATCHING LOGIC (ALBUMS) --- + img_path_current = None + is_media = m.photo or (m.document and m.document.mime_type and m.document.mime_type.startswith('image/')) + + if is_media: + try: + # Determine extension + ext = "jpg" + if m.document and m.document.file_name: + ext_chk = m.document.file_name.split('.')[-1] + if len(ext_chk) < 5: ext = ext_chk + + import time + import random + # Use ns timing + random to avoid collision in same-second batch + unique_id = f"{int(time.time()*1000)}_{random.randint(100,999)}" + filename_cur = f"ai_input_{m.chat.id}_{unique_id}.{ext}" + img_path_current = os.path.abspath(os.path.join("downloads", filename_cur)) + + await m.download(file_name=img_path_current) + print(f"🖼️ [NanoBanana] Buffered Image: {img_path_current}") + + # NANO BANANA BATCH MODE + if is_nano_banana: + chat_id = m.chat.id + + # Initialize buffer if empty + if chat_id not in NANO_BATCH_BUFFER: + # 1. LOCK IMMEDIATELY (Reserve spot to prevent race condition) + NANO_BATCH_BUFFER[chat_id] = { + 'images': [], + 'text': user_txt, + 'wm': None, + 'msg': m + } + + # 2. PERFORM ASYNC OPS (Send Message) + wm_msg = None + if not user_txt: + try: + wm_msg = await m.reply( + "✅ **Recibido. Total imágenes: 1**\n✍️ Escribe tu prompt cuando estés listo." + ) + except: pass + + # 3. UPDATE BUFFER WITH MSG + if wm_msg: + NANO_BATCH_BUFFER[chat_id]['wm'] = wm_msg + + # Append Image + NANO_BATCH_BUFFER[chat_id]['images'].append(img_path_current) + + # Update Count in Message (if exists) + if NANO_BATCH_BUFFER[chat_id].get('wm'): + try: + cnt = len(NANO_BATCH_BUFFER[chat_id]['images']) + curr_wm = NANO_BATCH_BUFFER[chat_id]['wm'] + # Solo editar si el contador cambia (evitar errores de API) + if f"Total imágenes: {cnt}" not in curr_wm.text: + await curr_wm.edit_text( + f"✅ **Recibido. Total imágenes: {cnt}**\n✍️ Escribe tu prompt cuando estés listo.", + reply_markup=curr_wm.reply_markup + ) + except: pass + + # Update text (append or replace? Let's replace if new text is meaningful) + if user_txt: + # Si llega texto nuevo en una foto posterior, actualizamos el prompt + # Y si había mensaje de espera, deberíamos borrarlo? + # El usuario dice: "NO debe mostrarse mensaje... Proceder directamente". + # Si ya mostramos mensaje (porque la primera foto no tenía texto), y la segunda SI tiene: + # Deberíamos borrar el mensaje de espera. + if NANO_BATCH_BUFFER[chat_id].get('wm'): + try: + await NANO_BATCH_BUFFER[chat_id]['wm'].delete() + NANO_BATCH_BUFFER[chat_id]['wm'] = None + except: pass + + prev_txt = NANO_BATCH_BUFFER[chat_id]['text'] + if prev_txt != user_txt: + NANO_BATCH_BUFFER[chat_id]['text'] = user_txt.strip() + + # Reset Timer (Debounce) + # Cancel previous task + if 'task' in NANO_BATCH_BUFFER[chat_id]: + NANO_BATCH_BUFFER[chat_id]['task'].cancel() + + # Start new task + NANO_BATCH_BUFFER[chat_id]['task'] = asyncio.create_task(run_nano_batch(chat_id, c)) + + return # EXIT HANDLER HERE, let batch runner handle AI call + + # Standard Logic for non-nano banana (immediate) + wm_scan = None + if not m.reply_to_message: + wm_scan = await m.reply("👁️ **Viendo tu imagen...**") + if wm_scan: + try: await wm_scan.delete() + except: pass + + except Exception as e_curr: + print(f"❌ Error descargando current image: {e_curr}") + + if user_txt.startswith('/'): return # Ignorar comandos + + # If we are here, it's either text-only or non-nano-banana image + # BUT if nano_banana sent text-only, we should process it immediately? Yes. + + if len(user_txt) < 2 and not img_path_current: return + + # Feedback visual (escribiendo...) + await c.send_chat_action(m.chat.id, pyrogram.enums.ChatAction.TYPING) + + # Consultar AI + uid = m.from_user.id + + # --- LOGIC: WELCOME BACK (TIEMPO SIN VERTE) --- + sys_hint_welcome = "" + try: + from firebase_service import get_user_rules_fb, save_user_rule_fb, save_user_config_fb, db + import time + + # Usamos una coleccion separada o un campo en user_config para 'last_seen' + # Por simplicidad, leeremos 'last_seen' de user_config + conf = get_config(m.chat.id) + last_seen = conf.get('last_seen', 0) + now_ts = int(time.time()) + + # 6 Horas = 21600 segundos + if last_seen > 0 and (now_ts - last_seen) > 21600: + sys_hint_welcome = "\n\n[SYSTEM NOTICE: El usuario ha vuelto después de mucho tiempo (más de 6h). Si te saluda, intenta usar la reacción 'bienvenida' (si encaja en el contexto).]" + print(f"👋 [Welcome Back] Triggered for {uid} (Delta: {now_ts - last_seen}s)") + + # Actualizar last_seen + conf['last_seen'] = now_ts + # Guardar async (fire and forget task) + asyncio.create_task(save_user_config_fb(m.chat.id, conf)) + + except Exception as e_wb: + print(f"⚠️ Welcome Back Logic Error: {e_wb}") + + conf = get_config(m.chat.id) # Reload or use current + active_p = conf.get('active_persona', 'nsfw') + + # Custom Prompt Logic + custom_p_text = None + if active_p not in ['formal', 'pasiva', 'profesional', 'agresiva', 'nsfw']: + # Check Global First + c_p = global_personas.get(active_p) + if not c_p: + # Fallback Local Legacy + c_p = conf.get('custom_personas', {}).get(active_p) + + if c_p: custom_p_text = c_p.get('prompt') + + # 1. Recuperar reglas de este usuario (async desde Firebase) + user_rules = await get_user_rules_fb(uid, persona_id=active_p) + + # Get available categories for AI knowledge + # Default visual cats + avail_cats = ['bienvenida', 'greeting', 'admire'] + + # Global Cats + if active_p in global_personas and 'images' in global_personas[active_p]: + avail_cats.extend(list(global_personas[active_p]['images'].keys())) + + # Local Cats (Legacy) + if 'ai_images' in conf and active_p in conf['ai_images']: + avail_cats.extend(list(conf['ai_images'][active_p].keys())) + + # CLOUD BODY CACHE (Lazy Load) + from firebase_service import get_all_avatars + if active_p not in AVATAR_KEYS_CACHE: + # Load from DB + # Run in background task to not block? No, we need it for this prompt. + # But get_all_avatars is async. + try: + av_data = await get_all_avatars(active_p) # {outfit: {emotion: [ids]}} + keys = set() + for o_cnt in av_data.values(): + if isinstance(o_cnt, dict): + keys.update(o_cnt.keys()) + AVATAR_KEYS_CACHE[active_p] = keys + except Exception as e: + print(f"⚠️ Cache Load Error: {e}") + AVATAR_KEYS_CACHE[active_p] = set() + + if active_p in AVATAR_KEYS_CACHE: + avail_cats.extend(list(AVATAR_KEYS_CACHE[active_p])) + + # Deduplicate + avail_cats = list(set(avail_cats)) + + # 2. Llamar a Gemini (pasando las reglas, personalidad y categorías disponibles) + ai_mode_val = conf.get('ai_model_mode', 'gemini_2') + + # Prepare Image Paths List + image_paths_list = [] + if img_path_reply: + image_paths_list.append(img_path_reply) + if img_path_current: + image_paths_list.append(img_path_current) + + # NANO BANANA PENDING CONTEXT check + if is_nano_banana and m.chat.id in NANO_PENDING_CONTEXT: + pending_imgs = NANO_PENDING_CONTEXT.pop(m.chat.id) + if pending_imgs: + image_paths_list.extend(pending_imgs) + print(f"🍌 [NanoBanana] Attached {len(pending_imgs)} pending images to prompt.") + + # Prepare Image Config + img_conf = { + 'ratio': conf.get('ai_img_ratio', '1:1'), + 'res': conf.get('ai_img_res', '1K'), + 'temp': conf.get('ai_temp', 1.0), + 'batch_size': conf.get('ai_img_batch', 1) + } + + # --- STATUS MESSAGE (DYNAMIC) --- + # "Pensando..." removed by user request + status_msg = None + last_status_time = 0 + + # Capture running loop for thread-safety + main_loop = asyncio.get_running_loop() + + def status_callback(text): + # Rate limit updates + nonlocal last_status_time + import time + if time.time() - last_status_time < 2.0: return + last_status_time = time.time() + + try: + if status_msg: + future = asyncio.run_coroutine_threadsafe(status_msg.edit(text), main_loop) + # Optional: future.result() if we wanted to wait, but we don't. + except Exception as e: + logger.error(f"⚠️ Status Update Error: {e}") + + # Generate + try: + response = await asyncio.get_running_loop().run_in_executor( + None, + lambda: ask_gemini( + user_txt + sys_hint_welcome, + uid, + image_paths=image_paths_list, + user_rules=user_rules, + active_persona=active_p, + custom_prompt=custom_p_text, + available_categories=avail_cats, + green_mode=conf.get('ai_green_mode', False), + focus_mode=conf.get('ai_focus_mode', False), + ai_mode=ai_mode_val, + image_config=img_conf, + status_callback=status_callback, + google_search_mode=conf.get('google_search_mode', True) + ) + ) + except Exception as e: + if status_msg: await status_msg.edit(f"❌ Error fatal en Gemini: {e}") + else: await m.reply(f"❌ Error fatal en Gemini: {e}") + return + + # Delete Status Message when done + try: + if status_msg: await status_msg.delete() + except: pass + + # Cleanup Input Image + if img_path_current and os.path.exists(img_path_current): + try: os.remove(img_path_current) + except: pass + + # Manejar Respuesta + if isinstance(response, dict) and response.get('action') == 'TRIGGER_TOOL': + tool = response.get('tool') + text_response = response.get('text') + + # --- TOOL HANDLERS --- + if tool == 'download': + # CASO ESPECIAL: Enviamos texto + botón juntos o DESCARGA INMEDIATA + url = response.get('url') + immediate = response.get('immediate') + + if url: + l_u = limpiar_url(url) + + if immediate: + # --- DESCARGA INMEDIATA (Sin botones) --- + await m.reply(text_response or "🚀 **Iniciando descarga inmediata...**") + + cid = m.chat.id + # conf already loaded above + + # Determinar calidad (Auto o Best) + quality = "best" + q_auto = conf.get('q_auto') + if q_auto == 'min': quality = 'worst' + + url_info = {'url': l_u, 'titulo': "AI Auto Download", 'fast_enabled': conf.get('fast_enabled', True)} + + # Llamar al downloader + asyncio.create_task(procesar_descarga(c, cid, l_u, quality, url_info, m)) + else: + # --- FLUJO NORMAL (Botones) --- + # Generamos ID para el botón + import time + link_id = hex(int(time.time() * 1000))[2:] + storage_key = f"{m.chat.id}_{link_id}" + url_storage[storage_key] = {'url': l_u} + + kb = InlineKeyboardMarkup([[InlineKeyboardButton("⬇️ Empezar descarga", callback_data=f"ai_dl|{link_id}")]]) + await m.reply(text_response, reply_markup=kb) + # Fallback sin url + await m.reply(text_response) + + elif tool == 'SEND_GENERATED_IMAGE': + # --- NANO BANANA GENERATED IMAGE --- + raw_path = response.get('path') + paths = raw_path if isinstance(raw_path, list) else [raw_path] + caption = response.get('text', "") + + sent_any = False + for i, img_path in enumerate(paths): + if img_path and os.path.exists(img_path): + # Check User Preference for Document (AI Specific OR Global) + # EXCEPTION LOGIC: Nano Banana Pro + # 1. Check Internal Nano setting (ai_img_as_doc) + # 2. If Internal SET (True/False), use it (Overrides Global). + # 3. If Internal NOT SET (None), fallback to Global (doc_mode). + + internal_doc = conf.get('ai_img_as_doc') # Can be True, False, or None + global_doc = conf.get('doc_mode', False) + + use_doc = global_doc # Default to global + if internal_doc is not None: + use_doc = internal_doc + + # Caption only on first image? Or all? Let's do first for now to avoid spamming text. + cap_final = caption if i == 0 else "" + + try: + if use_doc: + await m.reply_document(img_path, caption=cap_final) + else: + await m.reply_photo(img_path, caption=cap_final) + sent_any = True + except Exception as e: + print(f"❌ Error sending generated image {i}: {e}") + + # --- AUTO WAIFU2X LOGIC --- + if conf.get('waifu2x_auto', False): + try: + from utils import waifu2x_upscale + print(f"✨ [Auto Waifu2x] Processing: {img_path}") + + # Determine Scale based on Config + res_conf = conf.get('ai_img_res', '1K') + w2x_scale = 2 # Default (1K/2K make 2x) + + if res_conf == '4K': w2x_scale = 4 + elif res_conf == '8K': w2x_scale = 8 + + upscaled_path = await asyncio.get_running_loop().run_in_executor( + None, + lambda: waifu2x_upscale(img_path, scale=w2x_scale, noise=2) + ) + + if upscaled_path and os.path.exists(upscaled_path): + cap_w2x = f"✨ **Versión Waifu2x ({res_conf})**" + if use_doc: + await m.reply_document(upscaled_path, caption=cap_w2x) + else: + await m.reply_photo(upscaled_path, caption=cap_w2x) + + try: os.remove(upscaled_path) + except: pass + else: + print("⚠️ [Auto Waifu2x] Failed to generate path.") + + except Exception as e_w2x: + print(f"❌ [Auto Waifu2x] Error: {e_w2x}") + + # CLEANUP GENERATED IMAGE + try: + os.remove(img_path) + print(f"🗑️ [Cleanup] Deleted generated file: {img_path}") + except Exception as e: + print(f"⚠️ Error cleaning up generated file: {e}") + + if not sent_any: + await m.reply("⚠️ Error: La imagen generada no se encontró.") + + elif tool == 'reaction': + # --- AI VISUAL REACTION (Waifu Body) --- + cat = response.get('reaction_category') + + # MAPPING FIX: AI uses 'welcome', 'admire' but DB has 'greeting', 'love' + CAT_MAP = { + 'welcome': 'greeting', # Normal "Hello" -> Saludo + 'bienvenida': 'bienvenida', # Explicit Welcome Back -> Bienvenida + 'admire': 'love', # Approximate + 'shy': 'shy' + } + if cat in CAT_MAP: cat = CAT_MAP[cat] + + if cat: + reaction_item = None + + # 1. CLOUD BODY LOOKUP (Priority) - Supports {'id':..., 'type':...} + cloud_imgs = await get_persona_images(active_p, 'default', cat) + if cloud_imgs: + import random + # --- NO REPEAT LOGIC --- + last_id = conf.get('last_react_id') + + # Filter out last sent ID if possible + candidates = [img for img in cloud_imgs if img['id'] != last_id] + + # If nothing left (e.g. only 1 image exists), use original list + if not candidates: + candidates = cloud_imgs + + reaction_item = random.choice(candidates) + + # Save new ID for next time (Fire & forget) + conf['last_react_id'] = reaction_item['id'] + asyncio.create_task(save_user_config_fb(m.chat.id, conf)) + + # 2. Fallback to Legacy/Global + if not reaction_item: + # Get Config (already have 'conf' and 'active_p') + # Access nested images: Global or Local + ai_imgs = global_personas.get(active_p, {}).get('images', {}).get(cat, {}) + + if not ai_imgs: + ai_imgs = conf.get('ai_images', {}).get(active_p, {}).get(cat, {}) + + mode = ai_imgs.get('mode', 'single') + imgs = ai_imgs.get('images', []) + + # --- SELECTION LOGIC --- + if imgs: + if mode == 'random': + import random + reaction_item = random.choice(imgs) + elif mode == 'subset': + subset = ai_imgs.get('subset', []) + valid_subset = [imgs[i] for i in subset if 0 <= i < len(imgs)] + if valid_subset: + import random + reaction_item = random.choice(valid_subset) + else: + reaction_item = ai_imgs.get('active') or imgs[-1] + + # --- SENDING LOGIC --- + if reaction_item: + # Legacy support: if str, wrap it + if isinstance(reaction_item, str): reaction_item = {'id': reaction_item, 'type': 'photo'} + + fid = reaction_item['id'] + ftype = reaction_item.get('type', 'photo') + + try: + if ftype == 'sticker': + # Sticker + Text (Separate messages usually, caption not supported on stickers) + await m.reply(text_response) + await m.reply_sticker(sticker=fid) + elif ftype == 'video': + await m.reply_video(video=fid, caption=text_response) + elif ftype == 'animation': + # User req: Text first, then GIF (like stickers) or caption? + # Animation supports caption usually. + # But user logic in legacy code used reply_animation. + await m.reply_animation(animation=fid, caption=text_response) + else: # Photo + await m.reply_photo(photo=fid, caption=text_response) + + # --- TTS INJECTION FOR REACTION --- + # DEBUG TTS + is_voice = conf.get('voice_mode') + print(f"🎤 [DEBUG] Check TTS: VoiceMode={is_voice}, TextLen={len(text_response) if text_response else 0}") + + if is_voice and text_response: + try: + print(f"🎤 [DEBUG] Generating Audio for: {text_response[:20]}...") + audio_f = await generate_tts_audio(text_response, active_p) + if audio_f: + print(f"🎤 [DEBUG] Sending Audio: {audio_f}") + await m.reply_voice(audio_f) + os.remove(audio_f) + else: + print("🎤 [DEBUG] Audio file returned None") + except Exception as e_tts: + print(f"🎤 [DEBUG] TTS Error: {e_tts}") + + return + + except Exception as e: + print(f"❌ Reaction Error ({ftype}): {e}") + # Fallback to text only + await m.reply(text_response) + return + + # --- FALLBACK: NO IMAGE FOUND (EMPTY CATEGORY) --- + else: + if text_response: + await m.reply(text_response) + + # --- TTS INJECTION FOR FALLBACK --- + if conf.get('voice_mode'): + try: + audio_f = await generate_tts_audio(text_response, active_p) + if audio_f: + await m.reply_voice(audio_f) + os.remove(audio_f) + except: pass + return + + elif tool == 'create_post': + # --- POST CREATOR --- + # Args: text, media_type, url (media_url), buttons + buttons_data = response.get('buttons', []) + media_type = response.get('media_type') + media_url = response.get('url') # Mapped from media_url in ai_service + + # Construir Teclado + kb_post = None + if buttons_data: + rows = [] + current_row = [] + for btn_str in buttons_data: + parts = btn_str.split('|', 1) + if len(parts) == 2: + lbl, data = parts + # Detectar tipo de botón + if data.startswith('http'): + current_row.append(InlineKeyboardButton(lbl, url=data)) + elif data.startswith('callback:'): + cb_val = data.split(':', 1)[1] + current_row.append(InlineKeyboardButton(lbl, callback_data=cb_val)) + else: + # Default a URL si no es callback explícito, o callback data raw + # Asumimos URL si parace url, sino callback + if '://' in data: + current_row.append(InlineKeyboardButton(lbl, url=data)) + else: + current_row.append(InlineKeyboardButton(lbl, callback_data=data)) + + # Simple grid logic: 2 buttons max per row for aesthetics + if len(current_row) >= 2: + rows.append(current_row) + current_row = [] + + if current_row: rows.append(current_row) + kb_post = InlineKeyboardMarkup(rows) + + # Enviar Mensaje Multimedia o Texto + try: + if media_url and media_type: + if 'photo' in media_type: + await m.reply_photo(media_url, caption=text_response, reply_markup=kb_post) + elif 'video' in media_type: + await m.reply_video(media_url, caption=text_response, reply_markup=kb_post) + else: + await m.reply(text_response, reply_markup=kb_post, disable_web_page_preview=False) + else: + await m.reply(text_response, reply_markup=kb_post, disable_web_page_preview=False) + except Exception as e_post: + await m.reply(f"❌ Error creando post: {e_post}\n\n{text_response}") + + elif tool == 'manage_rules': + # --- MANAGE RULES (Scoped) --- + rule_content = response.get('text') + action = response.get('action_type') + + # Usamos la versión Async de Firebase con Active Persona + success = await save_user_rule_fb(m.from_user.id, rule_content, action, persona_id=active_p) + + if success: + if action == 'add': + await m.reply(f"✅ **Regla Guardada ({active_p}):**\n`{rule_content}`\n\n_La recordaré para siempre en este modo._") + elif action == 'remove': + await m.reply(f"🗑️ **Regla Olvidada ({active_p}):**\n`{rule_content}`") + elif action == 'clear': + await m.reply(f"🧹 **Memoria de reglas ({active_p}) borrada.**") + else: + await m.reply("❌ Hubo un error guardando la regla en Firebase.") + + elif tool == 'pack': + # --- PACK SENDER (CLOUD BODY) --- + p_cat = response.get('pack_category', 'general') + + # Map user intent to Firebase keys (NEW PACK FOLDERS) + cat_map = { + 'tetas': 'pack_boobs', + 'culos': 'pack_ass', + 'cuerpo': 'pack_nude', + 'vagina': 'pack_pussy', + 'pies': 'pack_feet', + 'general': 'pack_nude' + } + fb_key = cat_map.get(p_cat, 'pack_nude') + + # Send text first if explicitly provided by AI + if text_response: await m.reply(text_response) + + # Retrieve from Firebase + # from firebase_service import get_persona_images (Already global) + conf = get_config(m.chat.id) + pid = conf.get('active_persona', 'nsfw') + + # 1. Try Active Persona + imgs = await get_persona_images(pid, 'default', fb_key) + + # 2. Fallback to NSFW if generic and custom persona is empty + if not imgs and pid != 'nsfw': + imgs = await get_persona_images('nsfw', 'default', fb_key) + + if imgs: + import random + selected = random.choice(imgs) + # Handle dict or str + fid = selected if isinstance(selected, str) else selected.get('id') + ftype = 'photo' if isinstance(selected, str) else selected.get('type', 'photo') + + try: + cap = f"📦 Aquí tienes tu pack de **{p_cat}**." + if ftype == 'video': + await m.reply_video(fid, caption=cap) + elif ftype == 'animation': + await m.reply_animation(fid, caption=cap) + elif ftype == 'sticker': + await m.reply_sticker(fid) + elif ftype == 'document': + await m.reply_document(fid, caption=cap) + else: + await m.reply_photo(fid, caption=cap) + except Exception as e: + await m.reply(f"❌ Error enviando pack (ID inválido?): {e}") + else: + # Prompt user to upload + clean_key = fb_key.replace('_', ' ').title() + await m.reply( + f"📂 Ve a **Configuración IA** > **Pack Waifu** para llenarme el álbum." + ) + + # --- TTS INJECTION FOR PACK --- + if conf.get('voice_mode') and text_response: + try: + audio_f = await generate_tts_audio(text_response, active_p) + if audio_f: + await m.reply_voice(audio_f) + os.remove(audio_f) + except: pass + + else: + # CASO GENERAL: Enviamos texto primero + # --- SILENT MODE CHECK (Nano Banana) --- + is_nano_banana = (conf.get('ai_model_mode') == 'nano_banana') + + if text_response and not is_nano_banana: + await m.reply(text_response) + + # TTS (Solo si no es Nano Banana) + if conf.get('voice_mode'): + try: + audio_f = await generate_tts_audio(text_response, active_p) + if audio_f: + await m.reply_voice(audio_f) + os.remove(audio_f) + except: pass + + # Si es Nano Banana y hay texto pero NO herramienta -> Forzar mensaje de "Esperando..." o silencio total + elif is_nano_banana and text_response: + # Opcional: Loguear pero no enviar + print(f"🍌 [NanoBanana] Silenced Text: {text_response[:50]}...") + + # Luego ejecutamos la herramienta (Siempre) + if tool == 'party': + # Logic for party command (Inline) + cid = m.chat.id + conf = get_config(cid) + conf['party_mode'] = True + save_bot_config(cid, conf) + await m.reply("🎉 **Modo Party Activado.**\nEnvíame videos y cuando termines escribe `/join` o `/unir`.") + + elif tool == 'auto_party': + cid = m.chat.id + conf = get_config(cid) + conf['party_auto_mode'] = True + conf['party_mode'] = True + save_bot_config(cid, conf) + await m.reply("🔗 **Modo Auto-Join Activado.** Envíame videos y los uniré automáticamente.") + elif tool == 'cutter': + # Logic for cutter command (Inline) + await m.reply("✂️ **Herramienta Cutter.**\nResponde a un video con `/cut inicio fin` (ej: `/cut 00:00 00:30`) para cortarlo.") + + elif tool == 'sauce': + cid = m.chat.id + conf = get_config(cid) + conf['saucenao_mode'] = True + save_bot_config(cid, conf) + await m.reply("🔍 **Modo Sauce Activado.** La próxima imagen que envíes será analizada.") + + + + elif response: + # --- SILENCE NANO BANANA TEXT --- + if is_nano_banana: + print(f"🍌 [NanoBanana] Silenced Hallucination: {response[:50]}...") + return + + await m.reply(response, quote=True) + + if conf.get('voice_mode'): + try: + audio_f = await generate_tts_audio(response, active_p) + if audio_f: + await m.reply_voice(audio_f) + os.remove(audio_f) + except: pass + + # FINAL CLEANUP (Reply Context) + if img_path_reply and os.path.exists(img_path_reply): + try: os.remove(img_path_reply) + except: pass + + if has_http: + m.stop_propagation() + +# --- ARRANQUE --- + +# --- ARRANQUE --- + +async def boot_services(): + print("🚀 Bot Iniciando (Versión Final)...") + + # --- INIT AI --- + init_ai(GEMINI_API_KEY) + + # --- INIT GLOBAL PERSONAS --- + await refresh_globals() + + # --- CLEANUP STARTUP --- + try: + if not os.path.exists("downloads"): + os.makedirs("downloads") + + import shutil + cwd = os.getcwd() + print("🧹 Ejecutando limpieza inicial...") + for item in os.listdir(cwd): + if item.startswith("tmp_gallery_") and os.path.isdir(item): + try: + shutil.rmtree(item) + print(f"🗑 Eliminado: {item}") + except Exception as e: + print(f"⚠️ Error borrando {item}: {e}") + except: pass + + + # --- CLEANUP SESSION & START --- + # --- CLEANUP SESSION & START --- + max_retries = 10 + connected = False + + for i in range(max_retries): + try: + if i > 0: print(f"🔄 Intento de conexión {i+1}/{max_retries}...") + await app.start() + connected = True + break + except Exception as e: + err_str = str(e) + # 1. Error de Sesión (Corrupción) -> Borrar y reintentar inmediatamente + if "406" in err_str or "AUTH_KEY" in err_str or "Unauthorized" in err_str: + print(f"⚠️ Error de Sesión detectado ({e}). Eliminando archivo de sesión corrupto y reintentando...") + s_path = os.path.join(WORKDIR, "brody_final_v2.session") + if os.path.exists(s_path): + try: os.remove(s_path) + except: pass + continue + + # 2. Error de Red (Timeout, Connection, etc) -> Esperar y reintentar + is_net = any(x in err_str for x in ["Connection", "Timeout", "Network", "OSError", "Unreachable"]) + if is_net: + wait_sec = (i + 1) * 3 # 3s, 6s, 9s... + print(f"⚠️ Error de Red ({e}). Reintentando en {wait_sec} segundos...") + await asyncio.sleep(wait_sec) + continue + + # 3. Otros errores -> Crash + raise e + + if not connected: + print("❌ Error Crítico: No se pudo conectar a Telegram tras múltiples intentos.") + sys.exit(1) + + # Comandos con atajos de herramientas (Actualizado) + await app.set_bot_commands([ + BotCommand("start", "⚙️ Menú Principal"), + BotCommand("refactor_on", "🟢 Activar Refactor Links"), + BotCommand("refactor_off", "🔴 Desactivar Refactor Links"), + BotCommand("party", "✂️ Cortar Video"), + BotCommand("unir_party", "🔗 Unir Videos"), + BotCommand("extractor", "🖼 Extraer Fotos"), + BotCommand("gif", "🎬 Crear GIF"), + BotCommand("sticker", "🎭 Crear Sticker"), + BotCommand("mp3", "🎵 Extraer Audio MP3"), + BotCommand("sauce", "🔍 Buscar Fuente (SauceNAO)"), + BotCommand("tagger", "🏷️ Generar Hashtags"), + BotCommand("autoclass", "📷 Auto-Clasificación"), + BotCommand("ping", "🏓 Check Estado"), + BotCommand("id", "🆔 Ver IDs"), + BotCommand("cancel", "🛑 Cancelar Todo") + ]) + + # Firebase sync + try: + from firebase_service import load_all_user_configs, load_all_hashtags + import database + cfs = await load_all_user_configs() + if cfs: database.user_config.update(cfs) + if cfs: database.user_config.update(cfs) + tgs = await load_all_hashtags() + if tgs: database.hashtag_db.update(tgs) + load_viral() # Load Viral DB locally + except: pass + + print("✅ Bot Conectado y Listo.") + + # Iniciar Aiohttp Server + await start_web_server() + await idle() + await app.stop() + +if __name__ == "__main__": + try: + # Servidor web asíncrono ahora se inicia en boot_services + print('🚀 Iniciando Loop Principal del Bot...') + loop = asyncio.get_event_loop() + loop.run_until_complete(boot_services()) + + except Exception as e: + print(f"❌ CRITICAL BOT CRASH: {e}") + except KeyboardInterrupt: + print("🛑 Bot detenido manualmente.") \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/manga_service.py b/Twisted Brody Waifus & Creampie BRODY/manga_service.py new file mode 100644 index 0000000000000000000000000000000000000000..02af36e6bd09e71028aca1dcda22d245d304394d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/manga_service.py @@ -0,0 +1,957 @@ +import aiohttp +import asyncio +import os +import shutil +import json +import zipfile +import img2pdf +from PIL import Image +from io import BytesIO +from config import DATA_DIR +from pyrogram.types import InputMediaPhoto, InputMediaDocument +from tools_media import progreso +from firebase_service import get_cached_file, save_cached_file, get_cached_data +from database import add_active, remove_active, update_progress + +import time + +FIREBASE_BASE_URL = "https://firestore.googleapis.com/v1/projects/twistedbrody-9d163/databases/(default)/documents" + +# --- GLOBAL CACHE --- +MANGA_CACHE = { + 'data': [], + 'last_updated': 0, + 'ttl': 300 # 5 minutos +} + +async def download_image(session, url, path): + try: + async with session.get(url) as resp: + if resp.status == 200: + with open(path, 'wb') as f: + f.write(await resp.read()) + return True + except Exception as e: + print(f"Error downloading {url}: {e}") + return False + + +async def get_manga_metadata(manga_id): + """Obtiene título, autor y portada del manga desde Firebase.""" + url = f"{FIREBASE_BASE_URL}/mangas/{manga_id}" + try: + async with aiohttp.ClientSession() as session: + async with session.get(url) as resp: + if resp.status != 200: + print(f"❌ Error Metadata ({resp.status}): {await resp.text()}") + return None + data = await resp.json() + + fields = data.get('fields', {}) + title = fields.get('title', {}).get('stringValue', 'Desconocido') + author = fields.get('author', {}).get('stringValue', 'Desconocido') + # La portada suele estar en 'cover' o 'image' + cover = fields.get('cover', {}).get('stringValue') or fields.get('image', {}).get('stringValue') + + return { + 'id': manga_id, + 'title': title, + 'author': author, + 'cover': cover + } + except Exception as e: + print(f"❌ Excepción Metadata: {e}") + return None + +async def get_or_cache_cover(client, chat_id, manga_id, cover_url): + """ + Obtiene el FILE_ID de la portada. + 1. Si está en cache, lo devuelve. + 2. Si no, descarga la imagen, la envía, obtiene el ID y lo guarda. + """ + if not cover_url: return None + + # 1. Check Cache + cached_id = await get_cached_file(f"manga_{manga_id}", "cover_id") + if cached_id: return cached_id + + # 2. Download & Cache + try: + # Temp file + import time + ts = int(time.time()) + tmp_path = os.path.join(DATA_DIR, f"cover_{manga_id}_{ts}.jpg") + + async with aiohttp.ClientSession() as session: + if await download_image(session, cover_url, tmp_path): + # Enviar mensaje temporal para sacar ID + # Usamos send_photo con file=tmp_path + msg = await client.send_photo(chat_id, tmp_path) + if msg and msg.photo: + fid = msg.photo.file_id + await save_cached_file(f"manga_{manga_id}", "cover_id", fid) + await msg.delete() + try: os.remove(tmp_path) + except: pass + return fid + + # Si falla obtener ID, pero descargó, devolvemos PATH + # No borramos tmp_path aqui, dejamos que main.py lo use + await msg.delete() + return tmp_path + + except Exception as e: + print(f"❌ Error Cache Cover: {e}") + + return cover_url # Fallback a URL original (baja probabilidad de éxito si es img protegida) + + +async def get_manga_chapters(manga_id): + """Obtiene los capítulos (imágenes) usando una Query a Firebase.""" + url = f"{FIREBASE_BASE_URL}:runQuery" + + # Query Body exacto proporcionado por el usuario + payload = { + "structuredQuery": { + "from": [{ "collectionId": "chapters" }], + "where": { + "fieldFilter": { + "field": { "fieldPath": "manga_id" }, + "op": "EQUAL", + "value": { "stringValue": manga_id } + } + } + } + } + + try: + async with aiohttp.ClientSession() as session: + async with session.post(url, json=payload) as resp: + if resp.status != 200: + print(f"❌ Error Chapters ({resp.status}): {await resp.text()}") + return [] + + data = await resp.json() + # data es una lista de documentos wrapper + + chapters = [] + for item in data: + doc = item.get('document', {}) + if not doc: continue + + fields = doc.get('fields', {}) + + # Extraer páginas originales + orig_pages = [] + vals = fields.get('original_pages', {}).get('arrayValue', {}).get('values', []) + for v in vals: + if 'stringValue' in v: orig_pages.append(v['stringValue']) + + # Extraer páginas webp + webp_pages = [] + vals = fields.get('pages', {}).get('arrayValue', {}).get('values', []) + for v in vals: + if 'stringValue' in v: webp_pages.append(v['stringValue']) + + ch_num = fields.get('number', {}).get('integerValue', '0') + ch_title = fields.get('title', {}).get('stringValue', f"Capítulo {ch_num}") + + chapters.append({ + 'title': ch_title, + 'number': int(ch_num), + 'original': orig_pages, + 'webp': webp_pages + }) + + # Ordenar por número + chapters.sort(key=lambda x: x['number']) + return chapters + + except Exception as e: + print(f"❌ Excepción Chapters: {e}") + return [] + + except: pass + return None + +async def get_all_mangas_paginated(): + """Obtiene una lista ligera de TODOS los mangas (Title, ID, Cover) para el catálogo.""" + + # 1. Global Cache Check + now = time.time() + if MANGA_CACHE['data'] and (now - MANGA_CACHE['last_updated'] < MANGA_CACHE['ttl']): + return MANGA_CACHE['data'] + + url = f"{FIREBASE_BASE_URL}:runQuery" + # Query para traer solo campos necesarios y ordenar (simulado) + # Firebase REST es limitado, traemos todo y filtramos en RAM (Para ~50 mangas está bien) + payload = { + "structuredQuery": { + "from": [{ "collectionId": "mangas" }], + "limit": 100 # Safety limit + } + } + + try: + async with aiohttp.ClientSession() as session: + async with session.post(url, json=payload) as resp: + if resp.status != 200: return [] + data = await resp.json() + + mangas = [] + for item in data: + doc = item.get('document', {}) + if not doc: continue + + # ID está en name: .../documents/mangas/ID + full_name = doc.get('name', '') + mid = full_name.split('/')[-1] + + fields = doc.get('fields', {}) + title = fields.get('title', {}).get('stringValue', 'Sin Título') + author = fields.get('author', {}).get('stringValue', 'Desconocido') + cover = fields.get('cover', {}).get('stringValue') or fields.get('image', {}).get('stringValue') + + # FALLBACK: Si no hay 'cover' ni 'image' en metadata general, buscar en el capitulo 1 (si existiese en la DB plana) + # Pero get_all_mangas solo mira la coleccion "mangas", no "chapters". + # Intentamos buscar clean_url o similar + if not cover: + # Intento desesperado: buscar cualquier campo que parezca url + for k, v in fields.items(): + val = v.get('stringValue', '') + if 'http' in val and ('jpg' in val or 'png' in val or 'webp' in val): + cover = val + break + + if not cover: + print(f"⚠️ Manga sin portada: {title} ({mid})") + + mangas.append({ + 'id': mid, + 'title': title, # Strip para limpieza + 'author': author, + 'cover': cover + }) + + # Ordenar alfabéticamente + mangas.sort(key=lambda x: x['title']) + + # Update Cache + MANGA_CACHE['data'] = mangas + MANGA_CACHE['last_updated'] = time.time() + + return mangas + except Exception as e: + print(f"Error Manga Pagination: {e}") + return [] + + +from pyrogram.types import InputMediaPhoto, InputMediaDocument +from pyrogram.errors import FloodWait + +async def download_image(session, url, file_path, retries=3): + """Descarga e una imagen Directamente al Disco (Streaming) para ahorrar RAM.""" + # Headers para evitar bloqueos (403/401) + headers = { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", + "Referer": "https://twisted-brody-manga-flow.vercel.app/" + } + + for i in range(retries): + try: + async with session.get(url, headers=headers, timeout=20) as resp: + if resp.status == 200: + with open(file_path, 'wb') as f: + async for chunk in resp.content.iter_chunked(1024): + f.write(chunk) + return True + else: + print(f"⚠️ HTTP {resp.status} for {url}") + except Exception as e: + # Imprimir error detallado y URL completa + print(f"⚠️ DL Error ({i+1}/{retries}) {url}: {repr(e)}") + await asyncio.sleep(1) + return False + +async def repair_image(path): + """Comprime y redimensiona una imagen si es demasiado pesada para Telegram.""" + try: + if not os.path.exists(path): return False + + size_mb = os.path.getsize(path) / (1024 * 1024) + + def _do_repair(): + with Image.open(path) as im: + # 1. Redimensionar si es excesiva (max 2560px) + max_dim = 2560 + if im.width > max_dim or im.height > max_dim: + im.thumbnail((max_dim, max_dim), Image.LANCZOS) + + # 2. Guardar con compresión y optimización + rgb_im = im.convert('RGB') + rgb_im.save(path, "JPEG", quality=80, optimize=True) + + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, _do_repair) + + new_size = os.path.getsize(path) / (1024 * 1024) + print(f"🛠 [Repair] {os.path.basename(path)}: {size_mb:.1f}MB -> {new_size:.1f}MB") + return True + except Exception as e: + print(f"❌ Error reparando {path}: {e}") + return False + +async def process_manga_download(client, chat_id, manga_data, container, quality, status_msg, doc_mode=False, group_mode=True): + """ + Descarga, procesa y envía el manga. + container: 'zip', 'pdf' o 'img' (alias 'images') + quality: 'original', 'webp', 'png', 'jpg' + """ + # Alias + if container == 'images': container = 'img' + + manga_id = manga_data['id'] + title = manga_data['title'] + + # Crear directorio temporal único + import time + timestamp = int(time.time()) + base_tmp = os.path.join(DATA_DIR, f"manga_{manga_id}_{timestamp}") + os.makedirs(base_tmp, exist_ok=True) + + # Register Active Task + curr_task = asyncio.current_task() + add_active(chat_id, status_msg.id, curr_task) + + try: + # 0. KEY GENERATION & CACHE CHECK + # Key format: manga_{id} // Field: {container}_{quality} (e.g. zip_original, img_webp) + cache_key = f"{container}_{quality}" + if doc_mode: cache_key += "_doc" + + print(f"🔍 [Cache Check] Key: {cache_key} for Manga: {manga_id}") + cached_data = await get_cached_file(f"manga_{manga_id}", cache_key) + + # SMART CACHE VALIDATION (Solo para álbumes de imágenes) + valid_cache = False + if cached_data: + if isinstance(cached_data, list): + # Es un álbum, verificar conteo + try: + # Necesitamos saber cuántas imágenes SON en realidad + # Pequeño overhead de red, pero asegura integridad + chapters = await get_manga_chapters(manga_id) + if chapters: + total_expected = 0 + use_source = 'webp' if quality == 'webp' else 'original' + for ch in chapters: + src_list = ch[use_source] + if not src_list and use_source == 'original': src_list = ch['webp'] + total_expected += len(src_list) + + if len(cached_data) == total_expected: + valid_cache = True + cached_data_to_use = cached_data + else: + print(f"⚠️ Cache Mismatch: Guardados {len(cached_data)} vs Reales {total_expected}. Invalidando.") + valid_cache = False + # Podríamos borrarlo de firebase aquí, pero al guardar el nuevo se sobreescribe. + except: + # Si falla la verificación, asumimos inválido por seguridad + valid_cache = False + else: + # ZIP/PDF (Single file_id), asumimos válido si existe + valid_cache = True + cached_data_to_use = cached_data + + if valid_cache: + await status_msg.edit(f"✨ **{title}**\n⚡ Enviando desde memoria (instantáneo)...") + try: + if isinstance(cached_data_to_use, list): + # ALBUM CACHE (Images) + if group_mode: + for i in range(0, len(cached_data_to_use), 10): + chunk = cached_data_to_use[i:i+10] + media = [] + for fid in chunk: + if not fid: continue # Skip invalid IDs + if doc_mode: media.append(InputMediaDocument(fid)) + else: media.append(InputMediaPhoto(fid)) + + if not media: continue + + try: + await client.send_media_group(chat_id, media) + await asyncio.sleep(1) + except FloodWait as fw: await asyncio.sleep(fw.value + 1) + except Exception as e: + print(f"⚠️ Error SendGroup Cache: {e}") + else: + for fid in cached_data_to_use: + if not fid: continue + try: + if doc_mode: await client.send_document(chat_id, fid) + else: await client.send_photo(chat_id, fid) + await asyncio.sleep(0.3) + except FloodWait as fw: await asyncio.sleep(fw.value + 1) + except Exception as e: + print(f"⚠️ Error SendItem Cache: {e}") + else: + # SINGLE FILE CACHE (ZIP/PDF) + cap = f"🎬 **{title}**\n👤 {manga_data.get('author','?')}\n✨ (Desde Memoria)" + await client.send_document(chat_id, cached_data_to_use, caption=cap) + + await status_msg.delete() + print(f"✅ Cache Hit Success: {title}") + return # EXIT SUCCESS + except Exception as e: + print(f"⚠️ Cache read/send failed: {e}. Fallback to download.") + await status_msg.edit(f"⚠️ **Error en memoria.**\nDescargando de nuevo...") + # Fallback to download (continue execution below) + + if not valid_cache: # Solo editar si no acabamos de fallar cache silenciosamente + await status_msg.edit(f"⏳ **{title}**\n🔍 Obteniendo lista de capítulos...") + + # --- ZIP MASTER STRATEGY --- + # Si NO hay cache específico (ej: pdf_original), preguntamos por el ZIP Maestro. + zip_master_fid = await get_cached_file(f"manga_{manga_id}", "zip_master") + + using_master_zip = False + + if zip_master_fid: + await status_msg.edit(f"⚡ **{title}**\n📥 Descargando desde Respaldo (ZIP Maestro)...") + try: + # Descargar ZIP Maestro + zip_path = os.path.join(base_tmp, "master_download.zip") + await client.download_media(zip_master_fid, file_name=zip_path) + + if os.path.exists(zip_path): + await status_msg.edit(f"⚡ **{title}**\n📦 Extrayendo Respaldo...") + + # Extraer + loop = asyncio.get_running_loop() + def unzip_master(): + with zipfile.ZipFile(zip_path, 'r') as zip_ref: + zip_ref.extractall(base_tmp) + await loop.run_in_executor(None, unzip_master) + + # Cleanup zip + try: os.remove(zip_path) + except: pass + + using_master_zip = True + print(f"✅ ZIP Maestro usado para: {title}") + + except Exception as e: + print(f"⚠️ Error usando ZIP Maestro: {e}. Fallback a descarga web.") + + if not using_master_zip: + # METODO ANTIGUO (Solo si falló el maestro o no existe) + if 'chapters' not in locals() or not chapters: + chapters = await get_manga_chapters(manga_id) + + if not chapters: + await status_msg.edit("❌ No se encontraron capítulos o imágenes.") + return + + # Seleccionar fuente inicial + use_source = 'webp' if quality == 'webp' else 'original' + + img_queue = [] + for ch in chapters: + ch_safe = "".join([c for c in ch['title'] if c.isalnum() or c in " -_"]).strip() + ch_dir = os.path.join(base_tmp, ch_safe) + os.makedirs(ch_dir, exist_ok=True) + + src_list = ch[use_source] + if not src_list and use_source == 'original': src_list = ch['webp'] # Fallback + + for idx, url in enumerate(src_list): + ext = url.split('?')[0].split('.')[-1].lower() + if len(ext) > 4: ext = 'jpg' + + fname = f"{idx+1:03d}.{ext}" + dest_path = os.path.join(ch_dir, fname) + img_queue.append((url, dest_path)) + + total = len(img_queue) + await status_msg.edit(f"⏳ **{title}**\n⬇️ Descargando {total} imágenes ({quality.upper()})...") + + # 2. Descarga Concurrente (OPTIMIZADO: 20 hilos) + # Aumentado de 5 a 20 para mejorar velocidad + batch_size = 20 + + async with aiohttp.ClientSession() as session: + for i in range(0, total, batch_size): + batch = img_queue[i:i+batch_size] + tasks = [] + for url, path in batch: + # Pasamos 'path' directo a download_image + tasks.append(download_image(session, url, path)) + + # Gather devuelve lista de True/False + results = await asyncio.gather(*tasks) + + if i % 10 == 0 or i + batch_size >= total: + pct = int(((i + len(batch))/total)*100) + try: + await status_msg.edit(f"⏳ **{title}**\n⬇️ Descargando... {pct}%") + update_progress(chat_id, status_msg.id, percent=pct, status="Descargando Manga", name=title) + except: pass + + # 3. Conversión de Formato (si aplica) + # Fix: img2pdf no soporta WebP. Telegram send_photo no soporta WebP con Alpha (a veces). + # Si es PDF o IMG (Photo Mode) con WebP, forzamos conversión a JPG. + # 3. Conversión de Formato (si aplica) + # Fix: img2pdf no soporta WebP. Telegram send_photo no soporta WebP con Alpha. + + # Logic Revamp: Only convert if strictly necessary to preserve quality. + convert_count = 0 + + for root, _, files in os.walk(base_tmp): + for file in files: + safe_path = os.path.join(root, file) + fname, cur_ext = os.path.splitext(file) + cur_ext = cur_ext.lower() + + start_convert = False + target_ext = ".jpg" + + # A. PDF Mode: Convert WebP -> JPG (img2pdf limitation). Keep PNG/JPG as is. + if container == 'pdf': + if cur_ext == '.webp': + start_convert = True + target_ext = ".jpg" + + # B. Img Mode (Photo): Convert WebP -> JPG (Telegram compatibility) + elif container == 'img' and not doc_mode: + if cur_ext == '.webp': # or quality == 'webp' implicit + start_convert = True + target_ext = ".jpg" + + # C. Explicit Format Request (PNG/JPG) vs Original + elif quality in ['png', 'jpg']: + if cur_ext != f".{quality}": + start_convert = True + target_ext = f".{quality}" + + if start_convert: + if convert_count == 0: + await status_msg.edit(f"⏳ **{title}**\n⚙️ Procesando imágenes para compatibilidad...") + + convert_count += 1 + new_path = os.path.join(root, fname + target_ext) + + try: + # Offload CPU-heavy image conversion + def convert_img(): + with Image.open(safe_path) as im: + rgb_im = im.convert('RGB') + rgb_im.save(new_path, quality=95) + + loop = asyncio.get_running_loop() + await loop.run_in_executor(None, convert_img) + + # Remove original if different extension + if cur_ext != target_ext and os.path.exists(safe_path): + os.remove(safe_path) + + except Exception as e: + print(f"⚠️ Error converting {file}: {e}") + + if new_path != safe_path and os.path.exists(new_path): + try: os.remove(new_path) + except: pass + + # 4. Empaquetado o Envío + + if container == 'img': + await status_msg.edit(f"📤 **{title}**\nEnviando {total} imágenes...") + + # Recolectar todos los archivos finales ordenados + all_files = [] + for ch in chapters: + ch_safe = "".join([c for c in ch['title'] if c.isalnum() or c in " -_"]).strip() + ch_dir = os.path.join(base_tmp, ch_safe) + if not os.path.exists(ch_dir): continue + imgs = sorted(os.listdir(ch_dir)) + for im in imgs: + all_files.append(os.path.join(ch_dir, im)) + + if not all_files: + return await status_msg.edit("❌ Error: No se descargaron imágenes.") + + # --- ENVIAR AL USUARIO Y CAPTURAR FILE IDs --- + sent_file_ids = [] + + if group_mode: + # Album Fotos/Docs + for i in range(0, len(all_files), 10): + chunk = all_files[i:i+10] + media = [] + for f in chunk: + if doc_mode: media.append(InputMediaDocument(f)) + else: media.append(InputMediaPhoto(f)) + + try: + # Capturar resultado + sent_msgs = await client.send_media_group(chat_id, media) + if sent_msgs: + for m in sent_msgs: + if m.photo: sent_file_ids.append(m.photo.file_id) + elif m.document: sent_file_ids.append(m.document.file_id) + + await asyncio.sleep(2) # Increased delay to prevent flood + except FloodWait as e: + await asyncio.sleep(e.value + 2) + # Retry once (generic) + try: + sent_msgs = await client.send_media_group(chat_id, media) + if sent_msgs: + for m in sent_msgs: + if m.photo: sent_file_ids.append(m.photo.file_id) + elif m.document: sent_file_ids.append(m.document.file_id) + except: pass + except Exception as e: + err_str = str(e).upper() + # Expandimos errores para incluir PHOTO_SAVE_FILE_INVALID + if "FILE_TOO_BIG" in err_str or "MEDIA_INVALID" in err_str or "PHOTO_INVALID_DIMENSIONS" in err_str or "PHOTO_SAVE_FILE_INVALID" in err_str: + print(f"⚠️ [Manga] Fallo de envío en lote ({e}). Intentando reparación...") + for m_item in media: + await repair_image(m_item.media) + + try: + await asyncio.sleep(2) + sent_msgs = await client.send_media_group(chat_id, media) + if sent_msgs: + for m in sent_msgs: + if m.photo: sent_file_ids.append(m.photo.file_id) + elif m.document: sent_file_ids.append(m.document.file_id) + print(f"✅ [Manga] Lote enviado con éxito tras reparación.") + except Exception as re_e: + print(f"❌ [Manga] Falló reenvío tras reparación: {re_e}") + else: + print(f"❌ [Manga] Error enviando lote {i}: {e}") + else: + # 1 a 1 Fotos/Docs + for f in all_files: + try: + m = None + if doc_mode: m = await client.send_document(chat_id, f) + else: m = await client.send_photo(chat_id, f) + + if m: + if m.photo: sent_file_ids.append(m.photo.file_id) + elif m.document: sent_file_ids.append(m.document.file_id) + + await asyncio.sleep(0.3) + except FloodWait as e: await asyncio.sleep(e.value + 1) + except Exception as e: + err_str = str(e).upper() + # Expandimos errores para incluir PHOTO_SAVE_FILE_INVALID + if "FILE_TOO_BIG" in err_str or "MEDIA_INVALID" in err_str or "PHOTO_INVALID_DIMENSIONS" in err_str or "PHOTO_SAVE_FILE_INVALID" in err_str: + print(f"⚠️ [Manga] Fallo de envío individual: {os.path.basename(f)} ({e}). Reparando...") + await repair_image(f) + try: + await asyncio.sleep(1) + if doc_mode: m = await client.send_document(chat_id, f) + else: m = await client.send_photo(chat_id, f) + if m: + if m.photo: sent_file_ids.append(m.photo.file_id) + elif m.document: sent_file_ids.append(m.document.file_id) + print(f"✅ [Manga] Imagen enviada con éxito tras reparación.") + except Exception as re_e: + print(f"❌ [Manga] Falló reenvío individual tras reparación: {re_e}") + else: + print(f"❌ [Manga] Error enviando imagen {os.path.basename(f)}: {e}") + + # SAVE TO CACHE (List of IDs) + if sent_file_ids: + print(f"🔥 [Cache Save] Key: {cache_key} | IDs: {len(sent_file_ids)}") + await save_cached_file(f"manga_{manga_id}", cache_key, sent_file_ids, meta={'title': title}) + + await status_msg.delete() + return + + # ZIP o PDF + await status_msg.edit(f"⏳ **{title}**\n📦 Creando archivo {container.upper()}...") + final_file = None + + if container == 'pdf': + all_imgs_paths = [] + for ch in chapters: + ch_safe = "".join([c for c in ch['title'] if c.isalnum() or c in " -_"]).strip() + ch_dir = os.path.join(base_tmp, ch_safe) + if not os.path.exists(ch_dir): continue + imgs = sorted(os.listdir(ch_dir)) + for im in imgs: + all_imgs_paths.append(os.path.join(ch_dir, im)) + + if all_imgs_paths: + # Sanitize Title for Filename (Windows) + safe_title = "".join([c for c in title if c.isalnum() or c in " -_().[]"]) + pdf_path = os.path.join(DATA_DIR, f"{safe_title} [{quality.upper()}].pdf") + # Offload PDF creation (Blocking I/O + CPU) + loop = asyncio.get_running_loop() + def create_pdf(): + with open(pdf_path, "wb") as f: + f.write(img2pdf.convert(all_imgs_paths)) + + await loop.run_in_executor(None, create_pdf) + final_file = pdf_path + + else: + # ZIP + # Offload ZIP creation (Blocking I/O) + safe_title = "".join([c for c in title if c.isalnum() or c in " -_().[]"]) + zip_path = os.path.join(DATA_DIR, f"{safe_title} [{quality.upper()}].zip") + + loop = asyncio.get_running_loop() + def create_zip(): + with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zipf: + for root, _, files in os.walk(base_tmp): + for file in files: + abs_path = os.path.join(root, file) + arc_name = os.path.relpath(abs_path, base_tmp) + zipf.write(abs_path, arc_name) + + await loop.run_in_executor(None, create_zip) + final_file = zip_path + + # Enviar Archivo Final + if final_file and os.path.exists(final_file): + await status_msg.edit(f"📤 **{title}**\nSubiendo archivo ({os.path.getsize(final_file)/1024/1024:.1f} MB)...") + + cap = f"📚 **{title}**\n👤 {manga_data['author']}\n🆔 `{manga_id}`\n📦 {container.upper()} | 🎨 {quality.upper()}" + + try: + msg = await client.send_document(chat_id, final_file, caption=cap, progress=progreso, progress_args=(status_msg, [time.time(),0], "Subiendo...")) + + # SAVE CACHE (Single File ID) + if msg and msg.document: + print(f"🔥 [Cache Save] Key: {cache_key} | ID: {msg.document.file_id}") + await save_cached_file(f"manga_{manga_id}", cache_key, msg.document.file_id, meta={'title': title}) + + except Exception as e: + print(f"Error sending doc: {e}") + await status_msg.edit(f"❌ Error al subir: {e}") + + try: os.remove(final_file) + except: pass + else: + await status_msg.edit("❌ Error al crear el archivo final.") + + except asyncio.CancelledError: + print(f"🛑 Descarga Cancelada: {title}") + await status_msg.edit("🛑 **Descarga Cancelada.**") + raise + + except Exception as e: + print(f"❌ Error Critical Process Manga: {e}") + if status_msg: await status_msg.edit(f"❌ Error Crítico: {e}") + + finally: + # Cleanup + if 'base_tmp' in locals() and base_tmp and os.path.exists(base_tmp): + try: shutil.rmtree(base_tmp) + except: pass + + # Unregister Task + if 'chat_id' in locals() and 'status_msg' in locals(): + remove_active(chat_id, status_msg.id) + + +# --- BACKGROUND WARMER --- +async def warm_covers_background(app, dump_chat_id, single_run=False): + """ + Proceso de fondo (o manual) que revisa todos los mangas. + Si falta la portada en caché (file_id), la descarga y la guarda. + Requiere DUMP_CHANNEL para generar file_id sin molestar al usuario. + """ + print(f"🔥 Iniciando Warmer de Portadas... (Manual: {single_run})") + if not dump_chat_id: + print("⚠️ Warmer: No DUMP_CHAT_ID. Solo validará URLs.") + + total_processed = 0 + + while True: + try: + mangas = await get_all_mangas_paginated() + if not mangas: + if single_run: return 0 + await asyncio.sleep(60) + continue + + processed = 0 + for m in mangas: + mid = m['id'] + title = m['title'] + + # Check cache + cached = await get_cached_file(f"manga_{mid}", "cover_id") + if cached: continue # Ya tenemos portada lista + + # Falta cachear. + print(f"🔥 Warmer: Procesando portada para {title}") + + # Obtener URL (con fallback si hace falta) + cover_url = m.get('cover') + if not cover_url or not "http" in cover_url: + # Intentar deep search (chapter 1) + try: + chaps = await get_manga_chapters(mid) + if chaps and chaps[0].get('original'): + cover_url = chaps[0]['original'][0] + except: pass + + if cover_url and "http" in cover_url: + # Descargar y cachear + try: + async with aiohttp.ClientSession() as session: + async with session.get(cover_url) as resp: + if resp.status == 200: + data = await resp.read() + photo = BytesIO(data) + photo.name = "cover.jpg" + + if dump_chat_id: + # Enviar a canal dump para generar ID permanente + msg = await app.send_photo(dump_chat_id, photo, caption=f"Cover: {title}\nID: {mid}") + if msg.photo: + await save_cached_file(f"manga_{mid}", "cover_id", msg.photo.file_id) + print(f"✅ Warmer: Cacheado {title}") + processed += 1 + total_processed += 1 + await asyncio.sleep(5) # Delay anti-flood + except Exception as e: + print(f"❌ Warmer Error {title}: {e}") + + await asyncio.sleep(1) # Pequeño respiro entre chequeos + + if single_run: + # Si es manual, terminamos tras una ronda completa + return total_processed + + if processed == 0: + # Si no hubo nada nuevo, dormir largo + await asyncio.sleep(3600) # 1 hora + else: + await asyncio.sleep(60) # 1 minuto tras ronda activa + + except Exception as e: + print(f"⚠️ Warmer Crash loop: {e}") + if single_run: return total_processed + await asyncio.sleep(60) +# --- BACKUP LOGIC (ZIP MASTER) --- + + +async def download_images_parallel(chapters, base_tmp, quality='original'): + """Helper interno para descargar todas las imágenes de un manga.""" + img_queue = [] + use_source = 'webp' if quality == 'webp' else 'original' + + for ch in chapters: + ch_safe = "".join([c for c in ch['title'] if c.isalnum() or c in " -_"]).strip() + ch_dir = os.path.join(base_tmp, ch_safe) + os.makedirs(ch_dir, exist_ok=True) + + src_list = ch[use_source] + if not src_list and use_source == 'original': src_list = ch['webp'] + + for idx, url in enumerate(src_list): + ext = url.split('?')[0].split('.')[-1].lower() + if len(ext) > 4: ext = 'jpg' + fname = f"{idx+1:03d}.{ext}" + dest_path = os.path.join(ch_dir, fname) + img_queue.append((url, dest_path)) + + if not img_queue: return False + + # Download Optimized + async with aiohttp.ClientSession() as session: + total = len(img_queue) + # Backup puede ser un poco más agresivo que usuario normal, pero mantenemos cautela + batch_size = 10 + + for i in range(0, total, batch_size): + batch = img_queue[i:i+batch_size] + tasks = [] + for url, path in batch: + # Reusamos la función optimizada + tasks.append(download_image(session, url, path)) + + await asyncio.gather(*tasks) + await asyncio.sleep(0.5) + + return True + +async def create_zip_from_folder(base_tmp, output_path): + """Crea un ZIP de la carpeta dada.""" + try: + with zipfile.ZipFile(output_path, 'w', zipfile.ZIP_DEFLATED) as zipf: + for root, _, files in os.walk(base_tmp): + for file in files: + abs_path = os.path.join(root, file) + arc_name = os.path.relpath(abs_path, base_tmp) + zipf.write(abs_path, arc_name) + return True + except: return False + +async def ensure_backup_exists(client, manga_id, backup_id, status_callback=None): + """ + Verifica si existe el ZIP Maestro en cache. Si no, lo crea y sube. + Retorna: (file_id, was_new) + """ + # 1. Check Cache + cached_zip = await get_cached_file(f"manga_{manga_id}", "zip_master") + if cached_zip: + if status_callback: await status_callback("✅ Ya existe en respaldo.") + return cached_zip, False + + if status_callback: await status_callback("⬇️ Descargando imágenes...") + + # 2. Download + meta = await get_manga_metadata(manga_id) + if not meta: return None, False + + chapters = await get_manga_chapters(manga_id) + if not chapters: return None, False + + import time + timestamp = int(time.time()) + base_tmp = os.path.join(DATA_DIR, f"bkp_{manga_id}_{timestamp}") + os.makedirs(base_tmp, exist_ok=True) + + try: + success = await download_images_parallel(chapters, base_tmp) + if not success: return None, False + + if status_callback: await status_callback("📦 Comprimiendo ZIP Maestro...") + + # 3. Zip + zip_path = os.path.join(DATA_DIR, f"MASTER_{meta['title']}.zip") + if await create_zip_from_folder(base_tmp, zip_path): + + if status_callback: await status_callback("📤 Subiendo a Respaldo...") + # 4. Upload + cap = f"📦 **BACKUP MASTER**\n📚 {meta['title']}\n🆔 `{manga_id}`" + msg = await client.send_document(backup_id, zip_path, caption=cap) + + fid = msg.document.file_id + + # 5. Save Cache + await save_cached_file(f"manga_{manga_id}", "zip_master", fid, meta={'title': meta['title']}) + + try: os.remove(zip_path) + except: pass + + return fid, True + + except Exception as e: + print(f"Backup Error: {e}") + return None, False + finally: + try: shutil.rmtree(base_tmp) + except: pass + + return None, False diff --git a/Twisted Brody Waifus & Creampie BRODY/media_debug.log b/Twisted Brody Waifus & Creampie BRODY/media_debug.log new file mode 100644 index 0000000000000000000000000000000000000000..c1b55f0790f73e9c5fb8af73345e58a888320a7f --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/media_debug.log @@ -0,0 +1,5241 @@ +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766075471.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766075471.jpg', '-y'] +Thumb Error: +Meta Error: +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766075499.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766075499.jpg', '-y'] +Thumb Error: +Meta Error: +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766075526.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766075526.jpg', '-y'] +Thumb Error: +Meta Error: +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766078204.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766078204.jpg', '-y'] +Thumb created: t_5565051026_1766078204.jpg (46270 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766081712.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766081712.jpg', '-y'] +Thumb created: t_5565051026_1766081712.jpg (69784 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766081764.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766081764.jpg', '-y'] +Thumb created: t_5565051026_1766081764.jpg (46270 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766082598.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766082598.jpg', '-y'] +Thumb created: t_5565051026_1766082598.jpg (46270 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766082829.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766082829.jpg', '-y'] +Thumb created: t_5565051026_1766082829.jpg (106247 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766082953.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766082953.jpg', '-y'] +Thumb created: t_5565051026_1766082953.jpg (106247 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766106187.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766106187.jpg', '-y'] +Thumb created: t_5565051026_1766106187.jpg (28902 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766184076.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766184076.jpg', '-y'] +Thumb created: t_5565051026_1766184076.jpg (7149 bytes) +Raw Meta: w=256, h=144, sar=1:1 +Final Meta: w=256, h=144 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766186306351_495.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766186306351_495.jpg', '-y'] +Thumb created: t_5565051026_1766186306351_495.jpg (33394 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766186413849_815.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766186413849_815.jpg', '-y'] +Thumb created: t_5565051026_1766186413849_815.jpg (23805 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766240409665_987.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766240409665_987.jpg', '-y'] +Thumb created: t_5565051026_1766240409665_987.jpg (17265 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766240436834_491.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766240436834_491.jpg', '-y'] +Thumb created: t_5565051026_1766240436834_491.jpg (10362 bytes) +Raw Meta: w=256, h=144, sar=1:1 +Final Meta: w=256, h=144 +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_0.jpg', '-y'] +Thumb created: t_5565051026_1766363930_0.jpg (5146 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_1.jpg', '-y'] +Thumb created: t_5565051026_1766363930_1.jpg (4840 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_2.jpg', '-y'] +Thumb created: t_5565051026_1766363930_2.jpg (2937 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_3.jpg', '-y'] +Thumb created: t_5565051026_1766363930_3.jpg (4468 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_4.jpg', '-y'] +Thumb created: t_5565051026_1766363930_4.jpg (2917 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_5.jpg', '-y'] +Thumb created: t_5565051026_1766363930_5.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_6.jpg', '-y'] +Thumb created: t_5565051026_1766363930_6.jpg (6759 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_7.jpg', '-y'] +Thumb created: t_5565051026_1766363930_7.jpg (5569 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_8.jpg', '-y'] +Thumb created: t_5565051026_1766363930_8.jpg (5495 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766363930_9.jpg', '-y'] +Thumb created: t_5565051026_1766363930_9.jpg (4620 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\cut_party_5565051026_10_to_90.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766364305_0.jpg', '-y'] +Thumb created: t_5565051026_1766364305_0.jpg (5115 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365268_0.jpg', '-y'] +Thumb created: t_5565051026_1766365268_0.jpg (5146 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365268_1.jpg', '-y'] +Thumb created: t_5565051026_1766365268_1.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365268_2.jpg', '-y'] +Thumb created: t_5565051026_1766365268_2.jpg (4398 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365493_0.jpg', '-y'] +Thumb created: t_5565051026_1766365493_0.jpg (5146 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365493_1.jpg', '-y'] +Thumb created: t_5565051026_1766365493_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365509_0.jpg', '-y'] +Thumb created: t_5565051026_1766365509_0.jpg (5146 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365509_1.jpg', '-y'] +Thumb created: t_5565051026_1766365509_1.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766365509_2.jpg', '-y'] +Thumb created: t_5565051026_1766365509_2.jpg (4398 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366181_0.jpg', '-y'] +Thumb created: t_5565051026_1766366181_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366181_1.jpg', '-y'] +Thumb created: t_5565051026_1766366181_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366200_0.jpg', '-y'] +Thumb created: t_5565051026_1766366200_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366200_1.jpg', '-y'] +Thumb created: t_5565051026_1766366200_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366532_0.jpg', '-y'] +Thumb created: t_5565051026_1766366532_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366532_1.jpg', '-y'] +Thumb created: t_5565051026_1766366532_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366743_0.jpg', '-y'] +Thumb created: t_5565051026_1766366743_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766366743_1.jpg', '-y'] +Thumb created: t_5565051026_1766366743_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367142_0.jpg', '-y'] +Thumb created: t_5565051026_1766367142_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367142_1.jpg', '-y'] +Thumb created: t_5565051026_1766367142_1.jpg (2485 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367159_0.jpg', '-y'] +Thumb created: t_5565051026_1766367159_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367159_1.jpg', '-y'] +Thumb created: t_5565051026_1766367159_1.jpg (2485 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766367264796_146.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367264796_146.jpg', '-y'] +Thumb created: t_5565051026_1766367264796_146.jpg (27306 bytes) +Raw Meta: w=1006, h=720, sar=1510:1509 +Corrected w=1006 +Final Meta: w=1006, h=720 +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367718_0.jpg', '-y'] +Thumb created: t_5565051026_1766367718_0.jpg (4260 bytes) +Raw Meta: w=256, h=136, sar=1:1 +Final Meta: w=256, h=136 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766367718_1.jpg', '-y'] +Thumb created: t_5565051026_1766367718_1.jpg (2485 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766412266663_594.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766412266663_594.jpg', '-y'] +Thumb created: t_5565051026_1766412266663_594.jpg (19837 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413353_0.jpg', '-y'] +Thumb created: t_5565051026_1766413353_0.jpg (113487 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413353_1.jpg', '-y'] +Thumb created: t_5565051026_1766413353_1.jpg (49721 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413353_2.jpg', '-y'] +Thumb created: t_5565051026_1766413353_2.jpg (78321 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413353_3.jpg', '-y'] +Thumb created: t_5565051026_1766413353_3.jpg (43173 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413649_0_0.jpg', '-y'] +Thumb created: t_5565051026_1766413649_0_0.jpg (43174 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413649_0_1.jpg', '-y'] +Thumb created: t_5565051026_1766413649_0_1.jpg (66071 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413649_0_2.jpg', '-y'] +Thumb created: t_5565051026_1766413649_0_2.jpg (55374 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413649_0_3.jpg', '-y'] +Thumb created: t_5565051026_1766413649_0_3.jpg (104279 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766413656940_206.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413656940_206.jpg', '-y'] +Thumb created: t_5565051026_1766413656940_206.jpg (30231 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413754_0.jpg', '-y'] +Thumb created: t_5565051026_1766413754_0.jpg (56168 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413754_1.jpg', '-y'] +Thumb created: t_5565051026_1766413754_1.jpg (83185 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766413754_2.jpg', '-y'] +Thumb created: t_5565051026_1766413754_2.jpg (94056 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\joined_5565051026_1766419493.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_join_1766419493.jpg', '-y'] +Thumb created: t_5565051026_join_1766419493.jpg (29227 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\joined_5565051026_1766419518.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_join_1766419518.jpg', '-y'] +Thumb created: t_5565051026_join_1766419518.jpg (29227 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766419974495_896.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766419974495_896.jpg', '-y'] +Thumb created: t_5565051026_1766419974495_896.jpg (30231 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420571_0.jpg', '-y'] +Thumb created: t_5565051026_1766420571_0.jpg (30231 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420571_1.jpg', '-y'] +Thumb created: t_5565051026_1766420571_1.jpg (25027 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420571_2.jpg', '-y'] +Thumb created: t_5565051026_1766420571_2.jpg (18444 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420571_3.jpg', '-y'] +Thumb created: t_5565051026_1766420571_3.jpg (30486 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_0.jpg', '-y'] +Thumb created: t_5565051026_1766420738_0.jpg (113487 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_1.jpg', '-y'] +Thumb created: t_5565051026_1766420738_1.jpg (62081 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_2.jpg', '-y'] +Thumb created: t_5565051026_1766420738_2.jpg (62824 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_3.jpg', '-y'] +Thumb created: t_5565051026_1766420738_3.jpg (56442 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_4.jpg', '-y'] +Thumb created: t_5565051026_1766420738_4.jpg (87579 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_5.jpg', '-y'] +Thumb created: t_5565051026_1766420738_5.jpg (78321 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_6.jpg', '-y'] +Thumb created: t_5565051026_1766420738_6.jpg (36929 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_7.jpg', '-y'] +Thumb created: t_5565051026_1766420738_7.jpg (62607 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_8.jpg', '-y'] +Thumb created: t_5565051026_1766420738_8.jpg (66406 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\party_5565051026_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766420738_9.jpg', '-y'] +Thumb created: t_5565051026_1766420738_9.jpg (73289 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766421245317_586.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766421245317_586.jpg', '-y'] +Thumb created: t_5565051026_1766421245317_586.jpg (13963 bytes) +Raw Meta: w=480, h=480, sar=1:1 +Final Meta: w=480, h=480 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766424041735_363.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766424041735_363.jpg', '-y'] +Thumb created: t_5565051026_1766424041735_363.jpg (153902 bytes) +Raw Meta: w=3840, h=2026, sar=1:1 +Final Meta: w=3840, h=2026 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766424080894_625.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766424080894_625.jpg', '-y'] +Thumb created: t_5565051026_1766424080894_625.jpg (18104 bytes) +Raw Meta: w=480, h=864, sar=1:1 +Final Meta: w=480, h=864 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766424094812_623.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766424094812_623.jpg', '-y'] +Thumb created: t_5565051026_1766424094812_623.jpg (18104 bytes) +Raw Meta: w=480, h=864, sar=1:1 +Final Meta: w=480, h=864 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766424702054_760.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766424702054_760.jpg', '-y'] +Thumb created: t_5565051026_1766424702054_760.jpg (70316 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766425740917_315.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766425740917_315.jpg', '-y'] +Thumb created: t_5565051026_1766425740917_315.jpg (38366 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766426018071_836.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766426018071_836.jpg', '-y'] +Thumb created: t_5565051026_1766426018071_836.jpg (16909 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766426251564_505.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766426251564_505.jpg', '-y'] +Thumb created: t_5565051026_1766426251564_505.jpg (10817 bytes) +Raw Meta: w=480, h=270, sar=1:1 +Final Meta: w=480, h=270 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766427980743_408.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766427980743_408.jpg', '-y'] +Thumb created: t_5565051026_1766427980743_408.jpg (58820 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766428873672_374.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766428873672_374.jpg', '-y'] +Thumb created: t_5565051026_1766428873672_374.jpg (22388 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766429194005_324.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766429194005_324.jpg', '-y'] +Thumb created: t_5565051026_1766429194005_324.jpg (15878 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766429878321_316.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766429878321_316.jpg', '-y'] +Thumb created: t_5565051026_1766429878321_316.jpg (34674 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766429899333_558.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766429899333_558.jpg', '-y'] +Thumb created: t_5565051026_1766429899333_558.jpg (21272 bytes) +Raw Meta: w=480, h=852, sar=1:1 +Final Meta: w=480, h=852 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766433345418_937.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766433345418_937.jpg', '-y'] +Thumb created: t_5565051026_1766433345418_937.jpg (19603 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766529301693_660.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766529301693_660.jpg', '-y'] +Thumb created: t_5565051026_1766529301693_660.jpg (66687 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766529996954_128.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766529996954_128.jpg', '-y'] +Thumb created: t_5565051026_1766529996954_128.jpg (59864 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766530000112_205.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766530000112_205.jpg', '-y'] +Thumb created: t_5565051026_1766530000112_205.jpg (59864 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766530863551_314.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766530863551_314.jpg', '-y'] +Thumb created: t_5565051026_1766530863551_314.jpg (88375 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766531201414_867.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766531201414_867.jpg', '-y'] +Thumb created: t_5565051026_1766531201414_867.jpg (85954 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766531688923_812.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766531688923_812.jpg', '-y'] +Thumb created: t_5565051026_1766531688923_812.jpg (95772 bytes) +Raw Meta: w=1440, h=1440, sar=1:1 +Final Meta: w=1440, h=1440 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766532201976_157.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766532201976_157.jpg', '-y'] +Thumb created: t_5565051026_1766532201976_157.jpg (50381 bytes) +Raw Meta: w=720, h=960, sar=1:1 +Final Meta: w=720, h=960 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766532220612_545.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766532220612_545.jpg', '-y'] +Thumb created: t_5565051026_1766532220612_545.jpg (37221 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\downloads\\dl_5565051026_1766534611765_658.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766534611765_658.jpg', '-y'] +Thumb created: t_5565051026_1766534611765_658.jpg (38646 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=288, h=512, sar=1:1 +Final Meta: w=288, h=512 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\cut_party_5565051026_00-10_to_00-20.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766706251_0.jpg', '-y'] +Thumb created: t_5565051026_1766706251_0.jpg (19634 bytes) +Raw Meta: w=288, h=512, sar=1:1 +Final Meta: w=288, h=512 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie\\data\\cut_party_5565051026_01-00_to_01-30.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1766706251_1.jpg', '-y'] +Thumb created: t_5565051026_1766706251_1.jpg (19634 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1767899927400_150.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767899927400_150.jpg', '-y'] +Thumb created: t_5565051026_1767899927400_150.jpg (87016 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1767899941849_453.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767899941849_453.jpg', '-y'] +Thumb created: t_5565051026_1767899941849_453.jpg (68244 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Meta Error: expected str, bytes or os.PathLike object, not coroutine +Cut Start Cmd: ['ffmpeg', '-ss', '15', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926169.mp4', '-y'] +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926169.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767926170.jpg', '-y'] +Thumb created: t_5565051026_1767926170.jpg (78532 bytes) +Meta Error: expected str, bytes or os.PathLike object, not coroutine +Thumb Cmd 1: ['ffmpeg', '-i', , '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767926503.jpg', '-y'] +Thumb Error: expected str, bytes or os.PathLike object, not coroutine +Cut Start Cmd: ['ffmpeg', '-ss', '15', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926734.mp4', '-y'] +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926734.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767926752.jpg', '-y'] +Thumb created: t_5565051026_1767926752.jpg (76286 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '32', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926935.mp4', '-y'] +Raw Meta: w=714, h=1280, sar=None +Final Meta: w=714, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767926935.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767926940.jpg', '-y'] +Thumb created: t_5565051026_1767926940.jpg (30542 bytes) +Meta Error: expected str, bytes or os.PathLike object, not coroutine +Thumb Cmd 1: ['ffmpeg', '-i', , '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767927017.jpg', '-y'] +Thumb Error: expected str, bytes or os.PathLike object, not coroutine +Cut Start Cmd: ['ffmpeg', '-ss', '01:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767927166.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767927166.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767927179.jpg', '-y'] +Thumb created: t_5565051026_1767927179.jpg (15053 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '47', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767927387.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767927387.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767927397.jpg', '-y'] +Thumb created: t_5565051026_1767927397.jpg (22484 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '01:05', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767928430.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767928430.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767928439.jpg', '-y'] +Thumb created: t_5565051026_1767928439.jpg (15021 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '01:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767929447.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767929447.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767929454.jpg', '-y'] +Thumb created: t_5565051026_1767929454.jpg (13810 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '01:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767929489.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767929489.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767929498.jpg', '-y'] +Thumb created: t_5565051026_1767929498.jpg (14920 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '01:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1767929552.mp4', '-y'] +Cut Start Cmd: ['ffmpeg', '-ss', '10', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10822.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10822_cut_1767968266.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10822_cut_1767968266.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767968277.jpg', '-y'] +Thumb created: t_5565051026_1767968277.jpg (16099 bytes) +Cut Start Cmd: ['ffmpeg', '-ss', '30', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10827.mp4', '-c:v', 'libx264', '-preset', 'ultrafast', '-crf', '23', '-c:a', 'aac', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10827_cut_1767968896.mp4', '-y'] +Raw Meta: w=406, h=720, sar=405:406 +Corrected w=405 +Final Meta: w=405, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_10827_cut_1767968896.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767968906.jpg', '-y'] +Thumb created: t_5565051026_1767968906.jpg (14363 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10833.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969244.jpg', '-y'] +Thumb created: t_5565051026_1767969244.jpg (44623 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10836.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969270.jpg', '-y'] +Thumb created: t_5565051026_1767969270.jpg (41979 bytes) +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10839.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969271.jpg', '-y'] +Thumb created: t_5565051026_1767969271.jpg (39910 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10838.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969273.jpg', '-y'] +Thumb created: t_5565051026_1767969273.jpg (73515 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10837.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969274.jpg', '-y'] +Thumb created: t_5565051026_1767969274.jpg (60040 bytes) +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10840.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969276.jpg', '-y'] +Thumb created: t_5565051026_1767969276.jpg (18918 bytes) +Raw Meta: w=540, h=960, sar=1:1 +Final Meta: w=540, h=960 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10842.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969277.jpg', '-y'] +Thumb created: t_5565051026_1767969277.jpg (28065 bytes) +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10843.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969278.jpg', '-y'] +Thumb created: t_5565051026_1767969278.jpg (18316 bytes) +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10841.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969281.jpg', '-y'] +Thumb created: t_5565051026_1767969281.jpg (16529 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10844.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969282.jpg', '-y'] +Thumb created: t_5565051026_1767969282.jpg (39587 bytes) +Raw Meta: w=960, h=544, sar=None +Final Meta: w=960, h=544 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10866.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969505.jpg', '-y'] +Thumb created: t_5565051026_1767969505.jpg (21597 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10870.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969530.jpg', '-y'] +Thumb created: t_5565051026_1767969530.jpg (33729 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10864.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969549.jpg', '-y'] +Thumb created: t_5565051026_1767969549.jpg (39557 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10868.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969672.jpg', '-y'] +Thumb created: t_5565051026_1767969672.jpg (39177 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10869.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969727.jpg', '-y'] +Thumb created: t_5565051026_1767969727.jpg (50353 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10871.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969777.jpg', '-y'] +Thumb created: t_5565051026_1767969777.jpg (71642 bytes) +Raw Meta: w=544, h=960, sar=None +Final Meta: w=544, h=960 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10865.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969779.jpg', '-y'] +Thumb created: t_5565051026_1767969779.jpg (26292 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10867.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969822.jpg', '-y'] +Thumb created: t_5565051026_1767969822.jpg (41041 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10872.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969898.jpg', '-y'] +Thumb created: t_5565051026_1767969898.jpg (110740 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10873.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969930.jpg', '-y'] +Thumb created: t_5565051026_1767969930.jpg (53145 bytes) +Raw Meta: w=480, h=880, sar=None +Final Meta: w=480, h=880 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10874.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969952.jpg', '-y'] +Thumb created: t_5565051026_1767969952.jpg (17171 bytes) +Raw Meta: w=352, h=640, sar=None +Final Meta: w=352, h=640 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10878.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969982.jpg', '-y'] +Thumb created: t_5565051026_1767969982.jpg (12894 bytes) +Raw Meta: w=848, h=480, sar=1:1 +Final Meta: w=848, h=480 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10879.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767969984.jpg', '-y'] +Thumb created: t_5565051026_1767969984.jpg (17907 bytes) +Raw Meta: w=544, h=960, sar=None +Final Meta: w=544, h=960 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\conv_qh_5565051026_10934.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767970468.jpg', '-y'] +Thumb created: t_5565051026_1767970468.jpg (26292 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1767970902293_629_temp.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767970902293_629.jpg', '-y'] +Thumb created: t_5565051026_1767970902293_629.jpg (57976 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +H264 Convert Cmd: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11305.ts', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11305_h264_1767981872.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11308.ts', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11308_h264_1767981964.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11307.ts', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11307_h264_1767982054.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11306.ts', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11306_h264_1767982165.mp4', '-y'] +Meta Error: 'streams' +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11306_h264_1767982165.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767982292.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11306_h264_1767982165.mp4', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767982292.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_11306_h264_1767982165.mp4 +Meta Error: 'streams' +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11307_h264_1767982054.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767982295.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11307_h264_1767982054.mp4', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767982295.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_11307_h264_1767982054.mp4 +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11308_h264_1767981964.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1767982297.jpg', '-y'] +Thumb created: t_5565051026_1767982297.jpg (108904 bytes) +H264 Convert Cmd: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11316.ts', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a?', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11316_h264_1767982549.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11352.ts', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11352_h264_1768077159.mp4', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mpegts, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_11352.ts': + Duration: 00:09:08.42, start: 1.400000, bitrate: 2789 kb/s + Program 1 + Metadata: + service_name : Service01 + service_provider: FFmpeg + Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn + Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 99 kb/s +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) + Stream #0:1 -> #0:1 (aac (native) -> aac (native)) +Press [q] to stop, [?] for help +[libx264 @ 000001f31e9e9c40] using SAR=1/1 +[libx264 @ 000001f31e9e9c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 000001f31e9e9c40] profile High, level 4.0, 4:2:0, 8-bit +[libx264 @ 000001f31e9e9c40] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_11352_h264_1768077159.mp4': + Metadata: + encoder : Lavf61.7.100 + Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 15360 tbn + Metadata: + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A + Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s + Metadata: + encoder : Lavc61.19.101 aac +frame= 5 fps=0.0 q=22.0 size= 0KiB time=00:00:00.06 bitrate= 5.8kbits/s speed=0.12x frame= 44 fps= 39 q=22.0 size= 1024KiB time=00:00:01.43 bitrate=5852.8kbits/s speed=1.27x frame= 81 fps= 48 q=22.0 size= 2048KiB time=00:00:02.66 bitrate=6291.6kbits/s speed=1.59x frame= 112 fps= 51 q=21.0 size= 2816KiB time=00:00:03.70 bitrate=6234.9kbits/s speed= 1.7x frame= 146 fps= 54 q=21.0 size= 3840KiB time=00:00:04.83 bitrate=6508.5kbits/s speed=1.79x frame= 191 fps= 59 q=23.0 size= 4864KiB time=00:00:06.33 bitrate=6291.5kbits/s speed=1.96x frame= 240 fps= 64 q=20.0 size= 5888KiB time=00:00:07.93 bitrate=6080.0kbits/s speed=2.11x frame= 291 fps= 68 q=25.0 size= 7424KiB time=00:00:09.66 bitrate=6291.5kbits/s speed=2.24x frame= 348 fps= 72 q=24.0 size= 8704KiB time=00:00:11.56 bitrate=6164.6kbits/s speed= 2.4x frame= 410 fps= 76 q=25.0 size= 9984KiB time=00:00:13.63 bitrate=5999.2kbits/s speed=2.54x frame= 463 fps= 79 q=21.0 size= 11008KiB time=00:00:15.40 bitrate=5855.7kbits/s speed=2.62x frame= 521 fps= 82 q=25.0 size= 12544KiB time=00:00:17.33 bitrate=5928.5kbits/s speed=2.71x frame= 576 fps= 83 q=24.0 size= 13568KiB time=00:00:19.16 bitrate=5799.1kbits/s speed=2.77x frame= 632 fps= 85 q=25.0 size= 14592KiB time=00:00:21.03 bitrate=5683.3kbits/s speed=2.83x frame= 685 fps= 86 q=24.0 size= 15616KiB time=00:00:22.80 bitrate=5610.8kbits/s speed=2.87x frame= 748 fps= 88 q=25.0 size= 16896KiB time=00:00:24.86 bitrate=5566.2kbits/s speed=2.93x frame= 805 fps= 90 q=22.0 size= 17920KiB time=00:00:26.80 bitrate=5477.7kbits/s speed=2.98x frame= 863 fps= 91 q=24.0 size= 18944KiB time=00:00:28.73 bitrate=5401.0kbits/s speed=3.02x frame= 921 fps= 92 q=24.0 size= 19968KiB time=00:00:30.66 bitrate=5334.1kbits/s speed=3.06x frame= 985 fps= 93 q=24.0 size= 20992KiB time=00:00:32.80 bitrate=5242.9kbits/s speed=3.11x frame= 1045 fps= 94 q=24.0 size= 22016KiB time=00:00:34.80 bitrate=5182.6kbits/s speed=3.15x frame= 1101 fps= 95 q=24.0 size= 23040KiB time=00:00:36.66 bitrate=5147.6kbits/s speed=3.17x frame= 1169 fps= 96 q=24.0 size= 24064KiB time=00:00:38.93 bitrate=5063.3kbits/s speed=3.21x frame= 1221 fps= 97 q=24.0 size= 25088KiB time=00:00:40.66 bitrate=5053.8kbits/s speed=3.21x frame= 1282 fps= 97 q=21.0 size= 25856KiB time=00:00:42.66 bitrate=4964.4kbits/s speed=3.24x frame= 1333 fps= 97 q=23.0 size= 26624KiB time=00:00:44.40 bitrate=4912.3kbits/s speed=3.23x frame= 1372 fps= 96 q=25.0 size= 27136KiB time=00:00:45.70 bitrate=4864.3kbits/s speed=3.21x frame= 1411 fps= 96 q=24.0 size= 27648KiB time=00:00:47.00 bitrate=4819.0kbits/s speed=3.18x frame= 1455 fps= 95 q=24.0 size= 28416KiB time=00:00:48.46 bitrate=4803.0kbits/s speed=3.17x frame= 1493 fps= 94 q=24.0 size= 28928KiB time=00:00:49.73 bitrate=4765.0kbits/s speed=3.14x frame= 1536 fps= 94 q=24.0 size= 29696KiB time=00:00:51.16 bitrate=4754.5kbits/s speed=3.13x frame= 1574 fps= 93 q=22.0 size= 30464KiB time=00:00:52.43 bitrate=4759.6kbits/s speed=3.11x frame= 1625 fps= 93 q=24.0 size= 31232KiB time=00:00:54.13 bitrate=4726.3kbits/s speed=3.11x frame= 1673 fps= 93 q=21.0 size= 32000KiB time=00:00:55.73 bitrate=4703.5kbits/s speed=3.11x frame= 1721 fps= 93 q=24.0 size= 33024KiB time=00:00:57.33 bitrate=4718.6kbits/s speed=3.11x frame= 1764 fps= 93 q=22.0 size= 33792KiB time=00:00:58.76 bitrate=4710.6kbits/s speed= 3.1x frame= 1818 fps= 93 q=23.0 size= 35072KiB time=00:01:00.53 bitrate=4746.3kbits/s speed=3.11x frame= 1861 fps= 93 q=25.0 size= 35840KiB time=00:01:02.00 bitrate=4735.5kbits/s speed= 3.1x frame= 1917 fps= 93 q=25.0 size= 37120KiB time=00:01:03.86 bitrate=4761.3kbits/s speed=3.11x frame= 1982 fps= 94 q=24.0 size= 38144KiB time=00:01:06.03 bitrate=4732.1kbits/s speed=3.14x frame= 2043 fps= 95 q=25.0 size= 39168KiB time=00:01:08.06 bitrate=4714.0kbits/s speed=3.16x frame= 2091 fps= 95 q=24.0 size= 40192KiB time=00:01:09.66 bitrate=4726.1kbits/s speed=3.16x frame= 2136 fps= 95 q=22.0 size= 40704KiB time=00:01:11.16 bitrate=4685.4kbits/s speed=3.15x frame= 2190 fps= 95 q=25.0 size= 41728KiB time=00:01:12.96 bitrate=4684.8kbits/s speed=3.16x frame= 2240 fps= 95 q=24.0 size= 42752KiB time=00:01:14.63 bitrate=4692.6kbits/s speed=3.16x frame= 2283 fps= 95 q=24.0 size= 43776KiB time=00:01:16.06 bitrate=4714.5kbits/s speed=3.15x frame= 2337 fps= 95 q=24.0 size= 44544KiB time=00:01:17.86 bitrate=4686.3kbits/s speed=3.16x frame= 2385 fps= 95 q=24.0 size= 45568KiB time=00:01:19.46 bitrate=4697.5kbits/s speed=3.15x frame= 2434 fps= 95 q=24.0 size= 46592KiB time=00:01:21.10 bitrate=4706.3kbits/s speed=3.15x frame= 2482 fps= 95 q=24.0 size= 47360KiB time=00:01:22.70 bitrate=4691.3kbits/s speed=3.15x frame= 2536 fps= 95 q=20.0 size= 48128KiB time=00:01:24.50 bitrate=4665.9kbits/s speed=3.16x frame= 2577 fps= 94 q=24.0 size= 49152KiB time=00:01:25.86 bitrate=4689.3kbits/s speed=3.15x frame= 2626 fps= 94 q=24.0 size= 49920KiB time=00:01:27.50 bitrate=4673.7kbits/s speed=3.15x frame= 2677 fps= 94 q=24.0 size= 50688KiB time=00:01:29.20 bitrate=4655.1kbits/s speed=3.15x frame= 2724 fps= 94 q=25.0 size= 51712KiB time=00:01:30.76 bitrate=4667.2kbits/s speed=3.15x frame= 2774 fps= 94 q=21.0 size= 52736KiB time=00:01:32.43 bitrate=4673.8kbits/s speed=3.15x frame= 2828 fps= 95 q=23.0 size= 54016KiB time=00:01:34.23 bitrate=4695.8kbits/s speed=3.15x frame= 2874 fps= 95 q=22.0 size= 54784KiB time=00:01:35.76 bitrate=4686.3kbits/s speed=3.15x frame= 2925 fps= 95 q=21.0 size= 56064KiB time=00:01:37.46 bitrate=4712.1kbits/s speed=3.15x frame= 2976 fps= 95 q=25.0 size= 57344KiB time=00:01:39.16 bitrate=4737.1kbits/s speed=3.15x frame= 3027 fps= 95 q=25.0 size= 58624KiB time=00:01:40.86 bitrate=4761.2kbits/s speed=3.15x frame= 3081 fps= 95 q=21.0 size= 59648KiB time=00:01:42.66 bitrate=4759.4kbits/s speed=3.16x frame= 3132 fps= 95 q=21.0 size= 60928KiB time=00:01:44.36 bitrate=4782.4kbits/s speed=3.16x frame= 3189 fps= 95 q=24.0 size= 61952KiB time=00:01:46.26 bitrate=4775.8kbits/s speed=3.17x frame= 3250 fps= 95 q=22.0 size= 62976KiB time=00:01:48.26 bitrate=4765.1kbits/s speed=3.18x frame= 3313 fps= 96 q=23.0 size= 64000KiB time=00:01:50.40 bitrate=4749.0kbits/s speed=3.19x frame= 3374 fps= 96 q=24.0 size= 65024KiB time=00:01:52.40 bitrate=4739.1kbits/s speed= 3.2x frame= 3436 fps= 97 q=24.0 size= 66048KiB time=00:01:54.50 bitrate=4725.5kbits/s speed=3.22x frame= 3502 fps= 97 q=23.0 size= 67072KiB time=00:01:56.70 bitrate=4708.3kbits/s speed=3.23x frame= 3568 fps= 97 q=24.0 size= 67840KiB time=00:01:58.90 bitrate=4674.1kbits/s speed=3.25x frame= 3638 fps= 98 q=22.0 size= 68864KiB time=00:02:01.13 bitrate=4657.1kbits/s speed=3.26x frame= 3704 fps= 98 q=24.0 size= 69888KiB time=00:02:03.36 bitrate=4640.8kbits/s speed=3.27x frame= 3773 fps= 99 q=24.0 size= 70912KiB time=00:02:05.73 bitrate=4620.2kbits/s speed=3.29x frame= 3840 fps= 99 q=24.0 size= 71680KiB time=00:02:07.96 bitrate=4588.7kbits/s speed= 3.3x frame= 3903 fps= 99 q=25.0 size= 72704KiB time=00:02:10.06 bitrate=4579.1kbits/s speed=3.31x frame= 3954 fps= 99 q=24.0 size= 73728KiB time=00:02:11.76 bitrate=4583.7kbits/s speed=3.31x frame= 4007 fps= 99 q=24.0 size= 74752KiB time=00:02:13.53 bitrate=4585.9kbits/s speed=3.31x frame= 4060 fps= 99 q=22.0 size= 75520KiB time=00:02:15.30 bitrate=4572.5kbits/s speed=3.32x frame= 4117 fps=100 q=21.0 size= 76544KiB time=00:02:17.20 bitrate=4570.3kbits/s speed=3.32x frame= 4173 fps=100 q=20.0 size= 77824KiB time=00:02:19.06 bitrate=4584.4kbits/s speed=3.32x frame= 4228 fps=100 q=21.0 size= 78848KiB time=00:02:20.90 bitrate=4584.3kbits/s speed=3.33x frame= 4287 fps=100 q=24.0 size= 79616KiB time=00:02:22.86 bitrate=4565.2kbits/s speed=3.33x frame= 4346 fps=100 q=24.0 size= 80640KiB time=00:02:24.83 bitrate=4561.1kbits/s speed=3.34x frame= 4405 fps=100 q=23.0 size= 81664KiB time=00:02:26.80 bitrate=4557.2kbits/s speed=3.34x frame= 4466 fps=100 q=22.0 size= 82688KiB time=00:02:28.83 bitrate=4551.3kbits/s speed=3.35x frame= 4523 fps=101 q=21.0 size= 83712KiB time=00:02:30.73 bitrate=4549.6kbits/s speed=3.35x frame= 4586 fps=101 q=24.0 size= 84736KiB time=00:02:32.83 bitrate=4541.9kbits/s speed=3.36x frame= 4654 fps=101 q=24.0 size= 85760KiB time=00:02:35.10 bitrate=4529.6kbits/s speed=3.37x frame= 4720 fps=101 q=24.0 size= 86784KiB time=00:02:37.30 bitrate=4519.6kbits/s speed=3.38x frame= 4792 fps=102 q=24.0 size= 88064KiB time=00:02:39.56 bitrate=4521.1kbits/s speed=3.39x frame= 4851 fps=102 q=24.0 size= 88832KiB time=00:02:41.66 bitrate=4501.3kbits/s speed=3.39x frame= 4920 fps=102 q=24.0 size= 89856KiB time=00:02:43.96 bitrate=4489.3kbits/s speed= 3.4x frame= 4972 fps=102 q=24.0 size= 90880KiB time=00:02:45.70 bitrate=4493.0kbits/s speed= 3.4x frame= 5020 fps=102 q=23.0 size= 91392KiB time=00:02:47.30 bitrate=4475.1kbits/s speed= 3.4x frame= 5075 fps=102 q=21.0 size= 92416KiB time=00:02:49.13 bitrate=4476.2kbits/s speed= 3.4x frame= 5123 fps=102 q=24.0 size= 93184KiB time=00:02:50.70 bitrate=4472.0kbits/s speed= 3.4x frame= 5171 fps=102 q=24.0 size= 93952KiB time=00:02:52.33 bitrate=4466.1kbits/s speed=3.39x frame= 5196 fps=101 q=24.0 size= 94208KiB time=00:02:53.16 bitrate=4456.7kbits/s speed=3.37x frame= 5224 fps=101 q=24.0 size= 94720KiB time=00:02:54.10 bitrate=4456.9kbits/s speed=3.36x frame= 5256 fps=100 q=25.0 size= 95232KiB time=00:02:55.03 bitrate=4457.1kbits/s speed=3.34x frame= 5288 fps=100 q=24.0 size= 95744KiB time=00:02:56.23 bitrate=4450.5kbits/s speed=3.33x frame= 5327 fps=100 q=24.0 size= 96512KiB time=00:02:57.20 bitrate=4461.8kbits/s speed=3.31x frame= 5358 fps= 98 q=24.0 size= 97024KiB time=00:02:58.43 bitrate=4454.4kbits/s speed=3.28x frame= 5398 fps= 98 q=24.0 size= 97536KiB time=00:02:59.76 bitrate=4444.7kbits/s speed=3.27x frame= 5438 fps= 98 q=24.0 size= 98304KiB time=00:03:01.10 bitrate=4446.8kbits/s speed=3.25x frame= 5474 fps= 97 q=24.0 size= 98816KiB time=00:03:02.43 bitrate=4437.2kbits/s speed=3.24x frame= 5494 fps= 97 q=20.0 size= 99072KiB time=00:03:03.10 bitrate=4432.5kbits/s speed=3.23x frame= 5523 fps= 96 q=23.0 size= 99584KiB time=00:03:03.80 bitrate=4438.5kbits/s speed= 3.2x frame= 5546 fps= 95 q=24.0 size= 99840KiB time=00:03:04.83 bitrate=4425.0kbits/s speed=3.18x frame= 5582 fps= 95 q=24.0 size= 100608KiB time=00:03:05.76 bitrate=4436.6kbits/s speed=3.16x frame= 5622 fps= 94 q=24.0 size= 101120KiB time=00:03:07.30 bitrate=4422.7kbits/s speed=3.15x frame= 5661 fps= 94 q=24.0 size= 101632KiB time=00:03:08.63 bitrate=4413.7kbits/s speed=3.14x frame= 5706 fps= 94 q=24.0 size= 102400KiB time=00:03:10.10 bitrate=4412.7kbits/s speed=3.14x frame= 5752 fps= 94 q=25.0 size= 103168KiB time=00:03:11.70 bitrate=4408.7kbits/s speed=3.14x frame= 5794 fps= 94 q=24.0 size= 103936KiB time=00:03:13.10 bitrate=4409.3kbits/s speed=3.13x frame= 5838 fps= 94 q=24.0 size= 104448KiB time=00:03:14.56 bitrate=4397.7kbits/s speed=3.13x frame= 5880 fps= 94 q=25.0 size= 105216KiB time=00:03:15.96 bitrate=4398.3kbits/s speed=3.13x frame= 5920 fps= 94 q=24.0 size= 105984KiB time=00:03:17.30 bitrate=4400.5kbits/s speed=3.12x frame= 5963 fps= 94 q=24.0 size= 106752KiB time=00:03:18.73 bitrate=4400.4kbits/s speed=3.12x frame= 6017 fps= 94 q=24.0 size= 107520KiB time=00:03:20.53 bitrate=4392.3kbits/s speed=3.12x frame= 6069 fps= 94 q=24.0 size= 108288KiB time=00:03:22.26 bitrate=4385.8kbits/s speed=3.12x frame= 6134 fps= 94 q=23.0 size= 109056KiB time=00:03:24.43 bitrate=4370.1kbits/s speed=3.13x frame= 6183 fps= 94 q=24.0 size= 109824KiB time=00:03:26.06 bitrate=4366.0kbits/s speed=3.13x frame= 6225 fps= 94 q=23.0 size= 110592KiB time=00:03:27.43 bitrate=4367.5kbits/s speed=3.13x frame= 6276 fps= 94 q=24.0 size= 111360KiB time=00:03:29.13 bitrate=4362.1kbits/s speed=3.13x frame= 6324 fps= 94 q=23.0 size= 112128KiB time=00:03:30.76 bitrate=4358.2kbits/s speed=3.12x frame= 6375 fps= 94 q=25.0 size= 112896KiB time=00:03:32.46 bitrate=4352.9kbits/s speed=3.13x frame= 6420 fps= 94 q=24.0 size= 113664KiB time=00:03:33.83 bitrate=4354.5kbits/s speed=3.12x frame= 6450 fps= 93 q=23.0 size= 114176KiB time=00:03:34.96 bitrate=4351.0kbits/s speed=3.11x frame= 6472 fps= 93 q=24.0 size= 114432KiB time=00:03:35.70 bitrate=4346.0kbits/s speed= 3.1x frame= 6507 fps= 93 q=24.0 size= 114944KiB time=00:03:36.86 bitrate=4341.9kbits/s speed=3.09x frame= 6551 fps= 93 q=23.0 size= 115712KiB time=00:03:38.20 bitrate=4344.2kbits/s speed=3.08x frame= 6568 fps= 92 q=22.0 size= 115968KiB time=00:03:38.86 bitrate=4340.6kbits/s speed=3.07x frame= 6620 fps= 92 q=23.0 size= 116736KiB time=00:03:40.63 bitrate=4334.3kbits/s speed=3.07x frame= 6644 fps= 92 q=22.0 size= 116992KiB time=00:03:41.36 bitrate=4329.5kbits/s speed=3.06x frame= 6674 fps= 91 q=24.0 size= 117504KiB time=00:03:42.43 bitrate=4327.6kbits/s speed=3.05x frame= 6715 fps= 91 q=21.0 size= 118016KiB time=00:03:43.80 bitrate=4319.9kbits/s speed=3.04x frame= 6778 fps= 92 q=24.0 size= 118784KiB time=00:03:45.90 bitrate=4307.6kbits/s speed=3.05x frame= 6826 fps= 92 q=24.0 size= 119296KiB time=00:03:47.50 bitrate=4295.7kbits/s speed=3.05x frame= 6876 fps= 92 q=24.0 size= 120064KiB time=00:03:49.16 bitrate=4291.9kbits/s speed=3.05x frame= 6916 fps= 91 q=24.0 size= 120832KiB time=00:03:50.50 bitrate=4294.4kbits/s speed=3.05x frame= 6962 fps= 91 q=23.0 size= 121344KiB time=00:03:52.03 bitrate=4284.1kbits/s speed=3.05x frame= 7020 fps= 92 q=24.0 size= 122112KiB time=00:03:53.93 bitrate=4276.2kbits/s speed=3.05x frame= 7083 fps= 92 q=24.0 size= 123136KiB time=00:03:56.06 bitrate=4273.1kbits/s speed=3.06x frame= 7151 fps= 92 q=22.0 size= 123904KiB time=00:03:58.33 bitrate=4258.8kbits/s speed=3.07x frame= 7214 fps= 92 q=24.0 size= 124928KiB time=00:04:00.33 bitrate=4258.3kbits/s speed=3.07x frame= 7275 fps= 92 q=22.0 size= 125952KiB time=00:04:02.46 bitrate=4255.4kbits/s speed=3.08x frame= 7346 fps= 93 q=24.0 size= 126976KiB time=00:04:04.80 bitrate=4249.1kbits/s speed=3.09x frame= 7409 fps= 93 q=25.0 size= 128000KiB time=00:04:06.93 bitrate=4246.4kbits/s speed=3.09x frame= 7461 fps= 93 q=25.0 size= 129024KiB time=00:04:08.66 bitrate=4250.5kbits/s speed= 3.1x frame= 7514 fps= 93 q=25.0 size= 130304KiB time=00:04:10.43 bitrate=4262.4kbits/s speed= 3.1x frame= 7566 fps= 93 q=23.0 size= 131328KiB time=00:04:12.13 bitrate=4266.9kbits/s speed= 3.1x frame= 7622 fps= 93 q=25.0 size= 132352KiB time=00:04:14.03 bitrate=4268.1kbits/s speed= 3.1x frame= 7674 fps= 93 q=25.0 size= 133632KiB time=00:04:15.76 bitrate=4280.1kbits/s speed= 3.1x frame= 7714 fps= 93 q=24.0 size= 134400KiB time=00:04:17.10 bitrate=4282.4kbits/s speed= 3.1x frame= 7757 fps= 93 q=25.0 size= 135168KiB time=00:04:18.53 bitrate=4283.0kbits/s speed= 3.1x frame= 7786 fps= 93 q=22.0 size= 135680KiB time=00:04:19.50 bitrate=4283.2kbits/s speed=3.09x frame= 7833 fps= 93 q=24.0 size= 136704KiB time=00:04:21.06 bitrate=4289.6kbits/s speed=3.09x frame= 7877 fps= 93 q=25.0 size= 137472KiB time=00:04:22.46 bitrate=4290.7kbits/s speed=3.09x frame= 7926 fps= 93 q=21.0 size= 138240KiB time=00:04:24.16 bitrate=4286.9kbits/s speed=3.09x frame= 7969 fps= 93 q=24.0 size= 138752KiB time=00:04:25.60 bitrate=4279.6kbits/s speed=3.08x frame= 8013 fps= 92 q=24.0 size= 139520KiB time=00:04:27.06 bitrate=4279.6kbits/s speed=3.08x frame= 8063 fps= 93 q=24.0 size= 140288KiB time=00:04:28.73 bitrate=4276.5kbits/s speed=3.08x frame= 8112 fps= 93 q=23.0 size= 141056KiB time=00:04:30.36 bitrate=4273.9kbits/s speed=3.08x frame= 8160 fps= 93 q=24.0 size= 141568KiB time=00:04:31.96 bitrate=4264.2kbits/s speed=3.08x frame= 8212 fps= 93 q=24.0 size= 142592KiB time=00:04:33.70 bitrate=4267.9kbits/s speed=3.08x frame= 8262 fps= 93 q=21.0 size= 143104KiB time=00:04:35.33 bitrate=4257.8kbits/s speed=3.08x frame= 8305 fps= 92 q=24.0 size= 143616KiB time=00:04:36.80 bitrate=4250.4kbits/s speed=3.08x frame= 8351 fps= 92 q=21.0 size= 144384KiB time=00:04:38.33 bitrate=4249.6kbits/s speed=3.08x frame= 8402 fps= 92 q=20.0 size= 144896KiB time=00:04:39.96 bitrate=4239.7kbits/s speed=3.08x frame= 8444 fps= 92 q=22.0 size= 145408KiB time=00:04:41.43 bitrate=4232.6kbits/s speed=3.08x frame= 8497 fps= 92 q=22.0 size= 145920KiB time=00:04:43.03 bitrate=4223.4kbits/s speed=3.08x frame= 8545 fps= 92 q=22.0 size= 146688KiB time=00:04:44.80 bitrate=4219.3kbits/s speed=3.08x frame= 8587 fps= 92 q=23.0 size= 147200KiB time=00:04:46.20 bitrate=4213.4kbits/s speed=3.08x frame= 8639 fps= 92 q=23.0 size= 147968KiB time=00:04:47.93 bitrate=4209.8kbits/s speed=3.08x frame= 8682 fps= 92 q=24.0 size= 148480KiB time=00:04:49.36 bitrate=4203.5kbits/s speed=3.08x frame= 8728 fps= 92 q=21.0 size= 149248KiB time=00:04:50.83 bitrate=4203.9kbits/s speed=3.07x frame= 8774 fps= 92 q=24.0 size= 149760KiB time=00:04:52.43 bitrate=4195.3kbits/s speed=3.07x frame= 8813 fps= 92 q=24.0 size= 150272KiB time=00:04:53.73 bitrate=4191.0kbits/s speed=3.07x frame= 8848 fps= 92 q=23.0 size= 150784KiB time=00:04:54.86 bitrate=4189.1kbits/s speed=3.07x frame= 8883 fps= 92 q=23.0 size= 151296KiB time=00:04:56.06 bitrate=4186.3kbits/s speed=3.06x frame= 8913 fps= 92 q=22.0 size= 151552KiB time=00:04:57.03 bitrate=4179.7kbits/s speed=3.06x frame= 8943 fps= 92 q=24.0 size= 152064KiB time=00:04:58.06 bitrate=4179.3kbits/s speed=3.05x frame= 8975 fps= 91 q=23.0 size= 152576KiB time=00:04:59.13 bitrate=4178.4kbits/s speed=3.05x frame= 9015 fps= 91 q=23.0 size= 153088KiB time=00:05:00.33 bitrate=4175.7kbits/s speed=3.04x frame= 9047 fps= 91 q=23.0 size= 153600KiB time=00:05:01.53 bitrate=4173.0kbits/s speed=3.04x frame= 9083 fps= 91 q=23.0 size= 154112KiB time=00:05:02.73 bitrate=4170.3kbits/s speed=3.03x frame= 9116 fps= 91 q=23.0 size= 154368KiB time=00:05:03.83 bitrate=4162.1kbits/s speed=3.03x frame= 9155 fps= 91 q=24.0 size= 155136KiB time=00:05:05.13 bitrate=4165.0kbits/s speed=3.02x frame= 9200 fps= 91 q=21.0 size= 155648KiB time=00:05:06.63 bitrate=4158.3kbits/s speed=3.02x frame= 9260 fps= 91 q=22.0 size= 156672KiB time=00:05:08.63 bitrate=4158.5kbits/s speed=3.03x frame= 9321 fps= 91 q=24.0 size= 157696KiB time=00:05:10.66 bitrate=4158.3kbits/s speed=3.03x frame= 9379 fps= 91 q=24.0 size= 158464KiB time=00:05:12.60 bitrate=4152.7kbits/s speed=3.04x frame= 9439 fps= 91 q=24.0 size= 159488KiB time=00:05:14.56 bitrate=4153.4kbits/s speed=3.04x frame= 9499 fps= 91 q=24.0 size= 160512KiB time=00:05:16.60 bitrate=4153.2kbits/s speed=3.04x frame= 9561 fps= 91 q=24.0 size= 161280KiB time=00:05:18.66 bitrate=4146.0kbits/s speed=3.05x frame= 9621 fps= 92 q=21.0 size= 162304KiB time=00:05:20.66 bitrate=4146.3kbits/s speed=3.05x frame= 9673 fps= 92 q=23.0 size= 162816KiB time=00:05:22.40 bitrate=4137.1kbits/s speed=3.05x frame= 9719 fps= 92 q=23.0 size= 163584KiB time=00:05:23.93 bitrate=4136.9kbits/s speed=3.05x frame= 9769 fps= 92 q=23.0 size= 164352KiB time=00:05:25.60 bitrate=4135.0kbits/s speed=3.05x frame= 9817 fps= 92 q=24.0 size= 165120KiB time=00:05:27.20 bitrate=4134.1kbits/s speed=3.06x frame= 9861 fps= 92 q=23.0 size= 165632KiB time=00:05:28.63 bitrate=4128.8kbits/s speed=3.05x frame= 9911 fps= 92 q=23.0 size= 166400KiB time=00:05:30.33 bitrate=4126.6kbits/s speed=3.05x frame= 9963 fps= 92 q=23.0 size= 167168KiB time=00:05:32.03 bitrate=4124.4kbits/s speed=3.06x frame=10018 fps= 92 q=23.0 size= 167936KiB time=00:05:33.90 bitrate=4120.2kbits/s speed=3.06x frame=10079 fps= 92 q=23.0 size= 168704KiB time=00:05:35.93 bitrate=4114.0kbits/s speed=3.06x frame=10124 fps= 92 q=22.0 size= 169472KiB time=00:05:37.43 bitrate=4114.3kbits/s speed=3.06x frame=10172 fps= 92 q=24.0 size= 169984KiB time=00:05:39.03 bitrate=4107.3kbits/s speed=3.06x frame=10232 fps= 92 q=23.0 size= 171008KiB time=00:05:41.03 bitrate=4107.8kbits/s speed=3.06x frame=10294 fps= 92 q=24.0 size= 171776KiB time=00:05:43.10 bitrate=4101.4kbits/s speed=3.07x frame=10357 fps= 92 q=23.0 size= 172800KiB time=00:05:45.20 bitrate=4100.7kbits/s speed=3.07x frame=10421 fps= 92 q=23.0 size= 173568KiB time=00:05:47.33 bitrate=4093.7kbits/s speed=3.08x frame=10482 fps= 92 q=23.0 size= 174592KiB time=00:05:49.33 bitrate=4094.3kbits/s speed=3.08x frame=10542 fps= 93 q=24.0 size= 175360KiB time=00:05:51.33 bitrate=4088.9kbits/s speed=3.08x frame=10595 fps= 93 q=24.0 size= 176384KiB time=00:05:53.13 bitrate=4091.8kbits/s speed=3.09x frame=10631 fps= 92 q=24.0 size= 176896KiB time=00:05:54.33 bitrate=4089.7kbits/s speed=3.08x frame=10678 fps= 92 q=24.0 size= 177664KiB time=00:05:55.90 bitrate=4089.4kbits/s speed=3.08x frame=10723 fps= 92 q=24.0 size= 178432KiB time=00:05:57.40 bitrate=4089.9kbits/s speed=3.08x frame=10779 fps= 93 q=25.0 size= 178944KiB time=00:05:59.26 bitrate=4080.3kbits/s speed=3.08x frame=10817 fps= 92 q=24.0 size= 179712KiB time=00:06:00.53 bitrate=4083.4kbits/s speed=3.08x frame=10868 fps= 92 q=24.0 size= 180480KiB time=00:06:02.23 bitrate=4081.6kbits/s speed=3.08x frame=10913 fps= 92 q=24.0 size= 181248KiB time=00:06:03.70 bitrate=4082.4kbits/s speed=3.08x frame=10960 fps= 92 q=24.0 size= 182016KiB time=00:06:05.26 bitrate=4082.2kbits/s speed=3.08x frame=11013 fps= 92 q=24.0 size= 182528KiB time=00:06:07.06 bitrate=4073.6kbits/s speed=3.08x frame=11045 fps= 92 q=24.0 size= 183040KiB time=00:06:08.13 bitrate=4073.2kbits/s speed=3.08x frame=11079 fps= 92 q=24.0 size= 183808KiB time=00:06:09.26 bitrate=4077.7kbits/s speed=3.07x frame=11107 fps= 92 q=24.0 size= 184064KiB time=00:06:10.20 bitrate=4073.1kbits/s speed=3.07x frame=11133 fps= 92 q=24.0 size= 184576KiB time=00:06:11.06 bitrate=4074.9kbits/s speed=3.06x frame=11158 fps= 92 q=24.0 size= 185088KiB time=00:06:11.90 bitrate=4077.0kbits/s speed=3.06x frame=11180 fps= 91 q=23.0 size= 185344KiB time=00:06:12.63 bitrate=4074.6kbits/s speed=3.05x frame=11208 fps= 91 q=24.0 size= 185856KiB time=00:06:13.56 bitrate=4075.7kbits/s speed=3.04x frame=11240 fps= 91 q=23.0 size= 186368KiB time=00:06:14.63 bitrate=4075.3kbits/s speed=3.04x frame=11280 fps= 91 q=24.0 size= 186880KiB time=00:06:15.93 bitrate=4072.3kbits/s speed=3.04x frame=11325 fps= 91 q=24.0 size= 187648KiB time=00:06:17.46 bitrate=4072.4kbits/s speed=3.04x frame=11364 fps= 91 q=24.0 size= 188160KiB time=00:06:18.76 bitrate=4069.5kbits/s speed=3.03x frame=11402 fps= 91 q=23.0 size= 188928KiB time=00:06:20.03 bitrate=4072.5kbits/s speed=3.03x frame=11450 fps= 91 q=23.0 size= 189440KiB time=00:06:21.63 bitrate=4066.4kbits/s speed=3.03x frame=11498 fps= 91 q=24.0 size= 190208KiB time=00:06:23.23 bitrate=4065.9kbits/s speed=3.03x frame=11522 fps= 91 q=24.0 size= 190464KiB time=00:06:24.03 bitrate=4062.9kbits/s speed=3.02x frame=11552 fps= 91 q=23.0 size= 190976KiB time=00:06:25.03 bitrate=4063.2kbits/s speed=3.02x frame=11595 fps= 91 q=24.0 size= 191744KiB time=00:06:26.36 bitrate=4065.5kbits/s speed=3.02x frame=11637 fps= 90 q=22.0 size= 192256KiB time=00:06:27.83 bitrate=4060.9kbits/s speed=3.02x frame=11679 fps= 90 q=24.0 size= 192768KiB time=00:06:29.26 bitrate=4056.7kbits/s speed=3.01x frame=11735 fps= 90 q=24.0 size= 193536KiB time=00:06:31.13 bitrate=4053.5kbits/s speed=3.02x frame=11792 fps= 91 q=24.0 size= 194560KiB time=00:06:33.03 bitrate=4055.2kbits/s speed=3.02x frame=11841 fps= 91 q=24.0 size= 195584KiB time=00:06:34.66 bitrate=4059.7kbits/s speed=3.02x frame=11901 fps= 91 q=25.0 size= 196608KiB time=00:06:36.66 bitrate=4060.4kbits/s speed=3.02x frame=11947 fps= 91 q=24.0 size= 197376KiB time=00:06:38.20 bitrate=4060.5kbits/s speed=3.02x frame=11999 fps= 91 q=25.0 size= 198144KiB time=00:06:39.93 bitrate=4058.7kbits/s speed=3.02x frame=12042 fps= 91 q=24.0 size= 198912KiB time=00:06:41.36 bitrate=4059.8kbits/s speed=3.02x frame=12095 fps= 91 q=24.0 size= 199936KiB time=00:06:43.13 bitrate=4062.9kbits/s speed=3.02x frame=12149 fps= 91 q=24.0 size= 200704KiB time=00:06:44.93 bitrate=4060.3kbits/s speed=3.02x frame=12210 fps= 91 q=24.0 size= 201728KiB time=00:06:46.96 bitrate=4060.7kbits/s speed=3.03x frame=12262 fps= 91 q=24.0 size= 202752KiB time=00:06:48.56 bitrate=4065.3kbits/s speed=3.03x frame=12309 fps= 91 q=25.0 size= 203520KiB time=00:06:50.26 bitrate=4063.8kbits/s speed=3.03x frame=12361 fps= 91 q=25.0 size= 204288KiB time=00:06:52.00 bitrate=4062.0kbits/s speed=3.03x frame=12417 fps= 91 q=22.0 size= 205312KiB time=00:06:53.70 bitrate=4065.5kbits/s speed=3.03x frame=12464 fps= 91 q=25.0 size= 206336KiB time=00:06:55.30 bitrate=4070.1kbits/s speed=3.03x frame=12515 fps= 91 q=24.0 size= 207360KiB time=00:06:57.13 bitrate=4072.3kbits/s speed=3.03x frame=12570 fps= 91 q=25.0 size= 208384KiB time=00:06:58.96 bitrate=4074.5kbits/s speed=3.03x frame=12629 fps= 91 q=24.0 size= 209152KiB time=00:07:00.93 bitrate=4070.4kbits/s speed=3.03x frame=12691 fps= 91 q=24.0 size= 210176KiB time=00:07:02.96 bitrate=4070.7kbits/s speed=3.04x frame=12747 fps= 91 q=23.0 size= 211200KiB time=00:07:04.86 bitrate=4072.2kbits/s speed=3.04x frame=12795 fps= 91 q=24.0 size= 211968KiB time=00:07:06.46 bitrate=4071.7kbits/s speed=3.04x frame=12841 fps= 91 q=24.0 size= 212736KiB time=00:07:08.00 bitrate=4071.8kbits/s speed=3.04x frame=12901 fps= 91 q=24.0 size= 213504KiB time=00:07:10.00 bitrate=4067.5kbits/s speed=3.04x frame=12957 fps= 91 q=24.0 size= 214528KiB time=00:07:11.86 bitrate=4069.3kbits/s speed=3.04x frame=13007 fps= 91 q=24.0 size= 215296KiB time=00:07:13.53 bitrate=4068.2kbits/s speed=3.04x frame=13070 fps= 91 q=24.0 size= 216320KiB time=00:07:15.63 bitrate=4067.9kbits/s speed=3.05x frame=13125 fps= 91 q=24.0 size= 217344KiB time=00:07:17.46 bitrate=4070.0kbits/s speed=3.05x frame=13169 fps= 91 q=24.0 size= 217856KiB time=00:07:18.93 bitrate=4065.9kbits/s speed=3.05x frame=13229 fps= 92 q=22.0 size= 218880KiB time=00:07:20.93 bitrate=4066.5kbits/s speed=3.05x frame=13278 fps= 92 q=22.0 size= 219904KiB time=00:07:22.56 bitrate=4070.5kbits/s speed=3.05x frame=13339 fps= 92 q=24.0 size= 220672KiB time=00:07:24.60 bitrate=4066.0kbits/s speed=3.06x frame=13405 fps= 92 q=22.0 size= 221696KiB time=00:07:26.80 bitrate=4064.8kbits/s speed=3.06x frame=13471 fps= 92 q=24.0 size= 222720KiB time=00:07:29.00 bitrate=4063.5kbits/s speed=3.06x frame=13531 fps= 92 q=24.0 size= 223744KiB time=00:07:31.00 bitrate=4064.1kbits/s speed=3.07x frame=13572 fps= 92 q=24.0 size= 224256KiB time=00:07:32.36 bitrate=4061.1kbits/s speed=3.07x frame=13629 fps= 92 q=24.0 size= 225280KiB time=00:07:34.26 bitrate=4062.6kbits/s speed=3.07x frame=13689 fps= 92 q=24.0 size= 226304KiB time=00:07:36.26 bitrate=4063.2kbits/s speed=3.07x frame=13736 fps= 92 q=24.0 size= 227072KiB time=00:07:37.73 bitrate=4063.9kbits/s speed=3.07x frame=13796 fps= 92 q=25.0 size= 228096KiB time=00:07:39.83 bitrate=4063.6kbits/s speed=3.07x frame=13853 fps= 92 q=24.0 size= 228864KiB time=00:07:41.73 bitrate=4060.5kbits/s speed=3.07x frame=13901 fps= 92 q=24.0 size= 229632KiB time=00:07:43.30 bitrate=4060.3kbits/s speed=3.07x frame=13957 fps= 92 q=24.0 size= 230656KiB time=00:07:45.20 bitrate=4061.8kbits/s speed=3.08x frame=14010 fps= 92 q=24.0 size= 231680KiB time=00:07:46.96 bitrate=4064.4kbits/s speed=3.08x frame=14073 fps= 92 q=24.0 size= 232960KiB time=00:07:49.06 bitrate=4068.5kbits/s speed=3.08x frame=14122 fps= 92 q=24.0 size= 233728KiB time=00:07:50.70 bitrate=4067.8kbits/s speed=3.08x frame=14180 fps= 92 q=24.0 size= 234752KiB time=00:07:52.63 bitrate=4068.9kbits/s speed=3.08x frame=14231 fps= 92 q=24.0 size= 235776KiB time=00:07:54.33 bitrate=4072.0kbits/s speed=3.08x frame=14288 fps= 93 q=22.0 size= 237056KiB time=00:07:56.23 bitrate=4077.8kbits/s speed=3.08x frame=14342 fps= 93 q=24.0 size= 238080KiB time=00:07:58.03 bitrate=4079.9kbits/s speed=3.09x frame=14390 fps= 93 q=24.0 size= 238848KiB time=00:07:59.63 bitrate=4079.5kbits/s speed=3.09x frame=14449 fps= 93 q=24.0 size= 239872KiB time=00:08:01.60 bitrate=4080.2kbits/s speed=3.09x frame=14506 fps= 93 q=24.0 size= 241152KiB time=00:08:03.50 bitrate=4085.9kbits/s speed=3.09x frame=14559 fps= 93 q=24.0 size= 242176KiB time=00:08:05.26 bitrate=4088.3kbits/s speed=3.09x frame=14602 fps= 93 q=23.0 size= 242944KiB time=00:08:06.70 bitrate=4089.2kbits/s speed=3.09x frame=14659 fps= 93 q=21.0 size= 243968KiB time=00:08:08.56 bitrate=4090.7kbits/s speed=3.09x frame=14707 fps= 93 q=24.0 size= 244736KiB time=00:08:10.20 bitrate=4089.9kbits/s speed=3.09x frame=14768 fps= 93 q=24.0 size= 245760KiB time=00:08:12.23 bitrate=4090.1kbits/s speed=3.09x frame=14829 fps= 93 q=24.0 size= 246784KiB time=00:08:14.26 bitrate=4090.2kbits/s speed= 3.1x frame=14886 fps= 93 q=24.0 size= 247808KiB time=00:08:16.16 bitrate=4091.5kbits/s speed= 3.1x frame=14939 fps= 93 q=24.0 size= 248576KiB time=00:08:17.93 bitrate=4089.6kbits/s speed= 3.1x frame=14999 fps= 93 q=24.0 size= 249600KiB time=00:08:19.93 bitrate=4090.0kbits/s speed= 3.1x frame=15063 fps= 93 q=24.0 size= 250624KiB time=00:08:22.03 bitrate=4089.6kbits/s speed= 3.1x frame=15128 fps= 93 q=23.0 size= 251648KiB time=00:08:24.23 bitrate=4088.4kbits/s speed=3.11x frame=15189 fps= 93 q=24.0 size= 252672KiB time=00:08:26.26 bitrate=4088.5kbits/s speed=3.11x frame=15240 fps= 93 q=25.0 size= 253440KiB time=00:08:27.96 bitrate=4087.2kbits/s speed=3.11x frame=15285 fps= 93 q=24.0 size= 254208KiB time=00:08:29.46 bitrate=4087.6kbits/s speed=3.11x frame=15343 fps= 93 q=23.0 size= 254976KiB time=00:08:31.40 bitrate=4084.4kbits/s speed=3.11x frame=15400 fps= 93 q=23.0 size= 255744KiB time=00:08:33.13 bitrate=4082.9kbits/s speed=3.11x frame=15444 fps= 93 q=24.0 size= 256512KiB time=00:08:34.76 bitrate=4082.1kbits/s speed=3.11x frame=15503 fps= 93 q=24.0 size= 257536KiB time=00:08:36.73 bitrate=4082.8kbits/s speed=3.11x frame=15564 fps= 93 q=23.0 size= 258560KiB time=00:08:38.76 bitrate=4083.0kbits/s speed=3.11x frame=15626 fps= 94 q=24.0 size= 259584KiB time=00:08:40.83 bitrate=4082.9kbits/s speed=3.12x frame=15686 fps= 94 q=24.0 size= 260608KiB time=00:08:42.83 bitrate=4083.3kbits/s speed=3.12x frame=15754 fps= 94 q=22.0 size= 261632KiB time=00:08:45.10 bitrate=4081.7kbits/s speed=3.12x frame=15813 fps= 94 q=24.0 size= 262400KiB time=00:08:47.06 bitrate=4078.4kbits/s speed=3.12x frame=15872 fps= 94 q=25.0 size= 263680KiB time=00:08:49.03 bitrate=4083.0kbits/s speed=3.13x frame=15933 fps= 94 q=24.0 size= 264704KiB time=00:08:51.06 bitrate=4083.2kbits/s speed=3.13x frame=15999 fps= 94 q=24.0 size= 265728KiB time=00:08:53.26 bitrate=4082.1kbits/s speed=3.13x frame=16061 fps= 94 q=21.0 size= 266752KiB time=00:08:55.33 bitrate=4082.0kbits/s speed=3.14x frame=16122 fps= 94 q=24.0 size= 267776KiB time=00:08:57.36 bitrate=4082.2kbits/s speed=3.14x frame=16184 fps= 94 q=24.0 size= 268800KiB time=00:08:59.43 bitrate=4082.1kbits/s speed=3.14x frame=16241 fps= 94 q=22.0 size= 269824KiB time=00:09:01.33 bitrate=4083.2kbits/s speed=3.14x frame=16300 fps= 94 q=24.0 size= 271104KiB time=00:09:03.30 bitrate=4087.8kbits/s speed=3.14x frame=16358 fps= 94 q=25.0 size= 272384KiB time=00:09:05.23 bitrate=4092.5kbits/s speed=3.15x frame=16408 fps= 94 q=25.0 size= 273408KiB time=00:09:06.90 bitrate=4095.4kbits/s speed=3.15x [mp4 @ 000001f31dbab240] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 000001f31ddf2e00] video:265833KiB audio:8632KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.226941% +frame=16452 fps= 94 q=-1.0 Lsize= 275088KiB time=00:09:08.31 bitrate=4109.9kbits/s speed=3.14x +[libx264 @ 000001f31e9e9c40] frame I:69 Avg QP:13.78 size: 73858 +[libx264 @ 000001f31e9e9c40] frame P:4952 Avg QP:15.50 size: 31165 +[libx264 @ 000001f31e9e9c40] frame B:11431 Avg QP:17.37 size: 9867 +[libx264 @ 000001f31e9e9c40] consecutive B-frames: 6.1% 2.2% 5.0% 86.7% +[libx264 @ 000001f31e9e9c40] mb I I16..4: 23.6% 52.7% 23.7% +[libx264 @ 000001f31e9e9c40] mb P I16..4: 14.2% 22.8% 3.3% P16..4: 43.1% 0.0% 0.0% 0.0% 0.0% skip:16.6% +[libx264 @ 000001f31e9e9c40] mb B I16..4: 2.3% 1.7% 0.2% B16..8: 35.9% 0.0% 0.0% direct:10.1% skip:49.8% L0:52.4% L1:43.3% BI: 4.3% +[libx264 @ 000001f31e9e9c40] 8x8 transform intra:53.3% inter:31.5% +[libx264 @ 000001f31e9e9c40] coded y,uvDC,uvAC intra: 30.0% 61.4% 15.0% inter: 3.9% 22.0% 0.1% +[libx264 @ 000001f31e9e9c40] i16 v,h,dc,p: 44% 20% 17% 18% +[libx264 @ 000001f31e9e9c40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 18% 22% 6% 7% 8% 7% 6% 6% +[libx264 @ 000001f31e9e9c40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 21% 21% 5% 4% 4% 4% 3% 4% +[libx264 @ 000001f31e9e9c40] i8c dc,h,v,p: 41% 23% 26% 11% +[libx264 @ 000001f31e9e9c40] Weighted P-Frames: Y:0.4% UV:0.0% +[libx264 @ 000001f31e9e9c40] kb/s:3971.00 +[aac @ 000001f31e6b7e00] Qavg: 2031.914 + +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_11352_h264_1768077159.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768077335.jpg', '-y'] +Thumb created: t_5565051026_1768077335.jpg (69749 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '3', '-i', 'test_video.mp4', '-c', 'copy', '-map', '0', 'test_video_cut_1768229198.mp4', '-y'] +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '00:10', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1768229454.mp4', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_cut_1768229454.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768229455.jpg', '-y'] +Thumb created: t_5565051026_1768229455.jpg (41360 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '18', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11753.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11753_cut_1768229485.mp4', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11753_cut_1768229485.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768229486.jpg', '-y'] +Thumb created: t_5565051026_1768229486.jpg (39682 bytes) +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768230467.mp4', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_i_5565051026_1768230519.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768230467_thumb_1768230519.mp4'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_auto_v_5565051026_11811_1768232314.mp4', '-i', 'tmp_auto_thumb_5565051026_11811.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_auto_v_5565051026_11811_1768232314_thumb_1768232396.mp4'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768232308.mp4', '-i', 'tmp_rand_thumb_5565051026_1768232413.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768232308_thumb_1768232413.mp4'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768232564.mp4', '-i', 'tmp_rand_thumb_5565051026_1768232750.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768232564_thumb_1768232750.mp4'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768233103.mp4', '-i', 'tmp_rand_thumb_5565051026_1768233173.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768233103_thumb_1768233173.mp4'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768233592.mp4', '-i', 'tmp_rand_thumb_5565051026_1768233638.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\thumb_v_5565051026_1768233592_thumb_1768233638.mp4'] +Meta Error: list index out of range +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp3', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_0.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp3', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_0.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\party_5565051026_part000.mp3 +Meta Error: list index out of range +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp3', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_1.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp3', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_1.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\party_5565051026_part001.mp3 +Meta Error: list index out of range +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp3', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_2.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp3', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234052_2.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\party_5565051026_part002.mp3 +Meta Error: list index out of range +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp3', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234164_0.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp3', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234164_0.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\party_5565051026_part000.mp3 +Meta Error: list index out of range +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp3', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234164_1.jpg', '-y'] +Thumb Cmd 2: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp3', '-ss', '00:00:00', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768234164_1.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\party_5565051026_part001.mp3 +Resize Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11883.mp4', '-vf', 'scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,setsar=1', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'copy', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11883_resize_9-16_1768235252.mp4'] +Resize Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11885.mp4', '-vf', 'scale=1080:1080:force_original_aspect_ratio=increase,crop=1080:1080,setsar=1', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'copy', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11885_resize_1-1_1768235264.mp4'] +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11885_resize_1-1_1768235264.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768235295.jpg', '-y'] +Thumb created: t_5565051026_1768235295.jpg (41952 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11883_resize_9-16_1768235252.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768235296.jpg', '-y'] +Thumb created: t_5565051026_1768235296.jpg (51152 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '30', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11925.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11925_cut_1768243309.mp4', '-y'] +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_11925_cut_1768243309.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768243311.jpg', '-y'] +Thumb created: t_5565051026_1768243311.jpg (43184 bytes) +Resize Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11937.mp4', '-vf', 'scale=1080:1080:force_original_aspect_ratio=increase,crop=1080:1080,setsar=1', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'copy', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11937_resize_1-1_1768243449.mp4'] +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11937_resize_1-1_1768243449.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768243459.jpg', '-y'] +Thumb created: t_5565051026_1768243459.jpg (49360 bytes) +Resize Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11949.mp4', '-vf', 'scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,setsar=1', '-c:v', 'libx264', '-preset', 'fast', '-crf', '23', '-c:a', 'copy', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11949_resize_9-16_1768244605.mp4'] +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\resize_5565051026_11949_resize_9-16_1768244605.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768244620.jpg', '-y'] +Thumb created: t_5565051026_1768244620.jpg (62851 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Collage Cmd: ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768251484.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,63.1578947368421),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768251484_collage_1768251512.jpg'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Collage Cmd: ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768251557.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,63.1578947368421),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768251557_collage_1768251583.jpg'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Collage Cmd: ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768252969.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,66.44444444444444),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768252969_collage_1768252993.jpg'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Collage Cmd: ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768253068.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,66.44444444444444),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768253068_collage_1768253097.jpg'] +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768253804444_877.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768253804444_877.jpg', '-y'] +Thumb created: t_5565051026_1768253804444_877.jpg (104732 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '3.166', '-i', 'downloads\\smart_in_5565051026_1768254247.mp4', '-c', 'copy', '-map', '0', 'downloads\\smart_in_5565051026_1768254247_cut_1768254280.mp4', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '3.166', '-i', 'downloads\\smart_in_5565051026_1768254602.mp4', '-c', 'copy', '-map', '0', 'downloads\\smart_in_5565051026_1768254602_cut_1768254636.mp4', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Collage Cmd (3x3): ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768254863.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,47.111111111111114),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768254863_collage.jpg'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Collage Cmd (2x2): ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768255219.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,106.0),scale=480:-1,tile=2x2', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768255219_collage.jpg'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Collage Cmd (3x3): ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768255476.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,47.111111111111114),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768255476_collage.jpg'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768255816526_897.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768255816526_897.jpg', '-y'] +Thumb created: t_5565051026_1768255816526_897.jpg (45951 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Collage Cmd (3x3): ['ffmpeg', '-y', '-ss', '00:00:01', '-i', 'downloads\\collage_in_5565051026_1768256341.mp4', '-vf', 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\\,1.4444444444444444),scale=480:-1,tile=3x3', '-frames:v', '1', '-q:v', '2', 'downloads\\collage_in_5565051026_1768256341_collage.jpg'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=852, h=480, sar=640:639 +Corrected w=853 +Final Meta: w=853, h=480 +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Raw Meta: w=852, h=480, sar=640:639 +Corrected w=853 +Final Meta: w=853, h=480 +Raw Meta: w=1280, h=720, sar=1:1 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768337761115_511_part1.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768337761115_511.jpg', '-y'] +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768337766492_325_part1.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768337766492_325.jpg', '-y'] +Thumb created: t_5565051026_1768337761115_511.jpg (49907 bytes) +Thumb created: t_5565051026_1768337766492_325.jpg (49907 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768337766492_325_part2.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768337766492_325.jpg', '-y'] +Thumb created: t_5565051026_1768337766492_325.jpg (43472 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768337761115_511_part2.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768337761115_511.jpg', '-y'] +Thumb created: t_5565051026_1768337761115_511.jpg (43472 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768402926608_326_part1.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768402926608_326.jpg', '-y'] +Thumb created: t_5565051026_1768402926608_326.jpg (48314 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '5.655278', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_12984.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_12984_cut_1768404537.mp4', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_12984_cut_1768404537.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768404538.jpg', '-y'] +Thumb created: t_5565051026_1768404538.jpg (93579 bytes) +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13261.mp4', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13261_cat_001.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13261_thumb_1768425050.mp4'] +Raw Meta: w=852, h=480, sar=640:639 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Embed Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13269.mp4', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13269_cat_012.jpg', '-map', '0', '-map', '1', '-c', 'copy', '-c:v:1', 'png', '-disposition:v:1', 'attached_pic', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\custom_base_5565051026_13269_thumb_1768425261.mp4'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_0.jpg', '-y'] +Thumb created: t_5565051026_1768518006_0.jpg (21143 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_1.jpg', '-y'] +Thumb created: t_5565051026_1768518006_1.jpg (22418 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_2.jpg', '-y'] +Thumb created: t_5565051026_1768518006_2.jpg (24578 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_3.jpg', '-y'] +Thumb created: t_5565051026_1768518006_3.jpg (20394 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_4.jpg', '-y'] +Thumb created: t_5565051026_1768518006_4.jpg (12963 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_5.jpg', '-y'] +Thumb created: t_5565051026_1768518006_5.jpg (17977 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_6.jpg', '-y'] +Thumb created: t_5565051026_1768518006_6.jpg (20122 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_7.jpg', '-y'] +Thumb created: t_5565051026_1768518006_7.jpg (17686 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_8.jpg', '-y'] +Thumb created: t_5565051026_1768518006_8.jpg (18737 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_9.jpg', '-y'] +Thumb created: t_5565051026_1768518006_9.jpg (18912 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part010.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_10.jpg', '-y'] +Thumb created: t_5565051026_1768518006_10.jpg (19387 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part011.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_11.jpg', '-y'] +Thumb created: t_5565051026_1768518006_11.jpg (19427 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part012.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_12.jpg', '-y'] +Thumb created: t_5565051026_1768518006_12.jpg (20981 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part013.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_13.jpg', '-y'] +Thumb created: t_5565051026_1768518006_13.jpg (19054 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part014.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_14.jpg', '-y'] +Thumb created: t_5565051026_1768518006_14.jpg (17376 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part015.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_15.jpg', '-y'] +Thumb created: t_5565051026_1768518006_15.jpg (22236 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part016.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_16.jpg', '-y'] +Thumb created: t_5565051026_1768518006_16.jpg (23310 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part017.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_17.jpg', '-y'] +Thumb created: t_5565051026_1768518006_17.jpg (22811 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part018.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_18.jpg', '-y'] +Thumb created: t_5565051026_1768518006_18.jpg (21707 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part019.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_19.jpg', '-y'] +Thumb created: t_5565051026_1768518006_19.jpg (22346 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part020.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_20.jpg', '-y'] +Thumb created: t_5565051026_1768518006_20.jpg (16894 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part021.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_21.jpg', '-y'] +Thumb created: t_5565051026_1768518006_21.jpg (21187 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part022.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_22.jpg', '-y'] +Thumb created: t_5565051026_1768518006_22.jpg (18223 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part023.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_23.jpg', '-y'] +Thumb created: t_5565051026_1768518006_23.jpg (24625 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part024.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_24.jpg', '-y'] +Thumb created: t_5565051026_1768518006_24.jpg (23619 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part025.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_25.jpg', '-y'] +Thumb created: t_5565051026_1768518006_25.jpg (20852 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part026.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_26.jpg', '-y'] +Thumb created: t_5565051026_1768518006_26.jpg (18821 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part027.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_27.jpg', '-y'] +Thumb created: t_5565051026_1768518006_27.jpg (20669 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part028.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_28.jpg', '-y'] +Thumb created: t_5565051026_1768518006_28.jpg (19397 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part029.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_29.jpg', '-y'] +Thumb created: t_5565051026_1768518006_29.jpg (17971 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part030.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_30.jpg', '-y'] +Thumb created: t_5565051026_1768518006_30.jpg (18951 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part031.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_31.jpg', '-y'] +Thumb created: t_5565051026_1768518006_31.jpg (23003 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part032.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_32.jpg', '-y'] +Thumb created: t_5565051026_1768518006_32.jpg (24220 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part033.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_33.jpg', '-y'] +Thumb created: t_5565051026_1768518006_33.jpg (20564 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part034.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_34.jpg', '-y'] +Thumb created: t_5565051026_1768518006_34.jpg (21444 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part035.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_35.jpg', '-y'] +Thumb created: t_5565051026_1768518006_35.jpg (21413 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part036.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_36.jpg', '-y'] +Thumb created: t_5565051026_1768518006_36.jpg (19103 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part037.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_37.jpg', '-y'] +Thumb created: t_5565051026_1768518006_37.jpg (22792 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part038.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_38.jpg', '-y'] +Thumb created: t_5565051026_1768518006_38.jpg (19361 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part039.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_39.jpg', '-y'] +Thumb created: t_5565051026_1768518006_39.jpg (20642 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part040.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_40.jpg', '-y'] +Thumb created: t_5565051026_1768518006_40.jpg (18779 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part041.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_41.jpg', '-y'] +Thumb created: t_5565051026_1768518006_41.jpg (29020 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part042.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_42.jpg', '-y'] +Thumb created: t_5565051026_1768518006_42.jpg (29408 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part043.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_43.jpg', '-y'] +Thumb created: t_5565051026_1768518006_43.jpg (27971 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part044.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_44.jpg', '-y'] +Thumb created: t_5565051026_1768518006_44.jpg (26663 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part045.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_45.jpg', '-y'] +Thumb created: t_5565051026_1768518006_45.jpg (26633 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part046.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_46.jpg', '-y'] +Thumb created: t_5565051026_1768518006_46.jpg (24149 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part047.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_47.jpg', '-y'] +Thumb created: t_5565051026_1768518006_47.jpg (24011 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part048.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_48.jpg', '-y'] +Thumb created: t_5565051026_1768518006_48.jpg (25221 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part049.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_49.jpg', '-y'] +Thumb created: t_5565051026_1768518006_49.jpg (24728 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part050.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_50.jpg', '-y'] +Thumb created: t_5565051026_1768518006_50.jpg (27838 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part051.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_51.jpg', '-y'] +Thumb created: t_5565051026_1768518006_51.jpg (28659 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part052.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_52.jpg', '-y'] +Thumb created: t_5565051026_1768518006_52.jpg (27160 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part053.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_53.jpg', '-y'] +Thumb created: t_5565051026_1768518006_53.jpg (27000 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part054.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_54.jpg', '-y'] +Thumb created: t_5565051026_1768518006_54.jpg (27964 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part055.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_55.jpg', '-y'] +Thumb created: t_5565051026_1768518006_55.jpg (28278 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part056.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_56.jpg', '-y'] +Thumb created: t_5565051026_1768518006_56.jpg (22143 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part057.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_57.jpg', '-y'] +Thumb created: t_5565051026_1768518006_57.jpg (19680 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part058.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_58.jpg', '-y'] +Thumb created: t_5565051026_1768518006_58.jpg (25051 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part059.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_59.jpg', '-y'] +Thumb created: t_5565051026_1768518006_59.jpg (28713 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part060.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_60.jpg', '-y'] +Thumb created: t_5565051026_1768518006_60.jpg (19088 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part061.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_61.jpg', '-y'] +Thumb created: t_5565051026_1768518006_61.jpg (22690 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part062.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_62.jpg', '-y'] +Thumb created: t_5565051026_1768518006_62.jpg (17949 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part063.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_63.jpg', '-y'] +Thumb created: t_5565051026_1768518006_63.jpg (19239 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part064.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_64.jpg', '-y'] +Thumb created: t_5565051026_1768518006_64.jpg (18223 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part065.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_65.jpg', '-y'] +Thumb created: t_5565051026_1768518006_65.jpg (23472 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part066.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_66.jpg', '-y'] +Thumb created: t_5565051026_1768518006_66.jpg (22986 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part067.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_67.jpg', '-y'] +Thumb created: t_5565051026_1768518006_67.jpg (23220 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part068.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_68.jpg', '-y'] +Thumb created: t_5565051026_1768518006_68.jpg (19269 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part069.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_69.jpg', '-y'] +Thumb created: t_5565051026_1768518006_69.jpg (24090 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part070.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_70.jpg', '-y'] +Thumb created: t_5565051026_1768518006_70.jpg (19333 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part071.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_71.jpg', '-y'] +Thumb created: t_5565051026_1768518006_71.jpg (21259 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part072.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_72.jpg', '-y'] +Thumb created: t_5565051026_1768518006_72.jpg (17147 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part073.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_73.jpg', '-y'] +Thumb created: t_5565051026_1768518006_73.jpg (17075 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part074.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_74.jpg', '-y'] +Thumb created: t_5565051026_1768518006_74.jpg (19506 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part075.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_75.jpg', '-y'] +Thumb created: t_5565051026_1768518006_75.jpg (19795 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part076.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_76.jpg', '-y'] +Thumb created: t_5565051026_1768518006_76.jpg (22515 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part077.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_77.jpg', '-y'] +Thumb created: t_5565051026_1768518006_77.jpg (22003 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part078.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_78.jpg', '-y'] +Thumb created: t_5565051026_1768518006_78.jpg (21622 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part079.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_79.jpg', '-y'] +Thumb created: t_5565051026_1768518006_79.jpg (18332 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part080.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_80.jpg', '-y'] +Thumb created: t_5565051026_1768518006_80.jpg (20351 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part081.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_81.jpg', '-y'] +Thumb created: t_5565051026_1768518006_81.jpg (17496 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part082.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_82.jpg', '-y'] +Thumb created: t_5565051026_1768518006_82.jpg (22801 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part083.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_83.jpg', '-y'] +Thumb created: t_5565051026_1768518006_83.jpg (21019 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part084.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518006_84.jpg', '-y'] +Thumb created: t_5565051026_1768518006_84.jpg (23005 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518659_0.jpg', '-y'] +Thumb created: t_5565051026_1768518659_0.jpg (18542 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518659_1.jpg', '-y'] +Thumb created: t_5565051026_1768518659_1.jpg (20592 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768518659_2.jpg', '-y'] +Thumb created: t_5565051026_1768518659_2.jpg (21259 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768521493_0.jpg', '-y'] +Thumb created: t_5565051026_1768521493_0.jpg (21622 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768521493_1.jpg', '-y'] +Thumb created: t_5565051026_1768521493_1.jpg (15118 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768521493_2.jpg', '-y'] +Thumb created: t_5565051026_1768521493_2.jpg (19594 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_13868_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768521616_0.jpg', '-y'] +Thumb created: t_5565051026_1768521616_0.jpg (22752 bytes) +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_13868_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768521616_1.jpg', '-y'] +Thumb created: t_5565051026_1768521616_1.jpg (25524 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14044_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768526294_0.jpg', '-y'] +Thumb created: t_5565051026_1768526294_0.jpg (62538 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14044_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768526294_1.jpg', '-y'] +Thumb created: t_5565051026_1768526294_1.jpg (63863 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14044_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768526294_2.jpg', '-y'] +Thumb created: t_5565051026_1768526294_2.jpg (81877 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14044_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768526294_3.jpg', '-y'] +Thumb created: t_5565051026_1768526294_3.jpg (74156 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_0.jpg', '-y'] +Thumb created: t_5565051026_1768527114_0.jpg (69822 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_1.jpg', '-y'] +Thumb created: t_5565051026_1768527114_1.jpg (57866 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_2.jpg', '-y'] +Thumb created: t_5565051026_1768527114_2.jpg (97612 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_3.jpg', '-y'] +Thumb created: t_5565051026_1768527114_3.jpg (47250 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_4.jpg', '-y'] +Thumb created: t_5565051026_1768527114_4.jpg (73343 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_5.jpg', '-y'] +Thumb created: t_5565051026_1768527114_5.jpg (101354 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_6.jpg', '-y'] +Thumb created: t_5565051026_1768527114_6.jpg (63875 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_7.jpg', '-y'] +Thumb created: t_5565051026_1768527114_7.jpg (92252 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_8.jpg', '-y'] +Thumb created: t_5565051026_1768527114_8.jpg (54951 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14083_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527114_9.jpg', '-y'] +Thumb created: t_5565051026_1768527114_9.jpg (88471 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_0.jpg', '-y'] +Thumb created: t_5565051026_1768527192_0.jpg (22888 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_1.jpg', '-y'] +Thumb created: t_5565051026_1768527192_1.jpg (61164 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_2.jpg', '-y'] +Thumb created: t_5565051026_1768527192_2.jpg (58248 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_3.jpg', '-y'] +Thumb created: t_5565051026_1768527192_3.jpg (37670 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_4.jpg', '-y'] +Thumb created: t_5565051026_1768527192_4.jpg (42165 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_5.jpg', '-y'] +Thumb created: t_5565051026_1768527192_5.jpg (54081 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_6.jpg', '-y'] +Thumb created: t_5565051026_1768527192_6.jpg (45059 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_7.jpg', '-y'] +Thumb created: t_5565051026_1768527192_7.jpg (63586 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_8.jpg', '-y'] +Thumb created: t_5565051026_1768527192_8.jpg (61334 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14081_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527192_9.jpg', '-y'] +Thumb created: t_5565051026_1768527192_9.jpg (68620 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_0.jpg', '-y'] +Thumb created: t_5565051026_1768527340_0.jpg (68616 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_1.jpg', '-y'] +Thumb created: t_5565051026_1768527340_1.jpg (36149 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_2.jpg', '-y'] +Thumb created: t_5565051026_1768527340_2.jpg (35212 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_3.jpg', '-y'] +Thumb created: t_5565051026_1768527340_3.jpg (36220 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_4.jpg', '-y'] +Thumb created: t_5565051026_1768527340_4.jpg (38382 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_5.jpg', '-y'] +Thumb created: t_5565051026_1768527340_5.jpg (38318 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_6.jpg', '-y'] +Thumb created: t_5565051026_1768527340_6.jpg (35352 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_7.jpg', '-y'] +Thumb created: t_5565051026_1768527340_7.jpg (15861 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_8.jpg', '-y'] +Thumb created: t_5565051026_1768527340_8.jpg (16084 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_14105_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768527340_9.jpg', '-y'] +Thumb created: t_5565051026_1768527340_9.jpg (63230 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\merged_5565051026_1768529594.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768529595.jpg', '-y'] +Thumb created: t_5565051026_1768529595.jpg (84473 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768611032_0_0.jpg', '-y'] +Thumb created: t_5565051026_1768611032_0_0.jpg (74082 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768611032_0_1.jpg', '-y'] +Thumb created: t_5565051026_1768611032_0_1.jpg (66978 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768611032_0_2.jpg', '-y'] +Thumb created: t_5565051026_1768611032_0_2.jpg (52113 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_0.jpg', '-y'] +Thumb created: t_5565051026_1768787828_0.jpg (47653 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_1.jpg', '-y'] +Thumb created: t_5565051026_1768787828_1.jpg (45636 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_2.jpg', '-y'] +Thumb created: t_5565051026_1768787828_2.jpg (41858 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part003.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_3.jpg', '-y'] +Thumb created: t_5565051026_1768787828_3.jpg (34110 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part004.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_4.jpg', '-y'] +Thumb created: t_5565051026_1768787828_4.jpg (29038 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part005.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_5.jpg', '-y'] +Thumb created: t_5565051026_1768787828_5.jpg (52413 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part006.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_6.jpg', '-y'] +Thumb created: t_5565051026_1768787828_6.jpg (38069 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part007.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_7.jpg', '-y'] +Thumb created: t_5565051026_1768787828_7.jpg (50807 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part008.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_8.jpg', '-y'] +Thumb created: t_5565051026_1768787828_8.jpg (40323 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part009.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_9.jpg', '-y'] +Thumb created: t_5565051026_1768787828_9.jpg (46148 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part010.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_10.jpg', '-y'] +Thumb created: t_5565051026_1768787828_10.jpg (30862 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part011.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_11.jpg', '-y'] +Thumb created: t_5565051026_1768787828_11.jpg (46884 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part012.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_12.jpg', '-y'] +Thumb created: t_5565051026_1768787828_12.jpg (42988 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part013.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_13.jpg', '-y'] +Thumb created: t_5565051026_1768787828_13.jpg (45063 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part014.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_14.jpg', '-y'] +Thumb created: t_5565051026_1768787828_14.jpg (32922 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part015.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_15.jpg', '-y'] +Thumb created: t_5565051026_1768787828_15.jpg (33469 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part016.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_16.jpg', '-y'] +Thumb created: t_5565051026_1768787828_16.jpg (43002 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part017.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_17.jpg', '-y'] +Thumb created: t_5565051026_1768787828_17.jpg (44621 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part018.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_18.jpg', '-y'] +Thumb created: t_5565051026_1768787828_18.jpg (40952 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part019.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_19.jpg', '-y'] +Thumb created: t_5565051026_1768787828_19.jpg (42599 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part020.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768787828_20.jpg', '-y'] +Thumb created: t_5565051026_1768787828_20.jpg (28268 bytes) +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768788230472_310.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768788230472_310.jpg', '-y'] +Thumb created: t_5565051026_1768788230472_310.jpg (51096 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1: ['ffmpeg', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768788240359_505.mp4', '-ss', '00:00:02', '-vf', 'scale=iw*sar:ih', '-vframes', '1', 't_5565051026_1768788240359_505.jpg', '-y'] +Thumb created: t_5565051026_1768788240359_505.jpg (14618 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16648.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768921103.jpg', '-y'] +Thumb created: t_5565051026_1768921103.jpg (93830 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '3.133', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16649.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16649_cut_1768921175.mp4', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16649_cut_1768921175.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768921177.jpg', '-y'] +Thumb created: t_5565051026_1768921177.jpg (192462 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '3.133', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16670.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16670_cut_1768921651.mp4', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\smart_5565051026_16670_cut_1768921651.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768921652.jpg', '-y'] +Thumb created: t_5565051026_1768921652.jpg (192462 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:14.550): ['ffmpeg', '-ss', '00:00:14.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768936371152_195.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768936371152_195.jpg', '-y'] +Thumb created: t_5565051026_1768936371152_195.jpg (174726 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:18.000): ['ffmpeg', '-ss', '00:00:18.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768940570823_534.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768940570823_534.jpg', '-y'] +Thumb created: t_5565051026_1768940570823_534.jpg (47792 bytes) +Raw Meta: w=632, h=360, sar=1:1 +Final Meta: w=632, h=360 +Thumb Cmd 1 (00:00:02.250): ['ffmpeg', '-ss', '00:00:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768940622568_747.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768940622568_747.jpg', '-y'] +Thumb created: t_5565051026_1768940622568_747.jpg (13180 bytes) +Raw Meta: w=608, h=1080, sar=1:1 +Final Meta: w=608, h=1080 +Thumb Cmd 1 (00:02:09.750): ['ffmpeg', '-ss', '00:02:09.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768940669507_343.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768940669507_343.jpg', '-y'] +Thumb created: t_5565051026_1768940669507_343.jpg (119247 bytes) +Raw Meta: w=320, h=570, sar=1:1 +Final Meta: w=320, h=570 +Thumb Cmd 1 (00:00:02.700): ['ffmpeg', '-ss', '00:00:02.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768941416312_740.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768941416312_740.jpg', '-y'] +Thumb created: t_5565051026_1768941416312_740.jpg (19459 bytes) +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1 (00:03:05.400): ['ffmpeg', '-ss', '00:03:05.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768943726415_918.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768943726415_918.jpg', '-y'] +Thumb created: t_5565051026_1768943726415_918.jpg (82526 bytes) +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1 (00:03:05.400): ['ffmpeg', '-ss', '00:03:05.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768943726430_149.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768943726430_149.jpg', '-y'] +Thumb created: t_5565051026_1768943726430_149.jpg (82526 bytes) +Raw Meta: w=480, h=480, sar=1:1 +Final Meta: w=480, h=480 +Thumb Cmd 1 (00:00:29.400): ['ffmpeg', '-ss', '00:00:29.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768944072638_805.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768944072638_805.jpg', '-y'] +Thumb created: t_5565051026_1768944072638_805.jpg (30631 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:00:53.850): ['ffmpeg', '-ss', '00:00:53.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768944461783_371.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768944461783_371.jpg', '-y'] +Thumb created: t_5565051026_1768944461783_371.jpg (30421 bytes) +Raw Meta: w=960, h=720, sar=1:1 +Final Meta: w=960, h=720 +Thumb Cmd 1 (00:00:02.400): ['ffmpeg', '-ss', '00:00:02.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768944535968_402.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768944535968_402.jpg', '-y'] +Thumb created: t_5565051026_1768944535968_402.jpg (67370 bytes) +Raw Meta: w=320, h=320, sar=1:1 +Final Meta: w=320, h=320 +Thumb Cmd 1 (00:00:16.200): ['ffmpeg', '-ss', '00:00:16.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768945032656_465.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768945032656_465.jpg', '-y'] +Thumb created: t_5565051026_1768945032656_465.jpg (16109 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:02:33.450): ['ffmpeg', '-ss', '00:02:33.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768945495671_867.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768945495671_867.jpg', '-y'] +Thumb created: t_5565051026_1768945495671_867.jpg (105944 bytes) +Raw Meta: w=240, h=432, sar=1:1 +Final Meta: w=240, h=432 +Thumb Cmd 1 (00:00:03.150): ['ffmpeg', '-ss', '00:00:03.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768945814835_880.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768945814835_880.jpg', '-y'] +Thumb created: t_5565051026_1768945814835_880.jpg (14673 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:40.950): ['ffmpeg', '-ss', '00:00:40.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768945977986_186.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768945977986_186.jpg', '-y'] +Thumb created: t_5565051026_1768945977986_186.jpg (62826 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946405_0_0.jpg', '-y'] +Thumb created: t_5565051026_1768946405_0_0.jpg (69885 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946405_0_1.jpg', '-y'] +Thumb created: t_5565051026_1768946405_0_1.jpg (39810 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946405_0_2.jpg', '-y'] +Thumb created: t_5565051026_1768946405_0_2.jpg (47872 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946405_0_3.jpg', '-y'] +Thumb created: t_5565051026_1768946405_0_3.jpg (35314 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946405_0_4.jpg', '-y'] +Thumb created: t_5565051026_1768946405_0_4.jpg (62942 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946443_0_0.jpg', '-y'] +Thumb created: t_5565051026_1768946443_0_0.jpg (69885 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946443_0_1.jpg', '-y'] +Thumb created: t_5565051026_1768946443_0_1.jpg (48727 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946443_0_2.jpg', '-y'] +Thumb created: t_5565051026_1768946443_0_2.jpg (35314 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.550): ['ffmpeg', '-ss', '00:00:02.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768946692525_764.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946692525_764.jpg', '-y'] +Thumb created: t_5565051026_1768946692525_764.jpg (65295 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:00:35.850): ['ffmpeg', '-ss', '00:00:35.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768946743250_379.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946743250_379.jpg', '-y'] +Thumb created: t_5565051026_1768946743250_379.jpg (46546 bytes) +Raw Meta: w=640, h=356, sar=1:1 +Final Meta: w=640, h=356 +Thumb Cmd 1 (00:00:39.300): ['ffmpeg', '-ss', '00:00:39.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768946809016_785.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946809016_785.jpg', '-y'] +Thumb created: t_5565051026_1768946809016_785.jpg (36327 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:21.000): ['ffmpeg', '-ss', '00:00:21.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768946949885_352.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768946949885_352.jpg', '-y'] +Thumb created: t_5565051026_1768946949885_352.jpg (29191 bytes) +Raw Meta: w=1146, h=720, sar=1:1 +Final Meta: w=1146, h=720 +Thumb Cmd 1 (00:00:14.400): ['ffmpeg', '-ss', '00:00:14.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947152306_487.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947152306_487.jpg', '-y'] +Thumb created: t_5565051026_1768947152306_487.jpg (64560 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:01:01.500): ['ffmpeg', '-ss', '00:01:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947177810_328.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947177810_328.jpg', '-y'] +Thumb created: t_5565051026_1768947177810_328.jpg (15976 bytes) +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1 (00:01:14.550): ['ffmpeg', '-ss', '00:01:14.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947378388_822.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947378388_822.jpg', '-y'] +Thumb created: t_5565051026_1768947378388_822.jpg (70663 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:46.800): ['ffmpeg', '-ss', '00:02:46.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947400950_192.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947400950_192.jpg', '-y'] +Thumb created: t_5565051026_1768947400950_192.jpg (218029 bytes) +Raw Meta: w=478, h=270, sar=1:1 +Final Meta: w=478, h=270 +Thumb Cmd 1 (00:00:02.100): ['ffmpeg', '-ss', '00:00:02.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947592509_480.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947592509_480.jpg', '-y'] +Thumb created: t_5565051026_1768947592509_480.jpg (13504 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:26.250): ['ffmpeg', '-ss', '00:00:26.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1768947611601_555.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1768947611601_555.jpg', '-y'] +Thumb created: t_5565051026_1768947611601_555.jpg (105975 bytes) +Raw Meta: w=320, h=580, sar=1:1 +Final Meta: w=320, h=580 +Thumb Cmd 1 (00:00:06.300): ['ffmpeg', '-ss', '00:00:06.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769116046279_658.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769116046279_658.jpg', '-y'] +Thumb created: t_5565051026_1769116046279_658.jpg (26922 bytes) +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1 (00:00:36.000): ['ffmpeg', '-ss', '00:00:36.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769116081676_477.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769116081676_477.jpg', '-y'] +Thumb created: t_5565051026_1769116081676_477.jpg (38068 bytes) +Raw Meta: w=1118, h=720, sar=5760:5771 +Corrected w=1115 +Final Meta: w=1115, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769117007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769117150.jpg', '-y'] +Thumb created: t_5565051026_1769117150.jpg (66023 bytes) +Raw Meta: w=2560, h=720, sar=1:1 +Final Meta: w=2560, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769117238.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769117251.jpg', '-y'] +Thumb created: t_5565051026_1769117251.jpg (94467 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769117288.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769117312.jpg', '-y'] +Thumb created: t_5565051026_1769117312.jpg (94786 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769117314.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769117356.jpg', '-y'] +Thumb created: t_5565051026_1769117356.jpg (94786 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769117318.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769117361.jpg', '-y'] +Thumb created: t_5565051026_1769117361.jpg (94786 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769126912.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769126926.jpg', '-y'] +Thumb created: t_5565051026_1769126926.jpg (94786 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769127138.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769127154.jpg', '-y'] +Thumb created: t_5565051026_1769127154.jpg (94786 bytes) +Raw Meta: w=2966, h=720, sar=1:1 +Final Meta: w=2966, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769127293.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769127312.jpg', '-y'] +Thumb created: t_5565051026_1769127312.jpg (141043 bytes) +Raw Meta: w=1686, h=720, sar=405:406 +Corrected w=1681 +Final Meta: w=1681, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769127437.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769127451.jpg', '-y'] +Thumb created: t_5565051026_1769127451.jpg (95738 bytes) +Raw Meta: w=812, h=720, sar=405:406 +Corrected w=810 +Final Meta: w=810, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769127603.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769127612.jpg', '-y'] +Thumb created: t_5565051026_1769127612.jpg (69127 bytes) +Raw Meta: w=812, h=720, sar=405:406 +Corrected w=810 +Final Meta: w=810, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769127734.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769127743.jpg', '-y'] +Thumb created: t_5565051026_1769127743.jpg (69127 bytes) +Raw Meta: w=812, h=720, sar=14400:14413 +Corrected w=811 +Final Meta: w=811, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769129523.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769129535.jpg', '-y'] +Thumb created: t_5565051026_1769129535.jpg (69437 bytes) +Raw Meta: w=812, h=720, sar=14400:14413 +Corrected w=811 +Final Meta: w=811, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769129811.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769129822.jpg', '-y'] +Thumb created: t_5565051026_1769129822.jpg (69437 bytes) +Raw Meta: w=352, h=640, sar=1:1 +Final Meta: w=352, h=640 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769456002820890100_4274\\dl_5565051026_1769456002820890100_4274.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769456002820890100_4274.jpg', '-y'] +Thumb created: t_5565051026_1769456002820890100_4274.jpg (31162 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:14.100): ['ffmpeg', '-ss', '00:00:14.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769457317941565500_1232\\dl_5565051026_1769457317941565500_1232.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769457317941565500_1232.jpg', '-y'] +Thumb created: t_5565051026_1769457317941565500_1232.jpg (116286 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:09.000): ['ffmpeg', '-ss', '00:00:09.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769460870530970000_9204\\dl_5565051026_1769460870530970000_9204.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769460870530970000_9204.jpg', '-y'] +Thumb created: t_5565051026_1769460870530970000_9204.jpg (42088 bytes) +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1 (00:00:02.250): ['ffmpeg', '-ss', '00:00:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769461253419821600_7022\\dl_5565051026_1769461253419821600_7022.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769461253419821600_7022.jpg', '-y'] +Thumb created: t_5565051026_1769461253419821600_7022.jpg (70307 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769465439.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769465558.jpg', '-y'] +Thumb created: t_5565051026_1769465558.jpg (110283 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466087590177900_9173\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466099_0_0.jpg', '-y'] +Thumb created: t_5565051026_1769466099_0_0.jpg (109007 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466087590177900_9173\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466099_0_1.jpg', '-y'] +Thumb created: t_5565051026_1769466099_0_1.jpg (111952 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466087590177900_9173\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466099_0_2.jpg', '-y'] +Thumb created: t_5565051026_1769466099_0_2.jpg (111547 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_0.jpg', '-y'] +Thumb created: t_5565051026_1769466173_0.jpg (109007 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_1.jpg', '-y'] +Thumb created: t_5565051026_1769466173_1.jpg (109339 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_2.jpg', '-y'] +Thumb created: t_5565051026_1769466173_2.jpg (111466 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_3.jpg', '-y'] +Thumb created: t_5565051026_1769466173_3.jpg (111435 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_4.jpg', '-y'] +Thumb created: t_5565051026_1769466173_4.jpg (112451 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part005.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_5.jpg', '-y'] +Thumb created: t_5565051026_1769466173_5.jpg (114491 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part006.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_6.jpg', '-y'] +Thumb created: t_5565051026_1769466173_6.jpg (111299 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_7.jpg', '-y'] +Thumb created: t_5565051026_1769466173_7.jpg (113370 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part008.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_8.jpg', '-y'] +Thumb created: t_5565051026_1769466173_8.jpg (112066 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_9.jpg', '-y'] +Thumb created: t_5565051026_1769466173_9.jpg (112645 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part010.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_10.jpg', '-y'] +Thumb created: t_5565051026_1769466173_10.jpg (112918 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part011.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_11.jpg', '-y'] +Thumb created: t_5565051026_1769466173_11.jpg (112974 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part012.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_12.jpg', '-y'] +Thumb created: t_5565051026_1769466173_12.jpg (113422 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part013.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_13.jpg', '-y'] +Thumb created: t_5565051026_1769466173_13.jpg (110987 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part014.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_14.jpg', '-y'] +Thumb created: t_5565051026_1769466173_14.jpg (112423 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part015.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_15.jpg', '-y'] +Thumb created: t_5565051026_1769466173_15.jpg (109259 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466167393664500_4289\\party_5565051026_part016.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466173_16.jpg', '-y'] +Thumb created: t_5565051026_1769466173_16.jpg (112325 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_0.jpg', '-y'] +Thumb created: t_5565051026_1769466957_0.jpg (107354 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_1.jpg', '-y'] +Thumb created: t_5565051026_1769466957_1.jpg (106161 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_2.jpg', '-y'] +Thumb created: t_5565051026_1769466957_2.jpg (107577 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_3.jpg', '-y'] +Thumb created: t_5565051026_1769466957_3.jpg (106308 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_4.jpg', '-y'] +Thumb created: t_5565051026_1769466957_4.jpg (108658 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part005.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_5.jpg', '-y'] +Thumb created: t_5565051026_1769466957_5.jpg (109698 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part006.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_6.jpg', '-y'] +Thumb created: t_5565051026_1769466957_6.jpg (109602 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_7.jpg', '-y'] +Thumb created: t_5565051026_1769466957_7.jpg (108438 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part008.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_8.jpg', '-y'] +Thumb created: t_5565051026_1769466957_8.jpg (108717 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_9.jpg', '-y'] +Thumb created: t_5565051026_1769466957_9.jpg (107251 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part010.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_10.jpg', '-y'] +Thumb created: t_5565051026_1769466957_10.jpg (108856 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part011.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_11.jpg', '-y'] +Thumb created: t_5565051026_1769466957_11.jpg (109335 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part012.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_12.jpg', '-y'] +Thumb created: t_5565051026_1769466957_12.jpg (111248 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part013.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_13.jpg', '-y'] +Thumb created: t_5565051026_1769466957_13.jpg (108525 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part014.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_14.jpg', '-y'] +Thumb created: t_5565051026_1769466957_14.jpg (107785 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part015.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_15.jpg', '-y'] +Thumb created: t_5565051026_1769466957_15.jpg (108031 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part016.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_16.jpg', '-y'] +Thumb created: t_5565051026_1769466957_16.jpg (107719 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part017.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_17.jpg', '-y'] +Thumb created: t_5565051026_1769466957_17.jpg (107628 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part018.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_18.jpg', '-y'] +Thumb created: t_5565051026_1769466957_18.jpg (109877 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part019.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_19.jpg', '-y'] +Thumb created: t_5565051026_1769466957_19.jpg (109772 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part020.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_20.jpg', '-y'] +Thumb created: t_5565051026_1769466957_20.jpg (108079 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part021.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_21.jpg', '-y'] +Thumb created: t_5565051026_1769466957_21.jpg (108854 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part022.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_22.jpg', '-y'] +Thumb created: t_5565051026_1769466957_22.jpg (108995 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part023.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_23.jpg', '-y'] +Thumb created: t_5565051026_1769466957_23.jpg (109973 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part024.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_24.jpg', '-y'] +Thumb created: t_5565051026_1769466957_24.jpg (108774 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part025.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_25.jpg', '-y'] +Thumb created: t_5565051026_1769466957_25.jpg (108048 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_26.jpg', '-y'] +Thumb created: t_5565051026_1769466957_26.jpg (109767 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part027.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_27.jpg', '-y'] +Thumb created: t_5565051026_1769466957_27.jpg (109681 bytes) +Raw Meta: w=1206, h=720, sar=1:1 +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769466850447164400_5890\\party_5565051026_part028.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769466957_28.jpg', '-y'] +Raw Meta: w=1610, h=720, sar=5355:5353 +Corrected w=1610 +Final Meta: w=1610, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769468230.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769468305.jpg', '-y'] +Thumb created: t_5565051026_1769468305.jpg (131896 bytes) +Raw Meta: w=1690, h=720, sar=1:1 +Final Meta: w=1690, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1769468769.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769468838.jpg', '-y'] +Thumb created: t_5565051026_1769468838.jpg (160939 bytes) +Raw Meta: w=848, h=890, sar=5355:5353 +Corrected w=848 +Final Meta: w=848, h=890 +Raw Meta: w=848, h=890, sar=5355:5353 +Corrected w=848 +Final Meta: w=848, h=890 +Raw Meta: w=848, h=890, sar=5355:5353 +Corrected w=848 +Final Meta: w=848, h=890 +Raw Meta: w=848, h=890, sar=5355:5353 +Corrected w=848 +Final Meta: w=848, h=890 +Raw Meta: w=848, h=890, sar=5355:5353 +Corrected w=848 +Final Meta: w=848, h=890 +Raw Meta: w=1206, h=720, sar=None +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769471345188098300_7732\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769471353_0.jpg', '-y'] +Thumb created: t_5565051026_1769471353_0.jpg (99776 bytes) +Raw Meta: w=1206, h=720, sar=None +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769471345188098300_7732\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769471353_1.jpg', '-y'] +Thumb created: t_5565051026_1769471353_1.jpg (104080 bytes) +Raw Meta: w=1206, h=720, sar=None +Final Meta: w=1206, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769471345188098300_7732\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769471353_2.jpg', '-y'] +Thumb created: t_5565051026_1769471353_2.jpg (103258 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810188152189800_8476\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810206_0.jpg', '-y'] +Thumb created: t_5565051026_1769810206_0.jpg (69355 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810188152189800_8476\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810206_1.jpg', '-y'] +Thumb created: t_5565051026_1769810206_1.jpg (142960 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810188152189800_8476\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810206_2.jpg', '-y'] +Thumb created: t_5565051026_1769810206_2.jpg (90374 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810188152189800_8476\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810206_3.jpg', '-y'] +Thumb created: t_5565051026_1769810206_3.jpg (130635 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810188152189800_8476\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810206_4.jpg', '-y'] +Thumb created: t_5565051026_1769810206_4.jpg (131510 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_0.jpg', '-y'] +Thumb created: t_5565051026_1769810256_0.jpg (142960 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_1.jpg', '-y'] +Thumb created: t_5565051026_1769810256_1.jpg (139889 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_2.jpg', '-y'] +Thumb created: t_5565051026_1769810256_2.jpg (148641 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_3.jpg', '-y'] +Thumb created: t_5565051026_1769810256_3.jpg (146492 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_4.jpg', '-y'] +Thumb created: t_5565051026_1769810256_4.jpg (83978 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810252894700300_8865\\party_5565051026_part005.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810256_5.jpg', '-y'] +Thumb created: t_5565051026_1769810256_5.jpg (80915 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_0.jpg', '-y'] +Thumb created: t_5565051026_1769810315_0.jpg (69355 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_1.jpg', '-y'] +Thumb created: t_5565051026_1769810315_1.jpg (136679 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_2.jpg', '-y'] +Thumb created: t_5565051026_1769810315_2.jpg (144660 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_3.jpg', '-y'] +Thumb created: t_5565051026_1769810315_3.jpg (121275 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_4.jpg', '-y'] +Thumb created: t_5565051026_1769810315_4.jpg (119727 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part005.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_5.jpg', '-y'] +Thumb created: t_5565051026_1769810315_5.jpg (103083 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part006.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_6.jpg', '-y'] +Thumb created: t_5565051026_1769810315_6.jpg (118875 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_7.jpg', '-y'] +Thumb created: t_5565051026_1769810315_7.jpg (121752 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part008.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_8.jpg', '-y'] +Thumb created: t_5565051026_1769810315_8.jpg (127281 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_9.jpg', '-y'] +Thumb created: t_5565051026_1769810315_9.jpg (141969 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part010.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_10.jpg', '-y'] +Thumb created: t_5565051026_1769810315_10.jpg (136878 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part011.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_11.jpg', '-y'] +Thumb created: t_5565051026_1769810315_11.jpg (139130 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part012.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_12.jpg', '-y'] +Thumb created: t_5565051026_1769810315_12.jpg (142960 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part013.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_13.jpg', '-y'] +Thumb created: t_5565051026_1769810315_13.jpg (145673 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part014.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_14.jpg', '-y'] +Thumb created: t_5565051026_1769810315_14.jpg (139889 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part015.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_15.jpg', '-y'] +Thumb created: t_5565051026_1769810315_15.jpg (143426 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part016.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_16.jpg', '-y'] +Thumb created: t_5565051026_1769810315_16.jpg (148641 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part017.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_17.jpg', '-y'] +Thumb created: t_5565051026_1769810315_17.jpg (170652 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part018.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_18.jpg', '-y'] +Thumb created: t_5565051026_1769810315_18.jpg (146492 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part019.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_19.jpg', '-y'] +Thumb created: t_5565051026_1769810315_19.jpg (87064 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part020.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_20.jpg', '-y'] +Thumb created: t_5565051026_1769810315_20.jpg (83978 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part021.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_21.jpg', '-y'] +Thumb created: t_5565051026_1769810315_21.jpg (76200 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part022.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_22.jpg', '-y'] +Thumb created: t_5565051026_1769810315_22.jpg (80915 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part023.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_23.jpg', '-y'] +Thumb created: t_5565051026_1769810315_23.jpg (88465 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part024.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_24.jpg', '-y'] +Thumb created: t_5565051026_1769810315_24.jpg (90374 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part025.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_25.jpg', '-y'] +Thumb created: t_5565051026_1769810315_25.jpg (148877 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_26.jpg', '-y'] +Thumb created: t_5565051026_1769810315_26.jpg (145307 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part027.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_27.jpg', '-y'] +Thumb created: t_5565051026_1769810315_27.jpg (137886 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part028.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_28.jpg', '-y'] +Thumb created: t_5565051026_1769810315_28.jpg (140957 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part029.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_29.jpg', '-y'] +Thumb created: t_5565051026_1769810315_29.jpg (151436 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part030.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_30.jpg', '-y'] +Thumb created: t_5565051026_1769810315_30.jpg (148351 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part031.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_31.jpg', '-y'] +Thumb created: t_5565051026_1769810315_31.jpg (143249 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part032.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_32.jpg', '-y'] +Thumb created: t_5565051026_1769810315_32.jpg (141807 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part033.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_33.jpg', '-y'] +Thumb created: t_5565051026_1769810315_33.jpg (138625 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part034.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_34.jpg', '-y'] +Thumb created: t_5565051026_1769810315_34.jpg (127164 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part035.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_35.jpg', '-y'] +Thumb created: t_5565051026_1769810315_35.jpg (125514 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part036.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_36.jpg', '-y'] +Thumb created: t_5565051026_1769810315_36.jpg (130635 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part037.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_37.jpg', '-y'] +Thumb created: t_5565051026_1769810315_37.jpg (134829 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part038.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_38.jpg', '-y'] +Thumb created: t_5565051026_1769810315_38.jpg (132052 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part039.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_39.jpg', '-y'] +Thumb created: t_5565051026_1769810315_39.jpg (101043 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part040.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_40.jpg', '-y'] +Thumb created: t_5565051026_1769810315_40.jpg (121548 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part041.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_41.jpg', '-y'] +Thumb created: t_5565051026_1769810315_41.jpg (94837 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part042.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_42.jpg', '-y'] +Thumb created: t_5565051026_1769810315_42.jpg (112794 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part043.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_43.jpg', '-y'] +Thumb created: t_5565051026_1769810315_43.jpg (131183 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part044.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_44.jpg', '-y'] +Thumb created: t_5565051026_1769810315_44.jpg (110653 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part045.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_45.jpg', '-y'] +Thumb created: t_5565051026_1769810315_45.jpg (93223 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part046.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_46.jpg', '-y'] +Thumb created: t_5565051026_1769810315_46.jpg (125572 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part047.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_47.jpg', '-y'] +Thumb created: t_5565051026_1769810315_47.jpg (114108 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part048.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_48.jpg', '-y'] +Thumb created: t_5565051026_1769810315_48.jpg (131510 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part049.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_49.jpg', '-y'] +Thumb created: t_5565051026_1769810315_49.jpg (124286 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part050.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_50.jpg', '-y'] +Thumb created: t_5565051026_1769810315_50.jpg (117888 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part051.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_51.jpg', '-y'] +Thumb created: t_5565051026_1769810315_51.jpg (133936 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part052.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_52.jpg', '-y'] +Thumb created: t_5565051026_1769810315_52.jpg (147379 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part053.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_53.jpg', '-y'] +Thumb created: t_5565051026_1769810315_53.jpg (141520 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part054.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_54.jpg', '-y'] +Thumb created: t_5565051026_1769810315_54.jpg (101160 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part055.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_55.jpg', '-y'] +Thumb created: t_5565051026_1769810315_55.jpg (48734 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1769810303777893700_8600\\party_5565051026_part056.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769810315_56.jpg', '-y'] +Thumb created: t_5565051026_1769810315_56.jpg (48342 bytes) +Raw Meta: w=320, h=584, sar=1:1 +Final Meta: w=320, h=584 +Thumb Cmd 1 (00:00:08.850): ['ffmpeg', '-ss', '00:00:08.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769903976927233700_7682\\dl_5565051026_1769903976927233700_7682.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769903976927233700_7682.jpg', '-y'] +Thumb created: t_5565051026_1769903976927233700_7682.jpg (18521 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:04.200): ['ffmpeg', '-ss', '00:00:04.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769904079819066000_6445\\dl_5565051026_1769904079819066000_6445.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769904079819066000_6445.jpg', '-y'] +Thumb created: t_5565051026_1769904079819066000_6445.jpg (116268 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769907843916874200_6672\\dl_5565051026_1769907843916874200_6672.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769907843916874200_6672.jpg', '-y'] +Thumb created: t_5565051026_1769907843916874200_6672.jpg (241494 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769907880527848100_9510\\dl_5565051026_1769907880527848100_9510.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769907880527848100_9510.jpg', '-y'] +Thumb created: t_5565051026_1769907880527848100_9510.jpg (231159 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769908263435414700_3269\\dl_5565051026_1769908263435414700_3269.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769908263435414700_3269.jpg', '-y'] +Thumb created: t_5565051026_1769908263435414700_3269.jpg (122936 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909481476989200_4731\\dl_5565051026_1769909481476989200_4731.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909481476989200_4731.jpg', '-y'] +Thumb created: t_5565051026_1769909481476989200_4731.jpg (73756 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909510475240700_3396\\dl_5565051026_1769909510475240700_3396.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909510475240700_3396.jpg', '-y'] +Thumb created: t_5565051026_1769909510475240700_3396.jpg (123812 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714621210200_6597\\dl_5565051026_1769909714621210200_6597.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714621210200_6597.jpg', '-y'] +Thumb created: t_5565051026_1769909714621210200_6597.jpg (93223 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714626207800_2577\\dl_5565051026_1769909714626207800_2577.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714626207800_2577.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714631712300_4387\\dl_5565051026_1769909714631712300_4387.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714631712300_4387.jpg', '-y'] +Thumb created: t_5565051026_1769909714626207800_2577.jpg (95552 bytes) +Thumb created: t_5565051026_1769909714631712300_4387.jpg (103456 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714630753900_5927\\dl_5565051026_1769909714630753900_5927.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714630753900_5927.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909713881831200_9287\\dl_5565051026_1769909713881831200_9287.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909713881831200_9287.jpg', '-y'] +Thumb created: t_5565051026_1769909714630753900_5927.jpg (87282 bytes) +Thumb created: t_5565051026_1769909713881831200_9287.jpg (145181 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909716749391500_6077\\dl_5565051026_1769909716749391500_6077.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909716749391500_6077.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714734055100_5746\\dl_5565051026_1769909714734055100_5746.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714734055100_5746.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909722503552700_9993\\dl_5565051026_1769909722503552700_9993.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909722503552700_9993.jpg', '-y'] +Thumb created: t_5565051026_1769909714734055100_5746.jpg (111985 bytes) +Thumb created: t_5565051026_1769909716749391500_6077.jpg (178129 bytes) +Thumb created: t_5565051026_1769909722503552700_9993.jpg (151003 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909718979166000_6776\\dl_5565051026_1769909718979166000_6776.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909718979166000_6776.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909722508860000_9102\\dl_5565051026_1769909722508860000_9102.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909722508860000_9102.jpg', '-y'] +Thumb created: t_5565051026_1769909718979166000_6776.jpg (149704 bytes) +Thumb created: t_5565051026_1769909722508860000_9102.jpg (71269 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714735569000_7037\\dl_5565051026_1769909714735569000_7037.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714735569000_7037.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909717195426400_4201\\dl_5565051026_1769909717195426400_4201.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909717195426400_4201.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909716992142600_8696\\dl_5565051026_1769909716992142600_8696.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909716992142600_8696.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909716985474100_4645\\dl_5565051026_1769909716985474100_4645.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909716985474100_4645.jpg', '-y'] +Thumb created: t_5565051026_1769909714735569000_7037.jpg (151976 bytes) +Thumb created: t_5565051026_1769909716992142600_8696.jpg (93660 bytes) +Thumb created: t_5565051026_1769909717195426400_4201.jpg (108814 bytes) +Thumb created: t_5565051026_1769909716985474100_4645.jpg (94778 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909716994925700_4771\\dl_5565051026_1769909716994925700_4771.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909716994925700_4771.jpg', '-y'] +Thumb created: t_5565051026_1769909716994925700_4771.jpg (103397 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909724588793500_7139\\dl_5565051026_1769909724588793500_7139.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909724588793500_7139.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909722510478100_1548\\dl_5565051026_1769909722510478100_1548.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909722510478100_1548.jpg', '-y'] +Thumb created: t_5565051026_1769909724588793500_7139.jpg (65658 bytes) +Thumb created: t_5565051026_1769909722510478100_1548.jpg (126404 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909722957571000_8440\\dl_5565051026_1769909722957571000_8440.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909722957571000_8440.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909714720924800_4750\\dl_5565051026_1769909714720924800_4750.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909714720924800_4750.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909723479685400_3177\\dl_5565051026_1769909723479685400_3177.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909723479685400_3177.jpg', '-y'] +Thumb created: t_5565051026_1769909722957571000_8440.jpg (119781 bytes) +Thumb created: t_5565051026_1769909714720924800_4750.jpg (208144 bytes) +Thumb created: t_5565051026_1769909723479685400_3177.jpg (70103 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909754987172600_7470\\dl_5565051026_1769909754987172600_7470.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909754987172600_7470.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909746366272300_5332\\dl_5565051026_1769909746366272300_5332.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909746366272300_5332.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747048815600_6793\\dl_5565051026_1769909747048815600_6793.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747048815600_6793.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747053651300_1893\\dl_5565051026_1769909747053651300_1893.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747053651300_1893.jpg', '-y'] +Thumb created: t_5565051026_1769909746366272300_5332.jpg (71521 bytes) +Thumb created: t_5565051026_1769909747048815600_6793.jpg (109712 bytes) +Thumb created: t_5565051026_1769909754987172600_7470.jpg (119892 bytes) +Thumb created: t_5565051026_1769909747053651300_1893.jpg (70267 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909760218358900_1166\\dl_5565051026_1769909760218358900_1166.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909760218358900_1166.jpg', '-y'] +Thumb created: t_5565051026_1769909760218358900_1166.jpg (64640 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909756684378100_8050\\dl_5565051026_1769909756684378100_8050.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909756684378100_8050.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747938776400_9873\\dl_5565051026_1769909747938776400_9873.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747938776400_9873.jpg', '-y'] +Thumb created: t_5565051026_1769909756684378100_8050.jpg (71479 bytes) +Thumb created: t_5565051026_1769909747938776400_9873.jpg (232359 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747209424100_2841\\dl_5565051026_1769909747209424100_2841.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747209424100_2841.jpg', '-y'] +Thumb created: t_5565051026_1769909747209424100_2841.jpg (209563 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909748300891300_1751\\dl_5565051026_1769909748300891300_1751.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909748300891300_1751.jpg', '-y'] +Thumb created: t_5565051026_1769909748300891300_1751.jpg (216506 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909751189536000_3170\\dl_5565051026_1769909751189536000_3170.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909751189536000_3170.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909752889451900_5723\\dl_5565051026_1769909752889451900_5723.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909752889451900_5723.jpg', '-y'] +Thumb created: t_5565051026_1769909751189536000_3170.jpg (93929 bytes) +Thumb created: t_5565051026_1769909752889451900_5723.jpg (138862 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909743986608000_8441\\dl_5565051026_1769909743986608000_8441.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909743986608000_8441.jpg', '-y'] +Thumb created: t_5565051026_1769909743986608000_8441.jpg (91269 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747213699700_9871\\dl_5565051026_1769909747213699700_9871.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747213699700_9871.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909749452634900_3450\\dl_5565051026_1769909749452634900_3450.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909749452634900_3450.jpg', '-y'] +Thumb created: t_5565051026_1769909747213699700_9871.jpg (202803 bytes) +Thumb created: t_5565051026_1769909749452634900_3450.jpg (117369 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909747062704800_1526\\dl_5565051026_1769909747062704800_1526.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909747062704800_1526.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909745511267200_8978\\dl_5565051026_1769909745511267200_8978.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909745511267200_8978.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909750213249300_2448\\dl_5565051026_1769909750213249300_2448.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909750213249300_2448.jpg', '-y'] +Thumb created: t_5565051026_1769909747062704800_1526.jpg (56143 bytes) +Thumb created: t_5565051026_1769909745511267200_8978.jpg (112360 bytes) +Thumb created: t_5565051026_1769909750213249300_2448.jpg (188213 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909760419256000_1889\\dl_5565051026_1769909760419256000_1889.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909760419256000_1889.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909763225701300_1050\\dl_5565051026_1769909763225701300_1050.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909763225701300_1050.jpg', '-y'] +Thumb created: t_5565051026_1769909760419256000_1889.jpg (98193 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:01.500): ['ffmpeg', '-ss', '00:00:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909763515542800_4685\\dl_5565051026_1769909763515542800_4685.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909763515542800_4685.jpg', '-y'] +Thumb created: t_5565051026_1769909763225701300_1050.jpg (159874 bytes) +Thumb created: t_5565051026_1769909763515542800_4685.jpg (137578 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909760443230700_2865\\dl_5565051026_1769909760443230700_2865.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909760443230700_2865.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909760529821100_4854\\dl_5565051026_1769909760529821100_4854.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909760529821100_4854.jpg', '-y'] +Thumb created: t_5565051026_1769909760443230700_2865.jpg (227759 bytes) +Thumb created: t_5565051026_1769909760529821100_4854.jpg (77142 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909763139123100_3176\\dl_5565051026_1769909763139123100_3176.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909763139123100_3176.jpg', '-y'] +Thumb created: t_5565051026_1769909763139123100_3176.jpg (233037 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909776464986900_4049\\dl_5565051026_1769909776464986900_4049.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909776464986900_4049.jpg', '-y'] +Thumb created: t_5565051026_1769909776464986900_4049.jpg (116959 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909772474472600_3205\\dl_5565051026_1769909772474472600_3205.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909772474472600_3205.jpg', '-y'] +Thumb created: t_5565051026_1769909772474472600_3205.jpg (124054 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909772386141900_2737\\dl_5565051026_1769909772386141900_2737.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909772386141900_2737.jpg', '-y'] +Thumb created: t_5565051026_1769909772386141900_2737.jpg (79650 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909772351828100_3607\\dl_5565051026_1769909772351828100_3607.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909772351828100_3607.jpg', '-y'] +Thumb created: t_5565051026_1769909772351828100_3607.jpg (87197 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909776701118700_5046\\dl_5565051026_1769909776701118700_5046.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909776701118700_5046.jpg', '-y'] +Thumb created: t_5565051026_1769909776701118700_5046.jpg (110769 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909776681075700_1401\\dl_5565051026_1769909776681075700_1401.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909776681075700_1401.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782309391200_5049\\dl_5565051026_1769909782309391200_5049.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782309391200_5049.jpg', '-y'] +Thumb created: t_5565051026_1769909776681075700_1401.jpg (185747 bytes) +Thumb created: t_5565051026_1769909782309391200_5049.jpg (167847 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782329634000_7021\\dl_5565051026_1769909782329634000_7021.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782329634000_7021.jpg', '-y'] +Thumb created: t_5565051026_1769909782329634000_7021.jpg (108418 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909765198070400_4968\\dl_5565051026_1769909765198070400_4968.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909765198070400_4968.jpg', '-y'] +Thumb created: t_5565051026_1769909765198070400_4968.jpg (209628 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787107974500_5647\\dl_5565051026_1769909787107974500_5647.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787107974500_5647.jpg', '-y'] +Thumb created: t_5565051026_1769909787107974500_5647.jpg (122719 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782293201700_5505\\dl_5565051026_1769909782293201700_5505.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782293201700_5505.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782296436100_5616\\dl_5565051026_1769909782296436100_5616.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782296436100_5616.jpg', '-y'] +Thumb created: t_5565051026_1769909782293201700_5505.jpg (140932 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787722981900_3998\\dl_5565051026_1769909787722981900_3998.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787722981900_3998.jpg', '-y'] +Thumb created: t_5565051026_1769909782296436100_5616.jpg (102383 bytes) +Thumb created: t_5565051026_1769909787722981900_3998.jpg (91682 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909809385571300_4027\\dl_5565051026_1769909809385571300_4027.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909809385571300_4027.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802385813000_6750\\dl_5565051026_1769909802385813000_6750.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802385813000_6750.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802388910400_3754\\dl_5565051026_1769909802388910400_3754.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802388910400_3754.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909789849687600_9422\\dl_5565051026_1769909789849687600_9422.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909789849687600_9422.jpg', '-y'] +Thumb created: t_5565051026_1769909809385571300_4027.jpg (61113 bytes) +Thumb created: t_5565051026_1769909802388910400_3754.jpg (114915 bytes) +Thumb created: t_5565051026_1769909802385813000_6750.jpg (113584 bytes) +Thumb created: t_5565051026_1769909789849687600_9422.jpg (234328 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909789845790200_6075\\dl_5565051026_1769909789845790200_6075.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909789845790200_6075.jpg', '-y'] +Thumb created: t_5565051026_1769909789845790200_6075.jpg (88838 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909807333360100_7433\\dl_5565051026_1769909807333360100_7433.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909807333360100_7433.jpg', '-y'] +Thumb created: t_5565051026_1769909807333360100_7433.jpg (130706 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782293201700_3395\\dl_5565051026_1769909782293201700_3395.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782293201700_3395.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782298849500_7195\\dl_5565051026_1769909782298849500_7195.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782298849500_7195.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909788389576700_2315\\dl_5565051026_1769909788389576700_2315.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909788389576700_2315.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802386398000_6409\\dl_5565051026_1769909802386398000_6409.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802386398000_6409.jpg', '-y'] +Thumb created: t_5565051026_1769909782293201700_3395.jpg (93004 bytes) +Thumb created: t_5565051026_1769909782298849500_7195.jpg (75683 bytes) +Thumb created: t_5565051026_1769909788389576700_2315.jpg (137263 bytes) +Thumb created: t_5565051026_1769909802386398000_6409.jpg (143598 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787124527200_7035\\dl_5565051026_1769909787124527200_7035.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787124527200_7035.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787115529200_9652\\dl_5565051026_1769909787115529200_9652.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787115529200_9652.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909814185696800_2367\\dl_5565051026_1769909814185696800_2367.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909814185696800_2367.jpg', '-y'] +Thumb created: t_5565051026_1769909787124527200_7035.jpg (285709 bytes) +Thumb created: t_5565051026_1769909787115529200_9652.jpg (298115 bytes) +Thumb created: t_5565051026_1769909814185696800_2367.jpg (293876 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909807367038800_1770\\dl_5565051026_1769909807367038800_1770.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909807367038800_1770.jpg', '-y'] +Thumb created: t_5565051026_1769909807367038800_1770.jpg (84623 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909813497980100_2489\\dl_5565051026_1769909813497980100_2489.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909813497980100_2489.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802086124200_9311\\dl_5565051026_1769909802086124200_9311.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802086124200_9311.jpg', '-y'] +Thumb created: t_5565051026_1769909813497980100_2489.jpg (123489 bytes) +Thumb created: t_5565051026_1769909802086124200_9311.jpg (111480 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787716250500_1623\\dl_5565051026_1769909787716250500_1623.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787716250500_1623.jpg', '-y'] +Thumb created: t_5565051026_1769909787716250500_1623.jpg (100542 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787125528000_9111\\dl_5565051026_1769909787125528000_9111.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787125528000_9111.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909789846735400_8304\\dl_5565051026_1769909789846735400_8304.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909789846735400_8304.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802342784100_7808\\dl_5565051026_1769909802342784100_7808.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802342784100_7808.jpg', '-y'] +Thumb created: t_5565051026_1769909787125528000_9111.jpg (92904 bytes) +Thumb created: t_5565051026_1769909789846735400_8304.jpg (115078 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802378814800_8015\\dl_5565051026_1769909802378814800_8015.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802378814800_8015.jpg', '-y'] +Thumb created: t_5565051026_1769909802342784100_7808.jpg (92678 bytes) +Thumb created: t_5565051026_1769909802378814800_8015.jpg (97771 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909809223818300_5237\\dl_5565051026_1769909809223818300_5237.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909809223818300_5237.jpg', '-y'] +Thumb created: t_5565051026_1769909809223818300_5237.jpg (161914 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909818544295400_2001\\dl_5565051026_1769909818544295400_2001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909818544295400_2001.jpg', '-y'] +Thumb created: t_5565051026_1769909818544295400_2001.jpg (157792 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909787125528000_9556\\dl_5565051026_1769909787125528000_9556.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909787125528000_9556.jpg', '-y'] +Thumb created: t_5565051026_1769909787125528000_9556.jpg (88497 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802340512600_4002\\dl_5565051026_1769909802340512600_4002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802340512600_4002.jpg', '-y'] +Thumb created: t_5565051026_1769909802340512600_4002.jpg (207578 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909809392719900_9461\\dl_5565051026_1769909809392719900_9461.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909809392719900_9461.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909802345882600_1440\\dl_5565051026_1769909802345882600_1440.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909802345882600_1440.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909809229477300_9217\\dl_5565051026_1769909809229477300_9217.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909809229477300_9217.jpg', '-y'] +Thumb created: t_5565051026_1769909802345882600_1440.jpg (103756 bytes) +Thumb created: t_5565051026_1769909809392719900_9461.jpg (82906 bytes) +Thumb created: t_5565051026_1769909809229477300_9217.jpg (96093 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909813456373300_6625\\dl_5565051026_1769909813456373300_6625.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909813456373300_6625.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909818845429200_5880\\dl_5565051026_1769909818845429200_5880.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909818845429200_5880.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909809237928700_4186\\dl_5565051026_1769909809237928700_4186.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909809237928700_4186.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909782305156800_4920\\dl_5565051026_1769909782305156800_4920.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909782305156800_4920.jpg', '-y'] +Thumb created: t_5565051026_1769909813456373300_6625.jpg (78408 bytes) +Thumb created: t_5565051026_1769909818845429200_5880.jpg (101654 bytes) +Thumb created: t_5565051026_1769909809237928700_4186.jpg (72214 bytes) +Thumb created: t_5565051026_1769909782305156800_4920.jpg (97766 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909824126178800_8352\\dl_5565051026_1769909824126178800_8352.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909824126178800_8352.jpg', '-y'] +Thumb created: t_5565051026_1769909824126178800_8352.jpg (84438 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909822078339700_7718\\dl_5565051026_1769909822078339700_7718.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909822078339700_7718.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909824696133800_6751\\dl_5565051026_1769909824696133800_6751.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909824696133800_6751.jpg', '-y'] +Thumb created: t_5565051026_1769909822078339700_7718.jpg (86898 bytes) +Thumb created: t_5565051026_1769909824696133800_6751.jpg (245212 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909832317247800_1302\\dl_5565051026_1769909832317247800_1302.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909832317247800_1302.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909822080585900_3934\\dl_5565051026_1769909822080585900_3934.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909822080585900_3934.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909837264639200_1351\\dl_5565051026_1769909837264639200_1351.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909837264639200_1351.jpg', '-y'] +Thumb created: t_5565051026_1769909832317247800_1302.jpg (132887 bytes) +Thumb created: t_5565051026_1769909837264639200_1351.jpg (97266 bytes) +Thumb created: t_5565051026_1769909822080585900_3934.jpg (267501 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909837914804100_1821\\dl_5565051026_1769909837914804100_1821.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909837914804100_1821.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909810201771300_5096\\dl_5565051026_1769909810201771300_5096.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909810201771300_5096.jpg', '-y'] +Thumb created: t_5565051026_1769909837914804100_1821.jpg (103831 bytes) +Thumb created: t_5565051026_1769909810201771300_5096.jpg (205148 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909837841217000_2730\\dl_5565051026_1769909837841217000_2730.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909837841217000_2730.jpg', '-y'] +Thumb created: t_5565051026_1769909837841217000_2730.jpg (176260 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909847850223700_7085\\dl_5565051026_1769909847850223700_7085.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909847850223700_7085.jpg', '-y'] +Thumb created: t_5565051026_1769909847850223700_7085.jpg (81947 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909837660590200_8083\\dl_5565051026_1769909837660590200_8083.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909837660590200_8083.jpg', '-y'] +Thumb created: t_5565051026_1769909837660590200_8083.jpg (99802 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909847904222800_2001\\dl_5565051026_1769909847904222800_2001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909847904222800_2001.jpg', '-y'] +Thumb created: t_5565051026_1769909847904222800_2001.jpg (100373 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909812997172700_1610\\dl_5565051026_1769909812997172700_1610.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909812997172700_1610.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909849586223200_9193\\dl_5565051026_1769909849586223200_9193.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909849586223200_9193.jpg', '-y'] +Thumb created: t_5565051026_1769909812997172700_1610.jpg (179062 bytes) +Thumb created: t_5565051026_1769909849586223200_9193.jpg (83295 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769909857863361600_5708\\dl_5565051026_1769909857863361600_5708.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769909857863361600_5708.jpg', '-y'] +Thumb created: t_5565051026_1769909857863361600_5708.jpg (77701 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769910299463347600_3971\\dl_5565051026_1769910299463347600_3971.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769910299463347600_3971.jpg', '-y'] +Thumb created: t_5565051026_1769910299463347600_3971.jpg (104823 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769910298911202400_7553\\dl_5565051026_1769910298911202400_7553.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769910298911202400_7553.jpg', '-y'] +Thumb created: t_5565051026_1769910298911202400_7553.jpg (212791 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911191065909000_5616\\dl_5565051026_1769911191065909000_5616.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911191065909000_5616.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911189731264200_2792\\dl_5565051026_1769911189731264200_2792.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911189731264200_2792.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911192018212300_7787\\dl_5565051026_1769911192018212300_7787.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911192018212300_7787.jpg', '-y'] +Thumb created: t_5565051026_1769911191065909000_5616.jpg (100170 bytes) +Thumb created: t_5565051026_1769911189731264200_2792.jpg (119135 bytes) +Thumb created: t_5565051026_1769911192018212300_7787.jpg (216381 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911185122754000_8095\\dl_5565051026_1769911185122754000_8095.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911185122754000_8095.jpg', '-y'] +Thumb created: t_5565051026_1769911185122754000_8095.jpg (163439 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911196581044100_1872\\dl_5565051026_1769911196581044100_1872.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911196581044100_1872.jpg', '-y'] +Thumb created: t_5565051026_1769911196581044100_1872.jpg (117123 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911197157260500_5610\\dl_5565051026_1769911197157260500_5610.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911197157260500_5610.jpg', '-y'] +Thumb created: t_5565051026_1769911197157260500_5610.jpg (106743 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911205388364400_6044\\dl_5565051026_1769911205388364400_6044.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911205388364400_6044.jpg', '-y'] +Thumb created: t_5565051026_1769911205388364400_6044.jpg (101826 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911208562522700_8452\\dl_5565051026_1769911208562522700_8452.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911208562522700_8452.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911213872033900_7112\\dl_5565051026_1769911213872033900_7112.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911213872033900_7112.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911201576436600_5767\\dl_5565051026_1769911201576436600_5767.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911201576436600_5767.jpg', '-y'] +Thumb created: t_5565051026_1769911201576436600_5767.jpg (91961 bytes) +Thumb created: t_5565051026_1769911213872033900_7112.jpg (112244 bytes) +Thumb created: t_5565051026_1769911208562522700_8452.jpg (163300 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911215290790900_8273\\dl_5565051026_1769911215290790900_8273.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911215290790900_8273.jpg', '-y'] +Thumb created: t_5565051026_1769911215290790900_8273.jpg (88412 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911219277806900_1627\\dl_5565051026_1769911219277806900_1627.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911219277806900_1627.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911214002382000_1842\\dl_5565051026_1769911214002382000_1842.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911214002382000_1842.jpg', '-y'] +Thumb created: t_5565051026_1769911219277806900_1627.jpg (62325 bytes) +Thumb created: t_5565051026_1769911214002382000_1842.jpg (112469 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911249602723700_2475\\dl_5565051026_1769911249602723700_2475.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911249602723700_2475.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911257488074300_4574\\dl_5565051026_1769911257488074300_4574.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911257488074300_4574.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911250400813800_8855\\dl_5565051026_1769911250400813800_8855.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911250400813800_8855.jpg', '-y'] +Thumb created: t_5565051026_1769911249602723700_2475.jpg (51909 bytes) +Thumb created: t_5565051026_1769911257488074300_4574.jpg (96460 bytes) +Thumb created: t_5565051026_1769911250400813800_8855.jpg (243309 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911249533652900_6671\\dl_5565051026_1769911249533652900_6671.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911249533652900_6671.jpg', '-y'] +Thumb created: t_5565051026_1769911249533652900_6671.jpg (98059 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911249550989600_2610\\dl_5565051026_1769911249550989600_2610.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911249550989600_2610.jpg', '-y'] +Thumb created: t_5565051026_1769911249550989600_2610.jpg (214651 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769911310693365800_3891\\dl_5565051026_1769911310693365800_3891.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769911310693365800_3891.jpg', '-y'] +Thumb created: t_5565051026_1769911310693365800_3891.jpg (124054 bytes) +Raw Meta: w=716, h=750, sar=2875:2864 +Corrected w=718 +Final Meta: w=718, h=750 +Thumb Cmd 1 (00:00:41.250): ['ffmpeg', '-ss', '00:00:41.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769912158365110600_5349\\dl_5565051026_1769912158365110600_5349.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769912158365110600_5349.jpg', '-y'] +Thumb created: t_5565051026_1769912158365110600_5349.jpg (121558 bytes) +Raw Meta: w=716, h=750, sar=2875:2864 +Corrected w=718 +Final Meta: w=718, h=750 +Thumb Cmd 1 (00:00:49.950): ['ffmpeg', '-ss', '00:00:49.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913739014763200_2084\\dl_5565051026_1769913739014763200_2084.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913739014763200_2084.jpg', '-y'] +Thumb created: t_5565051026_1769913739014763200_2084.jpg (165816 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913798820361600_6281\\dl_5565051026_1769913798820361600_6281.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913798820361600_6281.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913798535628100_2129\\dl_5565051026_1769913798535628100_2129.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913798535628100_2129.jpg', '-y'] +Thumb created: t_5565051026_1769913798535628100_2129.jpg (189338 bytes) +Thumb created: t_5565051026_1769913798820361600_6281.jpg (208947 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913799408845500_7873\\dl_5565051026_1769913799408845500_7873.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913799408845500_7873.jpg', '-y'] +Thumb created: t_5565051026_1769913799408845500_7873.jpg (114926 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913800739625000_9704\\dl_5565051026_1769913800739625000_9704.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913800739625000_9704.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913802091035500_7818\\dl_5565051026_1769913802091035500_7818.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913802091035500_7818.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913802840122600_7275\\dl_5565051026_1769913802840122600_7275.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913802840122600_7275.jpg', '-y'] +Thumb created: t_5565051026_1769913800739625000_9704.jpg (98782 bytes) +Thumb created: t_5565051026_1769913802840122600_7275.jpg (128841 bytes) +Thumb created: t_5565051026_1769913802091035500_7818.jpg (104620 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913804226851100_7101\\dl_5565051026_1769913804226851100_7101.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913804226851100_7101.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:01.500): ['ffmpeg', '-ss', '00:00:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913811760457600_8868\\dl_5565051026_1769913811760457600_8868.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913811760457600_8868.jpg', '-y'] +Thumb created: t_5565051026_1769913804226851100_7101.jpg (122188 bytes) +Thumb created: t_5565051026_1769913811760457600_8868.jpg (134869 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913811776985200_8057\\dl_5565051026_1769913811776985200_8057.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913811776985200_8057.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913811715486900_7576\\dl_5565051026_1769913811715486900_7576.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913811715486900_7576.jpg', '-y'] +Thumb created: t_5565051026_1769913811776985200_8057.jpg (194461 bytes) +Thumb created: t_5565051026_1769913811715486900_7576.jpg (275241 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913815230768800_4129\\dl_5565051026_1769913815230768800_4129.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913815230768800_4129.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913815215068700_8668\\dl_5565051026_1769913815215068700_8668.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913815215068700_8668.jpg', '-y'] +Thumb created: t_5565051026_1769913815230768800_4129.jpg (112991 bytes) +Thumb created: t_5565051026_1769913815215068700_8668.jpg (73281 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913818975856000_3032\\dl_5565051026_1769913818975856000_3032.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913818975856000_3032.jpg', '-y'] +Thumb created: t_5565051026_1769913818975856000_3032.jpg (120600 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913823518133500_1405\\dl_5565051026_1769913823518133500_1405.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913823518133500_1405.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913827204932300_3825\\dl_5565051026_1769913827204932300_3825.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913827204932300_3825.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913825356755900_3421\\dl_5565051026_1769913825356755900_3421.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913825356755900_3421.jpg', '-y'] +Thumb created: t_5565051026_1769913825356755900_3421.jpg (85537 bytes) +Thumb created: t_5565051026_1769913827204932300_3825.jpg (137199 bytes) +Thumb created: t_5565051026_1769913823518133500_1405.jpg (96357 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913830417517100_9594\\dl_5565051026_1769913830417517100_9594.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913830417517100_9594.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913830420761900_9398\\dl_5565051026_1769913830420761900_9398.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913830420761900_9398.jpg', '-y'] +Thumb created: t_5565051026_1769913830420761900_9398.jpg (76524 bytes) +Thumb created: t_5565051026_1769913830417517100_9594.jpg (82037 bytes) +Raw Meta: w=540, h=964, sar=1:1 +Final Meta: w=540, h=964 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913832896699800_7954\\dl_5565051026_1769913832896699800_7954.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913832896699800_7954.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913833316000100_8501\\dl_5565051026_1769913833316000100_8501.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913833316000100_8501.jpg', '-y'] +Thumb created: t_5565051026_1769913832896699800_7954.jpg (65830 bytes) +Thumb created: t_5565051026_1769913833316000100_8501.jpg (58527 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913838482255700_6082\\dl_5565051026_1769913838482255700_6082.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913838482255700_6082.jpg', '-y'] +Thumb created: t_5565051026_1769913838482255700_6082.jpg (112905 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913840770714700_1947\\dl_5565051026_1769913840770714700_1947.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913840770714700_1947.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913840375784000_2539\\dl_5565051026_1769913840375784000_2539.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913840375784000_2539.jpg', '-y'] +Thumb created: t_5565051026_1769913840770714700_1947.jpg (60245 bytes) +Thumb created: t_5565051026_1769913840375784000_2539.jpg (306228 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913845727201700_3302\\dl_5565051026_1769913845727201700_3302.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913845727201700_3302.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913845666491200_4796\\dl_5565051026_1769913845666491200_4796.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913845666491200_4796.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913847418703900_9222\\dl_5565051026_1769913847418703900_9222.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913847418703900_9222.jpg', '-y'] +Thumb created: t_5565051026_1769913845727201700_3302.jpg (139315 bytes) +Thumb created: t_5565051026_1769913845666491200_4796.jpg (256315 bytes) +Thumb created: t_5565051026_1769913847418703900_9222.jpg (58176 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:01.500): ['ffmpeg', '-ss', '00:00:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913852802659500_2999\\dl_5565051026_1769913852802659500_2999.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913852802659500_2999.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913852761690600_1360\\dl_5565051026_1769913852761690600_1360.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913852761690600_1360.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913854939621800_4821\\dl_5565051026_1769913854939621800_4821.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913854939621800_4821.jpg', '-y'] +Raw Meta: w=576, h=1028, sar=1:1 +Final Meta: w=576, h=1028 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913855103754000_6877\\dl_5565051026_1769913855103754000_6877.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913855103754000_6877.jpg', '-y'] +Thumb created: t_5565051026_1769913852761690600_1360.jpg (116160 bytes) +Thumb created: t_5565051026_1769913852802659500_2999.jpg (134745 bytes) +Thumb created: t_5565051026_1769913854939621800_4821.jpg (107756 bytes) +Thumb created: t_5565051026_1769913855103754000_6877.jpg (101708 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913863310631700_5117\\dl_5565051026_1769913863310631700_5117.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913863310631700_5117.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913863328976400_6558\\dl_5565051026_1769913863328976400_6558.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913863328976400_6558.jpg', '-y'] +Thumb created: t_5565051026_1769913863328976400_6558.jpg (109182 bytes) +Thumb created: t_5565051026_1769913863310631700_5117.jpg (147870 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913863354854400_9482\\dl_5565051026_1769913863354854400_9482.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913863354854400_9482.jpg', '-y'] +Thumb created: t_5565051026_1769913863354854400_9482.jpg (151527 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913869074225800_1019\\dl_5565051026_1769913869074225800_1019.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913869074225800_1019.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913869750803600_2760\\dl_5565051026_1769913869750803600_2760.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913869750803600_2760.jpg', '-y'] +Thumb created: t_5565051026_1769913869074225800_1019.jpg (104118 bytes) +Thumb created: t_5565051026_1769913869750803600_2760.jpg (110593 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913870926205300_8953\\dl_5565051026_1769913870926205300_8953.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913870926205300_8953.jpg', '-y'] +Thumb created: t_5565051026_1769913870926205300_8953.jpg (122777 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913873363862700_4308\\dl_5565051026_1769913873363862700_4308.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913873363862700_4308.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913875112891400_9425\\dl_5565051026_1769913875112891400_9425.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913875112891400_9425.jpg', '-y'] +Thumb created: t_5565051026_1769913873363862700_4308.jpg (214651 bytes) +Thumb created: t_5565051026_1769913875112891400_9425.jpg (113397 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913887578227900_8963\\dl_5565051026_1769913887578227900_8963.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913887578227900_8963.jpg', '-y'] +Thumb created: t_5565051026_1769913887578227900_8963.jpg (122391 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913887572224900_9906\\dl_5565051026_1769913887572224900_9906.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913887572224900_9906.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913889003429500_6255\\dl_5565051026_1769913889003429500_6255.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913889003429500_6255.jpg', '-y'] +Thumb created: t_5565051026_1769913887572224900_9906.jpg (281671 bytes) +Thumb created: t_5565051026_1769913889003429500_6255.jpg (182480 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913891433088100_4635\\dl_5565051026_1769913891433088100_4635.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913891433088100_4635.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913891299835900_3216\\dl_5565051026_1769913891299835900_3216.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913891299835900_3216.jpg', '-y'] +Thumb created: t_5565051026_1769913891433088100_4635.jpg (106493 bytes) +Thumb created: t_5565051026_1769913891299835900_3216.jpg (181860 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913899294957100_7566\\dl_5565051026_1769913899294957100_7566.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913899294957100_7566.jpg', '-y'] +Thumb created: t_5565051026_1769913899294957100_7566.jpg (62325 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913902933837500_6794\\dl_5565051026_1769913902933837500_6794.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913902933837500_6794.jpg', '-y'] +Thumb created: t_5565051026_1769913902933837500_6794.jpg (119511 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913917261450100_9307\\dl_5565051026_1769913917261450100_9307.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913917261450100_9307.jpg', '-y'] +Thumb created: t_5565051026_1769913917261450100_9307.jpg (114174 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913916794344700_8246\\dl_5565051026_1769913916794344700_8246.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913916794344700_8246.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913918834610100_9819\\dl_5565051026_1769913918834610100_9819.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913918834610100_9819.jpg', '-y'] +Thumb created: t_5565051026_1769913916794344700_8246.jpg (251519 bytes) +Thumb created: t_5565051026_1769913918834610100_9819.jpg (89741 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913919921290400_4287\\dl_5565051026_1769913919921290400_4287.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913919921290400_4287.jpg', '-y'] +Thumb created: t_5565051026_1769913919921290400_4287.jpg (157228 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913924491368300_4836\\dl_5565051026_1769913924491368300_4836.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913924491368300_4836.jpg', '-y'] +Thumb created: t_5565051026_1769913924491368300_4836.jpg (109731 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913926225206900_5326\\dl_5565051026_1769913926225206900_5326.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913926225206900_5326.jpg', '-y'] +Thumb created: t_5565051026_1769913926225206900_5326.jpg (220133 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913933909926400_3049\\dl_5565051026_1769913933909926400_3049.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913933909926400_3049.jpg', '-y'] +Thumb created: t_5565051026_1769913933909926400_3049.jpg (115716 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913939030767700_6601\\dl_5565051026_1769913939030767700_6601.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913939030767700_6601.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913939007513500_2892\\dl_5565051026_1769913939007513500_2892.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913939007513500_2892.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913941427929600_3111\\dl_5565051026_1769913941427929600_3111.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913941427929600_3111.jpg', '-y'] +Thumb created: t_5565051026_1769913939030767700_6601.jpg (75576 bytes) +Thumb created: t_5565051026_1769913939007513500_2892.jpg (238322 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913943163848300_1396\\dl_5565051026_1769913943163848300_1396.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913943163848300_1396.jpg', '-y'] +Thumb created: t_5565051026_1769913941427929600_3111.jpg (70321 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913943066109500_2601\\dl_5565051026_1769913943066109500_2601.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913943066109500_2601.jpg', '-y'] +Thumb created: t_5565051026_1769913943163848300_1396.jpg (102453 bytes) +Thumb created: t_5565051026_1769913943066109500_2601.jpg (122855 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913945011001800_7142\\dl_5565051026_1769913945011001800_7142.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913945011001800_7142.jpg', '-y'] +Thumb created: t_5565051026_1769913945011001800_7142.jpg (84575 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913949048093800_8736\\dl_5565051026_1769913949048093800_8736.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913949048093800_8736.jpg', '-y'] +Thumb created: t_5565051026_1769913949048093800_8736.jpg (108759 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913954242216600_2937\\dl_5565051026_1769913954242216600_2937.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913954242216600_2937.jpg', '-y'] +Thumb created: t_5565051026_1769913954242216600_2937.jpg (78135 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913958142251500_1190\\dl_5565051026_1769913958142251500_1190.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913958142251500_1190.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913956376257800_4380\\dl_5565051026_1769913956376257800_4380.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913956376257800_4380.jpg', '-y'] +Thumb created: t_5565051026_1769913958142251500_1190.jpg (176263 bytes) +Thumb created: t_5565051026_1769913956376257800_4380.jpg (139679 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913960226141800_3311\\dl_5565051026_1769913960226141800_3311.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913960226141800_3311.jpg', '-y'] +Thumb created: t_5565051026_1769913960226141800_3311.jpg (96460 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913961527048800_9782\\dl_5565051026_1769913961527048800_9782.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913961527048800_9782.jpg', '-y'] +Thumb created: t_5565051026_1769913961527048800_9782.jpg (248091 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913969694489800_2564\\dl_5565051026_1769913969694489800_2564.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913969694489800_2564.jpg', '-y'] +Thumb created: t_5565051026_1769913969694489800_2564.jpg (71733 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913971784516800_3724\\dl_5565051026_1769913971784516800_3724.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913971784516800_3724.jpg', '-y'] +Thumb created: t_5565051026_1769913971784516800_3724.jpg (78303 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913973003998000_6777\\dl_5565051026_1769913973003998000_6777.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913973003998000_6777.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913974489128800_5197\\dl_5565051026_1769913974489128800_5197.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913974489128800_5197.jpg', '-y'] +Thumb created: t_5565051026_1769913973003998000_6777.jpg (106477 bytes) +Thumb created: t_5565051026_1769913974489128800_5197.jpg (106051 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913976290692800_5853\\dl_5565051026_1769913976290692800_5853.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913976290692800_5853.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913979471418000_6497\\dl_5565051026_1769913979471418000_6497.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913979471418000_6497.jpg', '-y'] +Thumb created: t_5565051026_1769913979471418000_6497.jpg (191184 bytes) +Thumb created: t_5565051026_1769913976290692800_5853.jpg (138642 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913981014452600_7112\\dl_5565051026_1769913981014452600_7112.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913981014452600_7112.jpg', '-y'] +Thumb created: t_5565051026_1769913981014452600_7112.jpg (92951 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913991132013000_8487\\dl_5565051026_1769913991132013000_8487.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913991132013000_8487.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913995345159400_8365\\dl_5565051026_1769913995345159400_8365.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913995345159400_8365.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913995220578900_5602\\dl_5565051026_1769913995220578900_5602.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913995220578900_5602.jpg', '-y'] +Thumb created: t_5565051026_1769913991132013000_8487.jpg (190732 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913995308399100_7472\\dl_5565051026_1769913995308399100_7472.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913995308399100_7472.jpg', '-y'] +Thumb created: t_5565051026_1769913995345159400_8365.jpg (98196 bytes) +Thumb created: t_5565051026_1769913995220578900_5602.jpg (83128 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769913997850654000_2344\\dl_5565051026_1769913997850654000_2344.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769913997850654000_2344.jpg', '-y'] +Thumb created: t_5565051026_1769913995308399100_7472.jpg (83723 bytes) +Thumb created: t_5565051026_1769913997850654000_2344.jpg (96991 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914002692709300_4645\\dl_5565051026_1769914002692709300_4645.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914002692709300_4645.jpg', '-y'] +Thumb created: t_5565051026_1769914002692709300_4645.jpg (84519 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914009176785800_1777\\dl_5565051026_1769914009176785800_1777.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914009176785800_1777.jpg', '-y'] +Thumb created: t_5565051026_1769914009176785800_1777.jpg (88399 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914013095303100_3099\\dl_5565051026_1769914013095303100_3099.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914013095303100_3099.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914015612976400_6804\\dl_5565051026_1769914015612976400_6804.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914015612976400_6804.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914017974519000_3524\\dl_5565051026_1769914017974519000_3524.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914017974519000_3524.jpg', '-y'] +Thumb created: t_5565051026_1769914017974519000_3524.jpg (112146 bytes) +Thumb created: t_5565051026_1769914013095303100_3099.jpg (158815 bytes) +Thumb created: t_5565051026_1769914015612976400_6804.jpg (135242 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914017913772600_9577\\dl_5565051026_1769914017913772600_9577.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914017913772600_9577.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914019776426900_3029\\dl_5565051026_1769914019776426900_3029.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914019776426900_3029.jpg', '-y'] +Thumb created: t_5565051026_1769914017913772600_9577.jpg (75407 bytes) +Thumb created: t_5565051026_1769914019776426900_3029.jpg (116807 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914021408770200_1629\\dl_5565051026_1769914021408770200_1629.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914021408770200_1629.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914021310337600_9910\\dl_5565051026_1769914021310337600_9910.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914021310337600_9910.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914021767867200_3336\\dl_5565051026_1769914021767867200_3336.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914021767867200_3336.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914023382261900_1336\\dl_5565051026_1769914023382261900_1336.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914023382261900_1336.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914023628316000_6285\\dl_5565051026_1769914023628316000_6285.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914023628316000_6285.jpg', '-y'] +Thumb created: t_5565051026_1769914023628316000_6285.jpg (117593 bytes) +Thumb created: t_5565051026_1769914021767867200_3336.jpg (108068 bytes) +Thumb created: t_5565051026_1769914021310337600_9910.jpg (227582 bytes) +Thumb created: t_5565051026_1769914021408770200_1629.jpg (138636 bytes) +Thumb created: t_5565051026_1769914023382261900_1336.jpg (306525 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914029820384800_7395\\dl_5565051026_1769914029820384800_7395.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914029820384800_7395.jpg', '-y'] +Raw Meta: w=720, h=1278, sar=1:1 +Final Meta: w=720, h=1278 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914025588896400_6303\\dl_5565051026_1769914025588896400_6303.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914025588896400_6303.jpg', '-y'] +Thumb created: t_5565051026_1769914029820384800_7395.jpg (106011 bytes) +Thumb created: t_5565051026_1769914025588896400_6303.jpg (86201 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914032259883300_6234\\dl_5565051026_1769914032259883300_6234.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914032259883300_6234.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914029934608200_5011\\dl_5565051026_1769914029934608200_5011.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914029934608200_5011.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914033239508300_4009\\dl_5565051026_1769914033239508300_4009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914033239508300_4009.jpg', '-y'] +Thumb created: t_5565051026_1769914032259883300_6234.jpg (292229 bytes) +Thumb created: t_5565051026_1769914029934608200_5011.jpg (108764 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914034748653200_1941\\dl_5565051026_1769914034748653200_1941.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914034748653200_1941.jpg', '-y'] +Thumb created: t_5565051026_1769914033239508300_4009.jpg (108871 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914033775068400_4851\\dl_5565051026_1769914033775068400_4851.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914033775068400_4851.jpg', '-y'] +Thumb created: t_5565051026_1769914034748653200_1941.jpg (112425 bytes) +Thumb created: t_5565051026_1769914033775068400_4851.jpg (211787 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914042783831200_8831\\dl_5565051026_1769914042783831200_8831.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914042783831200_8831.jpg', '-y'] +Raw Meta: w=540, h=964, sar=1:1 +Final Meta: w=540, h=964 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914039944130900_1065\\dl_5565051026_1769914039944130900_1065.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914039944130900_1065.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914043342121200_7235\\dl_5565051026_1769914043342121200_7235.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914043342121200_7235.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914042830760400_5740\\dl_5565051026_1769914042830760400_5740.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914042830760400_5740.jpg', '-y'] +Thumb created: t_5565051026_1769914039944130900_1065.jpg (76295 bytes) +Thumb created: t_5565051026_1769914042783831200_8831.jpg (114534 bytes) +Thumb created: t_5565051026_1769914042830760400_5740.jpg (118834 bytes) +Thumb created: t_5565051026_1769914043342121200_7235.jpg (96133 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914054637952600_6297\\dl_5565051026_1769914054637952600_6297.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914054637952600_6297.jpg', '-y'] +Raw Meta: w=576, h=1024, sar=1:1 +Final Meta: w=576, h=1024 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914054639949300_8044\\dl_5565051026_1769914054639949300_8044.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914054639949300_8044.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914054636944700_9702\\dl_5565051026_1769914054636944700_9702.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914054636944700_9702.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914059444459900_6227\\dl_5565051026_1769914059444459900_6227.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914059444459900_6227.jpg', '-y'] +Thumb created: t_5565051026_1769914054636944700_9702.jpg (44260 bytes) +Thumb created: t_5565051026_1769914054637952600_6297.jpg (123700 bytes) +Thumb created: t_5565051026_1769914054639949300_8044.jpg (63879 bytes) +Thumb created: t_5565051026_1769914059444459900_6227.jpg (71992 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914059463497000_3163\\dl_5565051026_1769914059463497000_3163.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914059463497000_3163.jpg', '-y'] +Thumb created: t_5565051026_1769914059463497000_3163.jpg (93031 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914065464949000_1446\\dl_5565051026_1769914065464949000_1446.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914065464949000_1446.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914061987537300_6983\\dl_5565051026_1769914061987537300_6983.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914061987537300_6983.jpg', '-y'] +Thumb created: t_5565051026_1769914061987537300_6983.jpg (113662 bytes) +Thumb created: t_5565051026_1769914065464949000_1446.jpg (132827 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914067659547600_1487\\dl_5565051026_1769914067659547600_1487.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914067659547600_1487.jpg', '-y'] +Thumb created: t_5565051026_1769914067659547600_1487.jpg (104804 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914074275509800_3331\\dl_5565051026_1769914074275509800_3331.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914074275509800_3331.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914074460850800_4040\\dl_5565051026_1769914074460850800_4040.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914074460850800_4040.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914074399302000_9281\\dl_5565051026_1769914074399302000_9281.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914074399302000_9281.jpg', '-y'] +Thumb created: t_5565051026_1769914074275509800_3331.jpg (94817 bytes) +Thumb created: t_5565051026_1769914074460850800_4040.jpg (99963 bytes) +Thumb created: t_5565051026_1769914074399302000_9281.jpg (108737 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914077371929200_7769\\dl_5565051026_1769914077371929200_7769.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914077371929200_7769.jpg', '-y'] +Thumb created: t_5565051026_1769914077371929200_7769.jpg (73257 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914084702866300_2218\\dl_5565051026_1769914084702866300_2218.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914084702866300_2218.jpg', '-y'] +Thumb created: t_5565051026_1769914084702866300_2218.jpg (89502 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914087640332900_2608\\dl_5565051026_1769914087640332900_2608.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914087640332900_2608.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914090019862300_3183\\dl_5565051026_1769914090019862300_3183.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914090019862300_3183.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914090021866100_3853\\dl_5565051026_1769914090021866100_3853.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914090021866100_3853.jpg', '-y'] +Thumb created: t_5565051026_1769914087640332900_2608.jpg (74878 bytes) +Thumb created: t_5565051026_1769914090021866100_3853.jpg (115152 bytes) +Thumb created: t_5565051026_1769914090019862300_3183.jpg (154823 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914092826088800_7173\\dl_5565051026_1769914092826088800_7173.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914092826088800_7173.jpg', '-y'] +Thumb created: t_5565051026_1769914092826088800_7173.jpg (119523 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914097732867700_2524\\dl_5565051026_1769914097732867700_2524.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914097732867700_2524.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914099070405900_8019\\dl_5565051026_1769914099070405900_8019.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914099070405900_8019.jpg', '-y'] +Thumb created: t_5565051026_1769914097732867700_2524.jpg (98119 bytes) +Thumb created: t_5565051026_1769914099070405900_8019.jpg (130584 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914105639620400_3901\\dl_5565051026_1769914105639620400_3901.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914105639620400_3901.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914107902529000_9212\\dl_5565051026_1769914107902529000_9212.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914107902529000_9212.jpg', '-y'] +Thumb created: t_5565051026_1769914107902529000_9212.jpg (116626 bytes) +Thumb created: t_5565051026_1769914105639620400_3901.jpg (70763 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914110179096300_2970\\dl_5565051026_1769914110179096300_2970.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914110179096300_2970.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914110035700000_2074\\dl_5565051026_1769914110035700000_2074.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914110035700000_2074.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914110174816100_4253\\dl_5565051026_1769914110174816100_4253.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914110174816100_4253.jpg', '-y'] +Thumb created: t_5565051026_1769914110179096300_2970.jpg (104564 bytes) +Thumb created: t_5565051026_1769914110174816100_4253.jpg (127260 bytes) +Thumb created: t_5565051026_1769914110035700000_2074.jpg (97816 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914115221384300_1472\\dl_5565051026_1769914115221384300_1472.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914115221384300_1472.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914112535253900_1258\\dl_5565051026_1769914112535253900_1258.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914112535253900_1258.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914118106049100_3937\\dl_5565051026_1769914118106049100_3937.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914118106049100_3937.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914118011452500_9106\\dl_5565051026_1769914118011452500_9106.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914118011452500_9106.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914118045058500_7447\\dl_5565051026_1769914118045058500_7447.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914118045058500_7447.jpg', '-y'] +Thumb created: t_5565051026_1769914112535253900_1258.jpg (93290 bytes) +Thumb created: t_5565051026_1769914118106049100_3937.jpg (133381 bytes) +Thumb created: t_5565051026_1769914118011452500_9106.jpg (86742 bytes) +Thumb created: t_5565051026_1769914115221384300_1472.jpg (45881 bytes) +Thumb created: t_5565051026_1769914118045058500_7447.jpg (101186 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914124394588800_1932\\dl_5565051026_1769914124394588800_1932.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914124394588800_1932.jpg', '-y'] +Thumb created: t_5565051026_1769914124394588800_1932.jpg (120683 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914124396615300_3857\\dl_5565051026_1769914124396615300_3857.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914124396615300_3857.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914124977930400_6599\\dl_5565051026_1769914124977930400_6599.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914124977930400_6599.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914126215426200_5141\\dl_5565051026_1769914126215426200_5141.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914126215426200_5141.jpg', '-y'] +Thumb created: t_5565051026_1769914124396615300_3857.jpg (75141 bytes) +Thumb created: t_5565051026_1769914124977930400_6599.jpg (104657 bytes) +Thumb created: t_5565051026_1769914126215426200_5141.jpg (215967 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914130900191200_5772\\dl_5565051026_1769914130900191200_5772.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914130900191200_5772.jpg', '-y'] +Thumb created: t_5565051026_1769914130900191200_5772.jpg (90561 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:01.500): ['ffmpeg', '-ss', '00:00:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914135213832700_1161\\dl_5565051026_1769914135213832700_1161.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914135213832700_1161.jpg', '-y'] +Thumb created: t_5565051026_1769914135213832700_1161.jpg (198768 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914140325933200_1383\\dl_5565051026_1769914140325933200_1383.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914140325933200_1383.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914141246712100_9093\\dl_5565051026_1769914141246712100_9093.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914141246712100_9093.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914141244096100_1737\\dl_5565051026_1769914141244096100_1737.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914141244096100_1737.jpg', '-y'] +Thumb created: t_5565051026_1769914141246712100_9093.jpg (84623 bytes) +Thumb created: t_5565051026_1769914140325933200_1383.jpg (78085 bytes) +Thumb created: t_5565051026_1769914141244096100_1737.jpg (111118 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914144660644800_6287\\dl_5565051026_1769914144660644800_6287.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914144660644800_6287.jpg', '-y'] +Thumb created: t_5565051026_1769914144660644800_6287.jpg (135278 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914146513155900_2053\\dl_5565051026_1769914146513155900_2053.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914146513155900_2053.jpg', '-y'] +Thumb created: t_5565051026_1769914146513155900_2053.jpg (95264 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914152280008100_4418\\dl_5565051026_1769914152280008100_4418.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914152280008100_4418.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914151815683200_5901\\dl_5565051026_1769914151815683200_5901.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914151815683200_5901.jpg', '-y'] +Thumb created: t_5565051026_1769914152280008100_4418.jpg (70044 bytes) +Thumb created: t_5565051026_1769914151815683200_5901.jpg (123160 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914157190935600_2261\\dl_5565051026_1769914157190935600_2261.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914157190935600_2261.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914154842121400_2290\\dl_5565051026_1769914154842121400_2290.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914154842121400_2290.jpg', '-y'] +Thumb created: t_5565051026_1769914157190935600_2261.jpg (51909 bytes) +Thumb created: t_5565051026_1769914154842121400_2290.jpg (99373 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914164373016500_1275\\dl_5565051026_1769914164373016500_1275.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914164373016500_1275.jpg', '-y'] +Thumb created: t_5565051026_1769914164373016500_1275.jpg (95331 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914166944066800_8070\\dl_5565051026_1769914166944066800_8070.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914166944066800_8070.jpg', '-y'] +Thumb created: t_5565051026_1769914166944066800_8070.jpg (106835 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914170879329400_1899\\dl_5565051026_1769914170879329400_1899.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914170879329400_1899.jpg', '-y'] +Thumb created: t_5565051026_1769914170879329400_1899.jpg (118403 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914173101077400_1856\\dl_5565051026_1769914173101077400_1856.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914173101077400_1856.jpg', '-y'] +Thumb created: t_5565051026_1769914173101077400_1856.jpg (243309 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914173131126700_5156\\dl_5565051026_1769914173131126700_5156.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914173131126700_5156.jpg', '-y'] +Thumb created: t_5565051026_1769914173131126700_5156.jpg (290621 bytes) +Raw Meta: w=720, h=1258, sar=1887:1888 +Corrected w=719 +Final Meta: w=719, h=1258 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914181502142200_5414\\dl_5565051026_1769914181502142200_5414.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914181502142200_5414.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914183788511100_3228\\dl_5565051026_1769914183788511100_3228.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914183788511100_3228.jpg', '-y'] +Thumb created: t_5565051026_1769914181502142200_5414.jpg (79245 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914183806331900_6781\\dl_5565051026_1769914183806331900_6781.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914183806331900_6781.jpg', '-y'] +Thumb created: t_5565051026_1769914183788511100_3228.jpg (123963 bytes) +Thumb created: t_5565051026_1769914183806331900_6781.jpg (111403 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914186851498300_8906\\dl_5565051026_1769914186851498300_8906.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914186851498300_8906.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914188917971800_5886\\dl_5565051026_1769914188917971800_5886.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914188917971800_5886.jpg', '-y'] +Thumb created: t_5565051026_1769914186851498300_8906.jpg (110161 bytes) +Thumb created: t_5565051026_1769914188917971800_5886.jpg (120553 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914197543041600_7726\\dl_5565051026_1769914197543041600_7726.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914197543041600_7726.jpg', '-y'] +Thumb created: t_5565051026_1769914197543041600_7726.jpg (103324 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914204365582900_2148\\dl_5565051026_1769914204365582900_2148.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914204365582900_2148.jpg', '-y'] +Thumb created: t_5565051026_1769914204365582900_2148.jpg (88008 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914206100381300_5021\\dl_5565051026_1769914206100381300_5021.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914206100381300_5021.jpg', '-y'] +Thumb created: t_5565051026_1769914206100381300_5021.jpg (205405 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914215351633100_4456\\dl_5565051026_1769914215351633100_4456.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914215351633100_4456.jpg', '-y'] +Thumb created: t_5565051026_1769914215351633100_4456.jpg (61577 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914225805150000_8869\\dl_5565051026_1769914225805150000_8869.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914225805150000_8869.jpg', '-y'] +Thumb created: t_5565051026_1769914225805150000_8869.jpg (84404 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914227319774700_5711\\dl_5565051026_1769914227319774700_5711.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914227319774700_5711.jpg', '-y'] +Thumb created: t_5565051026_1769914227319774700_5711.jpg (116838 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914229296549700_8292\\dl_5565051026_1769914229296549700_8292.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914229296549700_8292.jpg', '-y'] +Thumb created: t_5565051026_1769914229296549700_8292.jpg (88393 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914231363194900_2681\\dl_5565051026_1769914231363194900_2681.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914231363194900_2681.jpg', '-y'] +Thumb created: t_5565051026_1769914231363194900_2681.jpg (83818 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914233484280000_9829\\dl_5565051026_1769914233484280000_9829.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914233484280000_9829.jpg', '-y'] +Thumb created: t_5565051026_1769914233484280000_9829.jpg (83193 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914236890544700_1864\\dl_5565051026_1769914236890544700_1864.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914236890544700_1864.jpg', '-y'] +Thumb created: t_5565051026_1769914236890544700_1864.jpg (181656 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914239645034000_2958\\dl_5565051026_1769914239645034000_2958.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914239645034000_2958.jpg', '-y'] +Thumb created: t_5565051026_1769914239645034000_2958.jpg (235682 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914251395575100_4553\\dl_5565051026_1769914251395575100_4553.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914251395575100_4553.jpg', '-y'] +Thumb created: t_5565051026_1769914251395575100_4553.jpg (205605 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914256171247200_3110\\dl_5565051026_1769914256171247200_3110.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914256171247200_3110.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914256171961200_6703\\dl_5565051026_1769914256171961200_6703.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914256171961200_6703.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914257965505300_2951\\dl_5565051026_1769914257965505300_2951.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914257965505300_2951.jpg', '-y'] +Thumb created: t_5565051026_1769914256171247200_3110.jpg (91097 bytes) +Thumb created: t_5565051026_1769914256171961200_6703.jpg (120841 bytes) +Thumb created: t_5565051026_1769914257965505300_2951.jpg (100891 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914257478998100_3621\\dl_5565051026_1769914257478998100_3621.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914257478998100_3621.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914260986163500_4789\\dl_5565051026_1769914260986163500_4789.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914260986163500_4789.jpg', '-y'] +Thumb created: t_5565051026_1769914257478998100_3621.jpg (90903 bytes) +Thumb created: t_5565051026_1769914260986163500_4789.jpg (96780 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914261885682300_3441\\dl_5565051026_1769914261885682300_3441.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914261885682300_3441.jpg', '-y'] +Thumb created: t_5565051026_1769914261885682300_3441.jpg (121217 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914272365880100_4649\\dl_5565051026_1769914272365880100_4649.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914272365880100_4649.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914268633367000_2998\\dl_5565051026_1769914268633367000_2998.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914268633367000_2998.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914273224327900_9231\\dl_5565051026_1769914273224327900_9231.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914273224327900_9231.jpg', '-y'] +Thumb created: t_5565051026_1769914272365880100_4649.jpg (186366 bytes) +Thumb created: t_5565051026_1769914268633367000_2998.jpg (120126 bytes) +Thumb created: t_5565051026_1769914273224327900_9231.jpg (133532 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769914278907816700_8387\\dl_5565051026_1769914278907816700_8387.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769914278907816700_8387.jpg', '-y'] +Thumb created: t_5565051026_1769914278907816700_8387.jpg (49545 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:25.800): ['ffmpeg', '-ss', '00:02:25.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769966856090118300_3381_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769966856090118300_3381.jpg', '-y'] +Thumb created: t_5565051026_1769966856090118300_3381.jpg (170661 bytes) +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:00:10.800): ['ffmpeg', '-ss', '00:00:10.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769982316934078200_3320\\dl_5565051026_1769982316934078200_3320.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769982316934078200_3320.jpg', '-y'] +Thumb created: t_5565051026_1769982316934078200_3320.jpg (72168 bytes) +Raw Meta: w=3840, h=2160, sar=1:1 +Final Meta: w=3840, h=2160 +Thumb Cmd 1 (00:00:24.900): ['ffmpeg', '-ss', '00:00:24.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769982375685986200_3263\\dl_5565051026_1769982375685986200_3263.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769982375685986200_3263.jpg', '-y'] +Thumb created: t_5565051026_1769982375685986200_3263.jpg (128405 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:07:44.400): ['ffmpeg', '-ss', '00:07:44.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769983427804895300_2601\\dl_5565051026_1769983427804895300_2601.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769983427804895300_2601.jpg', '-y'] +Thumb created: t_5565051026_1769983427804895300_2601.jpg (183984 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:16:40.950): ['ffmpeg', '-ss', '00:16:40.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769983544650251000_6902_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769983544650251000_6902.jpg', '-y'] +Thumb created: t_5565051026_1769983544650251000_6902.jpg (78405 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:25.050): ['ffmpeg', '-ss', '00:03:25.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769983873053169200_3767\\dl_5565051026_1769983873053169200_3767.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769983873053169200_3767.jpg', '-y'] +Thumb created: t_5565051026_1769983873053169200_3767.jpg (95044 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:01.500): ['ffmpeg', '-ss', '00:01:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769983943146017100_1014\\dl_5565051026_1769983943146017100_1014.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769983943146017100_1014.jpg', '-y'] +Thumb created: t_5565051026_1769983943146017100_1014.jpg (124028 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:38.250): ['ffmpeg', '-ss', '00:00:38.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769984038299609300_6606\\dl_5565051026_1769984038299609300_6606.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984038299609300_6606.jpg', '-y'] +Thumb created: t_5565051026_1769984038299609300_6606.jpg (149498 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:34.500): ['ffmpeg', '-ss', '00:00:34.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769984078235468800_9482\\dl_5565051026_1769984078235468800_9482.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984078235468800_9482.jpg', '-y'] +Thumb created: t_5565051026_1769984078235468800_9482.jpg (151142 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:09.450): ['ffmpeg', '-ss', '00:01:09.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769984124482750200_1638_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984124482750200_1638.jpg', '-y'] +Thumb created: t_5565051026_1769984124482750200_1638.jpg (71267 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769984470850597300_8697\\dl_5565051026_1769984470850597300_8697.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984470850597300_8697.jpg', '-y'] +Thumb created: t_5565051026_1769984470850597300_8697.jpg (129928 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:17:37.350): ['ffmpeg', '-ss', '00:17:37.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769984731693718100_4371.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984731693718100_4371.jpg', '-y'] +Thumb created: t_5565051026_1769984731693718100_4371.jpg (54809 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:22:34.200): ['ffmpeg', '-ss', '00:22:34.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769984868368031100_2335_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769984868368031100_2335.jpg', '-y'] +Thumb created: t_5565051026_1769984868368031100_2335.jpg (85143 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769986024408196700_4276\\dl_5565051026_1769986024408196700_4276.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769986024408196700_4276.jpg', '-y'] +Thumb created: t_5565051026_1769986024408196700_4276.jpg (70840 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:04.050): ['ffmpeg', '-ss', '00:00:04.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769986138751364300_1062\\dl_5565051026_1769986138751364300_1062.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769986138751364300_1062.jpg', '-y'] +Thumb created: t_5565051026_1769986138751364300_1062.jpg (62863 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769986205619785700_6770\\dl_5565051026_1769986205619785700_6770.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769986205619785700_6770.jpg', '-y'] +Thumb created: t_5565051026_1769986205619785700_6770.jpg (72406 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988562559150100_5784\\dl_5565051026_1769988562559150100_5784.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988562559150100_5784.jpg', '-y'] +Thumb created: t_5565051026_1769988562559150100_5784.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988577448170800_5395\\dl_5565051026_1769988577448170800_5395.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988577448170800_5395.jpg', '-y'] +Thumb created: t_5565051026_1769988577448170800_5395.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988591345959600_8661\\dl_5565051026_1769988591345959600_8661.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988591345959600_8661.jpg', '-y'] +Thumb created: t_5565051026_1769988591345959600_8661.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988758028982500_9296\\dl_5565051026_1769988758028982500_9296.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988758028982500_9296.jpg', '-y'] +Thumb created: t_5565051026_1769988758028982500_9296.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988775501548900_6818\\dl_5565051026_1769988775501548900_6818.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988775501548900_6818.jpg', '-y'] +Thumb created: t_5565051026_1769988775501548900_6818.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988960838696300_3325\\dl_5565051026_1769988960838696300_3325.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988960838696300_3325.jpg', '-y'] +Thumb created: t_5565051026_1769988960838696300_3325.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769988971697583700_6911\\dl_5565051026_1769988971697583700_6911.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769988971697583700_6911.jpg', '-y'] +Thumb created: t_5565051026_1769988971697583700_6911.jpg (21184 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989080761940100_1887\\dl_5565051026_1769989080761940100_1887.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989080761940100_1887.jpg', '-y'] +Thumb created: t_5565051026_1769989080761940100_1887.jpg (21184 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989394677965000_9441\\dl_5565051026_1769989394677965000_9441.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989394677965000_9441.jpg', '-y'] +Thumb created: t_5565051026_1769989394677965000_9441.jpg (206386 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989415247972300_8584\\dl_5565051026_1769989415247972300_8584.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989415247972300_8584.jpg', '-y'] +Thumb created: t_5565051026_1769989415247972300_8584.jpg (206386 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989520629528300_7782\\dl_5565051026_1769989520629528300_7782.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989520629528300_7782.jpg', '-y'] +Thumb created: t_5565051026_1769989520629528300_7782.jpg (206386 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989522040941200_9565\\dl_5565051026_1769989522040941200_9565.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989522040941200_9565.jpg', '-y'] +Thumb created: t_5565051026_1769989522040941200_9565.jpg (206386 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989523556723000_1511\\dl_5565051026_1769989523556723000_1511.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989523556723000_1511.jpg', '-y'] +Thumb created: t_5565051026_1769989523556723000_1511.jpg (206386 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989525064539800_4486\\dl_5565051026_1769989525064539800_4486.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989525064539800_4486.jpg', '-y'] +Thumb created: t_5565051026_1769989525064539800_4486.jpg (206386 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989885638653500_1892\\dl_5565051026_1769989885638653500_1892.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989885638653500_1892.jpg', '-y'] +Thumb created: t_5565051026_1769989885638653500_1892.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989887146411900_9294\\dl_5565051026_1769989887146411900_9294.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989887146411900_9294.jpg', '-y'] +Thumb created: t_5565051026_1769989887146411900_9294.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989888654623400_5858\\dl_5565051026_1769989888654623400_5858.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989888654623400_5858.jpg', '-y'] +Thumb created: t_5565051026_1769989888654623400_5858.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989890166220000_8185\\dl_5565051026_1769989890166220000_8185.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989890166220000_8185.jpg', '-y'] +Thumb created: t_5565051026_1769989890166220000_8185.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989921059439000_2189\\dl_5565051026_1769989921059439000_2189.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989921059439000_2189.jpg', '-y'] +Thumb created: t_5565051026_1769989921059439000_2189.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989922560398300_1999\\dl_5565051026_1769989922560398300_1999.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989922560398300_1999.jpg', '-y'] +Thumb created: t_5565051026_1769989922560398300_1999.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989924061235000_2116\\dl_5565051026_1769989924061235000_2116.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989924061235000_2116.jpg', '-y'] +Thumb created: t_5565051026_1769989924061235000_2116.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769989925574254500_1161\\dl_5565051026_1769989925574254500_1161.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769989925574254500_1161.jpg', '-y'] +Thumb created: t_5565051026_1769989925574254500_1161.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990047324788400_2429\\dl_5565051026_1769990047324788400_2429.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990047324788400_2429.jpg', '-y'] +Thumb created: t_5565051026_1769990047324788400_2429.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990048843791000_3768\\dl_5565051026_1769990048843791000_3768.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990048843791000_3768.jpg', '-y'] +Thumb created: t_5565051026_1769990048843791000_3768.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990050338441300_8284\\dl_5565051026_1769990050338441300_8284.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990050338441300_8284.jpg', '-y'] +Thumb created: t_5565051026_1769990050338441300_8284.jpg (50026 bytes) +Raw Meta: w=816, h=720, sar=1:1 +Final Meta: w=816, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990051855188400_5337\\dl_5565051026_1769990051855188400_5337.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990051855188400_5337.jpg', '-y'] +Thumb created: t_5565051026_1769990051855188400_5337.jpg (50026 bytes) +Raw Meta: w=858, h=480, sar=1:1 +Final Meta: w=858, h=480 +Thumb Cmd 1 (00:00:21.000): ['ffmpeg', '-ss', '00:00:21.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769990215791773500_6076.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990215791773500_6076.jpg', '-y'] +Thumb created: t_5565051026_1769990215791773500_6076.jpg (33329 bytes) +Raw Meta: w=540, h=540, sar=1:1 +Final Meta: w=540, h=540 +Thumb Cmd 1 (00:00:09.000): ['ffmpeg', '-ss', '00:00:09.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769990218749646700_2620.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990218749646700_2620.jpg', '-y'] +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:00:20.850): ['ffmpeg', '-ss', '00:00:20.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769990217229895100_3357.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990217229895100_3357.jpg', '-y'] +Thumb created: t_5565051026_1769990218749646700_2620.jpg (18368 bytes) +Thumb created: t_5565051026_1769990217229895100_3357.jpg (29308 bytes) +Raw Meta: w=360, h=640, sar=1:1 +Final Meta: w=360, h=640 +Thumb Cmd 1 (00:00:20.850): ['ffmpeg', '-ss', '00:00:20.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1769990220249764700_6974.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990220249764700_6974.jpg', '-y'] +Thumb created: t_5565051026_1769990220249764700_6974.jpg (18731 bytes) +Raw Meta: w=1080, h=1080, sar=1:1 +Final Meta: w=1080, h=1080 +Thumb Cmd 1 (00:00:02.700): ['ffmpeg', '-ss', '00:00:02.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990260260477700_4402\\dl_5565051026_1769990260260477700_4402.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990260260477700_4402.jpg', '-y'] +Thumb created: t_5565051026_1769990260260477700_4402.jpg (139892 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990934434600400_3589\\dl_5565051026_1769990934434600400_3589.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990934434600400_3589.jpg', '-y'] +Thumb created: t_5565051026_1769990934434600400_3589.jpg (50353 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.300): ['ffmpeg', '-ss', '00:00:03.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990982735552300_5026\\dl_5565051026_1769990982735552300_5026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990982735552300_5026.jpg', '-y'] +Thumb created: t_5565051026_1769990982735552300_5026.jpg (54442 bytes) +Raw Meta: w=738, h=720, sar=1:1 +Final Meta: w=738, h=720 +Thumb Cmd 1 (00:00:21.000): ['ffmpeg', '-ss', '00:00:21.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990984235800600_2700\\dl_5565051026_1769990984235800600_2700.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990984235800600_2700.jpg', '-y'] +Thumb created: t_5565051026_1769990984235800600_2700.jpg (37128 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:13.500): ['ffmpeg', '-ss', '00:00:13.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990985744293200_5862\\dl_5565051026_1769990985744293200_5862.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990985744293200_5862.jpg', '-y'] +Thumb created: t_5565051026_1769990985744293200_5862.jpg (33547 bytes) +Raw Meta: w=720, h=1192, sar=1:1 +Final Meta: w=720, h=1192 +Thumb Cmd 1 (00:00:08.850): ['ffmpeg', '-ss', '00:00:08.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769990987253320400_8162\\dl_5565051026_1769990987253320400_8162.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769990987253320400_8162.jpg', '-y'] +Thumb created: t_5565051026_1769990987253320400_8162.jpg (45315 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:18.000): ['ffmpeg', '-ss', '00:03:18.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1769991058017678600_7230\\dl_5565051026_1769991058017678600_7230.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1769991058017678600_7230.jpg', '-y'] +Thumb created: t_5565051026_1769991058017678600_7230.jpg (255681 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770072979488989600_4865_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770072979488989600_4865.jpg', '-y'] +Thumb created: t_5565051026_1770072979488989600_4865.jpg (85795 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:40.200): ['ffmpeg', '-ss', '00:01:40.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770073140897222600_3346\\dl_5565051026_1770073140897222600_3346.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770073140897222600_3346.jpg', '-y'] +Thumb created: t_5565051026_1770073140897222600_3346.jpg (158738 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:40.200): ['ffmpeg', '-ss', '00:01:40.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770073432686380200_9577\\dl_5565051026_1770073432686380200_9577.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770073432686380200_9577.jpg', '-y'] +Thumb created: t_5565051026_1770073432686380200_9577.jpg (158738 bytes) +Raw Meta: w=352, h=560, sar=1:1 +Final Meta: w=352, h=560 +Thumb Cmd 1 (00:00:06.900): ['ffmpeg', '-ss', '00:00:06.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770073480779657800_1802\\dl_5565051026_1770073480779657800_1802.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770073480779657800_1802.jpg', '-y'] +Thumb created: t_5565051026_1770073480779657800_1802.jpg (21184 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:40.200): ['ffmpeg', '-ss', '00:01:40.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770073818561859400_8431\\dl_5565051026_1770073818561859400_8431.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770073818561859400_8431.jpg', '-y'] +Thumb created: t_5565051026_1770073818561859400_8431.jpg (158738 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770074179777748600_6248_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770074179777748600_6248.jpg', '-y'] +Thumb created: t_5565051026_1770074179777748600_6248.jpg (85795 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770074597454227300_9841_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770074597454227300_9841.jpg', '-y'] +Thumb created: t_5565051026_1770074597454227300_9841.jpg (85795 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770074809868748100_5740_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770074809868748100_5740.jpg', '-y'] +Thumb created: t_5565051026_1770074809868748100_5740.jpg (85795 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770075207575450300_5571_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770075207575450300_5571.jpg', '-y'] +Thumb created: t_5565051026_1770075207575450300_5571.jpg (85795 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770075483868184800_3202_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770075483868184800_3202.jpg', '-y'] +Thumb created: t_5565051026_1770075483868184800_3202.jpg (85795 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:31.500): ['ffmpeg', '-ss', '00:04:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770075825455071000_7939_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770075825455071000_7939.jpg', '-y'] +Thumb created: t_5565051026_1770075825455071000_7939.jpg (85795 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:39.600): ['ffmpeg', '-ss', '00:01:39.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770076416085128100_4847\\dl_5565051026_1770076416085128100_4847.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770076416085128100_4847.jpg', '-y'] +Thumb created: t_5565051026_1770076416085128100_4847.jpg (113040 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:17:37.350): ['ffmpeg', '-ss', '00:17:37.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770076718630434900_4838.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770076718630434900_4838.jpg', '-y'] +Thumb created: t_5565051026_1770076718630434900_4838.jpg (54809 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770083730002686900_7261\\dl_5565051026_1770083730002686900_7261.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770083730002686900_7261.jpg', '-y'] +Thumb created: t_5565051026_1770083730002686900_7261.jpg (67555 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02.250): ['ffmpeg', '-ss', '00:00:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084247216229600_1769\\dl_5565051026_1770084247216229600_1769.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084247216229600_1769.jpg', '-y'] +Thumb created: t_5565051026_1770084247216229600_1769.jpg (67933 bytes) +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:00:03.300): ['ffmpeg', '-ss', '00:00:03.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084279629611500_6886\\dl_5565051026_1770084279629611500_6886.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084279629611500_6886.jpg', '-y'] +Thumb created: t_5565051026_1770084279629611500_6886.jpg (44566 bytes) +Raw Meta: w=764, h=720, sar=1:1 +Final Meta: w=764, h=720 +Thumb Cmd 1 (00:00:02.250): ['ffmpeg', '-ss', '00:00:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084284946545000_6574\\dl_5565051026_1770084284946545000_6574.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084284946545000_6574.jpg', '-y'] +Thumb created: t_5565051026_1770084284946545000_6574.jpg (65263 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084313330034200_2158\\dl_5565051026_1770084313330034200_2158.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084313330034200_2158.jpg', '-y'] +Thumb created: t_5565051026_1770084313330034200_2158.jpg (61698 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:00:03.300): ['ffmpeg', '-ss', '00:00:03.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084607279659200_7513\\dl_5565051026_1770084607279659200_7513.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084607279659200_7513.jpg', '-y'] +Thumb created: t_5565051026_1770084607279659200_7513.jpg (28767 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:16.800): ['ffmpeg', '-ss', '00:00:16.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084727052452100_2324\\dl_5565051026_1770084727052452100_2324.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084727052452100_2324.jpg', '-y'] +Thumb created: t_5565051026_1770084727052452100_2324.jpg (104001 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:06.000): ['ffmpeg', '-ss', '00:00:06.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084728556299600_7911\\dl_5565051026_1770084728556299600_7911.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084728556299600_7911.jpg', '-y'] +Thumb created: t_5565051026_1770084728556299600_7911.jpg (77933 bytes) +Raw Meta: w=1200, h=720, sar=1:1 +Final Meta: w=1200, h=720 +Thumb Cmd 1 (00:00:08.250): ['ffmpeg', '-ss', '00:00:08.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084730063046100_4110\\dl_5565051026_1770084730063046100_4110.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084730063046100_4110.jpg', '-y'] +Thumb created: t_5565051026_1770084730063046100_4110.jpg (67612 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:17.850): ['ffmpeg', '-ss', '00:00:17.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084731578294800_9642\\dl_5565051026_1770084731578294800_9642.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084731578294800_9642.jpg', '-y'] +Thumb created: t_5565051026_1770084731578294800_9642.jpg (77879 bytes) +Silent Audio Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084780657514900_3348\\dl_5565051026_1770084780657514900_3348.mp4', '-f', 'lavfi', '-i', 'anullsrc=channel_layout=stereo:sample_rate=44100', '-c:v', 'copy', '-c:a', 'aac', '-shortest', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084780657514900_3348\\dl_5565051026_1770084780657514900_3348_silent_1770084787.mp4'] +Raw Meta: w=480, h=270, sar=1:1 +Final Meta: w=480, h=270 +Thumb Cmd 1 (00:00:03.300): ['ffmpeg', '-ss', '00:00:03.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770084780657514900_3348\\dl_5565051026_1770084780657514900_3348_silent_1770084787.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084780657514900_3348.jpg', '-y'] +Thumb created: t_5565051026_1770084780657514900_3348.jpg (17635 bytes) +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30654.mp4', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30654_h264_1770084997.mp4', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30654.mp4': + Metadata: + major_brand : isom + minor_version : 1 + compatible_brands: isomiso4 + creation_time : 2026-02-02T07:38:57.000000Z + Duration: 00:00:22.02, start: 0.000000, bitrate: 470 kb/s + Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 854x480, 466 kb/s, SAR 1:1 DAR 427:240, 30.02 fps, 29.97 tbr, 9000k tbn (default) + Metadata: + handler_name : Twitter-vork muxer + vendor_id : [0][0][0][0] +[out#0/mp4 @ 000001aff4014100] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream. +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) +Press [q] to stop, [?] for help +[libx264 @ 000001aff434c040] using SAR=1/1 +[libx264 @ 000001aff434c040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 000001aff434c040] profile High, level 3.1, 4:2:0, 8-bit +[libx264 @ 000001aff434c040] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30654_h264_1770084997.mp4': + Metadata: + major_brand : isom + minor_version : 1 + compatible_brands: isomiso4 + encoder : Lavf61.7.100 + Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 854x480 [SAR 1:1 DAR 427:240], q=2-31, 29.97 fps, 30k tbn (default) + Metadata: + handler_name : Twitter-vork muxer + vendor_id : [0][0][0][0] + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A +frame= 312 fps=0.0 q=26.0 size= 1024KiB time=00:00:09.84 bitrate= 852.3kbits/s speed=19.1x frame= 610 fps=575 q=25.0 size= 2048KiB time=00:00:20.28 bitrate= 827.0kbits/s speed=19.1x [mp4 @ 000001aff434ebc0] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 000001aff4014100] video:2493KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.342282% +frame= 661 fps=580 q=-1.0 Lsize= 2502KiB time=00:00:21.98 bitrate= 932.1kbits/s speed=19.3x +[libx264 @ 000001aff434c040] frame I:5 Avg QP:18.47 size: 30579 +[libx264 @ 000001aff434c040] frame P:220 Avg QP:20.61 size: 7233 +[libx264 @ 000001aff434c040] frame B:436 Avg QP:23.37 size: 1854 +[libx264 @ 000001aff434c040] consecutive B-frames: 1.2% 30.6% 5.9% 62.3% +[libx264 @ 000001aff434c040] mb I I16..4: 5.0% 33.0% 61.9% +[libx264 @ 000001aff434c040] mb P I16..4: 1.5% 7.8% 3.4% P16..4: 50.6% 0.0% 0.0% 0.0% 0.0% skip:36.7% +[libx264 @ 000001aff434c040] mb B I16..4: 0.2% 0.5% 0.1% B16..8: 21.4% 0.0% 0.0% direct: 5.1% skip:72.7% L0:36.3% L1:43.7% BI:20.0% +[libx264 @ 000001aff434c040] 8x8 transform intra:57.9% inter:36.4% +[libx264 @ 000001aff434c040] coded y,uvDC,uvAC intra: 62.5% 71.6% 22.5% inter: 8.2% 9.1% 0.2% +[libx264 @ 000001aff434c040] i16 v,h,dc,p: 29% 23% 20% 29% +[libx264 @ 000001aff434c040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 13% 6% 7% 10% 8% 8% 8% +[libx264 @ 000001aff434c040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 23% 11% 7% 7% 7% 7% 7% 7% +[libx264 @ 000001aff434c040] i8c dc,h,v,p: 34% 24% 24% 18% +[libx264 @ 000001aff434c040] Weighted P-Frames: Y:0.9% UV:0.0% +[libx264 @ 000001aff434c040] kb/s:925.84 + +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30654_h264_1770084997.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770084999.jpg', '-y'] +Thumb created: t_5565051026_1770084999.jpg (57419 bytes) +Raw Meta: w=720, h=1070, sar=1:1 +Final Meta: w=720, h=1070 +Thumb Cmd 1 (00:00:04.050): ['ffmpeg', '-ss', '00:00:04.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770085144855542100_5791\\dl_5565051026_1770085144855542100_5791.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085144855542100_5791.jpg', '-y'] +Thumb created: t_5565051026_1770085144855542100_5791.jpg (80439 bytes) +Raw Meta: w=848, h=480, sar=1:1 +Final Meta: w=848, h=480 +Thumb Cmd 1 (00:00:04.500): ['ffmpeg', '-ss', '00:00:04.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770085159790480400_6273\\dl_5565051026_1770085159790480400_6273.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085159790480400_6273.jpg', '-y'] +Thumb created: t_5565051026_1770085159790480400_6273.jpg (23686 bytes) +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30668.ts', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30668_h264_1770085217.mp4', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mpegts, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30668.ts': + Duration: 00:02:28.59, start: 1.412000, bitrate: 3826 kb/s + Program 1 + Metadata: + service_name : Service01 + service_provider: FFmpeg + Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720, 60 fps, 60 tbr, 90k tbn + Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 268 kb/s +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) + Stream #0:1 -> #0:1 (aac (native) -> aac (native)) +Press [q] to stop, [?] for help +[libx264 @ 00000232213f00c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 00000232213f00c0] profile High, level 3.2, 4:2:0, 8-bit +[libx264 @ 00000232213f00c0] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30668_h264_1770085217.mp4': + Metadata: + encoder : Lavf61.7.100 + Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1280x720, q=2-31, 60 fps, 15360 tbn + Metadata: + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A + Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s + Metadata: + encoder : Lavc61.19.101 aac +frame= 101 fps=0.0 q=28.0 size= 768KiB time=00:00:01.66 bitrate=3775.1kbits/s speed=3.24x frame= 229 fps=223 q=28.0 size= 1536KiB time=00:00:03.80 bitrate=3311.4kbits/s speed=3.71x frame= 352 fps=228 q=29.0 size= 2560KiB time=00:00:05.76 bitrate=3636.7kbits/s speed=3.74x frame= 456 fps=216 q=28.0 size= 3328KiB time=00:00:07.58 bitrate=3595.2kbits/s speed= 3.6x frame= 576 fps=220 q=28.0 size= 4352KiB time=00:00:09.58 bitrate=3720.2kbits/s speed=3.66x frame= 698 fps=223 q=27.0 size= 5376KiB time=00:00:11.61 bitrate=3791.2kbits/s speed=3.71x frame= 826 fps=226 q=27.0 size= 6656KiB time=00:00:13.75 bitrate=3965.6kbits/s speed=3.76x frame= 939 fps=225 q=25.0 size= 7424KiB time=00:00:15.63 bitrate=3890.3kbits/s speed=3.74x frame= 1059 fps=225 q=28.0 size= 8448KiB time=00:00:17.63 bitrate=3924.7kbits/s speed=3.75x frame= 1188 fps=228 q=28.0 size= 9728KiB time=00:00:19.78 bitrate=4028.2kbits/s speed=3.79x frame= 1317 fps=230 q=25.0 size= 10752KiB time=00:00:21.93 bitrate=4015.8kbits/s speed=3.82x frame= 1475 fps=236 q=27.0 size= 12032KiB time=00:00:24.56 bitrate=4012.2kbits/s speed=3.93x frame= 1626 fps=240 q=28.0 size= 13312KiB time=00:00:27.08 bitrate=4026.5kbits/s speed=3.99x frame= 1766 fps=242 q=29.0 size= 14592KiB time=00:00:29.41 bitrate=4063.6kbits/s speed=4.03x frame= 1888 fps=242 q=29.0 size= 15616KiB time=00:00:31.41 bitrate=4071.9kbits/s speed=4.03x frame= 2022 fps=243 q=28.0 size= 16896KiB time=00:00:33.68 bitrate=4109.2kbits/s speed=4.05x frame= 2163 fps=245 q=28.0 size= 18176KiB time=00:00:36.00 bitrate=4136.1kbits/s speed=4.07x frame= 2300 fps=246 q=29.0 size= 19456KiB time=00:00:38.31 bitrate=4159.7kbits/s speed=4.09x frame= 2452 fps=248 q=22.0 size= 20224KiB time=00:00:40.85 bitrate=4055.7kbits/s speed=4.13x frame= 2622 fps=252 q=25.0 size= 20736KiB time=00:00:43.68 bitrate=3888.7kbits/s speed= 4.2x frame= 2768 fps=253 q=28.0 size= 21760KiB time=00:00:46.11 bitrate=3865.4kbits/s speed=4.22x frame= 2910 fps=254 q=28.0 size= 22784KiB time=00:00:48.48 bitrate=3849.7kbits/s speed=4.24x frame= 3054 fps=256 q=29.0 size= 23808KiB time=00:00:50.88 bitrate=3833.0kbits/s speed=4.26x frame= 3205 fps=257 q=24.0 size= 24832KiB time=00:00:53.40 bitrate=3809.4kbits/s speed=4.29x frame= 3349 fps=258 q=28.0 size= 26112KiB time=00:00:55.80 bitrate=3833.5kbits/s speed= 4.3x frame= 3490 fps=258 q=28.0 size= 27392KiB time=00:00:58.15 bitrate=3858.9kbits/s speed=4.31x frame= 3629 fps=259 q=28.0 size= 28416KiB time=00:01:00.46 bitrate=3849.8kbits/s speed=4.32x frame= 3767 fps=259 q=28.0 size= 29440KiB time=00:01:02.76 bitrate=3842.4kbits/s speed=4.32x frame= 3909 fps=260 q=27.0 size= 30720KiB time=00:01:05.11 bitrate=3864.7kbits/s speed=4.33x frame= 4053 fps=261 q=28.0 size= 32000KiB time=00:01:07.53 bitrate=3881.7kbits/s speed=4.34x frame= 4201 fps=261 q=29.0 size= 33280KiB time=00:01:10.00 bitrate=3894.7kbits/s speed=4.35x frame= 4344 fps=262 q=28.0 size= 34304KiB time=00:01:12.38 bitrate=3882.4kbits/s speed=4.36x frame= 4486 fps=262 q=28.0 size= 35584KiB time=00:01:14.75 bitrate=3899.7kbits/s speed=4.37x frame= 4626 fps=263 q=28.0 size= 36608KiB time=00:01:17.08 bitrate=3890.5kbits/s speed=4.38x frame= 4764 fps=263 q=28.0 size= 37888KiB time=00:01:19.38 bitrate=3909.9kbits/s speed=4.38x frame= 4902 fps=263 q=28.0 size= 38912KiB time=00:01:21.68 bitrate=3902.5kbits/s speed=4.38x frame= 5040 fps=263 q=28.0 size= 39936KiB time=00:01:23.98 bitrate=3895.5kbits/s speed=4.38x frame= 5180 fps=263 q=28.0 size= 40960KiB time=00:01:26.31 bitrate=3887.4kbits/s speed=4.39x frame= 5312 fps=263 q=28.0 size= 42240KiB time=00:01:28.51 bitrate=3909.2kbits/s speed=4.38x frame= 5444 fps=263 q=28.0 size= 43264KiB time=00:01:30.71 bitrate=3906.9kbits/s speed=4.38x frame= 5564 fps=262 q=29.0 size= 44288KiB time=00:01:32.71 bitrate=3913.1kbits/s speed=4.36x frame= 5698 fps=262 q=28.0 size= 45568KiB time=00:01:34.95 bitrate=3931.5kbits/s speed=4.36x frame= 5839 fps=262 q=28.0 size= 46592KiB time=00:01:37.30 bitrate=3922.7kbits/s speed=4.37x frame= 5976 fps=262 q=29.0 size= 47872KiB time=00:01:39.58 bitrate=3938.1kbits/s speed=4.37x frame= 6113 fps=262 q=29.0 size= 48896KiB time=00:01:41.86 bitrate=3932.2kbits/s speed=4.37x frame= 6243 fps=262 q=29.0 size= 49920KiB time=00:01:44.03 bitrate=3930.9kbits/s speed=4.37x frame= 6379 fps=262 q=29.0 size= 51200KiB time=00:01:46.30 bitrate=3945.7kbits/s speed=4.36x frame= 6506 fps=261 q=29.0 size= 52480KiB time=00:01:48.41 bitrate=3965.4kbits/s speed=4.36x frame= 6630 fps=261 q=29.0 size= 53760KiB time=00:01:50.48 bitrate=3986.1kbits/s speed=4.35x frame= 6752 fps=261 q=29.0 size= 54784KiB time=00:01:52.51 bitrate=3988.7kbits/s speed=4.34x frame= 6882 fps=260 q=28.0 size= 56064KiB time=00:01:54.68 bitrate=4004.7kbits/s speed=4.34x frame= 7016 fps=260 q=28.0 size= 57088KiB time=00:01:56.91 bitrate=4000.0kbits/s speed=4.34x frame= 7157 fps=261 q=28.0 size= 58112KiB time=00:01:59.26 bitrate=3991.5kbits/s speed=4.34x frame= 7295 fps=261 q=27.0 size= 59136KiB time=00:02:01.56 bitrate=3985.0kbits/s speed=4.34x frame= 7429 fps=261 q=28.0 size= 60160KiB time=00:02:03.80 bitrate=3980.9kbits/s speed=4.34x frame= 7565 fps=261 q=24.0 size= 61184KiB time=00:02:06.06 bitrate=3975.8kbits/s speed=4.34x frame= 7702 fps=261 q=28.0 size= 62208KiB time=00:02:08.35 bitrate=3970.5kbits/s speed=4.35x frame= 7838 fps=261 q=29.0 size= 63232KiB time=00:02:10.60 bitrate=3966.3kbits/s speed=4.35x frame= 7968 fps=261 q=28.0 size= 64256KiB time=00:02:12.76 bitrate=3964.7kbits/s speed=4.35x frame= 8095 fps=261 q=28.0 size= 65280KiB time=00:02:14.90 bitrate=3964.2kbits/s speed=4.34x frame= 8219 fps=260 q=28.0 size= 66304KiB time=00:02:16.96 bitrate=3965.7kbits/s speed=4.34x frame= 8329 fps=259 q=28.0 size= 67328KiB time=00:02:18.80 bitrate=3973.7kbits/s speed=4.32x frame= 8450 fps=259 q=26.0 size= 68096KiB time=00:02:20.81 bitrate=3961.5kbits/s speed=4.32x frame= 8572 fps=259 q=29.0 size= 69120KiB time=00:02:22.85 bitrate=3963.8kbits/s speed=4.31x frame= 8691 fps=258 q=27.0 size= 69888KiB time=00:02:24.83 bitrate=3953.0kbits/s speed= 4.3x frame= 8796 fps=257 q=27.0 size= 70400KiB time=00:02:26.58 bitrate=3934.4kbits/s speed=4.29x frame= 8894 fps=256 q=25.0 size= 70912KiB time=N/A bitrate=N/A speed=N/A [mp4 @ 0000023221038c00] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 0000023221038ac0] video:68697KiB audio:2443KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.316322% +frame= 8914 fps=256 q=-1.0 Lsize= 71365KiB time=00:02:28.55 bitrate=3935.5kbits/s speed=4.27x +[libx264 @ 00000232213f00c0] frame I:41 Avg QP:21.55 size: 41099 +[libx264 @ 00000232213f00c0] frame P:2767 Avg QP:24.35 size: 14864 +[libx264 @ 00000232213f00c0] frame B:6106 Avg QP:27.62 size: 4509 +[libx264 @ 00000232213f00c0] consecutive B-frames: 1.0% 11.5% 35.0% 52.5% +[libx264 @ 00000232213f00c0] mb I I16..4: 13.2% 52.3% 34.5% +[libx264 @ 00000232213f00c0] mb P I16..4: 3.6% 16.2% 5.4% P16..4: 39.9% 0.0% 0.0% 0.0% 0.0% skip:34.9% +[libx264 @ 00000232213f00c0] mb B I16..4: 0.5% 1.2% 0.2% B16..8: 25.3% 0.0% 0.0% direct: 4.2% skip:68.6% L0:39.7% L1:43.6% BI:16.7% +[libx264 @ 00000232213f00c0] 8x8 transform intra:63.2% inter:26.2% +[libx264 @ 00000232213f00c0] coded y,uvDC,uvAC intra: 50.6% 46.3% 3.9% inter: 6.2% 5.0% 0.0% +[libx264 @ 00000232213f00c0] i16 v,h,dc,p: 34% 19% 15% 31% +[libx264 @ 00000232213f00c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 16% 13% 7% 10% 11% 9% 8% 8% +[libx264 @ 00000232213f00c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 13% 8% 8% 9% 7% 7% 6% +[libx264 @ 00000232213f00c0] i8c dc,h,v,p: 42% 22% 25% 11% +[libx264 @ 00000232213f00c0] Weighted P-Frames: Y:1.5% UV:1.2% +[libx264 @ 00000232213f00c0] kb/s:3787.92 +[aac @ 000002322103b100] Qavg: 651.747 + +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30668_h264_1770085217.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085252.jpg', '-y'] +Thumb created: t_5565051026_1770085252.jpg (111090 bytes) +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30671.mp4', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30671_h264_1770085289.mp4', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30671.mp4': + Metadata: + major_brand : isom + minor_version : 1 + compatible_brands: isomiso4 + creation_time : 2026-02-02T07:38:57.000000Z + Duration: 00:00:22.02, start: 0.000000, bitrate: 470 kb/s + Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 854x480, 466 kb/s, SAR 1:1 DAR 427:240, 30.02 fps, 29.97 tbr, 9000k tbn (default) + Metadata: + handler_name : Twitter-vork muxer + vendor_id : [0][0][0][0] +[out#0/mp4 @ 000002903fca4100] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream. +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) +Press [q] to stop, [?] for help +[libx264 @ 000002903ff5c040] using SAR=1/1 +[libx264 @ 000002903ff5c040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 000002903ff5c040] profile High, level 3.1, 4:2:0, 8-bit +[libx264 @ 000002903ff5c040] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30671_h264_1770085289.mp4': + Metadata: + major_brand : isom + minor_version : 1 + compatible_brands: isomiso4 + encoder : Lavf61.7.100 + Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 854x480 [SAR 1:1 DAR 427:240], q=2-31, 29.97 fps, 30k tbn (default) + Metadata: + handler_name : Twitter-vork muxer + vendor_id : [0][0][0][0] + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A +frame= 202 fps=0.0 q=24.0 size= 512KiB time=00:00:06.67 bitrate= 628.6kbits/s speed=12.8x frame= 480 fps=459 q=25.0 size= 1536KiB time=00:00:15.94 bitrate= 789.0kbits/s speed=15.3x [mp4 @ 000002903ff5ebc0] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 000002903fca4100] video:2493KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.342282% +frame= 661 fps=487 q=-1.0 Lsize= 2502KiB time=00:00:21.98 bitrate= 932.1kbits/s speed=16.2x +[libx264 @ 000002903ff5c040] frame I:5 Avg QP:18.47 size: 30579 +[libx264 @ 000002903ff5c040] frame P:220 Avg QP:20.61 size: 7233 +[libx264 @ 000002903ff5c040] frame B:436 Avg QP:23.37 size: 1854 +[libx264 @ 000002903ff5c040] consecutive B-frames: 1.2% 30.6% 5.9% 62.3% +[libx264 @ 000002903ff5c040] mb I I16..4: 5.0% 33.0% 61.9% +[libx264 @ 000002903ff5c040] mb P I16..4: 1.5% 7.8% 3.4% P16..4: 50.6% 0.0% 0.0% 0.0% 0.0% skip:36.7% +[libx264 @ 000002903ff5c040] mb B I16..4: 0.2% 0.5% 0.1% B16..8: 21.4% 0.0% 0.0% direct: 5.1% skip:72.7% L0:36.3% L1:43.7% BI:20.0% +[libx264 @ 000002903ff5c040] 8x8 transform intra:57.9% inter:36.4% +[libx264 @ 000002903ff5c040] coded y,uvDC,uvAC intra: 62.5% 71.6% 22.5% inter: 8.2% 9.1% 0.2% +[libx264 @ 000002903ff5c040] i16 v,h,dc,p: 29% 23% 20% 29% +[libx264 @ 000002903ff5c040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 13% 6% 7% 10% 8% 8% 8% +[libx264 @ 000002903ff5c040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 23% 11% 7% 7% 7% 7% 7% 7% +[libx264 @ 000002903ff5c040] i8c dc,h,v,p: 34% 24% 24% 18% +[libx264 @ 000002903ff5c040] Weighted P-Frames: Y:0.9% UV:0.0% +[libx264 @ 000002903ff5c040] kb/s:925.84 + +Silent Audio Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30671_h264_1770085289.mp4', '-f', 'lavfi', '-i', 'anullsrc=channel_layout=stereo:sample_rate=44100', '-c:v', 'copy', '-c:a', 'aac', '-shortest', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30671_h264_1770085289_silent_1770085291.mp4'] +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30671_h264_1770085289_silent_1770085291.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085292.jpg', '-y'] +Thumb created: t_5565051026_1770085292.jpg (57419 bytes) +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30690.mp4', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30690_h264_1770085782.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30691.mp4', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30691_h264_1770085782.mp4', '-y'] +H264 Convert Cmd: ['ffmpeg', '-probesize', '10M', '-analyzeduration', '10M', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30689.mp4', '-c:v', 'libx264', '-preset', 'superfast', '-crf', '23', '-c:a', 'aac', '-b:a', '128k', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', '-map', '0:v:0', '-map', '0:a:0?', '-sn', '-dn', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30689_h264_1770085783.mp4', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30691.mp4': + Metadata: + major_brand : isom + minor_version : 512 + compatible_brands: isomiso2avc1mp41 + creation_time : 2024-07-18T18:45:47.000000Z + Duration: 00:00:09.27, start: 0.000000, bitrate: 1378 kb/s + Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 560x848, 1377 kb/s, 30 fps, 30 tbr, 90k tbn (default) + Metadata: + creation_time : 2024-07-18T18:45:41.000000Z + handler_name : VideoHandle + vendor_id : [0][0][0][0] +[out#0/mp4 @ 000001a3b7bb9e80] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream. +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) +Press [q] to stop, [?] for help +[libx264 @ 000001a3b7a2e380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 000001a3b7a2e380] profile High, level 3.1, 4:2:0, 8-bit +[libx264 @ 000001a3b7a2e380] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30691_h264_1770085782.mp4': + Metadata: + major_brand : isom + minor_version : 512 + compatible_brands: isomiso2avc1mp41 + encoder : Lavf61.7.100 + Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 560x848, q=2-31, 30 fps, 15360 tbn (default) + Metadata: + creation_time : 2024-07-18T18:45:41.000000Z + handler_name : VideoHandle + vendor_id : [0][0][0][0] + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A +frame= 34 fps=0.0 q=25.0 size= 0KiB time=00:00:00.70 bitrate= 0.5kbits/s speed=1.36x frame= 110 fps=100 q=25.0 size= 256KiB time=00:00:03.33 bitrate= 629.3kbits/s speed=3.04x frame= 166 fps=101 q=24.0 size= 512KiB time=00:00:05.46 bitrate= 767.3kbits/s speed=3.34x frame= 248 fps=113 q=25.0 size= 768KiB time=00:00:08.20 bitrate= 767.3kbits/s speed=3.75x [mp4 @ 000001a3b78f4000] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 000001a3b7bb9e80] video:1102KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.373879% +frame= 278 fps=112 q=-1.0 Lsize= 1106KiB time=00:00:09.20 bitrate= 984.7kbits/s speed=3.72x +[libx264 @ 000001a3b7a2e380] frame I:2 Avg QP:17.22 size: 26082 +[libx264 @ 000001a3b7a2e380] frame P:70 Avg QP:19.73 size: 9128 +[libx264 @ 000001a3b7a2e380] frame B:206 Avg QP:21.78 size: 2118 +[libx264 @ 000001a3b7a2e380] consecutive B-frames: 1.1% 0.0% 1.1% 97.8% +[libx264 @ 000001a3b7a2e380] mb I I16..4: 12.4% 43.2% 44.4% +[libx264 @ 000001a3b7a2e380] mb P I16..4: 4.7% 11.2% 2.8% P16..4: 62.8% 0.0% 0.0% 0.0% 0.0% skip:18.6% +[libx264 @ 000001a3b7a2e380] mb B I16..4: 0.4% 0.2% 0.0% B16..8: 24.0% 0.0% 0.0% direct:10.5% skip:64.8% L0:37.8% L1:45.6% BI:16.6% +[libx264 @ 000001a3b7a2e380] 8x8 transform intra:55.8% inter:32.5% +[libx264 @ 000001a3b7a2e380] coded y,uvDC,uvAC intra: 43.8% 49.5% 7.6% inter: 8.7% 10.0% 0.0% +[libx264 @ 000001a3b7a2e380] i16 v,h,dc,p: 30% 17% 12% 41% +[libx264 @ 000001a3b7a2e380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 16% 17% 6% 11% 12% 9% 6% 6% +[libx264 @ 000001a3b7a2e380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 14% 8% 8% 7% 7% 6% 7% +[libx264 @ 000001a3b7a2e380] i8c dc,h,v,p: 44% 21% 23% 13% +[libx264 @ 000001a3b7a2e380] Weighted P-Frames: Y:0.0% UV:0.0% +[libx264 @ 000001a3b7a2e380] kb/s:973.37 + +Silent Audio Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30691_h264_1770085782.mp4', '-f', 'lavfi', '-i', 'anullsrc=channel_layout=stereo:sample_rate=44100', '-c:v', 'copy', '-c:a', 'aac', '-shortest', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30691_h264_1770085782_silent_1770085786.mp4'] +Raw Meta: w=560, h=848, sar=None +Final Meta: w=560, h=848 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30691_h264_1770085782_silent_1770085786.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085787.jpg', '-y'] +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30690.mp4': + Metadata: + major_brand : isom + minor_version : 512 + compatible_brands: isomiso2avc1mp41 + creation_time : 2024-03-19T11:44:49.000000Z + Duration: 00:00:09.97, start: 0.000000, bitrate: 1299 kb/s + Stream #0:0[0x1](eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 768x1280 [SAR 1:1 DAR 3:5], 1298 kb/s, 30 fps, 30 tbr, 90k tbn (default) + Metadata: + creation_time : 2024-03-19T11:44:49.000000Z + handler_name : VideoHandle + vendor_id : [0][0][0][0] +[out#0/mp4 @ 0000019840aeb740] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream. +Stream mapping: + Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) +Press [q] to stop, [?] for help +[libx264 @ 0000019840bae900] using SAR=1/1 +[libx264 @ 0000019840bae900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 0000019840bae900] profile High, level 3.2, 4:2:0, 8-bit +[libx264 @ 0000019840bae900] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30690_h264_1770085782.mp4': + Metadata: + major_brand : isom + minor_version : 512 + compatible_brands: isomiso2avc1mp41 + encoder : Lavf61.7.100 + Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 768x1280 [SAR 1:1 DAR 3:5], q=2-31, 30 fps, 15360 tbn (default) + Metadata: + creation_time : 2024-03-19T11:44:49.000000Z + handler_name : VideoHandle + vendor_id : [0][0][0][0] + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A +frame= 4 fps=0.0 q=25.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 37 fps= 33 q=26.0 size= 256KiB time=00:00:01.16 bitrate=1797.9kbits/s speed=1.04x frame= 64 fps= 39 q=24.0 size= 768KiB time=00:00:02.06 bitrate=3044.4kbits/s speed=1.25x frame= 95 fps= 43 q=23.0 size= 1024KiB time=00:00:03.10 bitrate=2706.1kbits/s speed=1.42x frame= 116 fps= 43 q=26.0 size= 1280KiB time=00:00:03.80 bitrate=2759.5kbits/s speed=1.41x frame= 159 fps= 49 q=27.0 size= 2048KiB time=00:00:05.16 bitrate=3247.3kbits/s speed= 1.6x frame= 199 fps= 53 q=26.0 size= 2560KiB time=00:00:06.56 bitrate=3193.7kbits/s speed=1.74x frame= 245 fps= 57 q=27.0 size= 3072KiB time=00:00:08.10 bitrate=3106.9kbits/s speed=1.88x frame= 281 fps= 58 q=27.0 size= 3584KiB time=00:00:09.30 bitrate=3157.0kbits/s speed=1.93x [mp4 @ 0000019840ae4000] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 0000019840aeb740] video:4018KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.099960% +frame= 299 fps= 60 q=-1.0 Lsize= 4022KiB time=00:00:09.90 bitrate=3328.3kbits/s speed= 2x +[libx264 @ 0000019840bae900] frame I:2 Avg QP:17.47 size: 31250 +[libx264 @ 0000019840bae900] frame P:150 Avg QP:20.60 size: 18820 +[libx264 @ 0000019840bae900] frame B:147 Avg QP:22.09 size: 8357 +[libx264 @ 0000019840bae900] consecutive B-frames: 22.4% 30.1% 18.1% 29.4% +[libx264 @ 0000019840bae900] mb I I16..4: 18.6% 44.7% 36.7% +[libx264 @ 0000019840bae900] mb P I16..4: 13.5% 28.6% 10.2% P16..4: 32.7% 0.0% 0.0% 0.0% 0.0% skip:15.0% +[libx264 @ 0000019840bae900] mb B I16..4: 4.1% 8.9% 2.2% B16..8: 32.7% 0.0% 0.0% direct: 4.8% skip:47.3% L0:58.9% L1:35.6% BI: 5.4% +[libx264 @ 0000019840bae900] 8x8 transform intra:55.2% inter:40.2% +[libx264 @ 0000019840bae900] coded y,uvDC,uvAC intra: 48.6% 46.4% 4.5% inter: 7.4% 13.7% 0.0% +[libx264 @ 0000019840bae900] i16 v,h,dc,p: 44% 10% 13% 33% +[libx264 @ 0000019840bae900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 16% 9% 7% 6% 9% 6% 9% 7% +[libx264 @ 0000019840bae900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 10% 9% 6% 7% 5% 8% 5% +[libx264 @ 0000019840bae900] i8c dc,h,v,p: 52% 17% 22% 10% +[libx264 @ 0000019840bae900] Weighted P-Frames: Y:4.0% UV:1.3% +[libx264 @ 0000019840bae900] kb/s:3302.18 + +Silent Audio Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30690_h264_1770085782.mp4', '-f', 'lavfi', '-i', 'anullsrc=channel_layout=stereo:sample_rate=44100', '-c:v', 'copy', '-c:a', 'aac', '-shortest', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30690_h264_1770085782_silent_1770085788.mp4'] +Thumb created: t_5565051026_1770085787.jpg (44292 bytes) +Raw Meta: w=768, h=1280, sar=1:1 +Final Meta: w=768, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30690_h264_1770085782_silent_1770085788.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085789.jpg', '-y'] +Thumb created: t_5565051026_1770085789.jpg (67216 bytes) +⚠️ FFmpeg Warnings (RC=0): ffmpeg version 7.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers + built with gcc 14.2.0 (Rev1, Built by MSYS2 project) + configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband + libavutil 59. 39.100 / 59. 39.100 + libavcodec 61. 19.101 / 61. 19.101 + libavformat 61. 7.100 / 61. 7.100 + libavdevice 61. 3.100 / 61. 3.100 + libavfilter 10. 4.100 / 10. 4.100 + libswscale 8. 3.100 / 8. 3.100 + libswresample 5. 3.100 / 5. 3.100 + libpostproc 58. 3.100 / 58. 3.100 +[mov,mp4,m4a,3gp,3g2,mj2 @ 0000018dc6b2f380] Found duplicated MOOV Atom. Skipped it + Last message repeated 2 times +Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30689.mp4': + Metadata: + major_brand : mp41 + minor_version : 0 + compatible_brands: iso8isommp41dashvp09cmfc + creation_time : 2024-12-08T22:10:26.000000Z + Duration: 00:00:19.95, start: 0.000000, bitrate: 2435 kb/s + Stream #0:0[0x1](und): Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv), 1080x1920, 2440 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn (default) + Metadata: + creation_time : 2024-12-08T22:10:26.000000Z + handler_name : VideoHandler + vendor_id : [0][0][0][0] + encoder : VPC Coding +[out#0/mp4 @ 0000018dc6b356c0] Codec AVOption b:a (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream. +Stream mapping: + Stream #0:0 -> #0:0 (vp9 (native) -> h264 (libx264)) +Press [q] to stop, [?] for help +[libx264 @ 0000018dc6f47f00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 +[libx264 @ 0000018dc6f47f00] profile High, level 4.0, 4:2:0, 8-bit +[libx264 @ 0000018dc6f47f00] 264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 +Output #0, mp4, to 'C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\tmp_h264_5565051026_30689_h264_1770085783.mp4': + Metadata: + major_brand : mp41 + minor_version : 0 + compatible_brands: iso8isommp41dashvp09cmfc + encoder : Lavf61.7.100 + Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1080x1920, q=2-31, 29.97 fps, 11988 tbn (default) + Metadata: + creation_time : 2024-12-08T22:10:26.000000Z + handler_name : VideoHandler + vendor_id : [0][0][0][0] + encoder : Lavc61.19.101 libx264 + Side data: + cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A +frame= 0 fps=0.0 q=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A frame= 19 fps= 17 q=26.0 size= 256KiB time=00:00:00.56 bitrate=3697.8kbits/s speed=0.521x frame= 34 fps= 21 q=26.0 size= 768KiB time=00:00:01.00 bitrate=6285.5kbits/s speed=0.61x frame= 54 fps= 24 q=26.0 size= 1280KiB time=00:00:01.73 bitrate=6043.7kbits/s speed=0.78x frame= 81 fps= 29 q=26.0 size= 2048KiB time=00:00:02.63 bitrate=6364.9kbits/s speed=0.958x frame= 105 fps= 32 q=26.0 size= 2560KiB time=00:00:03.43 bitrate=6102.2kbits/s speed=1.05x frame= 136 fps= 36 q=26.0 size= 3328KiB time=00:00:04.33 bitrate=6285.3kbits/s speed=1.14x frame= 172 fps= 39 q=26.0 size= 4352KiB time=00:00:05.53 bitrate=6436.7kbits/s speed=1.24x frame= 208 fps= 42 q=24.0 size= 5376KiB time=00:00:06.87 bitrate=6407.3kbits/s speed=1.38x frame= 249 fps= 45 q=26.0 size= 6400KiB time=00:00:08.24 bitrate=6361.5kbits/s speed=1.49x frame= 285 fps= 47 q=26.0 size= 7168KiB time=00:00:09.44 bitrate=6218.6kbits/s speed=1.56x frame= 329 fps= 50 q=26.0 size= 8448KiB time=00:00:10.91 bitrate=6342.9kbits/s speed=1.66x frame= 376 fps= 53 q=26.0 size= 9472KiB time=00:00:12.47 bitrate=6218.0kbits/s speed=1.76x frame= 426 fps= 56 q=25.0 size= 10752KiB time=00:00:14.14 bitrate=6225.9kbits/s speed=1.86x frame= 468 fps= 57 q=21.0 size= 11520KiB time=00:00:15.51 bitrate=6082.4kbits/s speed= 1.9x frame= 514 fps= 59 q=25.0 size= 12288KiB time=00:00:17.08 bitrate=5892.4kbits/s speed=1.96x frame= 561 fps= 61 q=25.0 size= 13056KiB time=00:00:18.65 bitrate=5734.2kbits/s speed=2.02x [mp4 @ 0000018dc6b43ec0] Starting second pass: moving the moov atom to the beginning of the file +[out#0/mp4 @ 0000018dc6b356c0] video:13991KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.056377% +frame= 598 fps= 63 q=-1.0 Lsize= 13999KiB time=00:00:19.88 bitrate=5766.7kbits/s speed=2.08x +[libx264 @ 0000018dc6f47f00] frame I:4 Avg QP:13.71 size: 48947 +[libx264 @ 0000018dc6f47f00] frame P:161 Avg QP:17.78 size: 36280 +[libx264 @ 0000018dc6f47f00] frame B:433 Avg QP:19.56 size: 19144 +[libx264 @ 0000018dc6f47f00] consecutive B-frames: 2.5% 1.0% 5.5% 91.0% +[libx264 @ 0000018dc6f47f00] mb I I16..4: 35.1% 51.5% 13.4% +[libx264 @ 0000018dc6f47f00] mb P I16..4: 18.0% 53.3% 3.8% P16..4: 19.9% 0.0% 0.0% 0.0% 0.0% skip: 4.8% +[libx264 @ 0000018dc6f47f00] mb B I16..4: 9.6% 21.0% 0.6% B16..8: 30.4% 0.0% 0.0% direct: 8.5% skip:30.0% L0:51.1% L1:43.6% BI: 5.3% +[libx264 @ 0000018dc6f47f00] 8x8 transform intra:68.8% inter:50.8% +[libx264 @ 0000018dc6f47f00] coded y,uvDC,uvAC intra: 28.3% 44.8% 4.1% inter: 4.5% 27.2% 0.0% +[libx264 @ 0000018dc6f47f00] i16 v,h,dc,p: 32% 18% 11% 39% +[libx264 @ 0000018dc6f47f00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 16% 16% 8% 8% 9% 7% 8% 8% +[libx264 @ 0000018dc6f47f00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 16% 8% 5% 5% 4% 4% 6% +[libx264 @ 0000018dc6f47f00] i8c dc,h,v,p: 37% 21% 25% 16% +[libx264 @ 0000018dc6f47f00] Weighted P-Frames: Y:11.2% UV:7.5% +[libx264 @ 0000018dc6f47f00] kb/s:5743.86 + +Silent Audio Cmd: ['ffmpeg', '-y', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30689_h264_1770085783.mp4', '-f', 'lavfi', '-i', 'anullsrc=channel_layout=stereo:sample_rate=44100', '-c:v', 'copy', '-c:a', 'aac', '-shortest', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30689_h264_1770085783_silent_1770085793.mp4'] +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\tmp_h264_5565051026_30689_h264_1770085783_silent_1770085793.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770085793.jpg', '-y'] +Thumb created: t_5565051026_1770085793.jpg (78706 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770087856187016000_3976\\dl_5565051026_1770087856187016000_3976.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770087856187016000_3976.jpg', '-y'] +Thumb created: t_5565051026_1770087856187016000_3976.jpg (153228 bytes) +Raw Meta: w=720, h=1280, sar=1:1 +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02.000): ['ffmpeg', '-ss', '00:00:02.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770088614308140200_5203\\dl_5565051026_1770088614308140200_5203.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770088614308140200_5203.jpg', '-y'] +Thumb created: t_5565051026_1770088614308140200_5203.jpg (153228 bytes) +Raw Meta: w=1080, h=1928, sar=1:1 +Final Meta: w=1080, h=1928 +Raw Meta: w=576, h=576, sar=1:1 +Final Meta: w=576, h=576 +Thumb Cmd 1 (00:00:05.100): ['ffmpeg', '-ss', '00:00:05.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770160301134655900_7533\\dl_5565051026_1770160301134655900_7533.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770160301134655900_7533.jpg', '-y'] +Thumb created: t_5565051026_1770160301134655900_7533.jpg (56020 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:06.000): ['ffmpeg', '-ss', '00:00:06.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1770161771725737600_3490\\dl_5565051026_1770161771725737600_3490.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770161771725737600_3490.jpg', '-y'] +Thumb created: t_5565051026_1770161771725737600_3490.jpg (47006 bytes) +Cut Start Cmd (Copy): ['ffmpeg', '-ss', '5', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_34101.mp4', '-c', 'copy', '-map', '0', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_34101_cut_1770219460.mp4', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\party_5565051026_34101_cut_1770219460.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770219462.jpg', '-y'] +Thumb created: t_5565051026_1770219462.jpg (86308 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part000.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_0.jpg', '-y'] +Thumb created: t_5565051026_1770220903_0.jpg (95214 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part001.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_1.jpg', '-y'] +Thumb created: t_5565051026_1770220903_1.jpg (162769 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part002.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_2.jpg', '-y'] +Thumb created: t_5565051026_1770220903_2.jpg (115082 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part003.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_3.jpg', '-y'] +Thumb created: t_5565051026_1770220903_3.jpg (157002 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part004.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_4.jpg', '-y'] +Thumb created: t_5565051026_1770220903_4.jpg (79555 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part005.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_5.jpg', '-y'] +Thumb created: t_5565051026_1770220903_5.jpg (270407 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part006.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_6.jpg', '-y'] +Thumb created: t_5565051026_1770220903_6.jpg (281345 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_7.jpg', '-y'] +Thumb created: t_5565051026_1770220903_7.jpg (237567 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part008.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_8.jpg', '-y'] +Thumb created: t_5565051026_1770220903_8.jpg (276600 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\general_temp\\job_5565051026_1770220847094839900_4551\\party_5565051026_part009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770220903_9.jpg', '-y'] +Thumb created: t_5565051026_1770220903_9.jpg (120579 bytes) +Raw Meta: w=1284, h=720, sar=None +Final Meta: w=1284, h=720 +Thumb Cmd 1 (00:08:32.250): ['ffmpeg', '-ss', '00:08:32.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770239497736431000_4219_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770239497736431000_4219.jpg', '-y'] +Thumb created: t_5565051026_1770239497736431000_4219.jpg (67329 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:07:00.900): ['ffmpeg', '-ss', '00:07:00.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770239468156866300_5404_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770239468156866300_5404.jpg', '-y'] +Thumb created: t_5565051026_1770239468156866300_5404.jpg (221639 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.500): ['ffmpeg', '-ss', '00:01:34.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770414307593579200_9525_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770414307593579200_9525.jpg', '-y'] +Thumb created: t_5565051026_1770414307593579200_9525.jpg (240803 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:37.500): ['ffmpeg', '-ss', '00:02:37.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770414309681934500_1198_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770414309681934500_1198.jpg', '-y'] +Thumb created: t_5565051026_1770414309681934500_1198.jpg (97958 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:15.600): ['ffmpeg', '-ss', '00:01:15.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770414305223129400_4897_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770414305223129400_4897.jpg', '-y'] +Thumb created: t_5565051026_1770414305223129400_4897.jpg (110835 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:03.150): ['ffmpeg', '-ss', '00:02:03.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770414819902991600_8529_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770414819902991600_8529.jpg', '-y'] +Thumb created: t_5565051026_1770414819902991600_8529.jpg (274916 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:31.950): ['ffmpeg', '-ss', '00:02:31.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770415100061410600_5845_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770415100061410600_5845.jpg', '-y'] +Thumb created: t_5565051026_1770415100061410600_5845.jpg (203310 bytes) +Raw Meta: w=1440, h=720, sar=1:1 +Final Meta: w=1440, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1770513136.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770513142.jpg', '-y'] +Thumb created: t_5565051026_1770513142.jpg (188165 bytes) +Raw Meta: w=1440, h=720, sar=1:1 +Final Meta: w=1440, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'downloads/mixed_1770514059.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770514065.jpg', '-y'] +Thumb created: t_5565051026_1770514065.jpg (191112 bytes) +Raw Meta: w=854, h=480, sar=1280:1281 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Cmd 1 (00:03:44.100): ['ffmpeg', '-ss', '00:03:44.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770922312055479500_1592_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770922312055479500_1592.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:03:41.100): ['ffmpeg', '-ss', '00:03:41.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770922314000180500_8614_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770922314000180500_8614.jpg', '-y'] +Thumb created: t_5565051026_1770922312055479500_1592.jpg (70319 bytes) +Thumb created: t_5565051026_1770922314000180500_8614.jpg (120404 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:03:41.100): ['ffmpeg', '-ss', '00:03:41.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770922326042005800_5561_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770922326042005800_5561.jpg', '-y'] +Thumb created: t_5565051026_1770922326042005800_5561.jpg (120404 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:07:13.500): ['ffmpeg', '-ss', '00:07:13.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770922326995482800_5314_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770922326995482800_5314.jpg', '-y'] +Thumb created: t_5565051026_1770922326995482800_5314.jpg (70592 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:05:30.300): ['ffmpeg', '-ss', '00:05:30.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1770922315986638600_6341_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1770922315986638600_6341.jpg', '-y'] +Thumb created: t_5565051026_1770922315986638600_6341.jpg (121151 bytes) +Raw Meta: w=854, h=480, sar=1280:1281 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Cmd 1 (00:07:16.650): ['ffmpeg', '-ss', '00:07:16.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771204777700161500_6774_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771204777700161500_6774.jpg', '-y'] +Thumb created: t_5565051026_1771204777700161500_6774.jpg (60159 bytes) +Raw Meta: w=854, h=480, sar=1280:1281 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Cmd 1 (00:07:16.650): ['ffmpeg', '-ss', '00:07:16.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771204774201251200_6592_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771204774201251200_6592.jpg', '-y'] +Thumb created: t_5565051026_1771204774201251200_6592.jpg (60159 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:56.250): ['ffmpeg', '-ss', '00:00:56.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771204776061600100_8572_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771204776061600100_8572.jpg', '-y'] +Thumb created: t_5565051026_1771204776061600100_8572.jpg (166297 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:43.950): ['ffmpeg', '-ss', '00:02:43.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771264920212129800_1802\\dl_5565051026_1771264920212129800_1802.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771264920212129800_1802.jpg', '-y'] +Thumb created: t_5565051026_1771264920212129800_1802.jpg (138637 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:25.950): ['ffmpeg', '-ss', '00:03:25.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771275360695843900_8518\\dl_5565051026_1771275360695843900_8518.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771275360695843900_8518.jpg', '-y'] +Thumb created: t_5565051026_1771275360695843900_8518.jpg (226383 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:24.150): ['ffmpeg', '-ss', '00:03:24.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771275945509449100_2229\\dl_5565051026_1771275945509449100_2229.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771275945509449100_2229.jpg', '-y'] +Thumb created: t_5565051026_1771275945509449100_2229.jpg (120477 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:54.450): ['ffmpeg', '-ss', '00:00:54.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771276602383821300_5736\\dl_5565051026_1771276602383821300_5736.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771276602383821300_5736.jpg', '-y'] +Thumb created: t_5565051026_1771276602383821300_5736.jpg (105133 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:36.450): ['ffmpeg', '-ss', '00:01:36.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771276716851056500_2374\\dl_5565051026_1771276716851056500_2374.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771276716851056500_2374.jpg', '-y'] +Thumb created: t_5565051026_1771276716851056500_2374.jpg (129266 bytes) +Raw Meta: w=1080, h=1920, sar=44:45 +Corrected w=1056 +Final Meta: w=1056, h=1920 +Thumb Cmd 1 (00:00:13.650): ['ffmpeg', '-ss', '00:00:13.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277463061047700_3276\\dl_5565051026_1771277463061047700_3276.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277463061047700_3276.jpg', '-y'] +Thumb created: t_5565051026_1771277463061047700_3276.jpg (94811 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:00.900): ['ffmpeg', '-ss', '00:02:00.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277462849963500_1996\\dl_5565051026_1771277462849963500_1996.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277462849963500_1996.jpg', '-y'] +Thumb created: t_5565051026_1771277462849963500_1996.jpg (110606 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:14.550): ['ffmpeg', '-ss', '00:01:14.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277462938845900_9939\\dl_5565051026_1771277462938845900_9939.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277462938845900_9939.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:10.500): ['ffmpeg', '-ss', '00:00:10.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277463542003900_2559\\dl_5565051026_1771277463542003900_2559.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277463542003900_2559.jpg', '-y'] +Thumb created: t_5565051026_1771277462938845900_9939.jpg (57977 bytes) +Thumb created: t_5565051026_1771277463542003900_2559.jpg (224783 bytes) +Raw Meta: w=360, h=640, sar=None +Final Meta: w=360, h=640 +Thumb Cmd 1 (00:00:21.000): ['ffmpeg', '-ss', '00:00:21.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277463858719800_6775\\dl_5565051026_1771277463858719800_6775.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277463858719800_6775.jpg', '-y'] +Thumb created: t_5565051026_1771277463858719800_6775.jpg (20045 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:41.250): ['ffmpeg', '-ss', '00:02:41.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277463522205900_2795\\dl_5565051026_1771277463522205900_2795.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277463522205900_2795.jpg', '-y'] +Thumb created: t_5565051026_1771277463522205900_2795.jpg (202106 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:06.750): ['ffmpeg', '-ss', '00:00:06.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277465231711000_4834\\dl_5565051026_1771277465231711000_4834.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277465231711000_4834.jpg', '-y'] +Thumb created: t_5565051026_1771277465231711000_4834.jpg (220071 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:12.600): ['ffmpeg', '-ss', '00:01:12.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277465029449300_4530\\dl_5565051026_1771277465029449300_4530.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277465029449300_4530.jpg', '-y'] +Thumb created: t_5565051026_1771277465029449300_4530.jpg (217847 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:08.250): ['ffmpeg', '-ss', '00:01:08.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277465662003700_9400\\dl_5565051026_1771277465662003700_9400.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277465662003700_9400.jpg', '-y'] +Thumb created: t_5565051026_1771277465662003700_9400.jpg (249087 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:04:02.100): ['ffmpeg', '-ss', '00:04:02.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277466131024500_1069\\dl_5565051026_1771277466131024500_1069.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277466131024500_1069.jpg', '-y'] +Thumb created: t_5565051026_1771277466131024500_1069.jpg (137683 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.950): ['ffmpeg', '-ss', '00:01:34.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277913532038600_4416\\dl_5565051026_1771277913532038600_4416.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277913532038600_4416.jpg', '-y'] +Thumb created: t_5565051026_1771277913532038600_4416.jpg (179307 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:13.950): ['ffmpeg', '-ss', '00:03:13.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771277912736141000_7547\\dl_5565051026_1771277912736141000_7547.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771277912736141000_7547.jpg', '-y'] +Thumb created: t_5565051026_1771277912736141000_7547.jpg (219498 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.650): ['ffmpeg', '-ss', '00:01:34.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771278376613147900_8644\\dl_5565051026_1771278376613147900_8644.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771278376613147900_8644.jpg', '-y'] +Thumb created: t_5565051026_1771278376613147900_8644.jpg (219193 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:53.700): ['ffmpeg', '-ss', '00:01:53.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771278376342822200_1081\\dl_5565051026_1771278376342822200_1081.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771278376342822200_1081.jpg', '-y'] +Thumb created: t_5565051026_1771278376342822200_1081.jpg (149264 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:43.950): ['ffmpeg', '-ss', '00:02:43.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771278695753782300_2619\\dl_5565051026_1771278695753782300_2619.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771278695753782300_2619.jpg', '-y'] +Thumb created: t_5565051026_1771278695753782300_2619.jpg (138637 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:36.000): ['ffmpeg', '-ss', '00:01:36.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771278695273884000_8085\\dl_5565051026_1771278695273884000_8085.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771278695273884000_8085.jpg', '-y'] +Thumb created: t_5565051026_1771278695273884000_8085.jpg (185371 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:24.000): ['ffmpeg', '-ss', '00:01:24.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771278846468331200_6052\\dl_5565051026_1771278846468331200_6052.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771278846468331200_6052.jpg', '-y'] +Thumb created: t_5565051026_1771278846468331200_6052.jpg (157691 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:26.250): ['ffmpeg', '-ss', '00:01:26.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771279163993568400_2320_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771279163993568400_2320.jpg', '-y'] +Thumb created: t_5565051026_1771279163993568400_2320.jpg (43270 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:40.650): ['ffmpeg', '-ss', '00:01:40.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771279247355438500_7729\\dl_5565051026_1771279247355438500_7729.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771279247355438500_7729.jpg', '-y'] +Thumb created: t_5565051026_1771279247355438500_7729.jpg (132114 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:12:20.700): ['ffmpeg', '-ss', '00:12:20.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771363605800745800_8060_temp_part1.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771363605800745800_8060.jpg', '-y'] +Thumb created: t_5565051026_1771363605800745800_8060.jpg (81746 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:12:20.700): ['ffmpeg', '-ss', '00:12:20.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771363758002883100_6821_temp_part1.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771363758002883100_6821.jpg', '-y'] +Thumb created: t_5565051026_1771363758002883100_6821.jpg (81746 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:04:20.700): ['ffmpeg', '-ss', '00:04:20.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771363935305151800_6286_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771363935305151800_6286.jpg', '-y'] +Thumb created: t_5565051026_1771363935305151800_6286.jpg (77714 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:12:20.700): ['ffmpeg', '-ss', '00:12:20.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771363605800745800_8060_temp_part2.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771363605800745800_8060.jpg', '-y'] +Thumb created: t_5565051026_1771363605800745800_8060.jpg (89250 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:12:20.700): ['ffmpeg', '-ss', '00:12:20.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1771363758002883100_6821_temp_part2.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771363758002883100_6821.jpg', '-y'] +Thumb created: t_5565051026_1771363758002883100_6821.jpg (89250 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:25.350): ['ffmpeg', '-ss', '00:00:25.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600825835985500_9769\\dl_5565051026_1771600825835985500_9769.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600825835985500_9769.jpg', '-y'] +Thumb created: t_5565051026_1771600825835985500_9769.jpg (151493 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:15.000): ['ffmpeg', '-ss', '00:01:15.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600825591086400_5893\\dl_5565051026_1771600825591086400_5893.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600825591086400_5893.jpg', '-y'] +Thumb created: t_5565051026_1771600825591086400_5893.jpg (109198 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:14.550): ['ffmpeg', '-ss', '00:01:14.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826016030700_5875\\dl_5565051026_1771600826016030700_5875.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826016030700_5875.jpg', '-y'] +Thumb created: t_5565051026_1771600826016030700_5875.jpg (57516 bytes) +Raw Meta: w=588, h=392, sar=1:1 +Final Meta: w=588, h=392 +Thumb Cmd 1 (00:00:55.200): ['ffmpeg', '-ss', '00:00:55.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826205105000_9130\\dl_5565051026_1771600826205105000_9130.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826205105000_9130.jpg', '-y'] +Thumb created: t_5565051026_1771600826205105000_9130.jpg (10078 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:02.250): ['ffmpeg', '-ss', '00:02:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826024026000_2904\\dl_5565051026_1771600826024026000_2904.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826024026000_2904.jpg', '-y'] +Thumb created: t_5565051026_1771600826024026000_2904.jpg (97787 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:41.700): ['ffmpeg', '-ss', '00:00:41.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826162087600_9766\\dl_5565051026_1771600826162087600_9766.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826162087600_9766.jpg', '-y'] +Thumb created: t_5565051026_1771600826162087600_9766.jpg (131173 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:38.550): ['ffmpeg', '-ss', '00:00:38.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826111093400_2042\\dl_5565051026_1771600826111093400_2042.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826111093400_2042.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:13.350): ['ffmpeg', '-ss', '00:02:13.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826107031800_5040\\dl_5565051026_1771600826107031800_5040.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826107031800_5040.jpg', '-y'] +Thumb created: t_5565051026_1771600826111093400_2042.jpg (122986 bytes) +Thumb created: t_5565051026_1771600826107031800_5040.jpg (185995 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:33.750): ['ffmpeg', '-ss', '00:00:33.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826212088100_6364\\dl_5565051026_1771600826212088100_6364.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826212088100_6364.jpg', '-y'] +Thumb created: t_5565051026_1771600826212088100_6364.jpg (46429 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.150): ['ffmpeg', '-ss', '00:00:03.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826394224000_7341\\dl_5565051026_1771600826394224000_7341.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826394224000_7341.jpg', '-y'] +Thumb created: t_5565051026_1771600826394224000_7341.jpg (59199 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:27.450): ['ffmpeg', '-ss', '00:00:27.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826216089900_1381\\dl_5565051026_1771600826216089900_1381.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826216089900_1381.jpg', '-y'] +Thumb created: t_5565051026_1771600826216089900_1381.jpg (154352 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:11.400): ['ffmpeg', '-ss', '00:01:11.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826224085100_2302\\dl_5565051026_1771600826224085100_2302.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826224085100_2302.jpg', '-y'] +Thumb created: t_5565051026_1771600826224085100_2302.jpg (128272 bytes) +Raw Meta: w=588, h=392, sar=8:9 +Corrected w=522 +Final Meta: w=522, h=392 +Thumb Cmd 1 (00:04:51.300): ['ffmpeg', '-ss', '00:04:51.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826597859400_5382\\dl_5565051026_1771600826597859400_5382.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826597859400_5382.jpg', '-y'] +Thumb created: t_5565051026_1771600826597859400_5382.jpg (28162 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:07.350): ['ffmpeg', '-ss', '00:00:07.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827137162500_9200\\dl_5565051026_1771600827137162500_9200.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827137162500_9200.jpg', '-y'] +Thumb created: t_5565051026_1771600827137162500_9200.jpg (45492 bytes) +Raw Meta: w=1928, h=1076, sar=2306:2307 +Corrected w=1927 +Final Meta: w=1927, h=1076 +Thumb Cmd 1 (00:01:40.500): ['ffmpeg', '-ss', '00:01:40.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826773362300_3343\\dl_5565051026_1771600826773362300_3343.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826773362300_3343.jpg', '-y'] +Thumb created: t_5565051026_1771600826773362300_3343.jpg (165053 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:15.450): ['ffmpeg', '-ss', '00:01:15.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826973167200_6837\\dl_5565051026_1771600826973167200_6837.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826973167200_6837.jpg', '-y'] +Thumb created: t_5565051026_1771600826973167200_6837.jpg (59307 bytes) +Raw Meta: w=554, h=416, sar=832:831 +Corrected w=554 +Final Meta: w=554, h=416 +Thumb Cmd 1 (00:05:21.900): ['ffmpeg', '-ss', '00:05:21.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827033166500_3835\\dl_5565051026_1771600827033166500_3835.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827033166500_3835.jpg', '-y'] +Thumb created: t_5565051026_1771600827033166500_3835.jpg (27918 bytes) +Raw Meta: w=738, h=554, sar=None +Final Meta: w=738, h=554 +Thumb Cmd 1 (00:07:16.200): ['ffmpeg', '-ss', '00:07:16.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600826739356300_9082\\dl_5565051026_1771600826739356300_9082.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600826739356300_9082.jpg', '-y'] +Thumb created: t_5565051026_1771600826739356300_9082.jpg (29863 bytes) +Raw Meta: w=588, h=392, sar=1:1 +Final Meta: w=588, h=392 +Thumb Cmd 1 (00:02:24.750): ['ffmpeg', '-ss', '00:02:24.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827142180800_7690\\dl_5565051026_1771600827142180800_7690.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827142180800_7690.jpg', '-y'] +Thumb created: t_5565051026_1771600827142180800_7690.jpg (25571 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:48.900): ['ffmpeg', '-ss', '00:00:48.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827545575200_4076\\dl_5565051026_1771600827545575200_4076.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827545575200_4076.jpg', '-y'] +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:01:03.000): ['ffmpeg', '-ss', '00:01:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827695960400_4205\\dl_5565051026_1771600827695960400_4205.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827695960400_4205.jpg', '-y'] +Thumb created: t_5565051026_1771600827545575200_4076.jpg (229633 bytes) +Thumb created: t_5565051026_1771600827695960400_4205.jpg (58553 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:49.200): ['ffmpeg', '-ss', '00:01:49.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827376576800_8155\\dl_5565051026_1771600827376576800_8155.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827376576800_8155.jpg', '-y'] +Thumb created: t_5565051026_1771600827376576800_8155.jpg (201547 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:52.050): ['ffmpeg', '-ss', '00:01:52.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827807954100_3857\\dl_5565051026_1771600827807954100_3857.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827807954100_3857.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:20.400): ['ffmpeg', '-ss', '00:02:20.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827501573000_9802\\dl_5565051026_1771600827501573000_9802.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827501573000_9802.jpg', '-y'] +Thumb created: t_5565051026_1771600827807954100_3857.jpg (87951 bytes) +Thumb created: t_5565051026_1771600827501573000_9802.jpg (190583 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:23.850): ['ffmpeg', '-ss', '00:01:23.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600827905960300_9292\\dl_5565051026_1771600827905960300_9292.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600827905960300_9292.jpg', '-y'] +Thumb created: t_5565051026_1771600827905960300_9292.jpg (95012 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:58.800): ['ffmpeg', '-ss', '00:00:58.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828010949100_7044\\dl_5565051026_1771600828010949100_7044.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828010949100_7044.jpg', '-y'] +Thumb created: t_5565051026_1771600828010949100_7044.jpg (164885 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:01.200): ['ffmpeg', '-ss', '00:01:01.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828261966500_9007\\dl_5565051026_1771600828261966500_9007.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828261966500_9007.jpg', '-y'] +Thumb created: t_5565051026_1771600828261966500_9007.jpg (90722 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:10.500): ['ffmpeg', '-ss', '00:01:10.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828292933500_8153\\dl_5565051026_1771600828292933500_8153.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828292933500_8153.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:03:17.250): ['ffmpeg', '-ss', '00:03:17.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828103939800_5331\\dl_5565051026_1771600828103939800_5331.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828103939800_5331.jpg', '-y'] +Thumb created: t_5565051026_1771600828292933500_8153.jpg (73619 bytes) +Thumb created: t_5565051026_1771600828103939800_5331.jpg (82556 bytes) +Raw Meta: w=812, h=504, sar=1:1 +Final Meta: w=812, h=504 +Thumb Cmd 1 (00:01:03.000): ['ffmpeg', '-ss', '00:01:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828558947400_7920\\dl_5565051026_1771600828558947400_7920.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828558947400_7920.jpg', '-y'] +Thumb created: t_5565051026_1771600828558947400_7920.jpg (48456 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.350): ['ffmpeg', '-ss', '00:01:34.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828360932400_8545\\dl_5565051026_1771600828360932400_8545.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828360932400_8545.jpg', '-y'] +Thumb created: t_5565051026_1771600828360932400_8545.jpg (211729 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:04.350): ['ffmpeg', '-ss', '00:00:04.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831529591900_1717\\dl_5565051026_1771600831529591900_1717.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831529591900_1717.jpg', '-y'] +Thumb created: t_5565051026_1771600831529591900_1717.jpg (173816 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:56.250): ['ffmpeg', '-ss', '00:00:56.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831642539900_1894\\dl_5565051026_1771600831642539900_1894.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831642539900_1894.jpg', '-y'] +Thumb created: t_5565051026_1771600831642539900_1894.jpg (112331 bytes) +Raw Meta: w=640, h=360, sar=1:1 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:00:45.900): ['ffmpeg', '-ss', '00:00:45.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831648529700_9566\\dl_5565051026_1771600831648529700_9566.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831648529700_9566.jpg', '-y'] +Thumb created: t_5565051026_1771600831648529700_9566.jpg (26904 bytes) +Raw Meta: w=634, h=364, sar=1:1 +Final Meta: w=634, h=364 +Thumb Cmd 1 (00:00:45.150): ['ffmpeg', '-ss', '00:00:45.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828734546600_6505\\dl_5565051026_1771600828734546600_6505.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828734546600_6505.jpg', '-y'] +Thumb created: t_5565051026_1771600828734546600_6505.jpg (24765 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:04.500): ['ffmpeg', '-ss', '00:01:04.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831912755600_1235\\dl_5565051026_1771600831912755600_1235.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831912755600_1235.jpg', '-y'] +Thumb created: t_5565051026_1771600831912755600_1235.jpg (153728 bytes) +Raw Meta: w=854, h=480, sar=None +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:01:01.500): ['ffmpeg', '-ss', '00:01:01.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831860759200_6484\\dl_5565051026_1771600831860759200_6484.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831860759200_6484.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:19.800): ['ffmpeg', '-ss', '00:01:19.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600828616917500_6739\\dl_5565051026_1771600828616917500_6739.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600828616917500_6739.jpg', '-y'] +Thumb created: t_5565051026_1771600831860759200_6484.jpg (38800 bytes) +Thumb created: t_5565051026_1771600828616917500_6739.jpg (138138 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:06:34.500): ['ffmpeg', '-ss', '00:06:34.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831497396000_1196\\dl_5565051026_1771600831497396000_1196.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831497396000_1196.jpg', '-y'] +Thumb created: t_5565051026_1771600831497396000_1196.jpg (187320 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:14.100): ['ffmpeg', '-ss', '00:01:14.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831926387000_9248\\dl_5565051026_1771600831926387000_9248.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831926387000_9248.jpg', '-y'] +Thumb created: t_5565051026_1771600831926387000_9248.jpg (88944 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:31.500): ['ffmpeg', '-ss', '00:01:31.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600831919387000_1923\\dl_5565051026_1771600831919387000_1923.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600831919387000_1923.jpg', '-y'] +Thumb created: t_5565051026_1771600831919387000_1923.jpg (76283 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:36.300): ['ffmpeg', '-ss', '00:01:36.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771600829048619400_6246\\dl_5565051026_1771600829048619400_6246.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771600829048619400_6246.jpg', '-y'] +Thumb created: t_5565051026_1771600829048619400_6246.jpg (159055 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:33.750): ['ffmpeg', '-ss', '00:00:33.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603216740068000_7603\\dl_5565051026_1771603216740068000_7603.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603216740068000_7603.jpg', '-y'] +Thumb created: t_5565051026_1771603216740068000_7603.jpg (46429 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:38.550): ['ffmpeg', '-ss', '00:00:38.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603216981720600_7815\\dl_5565051026_1771603216981720600_7815.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603216981720600_7815.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:25.350): ['ffmpeg', '-ss', '00:00:25.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603216800104500_9135\\dl_5565051026_1771603216800104500_9135.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603216800104500_9135.jpg', '-y'] +Thumb created: t_5565051026_1771603216981720600_7815.jpg (122986 bytes) +Thumb created: t_5565051026_1771603216800104500_9135.jpg (151493 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:13.350): ['ffmpeg', '-ss', '00:02:13.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603216604745800_3427\\dl_5565051026_1771603216604745800_3427.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603216604745800_3427.jpg', '-y'] +Thumb created: t_5565051026_1771603216604745800_3427.jpg (185995 bytes) +Raw Meta: w=588, h=392, sar=1:1 +Final Meta: w=588, h=392 +Thumb Cmd 1 (00:00:55.200): ['ffmpeg', '-ss', '00:00:55.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217125948000_8351\\dl_5565051026_1771603217125948000_8351.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217125948000_8351.jpg', '-y'] +Thumb created: t_5565051026_1771603217125948000_8351.jpg (10078 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:03.150): ['ffmpeg', '-ss', '00:00:03.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217517966700_9384\\dl_5565051026_1771603217517966700_9384.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217517966700_9384.jpg', '-y'] +Thumb created: t_5565051026_1771603217517966700_9384.jpg (59199 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:15.000): ['ffmpeg', '-ss', '00:01:15.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217202947000_7376\\dl_5565051026_1771603217202947000_7376.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217202947000_7376.jpg', '-y'] +Thumb created: t_5565051026_1771603217202947000_7376.jpg (109198 bytes) +Raw Meta: w=588, h=392, sar=8:9 +Corrected w=522 +Final Meta: w=522, h=392 +Thumb Cmd 1 (00:04:51.300): ['ffmpeg', '-ss', '00:04:51.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217284938700_2574\\dl_5565051026_1771603217284938700_2574.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217284938700_2574.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:14.550): ['ffmpeg', '-ss', '00:01:14.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217369934000_4127\\dl_5565051026_1771603217369934000_4127.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217369934000_4127.jpg', '-y'] +Thumb created: t_5565051026_1771603217284938700_2574.jpg (28162 bytes) +Thumb created: t_5565051026_1771603217369934000_4127.jpg (57516 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:41.700): ['ffmpeg', '-ss', '00:00:41.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217605963500_9685\\dl_5565051026_1771603217605963500_9685.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217605963500_9685.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:02.250): ['ffmpeg', '-ss', '00:02:02.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217440934300_5602\\dl_5565051026_1771603217440934300_5602.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217440934300_5602.jpg', '-y'] +Thumb created: t_5565051026_1771603217605963500_9685.jpg (131173 bytes) +Thumb created: t_5565051026_1771603217440934300_5602.jpg (97787 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:07.350): ['ffmpeg', '-ss', '00:00:07.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217814771800_9193\\dl_5565051026_1771603217814771800_9193.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217814771800_9193.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:27.450): ['ffmpeg', '-ss', '00:00:27.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217650147700_9789\\dl_5565051026_1771603217650147700_9789.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217650147700_9789.jpg', '-y'] +Thumb created: t_5565051026_1771603217814771800_9193.jpg (45492 bytes) +Thumb created: t_5565051026_1771603217650147700_9789.jpg (154352 bytes) +Raw Meta: w=738, h=554, sar=None +Final Meta: w=738, h=554 +Thumb Cmd 1 (00:07:16.200): ['ffmpeg', '-ss', '00:07:16.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217718625100_5104\\dl_5565051026_1771603217718625100_5104.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217718625100_5104.jpg', '-y'] +Thumb created: t_5565051026_1771603217718625100_5104.jpg (29863 bytes) +Raw Meta: w=588, h=392, sar=1:1 +Final Meta: w=588, h=392 +Thumb Cmd 1 (00:02:24.750): ['ffmpeg', '-ss', '00:02:24.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603217970591300_3018\\dl_5565051026_1771603217970591300_3018.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603217970591300_3018.jpg', '-y'] +Raw Meta: w=1928, h=1076, sar=2306:2307 +Corrected w=1927 +Final Meta: w=1927, h=1076 +Thumb Cmd 1 (00:01:40.500): ['ffmpeg', '-ss', '00:01:40.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218036629300_4880\\dl_5565051026_1771603218036629300_4880.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218036629300_4880.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:15.450): ['ffmpeg', '-ss', '00:01:15.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218134000800_4763\\dl_5565051026_1771603218134000800_4763.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218134000800_4763.jpg', '-y'] +Thumb created: t_5565051026_1771603217970591300_3018.jpg (25571 bytes) +Thumb created: t_5565051026_1771603218036629300_4880.jpg (165053 bytes) +Thumb created: t_5565051026_1771603218134000800_4763.jpg (59307 bytes) +Raw Meta: w=554, h=416, sar=832:831 +Corrected w=554 +Final Meta: w=554, h=416 +Thumb Cmd 1 (00:05:21.900): ['ffmpeg', '-ss', '00:05:21.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218207999000_2929\\dl_5565051026_1771603218207999000_2929.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218207999000_2929.jpg', '-y'] +Thumb created: t_5565051026_1771603218207999000_2929.jpg (27918 bytes) +Raw Meta: w=854, h=480, sar=1:1 +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:01:03.000): ['ffmpeg', '-ss', '00:01:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218534664300_8860\\dl_5565051026_1771603218534664300_8860.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218534664300_8860.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:49.200): ['ffmpeg', '-ss', '00:01:49.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218335030600_4445\\dl_5565051026_1771603218335030600_4445.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218335030600_4445.jpg', '-y'] +Thumb created: t_5565051026_1771603218534664300_8860.jpg (58553 bytes) +Thumb created: t_5565051026_1771603218335030600_4445.jpg (201547 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:52.050): ['ffmpeg', '-ss', '00:01:52.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218599662400_3041\\dl_5565051026_1771603218599662400_3041.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218599662400_3041.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:20.400): ['ffmpeg', '-ss', '00:02:20.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218412994700_4845\\dl_5565051026_1771603218412994700_4845.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218412994700_4845.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:48.900): ['ffmpeg', '-ss', '00:00:48.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218744660100_3795\\dl_5565051026_1771603218744660100_3795.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218744660100_3795.jpg', '-y'] +Thumb created: t_5565051026_1771603218599662400_3041.jpg (87951 bytes) +Thumb created: t_5565051026_1771603218412994700_4845.jpg (190583 bytes) +Thumb created: t_5565051026_1771603218744660100_3795.jpg (229633 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:23.850): ['ffmpeg', '-ss', '00:01:23.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603218789662900_3886\\dl_5565051026_1771603218789662900_3886.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603218789662900_3886.jpg', '-y'] +Thumb created: t_5565051026_1771603218789662900_3886.jpg (95012 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:10.500): ['ffmpeg', '-ss', '00:01:10.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219236902400_3327\\dl_5565051026_1771603219236902400_3327.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219236902400_3327.jpg', '-y'] +Thumb created: t_5565051026_1771603219236902400_3327.jpg (73619 bytes) +Raw Meta: w=812, h=504, sar=1:1 +Final Meta: w=812, h=504 +Thumb Cmd 1 (00:01:03.000): ['ffmpeg', '-ss', '00:01:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219314912000_9837\\dl_5565051026_1771603219314912000_9837.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219314912000_9837.jpg', '-y'] +Thumb created: t_5565051026_1771603219314912000_9837.jpg (48456 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:03:17.250): ['ffmpeg', '-ss', '00:03:17.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219155940200_6581\\dl_5565051026_1771603219155940200_6581.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219155940200_6581.jpg', '-y'] +Thumb created: t_5565051026_1771603219155940200_6581.jpg (82556 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:12.000): ['ffmpeg', '-ss', '00:01:12.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219568894300_4569\\dl_5565051026_1771603219568894300_4569.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219568894300_4569.jpg', '-y'] +Thumb created: t_5565051026_1771603219568894300_4569.jpg (132459 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:58.800): ['ffmpeg', '-ss', '00:00:58.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219389902400_8159\\dl_5565051026_1771603219389902400_8159.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219389902400_8159.jpg', '-y'] +Thumb created: t_5565051026_1771603219389902400_8159.jpg (164885 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.350): ['ffmpeg', '-ss', '00:01:34.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603219710932700_1249\\dl_5565051026_1771603219710932700_1249.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603219710932700_1249.jpg', '-y'] +Thumb created: t_5565051026_1771603219710932700_1249.jpg (211729 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:45.150): ['ffmpeg', '-ss', '00:01:45.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603223172136000_9717\\dl_5565051026_1771603223172136000_9717.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603223172136000_9717.jpg', '-y'] +Thumb created: t_5565051026_1771603223172136000_9717.jpg (57426 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:36.300): ['ffmpeg', '-ss', '00:01:36.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603220046003000_7969\\dl_5565051026_1771603220046003000_7969.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603220046003000_7969.jpg', '-y'] +Thumb created: t_5565051026_1771603220046003000_7969.jpg (159055 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:13.650): ['ffmpeg', '-ss', '00:01:13.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771603220184000700_4403\\dl_5565051026_1771603220184000700_4403.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771603220184000700_4403.jpg', '-y'] +Thumb created: t_5565051026_1771603220184000700_4403.jpg (104189 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:45.000): ['ffmpeg', '-ss', '00:00:45.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236111014400_9488\\dl_5565051026_1771606236111014400_9488.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236111014400_9488.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:52.050): ['ffmpeg', '-ss', '00:00:52.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236113014100_6769\\dl_5565051026_1771606236113014100_6769.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236113014100_6769.jpg', '-y'] +Thumb created: t_5565051026_1771606236111014400_9488.jpg (95344 bytes) +Thumb created: t_5565051026_1771606236113014100_6769.jpg (145767 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:27.600): ['ffmpeg', '-ss', '00:00:27.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236119011700_8919\\dl_5565051026_1771606236119011700_8919.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236119011700_8919.jpg', '-y'] +Thumb created: t_5565051026_1771606236119011700_8919.jpg (104020 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:51.000): ['ffmpeg', '-ss', '00:01:51.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236120011600_3299\\dl_5565051026_1771606236120011600_3299.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236120011600_3299.jpg', '-y'] +Thumb created: t_5565051026_1771606236120011600_3299.jpg (193920 bytes) +Raw Meta: w=852, h=480, sar=640:639 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Cmd 1 (00:07:54.300): ['ffmpeg', '-ss', '00:07:54.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236105016100_3129\\dl_5565051026_1771606236105016100_3129.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236105016100_3129.jpg', '-y'] +Thumb created: t_5565051026_1771606236105016100_3129.jpg (54372 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:45.150): ['ffmpeg', '-ss', '00:01:45.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236108013400_1861\\dl_5565051026_1771606236108013400_1861.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236108013400_1861.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:43.650): ['ffmpeg', '-ss', '00:01:43.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236178010100_7400\\dl_5565051026_1771606236178010100_7400.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236178010100_7400.jpg', '-y'] +Thumb created: t_5565051026_1771606236178010100_7400.jpg (90924 bytes) +Thumb created: t_5565051026_1771606236108013400_1861.jpg (57426 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:54.000): ['ffmpeg', '-ss', '00:00:54.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236279578400_8100\\dl_5565051026_1771606236279578400_8100.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236279578400_8100.jpg', '-y'] +Thumb created: t_5565051026_1771606236279578400_8100.jpg (86265 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:17.850): ['ffmpeg', '-ss', '00:02:17.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236117013500_2540\\dl_5565051026_1771606236117013500_2540.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236117013500_2540.jpg', '-y'] +Thumb created: t_5565051026_1771606236117013500_2540.jpg (185266 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:15.750): ['ffmpeg', '-ss', '00:02:15.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606236301650200_8733\\dl_5565051026_1771606236301650200_8733.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606236301650200_8733.jpg', '-y'] +Thumb created: t_5565051026_1771606236301650200_8733.jpg (135419 bytes) +Raw Meta: w=854, h=480, sar=1280:1281 +Corrected w=853 +Final Meta: w=853, h=480 +Thumb Cmd 1 (00:00:05.850): ['ffmpeg', '-ss', '00:00:05.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606514237897900_1394\\dl_5565051026_1771606514237897900_1394.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606514237897900_1394.jpg', '-y'] +Thumb created: t_5565051026_1771606514237897900_1394.jpg (55224 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:07.500): ['ffmpeg', '-ss', '00:01:07.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606514629432000_8327\\dl_5565051026_1771606514629432000_8327.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606514629432000_8327.jpg', '-y'] +Thumb created: t_5565051026_1771606514629432000_8327.jpg (170293 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:03:36.600): ['ffmpeg', '-ss', '00:03:36.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606514318796400_2053\\dl_5565051026_1771606514318796400_2053.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606514318796400_2053.jpg', '-y'] +Thumb created: t_5565051026_1771606514318796400_2053.jpg (47542 bytes) +Raw Meta: w=636, h=360, sar=213:212 +Corrected w=639 +Final Meta: w=639, h=360 +Thumb Cmd 1 (00:10:40.500): ['ffmpeg', '-ss', '00:10:40.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606514504602000_5943\\dl_5565051026_1771606514504602000_5943.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606514504602000_5943.jpg', '-y'] +Thumb created: t_5565051026_1771606514504602000_5943.jpg (21089 bytes) +Raw Meta: w=854, h=480, sar=None +Final Meta: w=854, h=480 +Thumb Cmd 1 (00:01:05.250): ['ffmpeg', '-ss', '00:01:05.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813801016200_4222\\dl_5565051026_1771606813801016200_4222.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813801016200_4222.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:15.600): ['ffmpeg', '-ss', '00:01:15.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813480027100_2865\\dl_5565051026_1771606813480027100_2865.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813480027100_2865.jpg', '-y'] +Thumb created: t_5565051026_1771606813801016200_4222.jpg (39706 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:56.850): ['ffmpeg', '-ss', '00:01:56.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813117020000_4208\\dl_5565051026_1771606813117020000_4208.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813117020000_4208.jpg', '-y'] +Thumb created: t_5565051026_1771606813117020000_4208.jpg (118472 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:52.050): ['ffmpeg', '-ss', '00:01:52.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813365026200_5501\\dl_5565051026_1771606813365026200_5501.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813365026200_5501.jpg', '-y'] +Thumb created: t_5565051026_1771606813365026200_5501.jpg (91334 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:47.550): ['ffmpeg', '-ss', '00:01:47.550', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813807060300_5957\\dl_5565051026_1771606813807060300_5957.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813807060300_5957.jpg', '-y'] +Thumb created: t_5565051026_1771606813807060300_5957.jpg (279926 bytes) +Raw Meta: w=1280, h=720, sar=None +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:11.250): ['ffmpeg', '-ss', '00:01:11.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606814052022900_7577\\dl_5565051026_1771606814052022900_7577.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606814052022900_7577.jpg', '-y'] +Thumb created: t_5565051026_1771606814052022900_7577.jpg (117352 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:46.800): ['ffmpeg', '-ss', '00:01:46.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813843017400_6300\\dl_5565051026_1771606813843017400_6300.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813843017400_6300.jpg', '-y'] +Thumb created: t_5565051026_1771606813843017400_6300.jpg (102894 bytes) +Raw Meta: w=640, h=360, sar=1281:1280 +Corrected w=640 +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:05:55.200): ['ffmpeg', '-ss', '00:05:55.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771606813956022400_7087\\dl_5565051026_1771606813956022400_7087.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771606813956022400_7087.jpg', '-y'] +Thumb created: t_5565051026_1771606813956022400_7087.jpg (25660 bytes) +Thumb created: t_5565051026_1771606813480027100_2865.jpg (124501 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:26.400): ['ffmpeg', '-ss', '00:01:26.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607254944561300_8587\\dl_5565051026_1771607254944561300_8587.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607254944561300_8587.jpg', '-y'] +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:47.850): ['ffmpeg', '-ss', '00:01:47.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607255012816000_5009\\dl_5565051026_1771607255012816000_5009.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607255012816000_5009.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:13.650): ['ffmpeg', '-ss', '00:01:13.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607254933590500_7580\\dl_5565051026_1771607254933590500_7580.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607254933590500_7580.jpg', '-y'] +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:15.000): ['ffmpeg', '-ss', '00:01:15.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607254895833100_8524\\dl_5565051026_1771607254895833100_8524.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607254895833100_8524.jpg', '-y'] +Thumb created: t_5565051026_1771607254944561300_8587.jpg (109599 bytes) +Thumb created: t_5565051026_1771607255012816000_5009.jpg (139365 bytes) +Thumb created: t_5565051026_1771607254933590500_7580.jpg (104189 bytes) +Thumb created: t_5565051026_1771607254895833100_8524.jpg (79953 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:00:54.900): ['ffmpeg', '-ss', '00:00:54.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607255056052700_9525\\dl_5565051026_1771607255056052700_9525.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607255056052700_9525.jpg', '-y'] +Raw Meta: w=640, h=360, sar=None +Final Meta: w=640, h=360 +Thumb Cmd 1 (00:01:51.450): ['ffmpeg', '-ss', '00:01:51.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607255177660200_1471\\dl_5565051026_1771607255177660200_1471.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607255177660200_1471.jpg', '-y'] +Thumb created: t_5565051026_1771607255056052700_9525.jpg (123149 bytes) +Thumb created: t_5565051026_1771607255177660200_1471.jpg (35231 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:05:38.400): ['ffmpeg', '-ss', '00:05:38.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607254948557400_1181\\dl_5565051026_1771607254948557400_1181.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607254948557400_1181.jpg', '-y'] +Thumb created: t_5565051026_1771607254948557400_1181.jpg (233039 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:05:38.400): ['ffmpeg', '-ss', '00:05:38.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607704558393900_2493\\dl_5565051026_1771607704558393900_2493.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607704558393900_2493.jpg', '-y'] +Thumb created: t_5565051026_1771607704558393900_2493.jpg (233039 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:12.000): ['ffmpeg', '-ss', '00:01:12.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1771607948067064700_6193\\dl_5565051026_1771607948067064700_6193.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1771607948067064700_6193.jpg', '-y'] +Thumb created: t_5565051026_1771607948067064700_6193.jpg (132459 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:18.600): ['ffmpeg', '-ss', '00:02:18.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225442859798400_5945\\dl_5565051026_1772225442859798400_5945.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225442859798400_5945.jpg', '-y'] +Thumb created: t_5565051026_1772225442859798400_5945.jpg (107084 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:01.050): ['ffmpeg', '-ss', '00:01:01.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225516730381800_8977\\dl_5565051026_1772225516730381800_8977.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225516730381800_8977.jpg', '-y'] +Thumb created: t_5565051026_1772225516730381800_8977.jpg (77075 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:30.000): ['ffmpeg', '-ss', '00:01:30.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225538690939900_2927\\dl_5565051026_1772225538690939900_2927.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225538690939900_2927.jpg', '-y'] +Thumb created: t_5565051026_1772225538690939900_2927.jpg (164180 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:09.450): ['ffmpeg', '-ss', '00:00:09.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225775122453200_2229\\dl_5565051026_1772225775122453200_2229.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225775122453200_2229.jpg', '-y'] +Thumb created: t_5565051026_1772225775122453200_2229.jpg (120678 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:11.100): ['ffmpeg', '-ss', '00:00:11.100', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225820201056200_2012\\dl_5565051026_1772225820201056200_2012.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225820201056200_2012.jpg', '-y'] +Thumb created: t_5565051026_1772225820201056200_2012.jpg (207821 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:10.950): ['ffmpeg', '-ss', '00:00:10.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772225917415947100_8106\\dl_5565051026_1772225917415947100_8106.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772225917415947100_8106.jpg', '-y'] +Thumb created: t_5565051026_1772225917415947100_8106.jpg (153820 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:39.000): ['ffmpeg', '-ss', '00:01:39.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226007012023300_7454\\dl_5565051026_1772226007012023300_7454.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226007012023300_7454.jpg', '-y'] +Thumb created: t_5565051026_1772226007012023300_7454.jpg (169985 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:19.500): ['ffmpeg', '-ss', '00:02:19.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226017423716400_4393\\dl_5565051026_1772226017423716400_4393.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226017423716400_4393.jpg', '-y'] +Thumb created: t_5565051026_1772226017423716400_4393.jpg (216559 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:19.200): ['ffmpeg', '-ss', '00:02:19.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226027402642600_6419\\dl_5565051026_1772226027402642600_6419.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226027402642600_6419.jpg', '-y'] +Thumb created: t_5565051026_1772226027402642600_6419.jpg (147517 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:10.650): ['ffmpeg', '-ss', '00:01:10.650', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226036853562200_3350\\dl_5565051026_1772226036853562200_3350.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226036853562200_3350.jpg', '-y'] +Thumb created: t_5565051026_1772226036853562200_3350.jpg (174950 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:09.600): ['ffmpeg', '-ss', '00:01:09.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226045862444400_3868\\dl_5565051026_1772226045862444400_3868.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226045862444400_3868.jpg', '-y'] +Thumb created: t_5565051026_1772226045862444400_3868.jpg (209011 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:46.350): ['ffmpeg', '-ss', '00:03:46.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226053351202200_3349\\dl_5565051026_1772226053351202200_3349.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226053351202200_3349.jpg', '-y'] +Thumb created: t_5565051026_1772226053351202200_3349.jpg (84825 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:20.850): ['ffmpeg', '-ss', '00:00:20.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226088479554400_4041\\dl_5565051026_1772226088479554400_4041.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226088479554400_4041.jpg', '-y'] +Thumb created: t_5565051026_1772226088479554400_4041.jpg (126110 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:04:11.400): ['ffmpeg', '-ss', '00:04:11.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226074390623500_1731\\dl_5565051026_1772226074390623500_1731.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226074390623500_1731.jpg', '-y'] +Thumb created: t_5565051026_1772226074390623500_1731.jpg (243311 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:06:56.250): ['ffmpeg', '-ss', '00:06:56.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226096003002400_7954\\dl_5565051026_1772226096003002400_7954.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226096003002400_7954.jpg', '-y'] +Thumb created: t_5565051026_1772226096003002400_7954.jpg (71804 bytes) +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:01:28.500): ['ffmpeg', '-ss', '00:01:28.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226109884456900_1644\\dl_5565051026_1772226109884456900_1644.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226109884456900_1644.jpg', '-y'] +Thumb created: t_5565051026_1772226109884456900_1644.jpg (256872 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:09.150): ['ffmpeg', '-ss', '00:00:09.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226128449778200_2913\\dl_5565051026_1772226128449778200_2913.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226128449778200_2913.jpg', '-y'] +Thumb created: t_5565051026_1772226128449778200_2913.jpg (160820 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:09.450): ['ffmpeg', '-ss', '00:02:09.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226144600898700_8939\\dl_5565051026_1772226144600898700_8939.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226144600898700_8939.jpg', '-y'] +Thumb created: t_5565051026_1772226144600898700_8939.jpg (258811 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:09.450): ['ffmpeg', '-ss', '00:02:09.450', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226242204291300_1586\\dl_5565051026_1772226242204291300_1586.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226242204291300_1586.jpg', '-y'] +Thumb created: t_5565051026_1772226242204291300_1586.jpg (258811 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:30.150): ['ffmpeg', '-ss', '00:01:30.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772226293567364100_7376.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226293567364100_7376.jpg', '-y'] +Thumb created: t_5565051026_1772226293567364100_7376.jpg (125793 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:20.850): ['ffmpeg', '-ss', '00:02:20.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226298486606100_1250\\dl_5565051026_1772226298486606100_1250.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226298486606100_1250.jpg', '-y'] +Thumb created: t_5565051026_1772226298486606100_1250.jpg (177800 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:51.900): ['ffmpeg', '-ss', '00:01:51.900', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226314663431100_3767\\dl_5565051026_1772226314663431100_3767.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226314663431100_3767.jpg', '-y'] +Thumb created: t_5565051026_1772226314663431100_3767.jpg (105507 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:05:25.200): ['ffmpeg', '-ss', '00:05:25.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226322216492800_6179\\dl_5565051026_1772226322216492800_6179.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226322216492800_6179.jpg', '-y'] +Thumb created: t_5565051026_1772226322216492800_6179.jpg (151995 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:30.150): ['ffmpeg', '-ss', '00:01:30.150', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226339040303400_9975\\dl_5565051026_1772226339040303400_9975.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226339040303400_9975.jpg', '-y'] +Thumb created: t_5565051026_1772226339040303400_9975.jpg (69244 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:26.250): ['ffmpeg', '-ss', '00:02:26.250', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226331662917800_5345\\dl_5565051026_1772226331662917800_5345.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226331662917800_5345.jpg', '-y'] +Thumb created: t_5565051026_1772226331662917800_5345.jpg (157036 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:05:44.850): ['ffmpeg', '-ss', '00:05:44.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226330282919000_4890\\dl_5565051026_1772226330282919000_4890.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226330282919000_4890.jpg', '-y'] +Thumb created: t_5565051026_1772226330282919000_4890.jpg (139226 bytes) +Raw Meta: w=414, h=558, sar=None +Final Meta: w=414, h=558 +Thumb Cmd 1 (00:04:24.600): ['ffmpeg', '-ss', '00:04:24.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226427317940300_4016\\dl_5565051026_1772226427317940300_4016.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226427317940300_4016.jpg', '-y'] +Thumb created: t_5565051026_1772226427317940300_4016.jpg (21635 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:46.800): ['ffmpeg', '-ss', '00:01:46.800', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226451301841800_8439\\dl_5565051026_1772226451301841800_8439.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226451301841800_8439.jpg', '-y'] +Thumb created: t_5565051026_1772226451301841800_8439.jpg (205179 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:22.500): ['ffmpeg', '-ss', '00:01:22.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226470088870600_4150\\dl_5565051026_1772226470088870600_4150.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226470088870600_4150.jpg', '-y'] +Thumb created: t_5565051026_1772226470088870600_4150.jpg (131712 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:22.500): ['ffmpeg', '-ss', '00:01:22.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226501547971900_9956\\dl_5565051026_1772226501547971900_9956.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226501547971900_9956.jpg', '-y'] +Thumb created: t_5565051026_1772226501547971900_9956.jpg (131712 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:34.050): ['ffmpeg', '-ss', '00:01:34.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226590604853200_1843\\dl_5565051026_1772226590604853200_1843.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226590604853200_1843.jpg', '-y'] +Thumb created: t_5565051026_1772226590604853200_1843.jpg (154410 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:36.750): ['ffmpeg', '-ss', '00:01:36.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226623578178800_8705\\dl_5565051026_1772226623578178800_8705.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226623578178800_8705.jpg', '-y'] +Thumb created: t_5565051026_1772226623578178800_8705.jpg (206185 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:40.200): ['ffmpeg', '-ss', '00:01:40.200', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226631676579400_5956\\dl_5565051026_1772226631676579400_5956.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226631676579400_5956.jpg', '-y'] +Thumb created: t_5565051026_1772226631676579400_5956.jpg (150009 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:39.000): ['ffmpeg', '-ss', '00:01:39.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226683186117000_8644\\dl_5565051026_1772226683186117000_8644.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226683186117000_8644.jpg', '-y'] +Thumb created: t_5565051026_1772226683186117000_8644.jpg (82506 bytes) +Raw Meta: w=1280, h=720, sar=45:44 +Corrected w=1309 +Final Meta: w=1309, h=720 +Thumb Cmd 1 (00:02:03.600): ['ffmpeg', '-ss', '00:02:03.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226712562313700_8743\\dl_5565051026_1772226712562313700_8743.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226712562313700_8743.jpg', '-y'] +Thumb created: t_5565051026_1772226712562313700_8743.jpg (106444 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:32.400): ['ffmpeg', '-ss', '00:01:32.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226766340375800_2458\\dl_5565051026_1772226766340375800_2458.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226766340375800_2458.jpg', '-y'] +Thumb created: t_5565051026_1772226766340375800_2458.jpg (75737 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:33.600): ['ffmpeg', '-ss', '00:01:33.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226839197318800_1123\\dl_5565051026_1772226839197318800_1123.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226839197318800_1123.jpg', '-y'] +Thumb created: t_5565051026_1772226839197318800_1123.jpg (53791 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:01:39.000): ['ffmpeg', '-ss', '00:01:39.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772226843420448700_5243\\dl_5565051026_1772226843420448700_5243.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772226843420448700_5243.jpg', '-y'] +Thumb created: t_5565051026_1772226843420448700_5243.jpg (48658 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:00:04.350): ['ffmpeg', '-ss', '00:00:04.350', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5461941099_1772242605016296300_2086\\dl_5461941099_1772242605016296300_2086.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5461941099_1772242605016296300_2086.jpg', '-y'] +Thumb created: t_5461941099_1772242605016296300_2086.jpg (184436 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:07:12.600): ['ffmpeg', '-ss', '00:07:12.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772823423546325500_7954_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772823423546325500_7954.jpg', '-y'] +Thumb created: t_5565051026_1772823423546325500_7954.jpg (152153 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:05:17.400): ['ffmpeg', '-ss', '00:05:17.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772823481290721600_3994_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772823481290721600_3994.jpg', '-y'] +Thumb created: t_5565051026_1772823481290721600_3994.jpg (114978 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:02:19.950): ['ffmpeg', '-ss', '00:02:19.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772823506767792800_5975_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772823506767792800_5975.jpg', '-y'] +Thumb created: t_5565051026_1772823506767792800_5975.jpg (170685 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:06:09.300): ['ffmpeg', '-ss', '00:06:09.300', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825052485324500_3185_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825052485324500_3185.jpg', '-y'] +Thumb created: t_5565051026_1772825052485324500_3185.jpg (65501 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:12.000): ['ffmpeg', '-ss', '00:01:12.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825074261041900_1221_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825074261041900_1221.jpg', '-y'] +Thumb created: t_5565051026_1772825074261041900_1221.jpg (94393 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:01:12.000): ['ffmpeg', '-ss', '00:01:12.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825139660795400_7403_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825139660795400_7403.jpg', '-y'] +Thumb created: t_5565051026_1772825139660795400_7403.jpg (94393 bytes) +Raw Meta: w=1920, h=1080, sar=None +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:22.950): ['ffmpeg', '-ss', '00:03:22.950', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825328487736300_8850_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825328487736300_8850.jpg', '-y'] +Thumb created: t_5565051026_1772825328487736300_8850.jpg (169329 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:06.600): ['ffmpeg', '-ss', '00:03:06.600', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825457746848600_6633_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825457746848600_6633.jpg', '-y'] +Thumb created: t_5565051026_1772825457746848600_6633.jpg (80894 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:03:24.750): ['ffmpeg', '-ss', '00:03:24.750', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825473520302900_6125_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825473520302900_6125.jpg', '-y'] +Thumb created: t_5565051026_1772825473520302900_6125.jpg (133930 bytes) +Raw Meta: w=1280, h=720, sar=16:15 +Corrected w=1365 +Final Meta: w=1365, h=720 +Thumb Cmd 1 (00:09:16.050): ['ffmpeg', '-ss', '00:09:16.050', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825462592717500_4731_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825462592717500_4731.jpg', '-y'] +Thumb created: t_5565051026_1772825462592717500_4731.jpg (138845 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:05:14.850): ['ffmpeg', '-ss', '00:05:14.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825555484362200_4234_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825555484362200_4234.jpg', '-y'] +Thumb created: t_5565051026_1772825555484362200_4234.jpg (110282 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:07:06.000): ['ffmpeg', '-ss', '00:07:06.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825543234423600_9227_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825543234423600_9227.jpg', '-y'] +Thumb created: t_5565051026_1772825543234423600_9227.jpg (218898 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:07:09.000): ['ffmpeg', '-ss', '00:07:09.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825749627027200_3101_temp_part1.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825749627027200_3101.jpg', '-y'] +Thumb created: t_5565051026_1772825749627027200_3101.jpg (120171 bytes) +Raw Meta: w=1920, h=1080, sar=1:1 +Final Meta: w=1920, h=1080 +Thumb Cmd 1 (00:04:28.500): ['ffmpeg', '-ss', '00:04:28.500', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772826300019766000_6421_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772826300019766000_6421.jpg', '-y'] +Thumb created: t_5565051026_1772826300019766000_6421.jpg (203235 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:02:35.700): ['ffmpeg', '-ss', '00:02:35.700', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772826498659661400_6875_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772826498659661400_6875.jpg', '-y'] +Thumb created: t_5565051026_1772826498659661400_6875.jpg (60719 bytes) +Raw Meta: w=1280, h=720, sar=1:1 +Final Meta: w=1280, h=720 +Thumb Cmd 1 (00:07:09.000): ['ffmpeg', '-ss', '00:07:09.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772825749627027200_3101_temp_part2.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772825749627027200_3101.jpg', '-y'] +Thumb created: t_5565051026_1772825749627027200_3101.jpg (114630 bytes) +Raw Meta: w=406, h=720, sar=None +Final Meta: w=406, h=720 +Thumb Cmd 1 (00:06:11.400): ['ffmpeg', '-ss', '00:06:11.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\dl_5565051026_1772826648265894700_1886_temp.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772826648265894700_1886.jpg', '-y'] +Thumb created: t_5565051026_1772826648265894700_1886.jpg (29254 bytes) +Raw Meta: w=720, h=864, sar=None +Final Meta: w=720, h=864 +Thumb Cmd 1 (00:00:03.000): ['ffmpeg', '-ss', '00:00:03.000', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1772835282455763400_6469\\dl_5565051026_1772835282455763400_6469.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1772835282455763400_6469.jpg', '-y'] +Thumb created: t_5565051026_1772835282455763400_6469.jpg (51845 bytes) +Raw Meta: w=540, h=960, sar=1:1 +Final Meta: w=540, h=960 +Raw Meta: w=540, h=960, sar=1:1 +Final Meta: w=540, h=960 +Meta Error: 'streams' +Raw Meta: w=540, h=960, sar=1:1 +Final Meta: w=540, h=960 +Raw Meta: w=540, h=960, sar=1:1 +Final Meta: w=540, h=960 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Raw Meta: w=576, h=880, sar=1:1 +Final Meta: w=576, h=880 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773075956_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773075956.jpg', '-y'] +Thumb created: t_5565051026_1773075956.jpg (313314 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773077057_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773077057.jpg', '-y'] +Thumb created: t_5565051026_1773077057.jpg (112906 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Raw Meta: w=2160, h=3840, sar=1:1 +Final Meta: w=2160, h=3840 +Thumb Cmd 1 (00:00:02.400): ['ffmpeg', '-ss', '00:00:02.400', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1773077808564443700_4511\\dl_5565051026_1773077808564443700_4511.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773077808564443700_4511.jpg', '-y'] +Thumb created: t_5565051026_1773077808564443700_4511.jpg (392956 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:20.850): ['ffmpeg', '-ss', '00:00:20.850', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\downloads\\url_downloads\\job_5565051026_1773077874224037000_1565\\dl_5565051026_1773077874224037000_1565.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773077874224037000_1565.jpg', '-y'] +Thumb created: t_5565051026_1773077874224037000_1565.jpg (36580 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773078006_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773078006.jpg', '-y'] +Thumb created: t_5565051026_1773078006.jpg (36038 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773078337_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773078337.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773078337_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773078337.jpg', '-y'] +Thumb created: t_5565051026_1773078337.jpg (153611 bytes) +Thumb created: t_5565051026_1773078337.jpg (153611 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773078878_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773078878.jpg', '-y'] +Thumb created: t_5565051026_1773078878.jpg (36038 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773078904_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773078904.jpg', '-y'] +Thumb created: t_5565051026_1773078904.jpg (36038 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079003_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079003.jpg', '-y'] +Thumb created: t_5565051026_1773079003.jpg (36038 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079038_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079038.jpg', '-y'] +Thumb created: t_5565051026_1773079038.jpg (36038 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079206_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079206.jpg', '-y'] +Thumb created: t_5565051026_1773079206.jpg (36038 bytes) +Raw Meta: w=720, h=720, sar=1:1 +Final Meta: w=720, h=720 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079243_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079243.jpg', '-y'] +Thumb created: t_5565051026_1773079243.jpg (36038 bytes) +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079274_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079274.jpg', '-y'] +Thumb created: t_5565051026_1773079274.jpg (118098 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079281_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079281.jpg', '-y'] +Thumb created: t_5565051026_1773079281.jpg (148743 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079286_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079286.jpg', '-y'] +Thumb created: t_5565051026_1773079286.jpg (36963 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079291_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079291.jpg', '-y'] +Thumb created: t_5565051026_1773079291.jpg (153611 bytes) +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079296_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079296.jpg', '-y'] +Thumb created: t_5565051026_1773079296.jpg (313314 bytes) +Raw Meta: w=1080, h=1928, sar=1:1 +Final Meta: w=1080, h=1928 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079302_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079302.jpg', '-y'] +Thumb created: t_5565051026_1773079302.jpg (167706 bytes) +Meta Error: 'streams' +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079448_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079448.jpg', '-y'] +Thumb Cmd 2 (Fallback): ['ffmpeg', '-ss', '00:00:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079448_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079448.jpg', '-y'] +Meta Error: 'streams' +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079448_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079448.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\fusion_auto_final_1773079448_5565051026.mp4 +Thumb Cmd 2 (Fallback): ['ffmpeg', '-ss', '00:00:00', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079448_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079448.jpg', '-y'] +Thumb FAILED for C:\Users\Gonzalo\Downloads\Twisted Brody Waifus & Creampie BRODY\data\fusion_auto_final_1773079448_5565051026.mp4 +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079455_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079455.jpg', '-y'] +Thumb created: t_5565051026_1773079455.jpg (36963 bytes) +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079643_52224_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079643.jpg', '-y'] +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079643_52222_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079643.jpg', '-y'] +Thumb created: t_5565051026_1773079643.jpg (148743 bytes) +Thumb created: t_5565051026_1773079643.jpg (313314 bytes) +Raw Meta: w=1080, h=1920, sar=1:1 +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079644_52225_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079644.jpg', '-y'] +Raw Meta: w=720, h=1280, sar=None +Final Meta: w=720, h=1280 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079644_52223_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079644.jpg', '-y'] +Raw Meta: w=1080, h=1920, sar=None +Final Meta: w=1080, h=1920 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079643_52221_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079643.jpg', '-y'] +Thumb created: t_5565051026_1773079644.jpg (153611 bytes) +Thumb created: t_5565051026_1773079643.jpg (118098 bytes) +Thumb created: t_5565051026_1773079644.jpg (36963 bytes) +Raw Meta: w=1080, h=1928, sar=1:1 +Final Meta: w=1080, h=1928 +Thumb Cmd 1 (00:00:02): ['ffmpeg', '-ss', '00:00:02', '-i', 'C:\\Users\\Gonzalo\\Downloads\\Twisted Brody Waifus & Creampie BRODY\\data\\fusion_auto_final_1773079650_52226_5565051026.mp4', '-vf', 'scale=iw*sar:ih', '-vframes', '1', '-q:v', '2', 't_5565051026_1773079650.jpg', '-y'] +Thumb created: t_5565051026_1773079650.jpg (167706 bytes) diff --git a/Twisted Brody Waifus & Creampie BRODY/patch_utils.py b/Twisted Brody Waifus & Creampie BRODY/patch_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..56425f7d8cfaac739eaf89cba0f478e0fdd6e35f --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/patch_utils.py @@ -0,0 +1,69 @@ +import os + +path = "utils.py" +if not os.path.exists(path): + print("utils.py not found") + exit(1) + +with open(path, "rb") as f: + content = f.read().decode("utf-8", "ignore") + +# Replacement 1: Add --write-metadata +# Only if not already present +if "--write-metadata" not in content: + old_cmd = '"--destination", tmp_dir,' + new_cmd = '"--destination", tmp_dir,\n "--write-metadata",' + content = content.replace(old_cmd, new_cmd) + +# Replacement 2: Return values (Specific function return) +# We need to be careful not to replace other returns +# The function ends with: return files, tmp_dir +# And: return [], None + +if "return files, tmp_dir, metadata_text" not in content: + # We target the context around the return to be safe + old_return = 'return files, tmp_dir' + new_return = 'return files, tmp_dir, metadata_text' + # Use the context of the glob loop to ensure we are in the right place + context_marker = 'files.extend(glob.glob(f"{tmp_dir}/**/*.{ext}", recursive=True))' + + if context_marker in content: + # Add metadata logic + new_logic = """files.extend(glob.glob(f"{tmp_dir}/**/*.{ext}", recursive=True)) + + # Metadata Extraction + metadata_text = "" + try: + import json + import glob # ensure glob is available + json_files = glob.glob(f"{tmp_dir}/**/*.json", recursive=True) + for jf in json_files: + try: + with open(jf, 'r', encoding='utf-8') as f: + data = json.load(f) + # Try to find content/text + text_found = data.get('content') or data.get('description') or data.get('title') or data.get('full_text') or "" + if text_found: + metadata_text = str(text_found).strip() + break + except: continue + except: pass""" + + content = content.replace(context_marker, new_logic) + # Now replace the return ONLY in this function scope? + # Since replace is global, we need to be careful. + # But `return files, tmp_dir` is very specific to this function signature in this file. + content = content.replace(old_return, new_return) + +# Replacement 3: Error return +old_err_return = 'return [], None' +new_err_return = 'return [], None, None' +if old_err_return in content: + # Check if we haven't already done it + if new_err_return not in content: + content = content.replace(old_err_return, new_err_return) + +with open(path, "w", encoding="utf-8") as f: + f.write(content) + +print("Utils.py patched successfully") diff --git a/Twisted Brody Waifus & Creampie BRODY/plugins/__pycache__/media_tools.cpython-311.pyc b/Twisted Brody Waifus & Creampie BRODY/plugins/__pycache__/media_tools.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8986052193e57b0ad259ed901e9c017bc80f5676 Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/plugins/__pycache__/media_tools.cpython-311.pyc differ diff --git a/Twisted Brody Waifus & Creampie BRODY/plugins/media_tools.py b/Twisted Brody Waifus & Creampie BRODY/plugins/media_tools.py new file mode 100644 index 0000000000000000000000000000000000000000..92f17aa536b6d747832e48766be61e8b5ca639e0 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/plugins/media_tools.py @@ -0,0 +1,625 @@ + +import asyncio +import os +import time +import shutil +from pyrogram.types import InputMediaPhoto, InputMediaDocument, InputMediaVideo, InputMediaAudio, InputMediaAnimation +from config import DATA_DIR +from database import get_config +from utils import extract_images_ffmpeg, create_split_zips, video_to_gif_ffmpeg, create_telegram_sticker, search_saucenao, format_saucenao_results, search_tracemoe, format_tracemoe_results, split_video_generic, cut_video_range +from tools_media import get_meta, get_thumb, smart_cut_video, create_video_collage, generate_subtitles_video, progreso +from firebase_service import save_user_config_fb + +# --- HELPER: LOGICA PARTY --- +async def run_party_logic(client, chat_id, file_path, mode, val, msg_to_edit=None, original_msg=None, context_config=None): + # --- LOAD CONFIG FROM CONTEXT OR DB --- + # Si context_config es None, cargamos la actual (comportamiento legacy/fallback) + # Pero si viene del handler, usaremos la "congelada" al momento de iniciar la tarea. + if context_config is None: + context_config = get_config(chat_id) + + if msg_to_edit: + await msg_to_edit.edit(f"⏳ Procesando Party ({mode}={val})...") + else: + sm = await client.send_message(chat_id, f"⏳ Procesando Party ({mode}={val})...") + msg_to_edit = sm + + try: + if mode == 'parts': + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_generic(file_path, mode, float(val))) + elif mode in ['sec', 'min']: + parts = await asyncio.get_running_loop().run_in_executor(None, lambda: split_video_generic(file_path, mode, float(val))) + elif mode == 'range': + pts = str(val).split() + if len(pts) < 2 or len(pts) % 2 != 0: + await msg_to_edit.edit("❌ Formato de rango inválido. Deben ser pares (Ej: '10 20 30 40').") + return False + + parts = [] + for i in range(0, len(pts), 2): + s, e = pts[i], pts[i+1] + p_path = await asyncio.get_running_loop().run_in_executor(None, lambda: cut_video_range(file_path, s, e)) + if p_path: parts.append(p_path) + else: + parts = [] + + if not parts: + await msg_to_edit.edit("❌ Error al procesar el video.") + return False + + # --- LOGICA ZIP MODE --- + # Usamos context_config congelada + is_zip_mode = context_config.get('party_zip', False) + + if is_zip_mode: + await msg_to_edit.edit(f"📦 Comprimiendo {len(parts)} partes en ZIP...") + # Calcular nombre base + base_zip = file_path.rsplit('.', 1)[0] + "_party" + + # Crear zips (run in executor for blocking I/O) + zip_files = await asyncio.get_running_loop().run_in_executor(None, lambda: create_split_zips(parts, base_zip)) + + # Limpiar partes originales ya que están en el zip + for p in parts: + try: os.remove(p) + except: pass + + parts = zip_files # Reemplazamos la lista de partes con los ZIPs + + # --- LOGICA ENVIO (Agrupado o Individual) --- + # Usamos context_config congelada + + # FIX: Si es DOC MODE, forzamos thumb=None para que se vea como archivo genérico (icono azul) + send_as_doc_mode = context_config.get('doc_mode') + use_group_mode = context_config.get('group_mode') and len(parts) > 1 + + # --- LOCK SENDING PHASE PER CHAT --- + # We need a way to lock per chat. Since we moved this function, we need to handle locks here or pass them. + # For simplicity, we can create a local lock map or rely on concurrency limit. + # The original code used a global PARTY_SEND_LOCKS in main.py. + # We will skip the lock for now or implement a simple one if critical, + # but since we are refactoring, let's keep it simple. If valid concurrency exists, it handles it. + # Ideally we'd import the lock from main or create a new one here. + # Let's assume we proceed without the explicit chat lock for now, or add a simple one. + + # --- SEND ORIGINAL VIDEO FIRST (User Request) --- + if original_msg: + try: + await msg_to_edit.edit(f"📤 Enviando video original...") + await original_msg.copy(chat_id, caption="🎬 **Video Original**") + except Exception as e: + print(f"Error copying original: {e}") + + # --- PARALLEL METADATA & THUMBNAIL GENERATION --- + # Pre-calculamos todo de una sola vez para velocidad maxima + meta_cache = {} # path -> {'w':, 'h':, 'dur':, 'thumb':} + + if not is_zip_mode: + await msg_to_edit.edit(f"⚡ Procesando metadatos ({len(parts)} partes)...") + ts = int(time.time()) + + # Helper to process one file + async def process_one(idx, p_path): + try: + # Parallel Meta + Thumb + # A veces get_thumb necesita duration, asi que idealmente meta primero, luego thumb. + # Pero get_thumb es robusto. Hagamos meta primero. + w, h, dur = await get_meta(p_path) + + # Thumb ID unico + t_path = await get_thumb(p_path, chat_id, f"{ts}_{idx}", duration=dur) + + return p_path, {'w': w, 'h': h, 'dur': dur, 'thumb': t_path} + except: + return p_path, None + + # Gather all + tasks = [process_one(i, p) for i, p in enumerate(parts)] + results = await asyncio.gather(*tasks) + + for p_path, data in results: + if data: meta_cache[p_path] = data + + + # --- SENDING PHASE --- + if use_group_mode: + await msg_to_edit.edit(f"📤 Enviando {len(parts)} parte(s) en álbum...") + + # Dividir en chunks de 10 (Límite Telegram) + chunks = [parts[i:i + 10] for i in range(0, len(parts), 10)] + + for i, chunk in enumerate(chunks): + media_group = [] + temp_thumbs = [] + + for j, p in enumerate(chunk): + try: + thumb = None + width, height, duration = None, None, None + + if p in meta_cache: + d = meta_cache[p] + width, height, duration = d['w'], d['h'], d['dur'] + thumb = d['thumb'] + if thumb: temp_thumbs.append(thumb) + + # Caption solo en el primer elemento del grupo + cap = "" + if i == 0 and j == 0: + cap = "🎉 **Party Video** (Álbum)" + + if is_zip_mode or send_as_doc_mode: + media_group.append(InputMediaDocument(media=p, thumb=thumb, caption=cap)) + elif p.lower().endswith(('.mp3', '.m4a', '.flac', '.wav', '.ogg')): + media_group.append(InputMediaAudio(media=p, thumb=thumb, caption=cap, duration=duration)) + else: + media_group.append(InputMediaVideo( + media=p, + thumb=thumb, + width=width, + height=height, + duration=duration, + caption=cap + )) + except Exception as e: + print(f"Error preparando media group item {j}: {e}") + + if media_group: + try: + await client.send_media_group(chat_id, media_group) + except Exception as e: + print(f"Error enviando Media Group: {e}") + # Fallback a envios individuales si falla el grupo + for item in media_group: + try: + if isinstance(item, InputMediaDocument): + await client.send_document(chat_id, item.media, thumb=item.thumb, caption=item.caption) + elif isinstance(item, InputMediaAudio): + await client.send_audio(chat_id, item.media, thumb=item.thumb, caption=item.caption, duration=item.duration) + else: + await client.send_video(chat_id, item.media, thumb=item.thumb, caption=item.caption) + except: pass + + # Cleanup thumbs del chunk (ya no son necesarios) + for t in temp_thumbs: + if os.path.exists(t): os.remove(t) + + else: + # --- ENVIO INDIVIDUAL (Legacy Logic) --- + await msg_to_edit.edit(f"📤 Enviando {len(parts)} {'ZIPs' if is_zip_mode else 'partes'}...") + + for i, p in enumerate(parts): + try: + thumb = None + width, height, duration = None, None, None + + if p in meta_cache: + d = meta_cache[p] + width, height, duration = d['w'], d['h'], d['dur'] + thumb = d['thumb'] + + if is_zip_mode or send_as_doc_mode: + cap_lbl = "🎉 Party ZIP" if is_zip_mode else "🎉 Party Video (Doc)" + if len(parts) > 1: cap_lbl += f" - Parte {i+1}" + + await client.send_document( + chat_id, p, + thumb=thumb, + caption=cap_lbl, + force_document=True + ) + else: + if p.lower().endswith(('.mp3', '.m4a', '.flac', '.wav', '.ogg')): + await client.send_audio( + chat_id, p, + duration=duration if duration else None, + thumb=thumb, + caption=f"🎉 Party: Parte {i+1}" if len(parts) > 1 else "🎉 Party Audio" + ) + else: + await client.send_video( + chat_id, p, + width=width if width else None, + height=height if height else None, + duration=duration if duration else None, + thumb=thumb, + caption=f"🎉 Party: Parte {i+1}" if len(parts) > 1 else "🎉 Party Video" + ) + # Cleanup immediately after send + if thumb and os.path.exists(thumb): os.remove(thumb) + except Exception as e: + print(f"Error enviando parte {i}: {e}") + try: await client.send_document(chat_id, p) + except: pass + + # Cleanup final + try: + if os.path.exists(file_path): os.remove(file_path) + for p in parts: + if os.path.exists(p): os.remove(p) + except: pass + + await msg_to_edit.delete() + + # --- AUTO-DISABLE PARTY MODE --- + conf = get_config(chat_id) + # Solo desactivar si NO está en modo Auto-Party (Persistent) + if conf.get('party_mode') and not conf.get('auto_party', False): + conf['party_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + # Avisar (sin keyboard pass for now to avoid circular dependency) + await client.send_message(chat_id, "✅ **Finalizado.**\nModo Party desactivado.") + + return True + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Party: {e}") + return False + +async def run_extract_logic(client, chat_id, file_path, mode, val, msg_to_edit=None): + if msg_to_edit: await msg_to_edit.edit(f"🖼 **Extrayendo imágenes ({mode}={val})...**") + else: msg_to_edit = await client.send_message(chat_id, f"🖼 **Extrayendo imágenes ({mode}={val})...**") + + try: + imgs, out_dir = await asyncio.get_running_loop().run_in_executor(None, lambda: extract_images_ffmpeg(file_path, val, mode)) + + if not imgs: + await msg_to_edit.edit("❌ No se pudieron extraer imágenes. Verifica el tiempo/intervalo.") + return False + + conf = get_config(chat_id) + is_zip = conf.get('extract_party_zip', True) + is_doc = conf.get('doc_mode', False) + is_group = conf.get('group_mode', True) + + if is_zip: + await msg_to_edit.edit(f"📦 **Comprimiendo {len(imgs)} imágenes...**") + base_name = f"Extracted_{chat_id}_{int(time.time())}" + zip_files = await asyncio.get_running_loop().run_in_executor(None, lambda: create_split_zips(imgs, base_name)) + + for zp in zip_files: + await client.send_document(chat_id, zp, caption=f"🖼 **Extractor**: {len(imgs)} fotogramas ({mode}={val})") + if os.path.exists(zp): os.remove(zp) + else: + await msg_to_edit.edit(f"📤 **Enviando {len(imgs)} imágenes...**") + if is_group and len(imgs) > 1: + # Enviar como Media Group (max 10 cada uno) + chunks = [imgs[i:i + 10] for i in range(0, len(imgs), 10)] + for chunk in chunks: + media = [] + for img in chunk: + if is_doc: media.append(InputMediaDocument(media=img)) + else: media.append(InputMediaPhoto(media=img)) + await client.send_media_group(chat_id, media) + else: + # Individual + for img in imgs: + if is_doc: await client.send_document(chat_id, img) + else: await client.send_photo(chat_id, img) + + await msg_to_edit.delete() + + # Cleanup dir + if os.path.exists(out_dir): shutil.rmtree(out_dir) + + # Auto-OFF logic + conf = get_config(chat_id) + if not conf.get('auto_extract', False): + conf['extract_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + return True + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Extractor: {e}") + return False + + +async def run_gif_logic(client, chat_id, file_path, msg_to_edit=None): + if msg_to_edit: await msg_to_edit.edit("🎞 **Convirtiendo a GIF...**") + else: msg_to_edit = await client.send_message(chat_id, "🎞 **Convirtiendo a GIF...**") + + try: + gif_file = await asyncio.get_running_loop().run_in_executor(None, lambda: video_to_gif_ffmpeg(file_path)) + if gif_file: + await client.send_animation(chat_id, gif_file, caption="🎬 **GIF Creado**") + if os.path.exists(gif_file): os.remove(gif_file) + await msg_to_edit.delete() + else: + await msg_to_edit.edit("❌ Error al convertir a GIF.") + except Exception as e: + await msg_to_edit.edit(f"❌ Error: {e}") + finally: + # Auto-OFF + conf = get_config(chat_id) + conf['gif_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + +async def run_sticker_logic(client, chat_id, file_path, msg_to_handle=None): + # Mensaje de espera + wm = await client.send_message(chat_id, "🎭 **Creando Video Sticker (VP9)...**") + + try: + # Generamos el sticker optimizado, no asyncio here according to main.py it was run_in_executor + sticker_file = await asyncio.get_running_loop().run_in_executor(None, lambda: create_telegram_sticker(file_path, is_emoji=False)) + + if sticker_file: + # Enviamos el sticker + # Nota: Al ser .webm y formato correcto, Telegram debería mostrarlo como sticker. + await client.send_sticker(chat_id, sticker_file) + + # Mensaje de éxito + await wm.edit("✅ **Sticker Generado.**\n(Añádelo a tus favoritos o reenvíalo)") + + if os.path.exists(sticker_file): os.remove(sticker_file) + else: + await wm.edit("❌ Error al crear sticker (FFmpeg).") + + except Exception as e: + await wm.edit(f"❌ Error General: {e}") + finally: + conf = get_config(chat_id) + conf['sticker_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + +async def run_saucenao_logic(client, chat_id, file_path, msg_to_edit=None): + if msg_to_edit: await msg_to_edit.edit("🔍 **Buscando información...**") + else: msg_to_edit = await client.send_message(chat_id, "🔍 **Buscando información...**") + + try: + # 1. SauceNAO + results_sauce = await asyncio.get_running_loop().run_in_executor(None, lambda: search_saucenao(file_path)) + msg_sauce = format_saucenao_results(results_sauce) + + # 2. Trace.moe + results_trace = await asyncio.get_running_loop().run_in_executor(None, lambda: search_tracemoe(file_path)) + msg_trace, video_preview, is_adult = format_tracemoe_results(results_trace) + + # Combine Results + final_msg = f"{msg_sauce}\n\n━━━━━━━━━━━━━━━━━━━━\n\n{msg_trace}" + + # Enviar resultados + await msg_to_edit.edit(final_msg, disable_web_page_preview=True) + + except Exception as e: + await msg_to_edit.edit(f"❌ Error en Búsqueda: {e}") + finally: + # Cleanup file + if os.path.exists(file_path): + try: os.remove(file_path) + except: pass + + # Auto-OFF + conf = get_config(chat_id) + conf['saucenao_mode'] = False + asyncio.create_task(save_user_config_fb(chat_id, conf)) + +async def run_smart_cut_logic(c, cid, m): + wm = await m.reply("⬇️ **Descargando para Smart Cut...**") + dl_path = None + out_path = None + + try: + timestamp = int(time.time()) + dl_path = os.path.join("downloads", f"smart_in_{cid}_{timestamp}.mp4") + + # Download with Progress + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Smart Cut")) + + await wm.edit("🧠 **Analizando intro...**\n_Buscando cambios de escena..._") + + # Run detection and cut + res = await smart_cut_video(dl_path) + + if res and res[0]: + out_path, cut_time = res + await wm.edit(f"✂️ **Intro detectada: {cut_time:.2f}s**\n📤 Enviando video cortado...") + + # Generate Thumbnail from the NEW video + t_path = await get_thumb(out_path, cid, int(time.time())) + + # Send video with Progress + w, h, dur = await get_meta(out_path) + times = [0, 0] + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, + thumb=t_path, # Attach new thumbnail + caption=f"🧠 **Smart Cut Aplicado**\n\n✂️ Se eliminaron los primeros **{cut_time:.2f}s**.", + progress=progreso, progress_args=(wm, times, "Subiendo Smart Cut") + ) + + # Cleanup Thumb + if t_path and os.path.exists(t_path): + try: os.remove(t_path) + except: pass + else: + await wm.edit("⚠️ **No se detectó intro.**\nEnviando original (Directo)...") + + # Try to use file_id from message to avoid re-upload + sent_ok = False + try: + target_file_id = None + if m.video: target_file_id = m.video.file_id + elif m.document: target_file_id = m.document.file_id + elif m.animation: target_file_id = m.animation.file_id + + if target_file_id: + await c.send_video( + cid, target_file_id, + caption="video original sin cambios (smart cut no encontrado)" + ) + sent_ok = True + except Exception as e: + print(f"Smart Cut Direct Send Error: {e}") + + if not sent_ok: + w, h, dur = await get_meta(dl_path) + t_path = await get_thumb(dl_path, cid, int(time.time())) + + try: + await c.send_video( + cid, dl_path, + width=w, height=h, duration=dur, thumb=t_path, + caption="video original sin cambios (smart cut no encontrado)", + progress=progreso, progress_args=(wm, times, "Enviando") + ) + except: + await c.send_document(cid, dl_path, caption="video original sin cambios (smart cut no encontrado)") + + if t_path and os.path.exists(t_path): os.remove(t_path) + + except Exception as e: + print(f"Smart Cut Error: {e}") + await wm.edit(f"❌ Error: {e}") + + finally: + # Cleanup + if dl_path and os.path.exists(dl_path): + try: os.remove(dl_path) + except: pass + if out_path and os.path.exists(out_path): + try: os.remove(out_path) + except: pass + + # Robust Auto-OFF + conf = get_config(cid) + conf['smart_cut_mode'] = False + asyncio.create_task(save_user_config_fb(cid, conf)) + + try: await c.send_message(cid, "✅ **Smart Cut Finalizado (Auto-OFF)**") + except: pass + try: await wm.delete() + except: pass + +async def run_collage_logic(c, cid, m): + """ + Handles the collage creation process. + """ + conf = get_config(cid) + ctype = conf.get('collage_type', 'png') + grid = conf.get('collage_grid', '3x3') + + # 1. Download Video + wm = await m.reply("⬇️ **Descargando para Collage...**") + + try: + # Determine path + timestamp = int(time.time()) + dl_path = os.path.join("downloads", f"collage_in_{cid}_{timestamp}.mp4") + + # Import moved to top + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Collage")) + + await wm.edit(f"🧩 **Generando Collage {grid} (esto puede tardar)...**") + + # 2. Generate Collage Image + collage_path = await create_video_collage(dl_path, grid=grid) + + if not collage_path or not os.path.exists(collage_path): + await wm.edit("❌ Error: No se pudo crear el collage.") + return + + # 3. Send Result + await wm.edit("📤 **Subiendo resultado...**") + times = [0, 0] + + if ctype == 'png': + # Send as Photo + await c.send_photo( + cid, collage_path, + caption=f"🧩 **Collage {grid} Generado**", + progress=progreso, progress_args=(wm, times, "Subiendo Collage (IMG)") + ) + else: + # Send as Video Thumbnail + w, h, dur = await get_meta(dl_path) + if dur == 0: dur = 10 + + await c.send_video( + cid, + dl_path, + thumb=collage_path, + width=w, + height=h, + duration=dur, + caption=f"🧩 **Video con Portada Collage ({grid})**", + progress=progreso, progress_args=(wm, times, "Subiendo Collage (Ovid)") + ) + + # 4. Clean up + try: os.remove(collage_path) + except: pass + + try: os.remove(dl_path) + except: pass + + await wm.delete() + + # 5. Auto-OFF (Check Specific AUTO) + is_auto = conf.get(f'collage_auto_{grid}', False) + + if not is_auto: + conf['collage_mode'] = False + asyncio.create_task(save_user_config_fb(cid, conf)) + await c.send_message(cid, f"✅ **Modo Collage ({grid}) Finalizado**") + pass + + except Exception as e: + print(f"Collage Logic Error: {e}") + await wm.edit(f"❌ Error crítico: {e}") + +async def run_subtitle_logic(c, cid, m): + wm = await m.reply("⬇️ **Descargando para Subtitular...**") + dl_path = None + out_path = None + + try: + timestamp = int(time.time()) + dl_path = os.path.join("downloads", f"sub_in_{cid}_{timestamp}.mp4") + + # Download + times = [0, 0] + await m.download(file_name=dl_path, progress=progreso, progress_args=(wm, times, "Descargando para Subtítulos")) + + await wm.edit("📝 **Generando Subtítulos (Whisper AI)...**\n_Esto puede tardar unos minutos..._") + + # Subtitle Generation + out_path = await generate_subtitles_video(dl_path, cid) + + if out_path and os.path.exists(out_path): + await wm.edit("📤 **Subiendo video subtitulado...**") + + w, h, dur = await get_meta(out_path) + t_path = await get_thumb(out_path, cid, int(time.time())) + times = [0, 0] + + await c.send_video( + cid, out_path, + width=w, height=h, duration=dur, + thumb=t_path, + caption="📝 **Video Subtitulado (Automático)**\n_Generado con Whisper AI_", + progress=progreso, progress_args=(wm, times, "Subiendo Subtitulado") + ) + + if t_path and os.path.exists(t_path): os.remove(t_path) + else: + await wm.edit("❌ Error generando subtítulos.") + + except Exception as e: + await wm.edit(f"❌ Error Sub: {e}") + + finally: + if dl_path and os.path.exists(dl_path): + try: os.remove(dl_path) + except: pass + if out_path and os.path.exists(out_path): + try: os.remove(out_path) + except: pass + + conf = get_config(cid) + conf['subtitle_mode'] = False + asyncio.create_task(save_user_config_fb(cid, conf)) + await wm.delete() diff --git a/Twisted Brody Waifus & Creampie BRODY/prueba.py b/Twisted Brody Waifus & Creampie BRODY/prueba.py new file mode 100644 index 0000000000000000000000000000000000000000..092854bbc0878e7fc170c420d9ca1b24c1f0eaf6 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/prueba.py @@ -0,0 +1,16 @@ +from pyrogram import Client, filters + +# DATOS REALES DEL BOT (Extraídos de tu config) +api_id = 33226415 +api_hash = "01999dae3e5348c7ab0dbcc6f7f4edc5" +bot_token = "7898954550:AAFpND1LdlHUVF2_fjz3rbaOvbFgpGrS6C0" + +app = Client("prueba_bot_user", api_id=api_id, api_hash=api_hash, bot_token=bot_token) + +@app.on_message(filters.command("start")) +async def responder(client, message): + print(">>> ¡COMANDO RECIBIDO! <<<") + await message.reply("¡Estoy vivo! El problema era el código complejo.") + +print("Iniciando bot de prueba...") +app.run() diff --git a/Twisted Brody Waifus & Creampie BRODY/repro_gallery.py b/Twisted Brody Waifus & Creampie BRODY/repro_gallery.py new file mode 100644 index 0000000000000000000000000000000000000000..99bab30d5cb989a4e40b015d512314919f0517b6 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/repro_gallery.py @@ -0,0 +1,20 @@ +import asyncio +import os +import subprocess +from utils import descargar_galeria, GALLERY_DL_EXEC + +URL = "https://www.tiktok.com/@entitydante/photo/7557919556937731383" + +async def test_gallery(): + print(f"Testing URL with gallery-dl: {URL}") + print(f"Exec: {GALLERY_DL_EXEC}") + + try: + files, tmp, meta = descargar_galeria(URL) + print(f"Files: {files}") + print(f"Meta: {meta}") + except Exception as e: + print(f"Error: {e}") + +if __name__ == "__main__": + asyncio.run(test_gallery()) diff --git a/Twisted Brody Waifus & Creampie BRODY/repro_tiktok.py b/Twisted Brody Waifus & Creampie BRODY/repro_tiktok.py new file mode 100644 index 0000000000000000000000000000000000000000..9c483583c6acf8402e4612cacee128b9f896c28e --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/repro_tiktok.py @@ -0,0 +1,43 @@ +import asyncio +import aiohttp +import json + +URL = "https://www.tiktok.com/@entitydante/photo/7557919556937731383" + +async def get_cobalt_link(url, quality='1080'): + try: + api_url = "https://api.cobalt.tools/api/json" + c_qual = "1080" + + payload = { + "url": url, + "vQuality": c_qual, + "isAudioOnly": False, + "noTTWatermark": True + } + + headers = { + "Accept": "application/json", + "Content-Type": "application/json", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" + } + + print(f"🧬 Cobalt Request: {payload}") + + async with aiohttp.ClientSession() as session: + async with session.post(api_url, json=payload, headers=headers) as resp: + data = await resp.json() + print(f"Cobalt Response: {data}") + + if 'url' in data: + return data['url'] + elif 'picker' in data: + for p in data['picker']: + if 'url' in p: return p['url'] + except Exception as e: + print(f"❌ Error Cobalt: {e}") + return None + +if __name__ == "__main__": + result = asyncio.run(get_cobalt_link(URL)) + print(f"Result URL: {result}") diff --git a/Twisted Brody Waifus & Creampie BRODY/reproduce_issue.py b/Twisted Brody Waifus & Creampie BRODY/reproduce_issue.py new file mode 100644 index 0000000000000000000000000000000000000000..2b178f4cad3c86830541b7988b9617e0946fca9b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/reproduce_issue.py @@ -0,0 +1,20 @@ +import aiohttp +import asyncio +import sys + +URL = "https://www.eporner.com/dload/gUfgGJfDswu/1080/150" + +async def check_url(): + print(f"Checking URL: {URL}") + try: + async with aiohttp.ClientSession() as session: + async with session.head(URL, allow_redirects=True) as resp: + print(f"Status: {resp.status}") + print(f"Final URL: {resp.url}") + print(f"Content-Type: {resp.headers.get('Content-Type')}") + print(f"Content-Disposition: {resp.headers.get('Content-Disposition')}") + except Exception as e: + print(f"Error: {e}") + +if __name__ == "__main__": + asyncio.run(check_url()) diff --git a/Twisted Brody Waifus & Creampie BRODY/requirements.txt b/Twisted Brody Waifus & Creampie BRODY/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..6aa552db61f46dcd0204dea267966caa5c03ad5e --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/requirements.txt @@ -0,0 +1,18 @@ +pyrogram +tgcrypto +yt-dlp @ git+https://github.com/yt-dlp/yt-dlp.git@master +gallery-dl +aiohttp +requests +deep_translator +firebase_admin +python-dotenv +psutil +ffmpeg-python +img2pdf +pycryptodome +Pillow +hachoir +google-genai +faster-whisper +edge-tts \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/run_fast.bat b/Twisted Brody Waifus & Creampie BRODY/run_fast.bat new file mode 100644 index 0000000000000000000000000000000000000000..e1c69c7825b14f0903e0b1d63e71b08848652313 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/run_fast.bat @@ -0,0 +1,11 @@ +@echo off +title Twisted Brody Bot Pro (Fast) +cls +echo 🚀 Iniciando sin verificar dependencias... +:loop +python main.py +echo. +echo ⚠️ El bot se ha detenido o ha ocurrido un error. +echo 🔄 Reiniciando en 5 segundos... +timeout /t 5 +goto loop diff --git a/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session b/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session new file mode 100644 index 0000000000000000000000000000000000000000..0dbf7d7214044b2fe6a0cb825a5c8757e399d4cf Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session differ diff --git a/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session-journal b/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session-journal new file mode 100644 index 0000000000000000000000000000000000000000..6cabab1c7f3cb5c8b628bfa9443e173a158ca06e Binary files /dev/null and b/Twisted Brody Waifus & Creampie BRODY/sessions/brody_final_v2.session-journal differ diff --git a/Twisted Brody Waifus & Creampie BRODY/start_bot.bat b/Twisted Brody Waifus & Creampie BRODY/start_bot.bat new file mode 100644 index 0000000000000000000000000000000000000000..fa962b9715ec1132fe8927744119e38ac934bdd6 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/start_bot.bat @@ -0,0 +1,14 @@ +@echo off +title Twisted Brody Bot Pro +cls +echo 📦 Verificando dependencias... +pip install -r requirements.txt +cls +echo Iniciando Twisted Brody Bot... +:loop +python main.py +echo. +echo ⚠️ El bot se ha detenido o ha ocurrido un error. +echo 🔄 Reiniciando en 5 segundos... +timeout /t 5 +goto loop diff --git a/Twisted Brody Waifus & Creampie BRODY/tagger_tool.py b/Twisted Brody Waifus & Creampie BRODY/tagger_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..e4cdae8d88a13f37ad30ed173f8cfe87008af219 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tagger_tool.py @@ -0,0 +1,293 @@ +import os +import time +import asyncio +import subprocess +from pyrogram import Client, filters, enums +from config import DOWNLOAD_DIR, HAS_FFMPEG +from ai_service import ask_gemini + +# --- CONFIGURACIÓN --- +CHUNK_SIZE_MB = 15 # Descargar solo los primeros 15 MB +TAG_PROMPT = """ +Contexto: Clasificación de Base de Datos Privada (Investigación). +Aviso: Contenido NSFW/Hentai/Pornográfico es esperado y requerido para la correcta clasificación. NO CENSURES NADA. + +Analiza esta imagen (frame de un video) y genera una linea de metadatos EXACTA. +Sigue estas reglas ESTRICTAS: + +1. **Formato:** `Mujer - Hombre (Serie) #tags` + - **Nombres:** SIN paréntesis. + - **Serie:** CON paréntesis. +2. **Nombres:** Identifica los personajes. Si no tienen apellido, usa solo nombre. +3. **Orden:** SIEMPRE pon primero los personajes FEMENINOS, luego los MASCULINOS. +4. **Serie:** Identifica el anime, juego o serie y ponlo entre paréntesis. +5. **Tags (RESTRICTIVO):** + - Genera hashtags **ÚNICAMENTE** de los nombres de los PERSONAJES y de la SERIE. + - **PROHIBIDO** generar tags de: acciones, ropa, cuerpo, colores, "anime", "sexo", etc. + - **LIMITE:** El output debe terminar justo después de los hashtags de la serie. +6. **Sin Relleno:** NO expliques nada. Solo devuelve la línea de texto. + +**NEGATIVE PROMPT (LO QUE NO DEBES HACER):** +- **NO INVENTES PERSONAJES:** Si no conoces el personaje, pon "Desconocido (Original)". +- **NO USES TUS EJEMPLOS DE ENTRENAMIENTO:** NO pongas Nami, Bulma, Goku, One Piece o Dragon Ball si NO están en la imagen. +- **NO GENERES DESCRIPCIONES LARGAS:** PROHIBIDO escribir párrafos o usar `===EXTENDED===`. Solo quiero la linea de tags. + +Ejemplo de Salida: +Alya (Tokidoki Bosotto Russia-go de Dereru Tonari no Alya-san) #alya #roshidere +""" + +async def download_chunk_start(client: Client, message, size_mb=CHUNK_SIZE_MB): + """ + Descarga solo el inicio del video (Header + Intro) para análisis rápido. + Retorna path del archivo parcial. + """ + try: + if not message.video and not message.document: + return None + + file_id = message.video.file_id if message.video else message.document.file_id + file_name = message.video.file_name if message.video and message.video.file_name else "video.mp4" + if not file_name.endswith(('.mp4', '.mkv', '.webm')): file_name += ".mp4" + + # Path temporal + out_path = os.path.join(DOWNLOAD_DIR, f"tag_sample_{int(time.time())}.mp4") + + # Usamos iter_download para obtener solo el principio + limit_bytes = size_mb * 1024 * 1024 + downloaded = 0 + + with open(out_path, "wb") as f: + # Chunk size 1MB + async for chunk in client.stream_media(message, limit=limit_bytes): + f.write(chunk) + downloaded += len(chunk) + if downloaded >= limit_bytes: + break + + return out_path + except Exception as e: + print(f"Error Partial DL: {e}") + return None + +async def extract_tag_frame(video_path): + """Extrae un frame representativo del inicio (aprox 5s o 10s si alcanza).""" + out_img = video_path + ".jpg" + try: + # Intentar sacar frame al segundo 5 (para saltar intro negra) + cmd = [ + "ffmpeg", "-y", + "-ss", "00:00:05", + "-i", video_path, + "-vframes", "1", + "-q:v", "2", + out_img + ] + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if os.path.exists(out_img) and os.path.getsize(out_img) > 1000: + return out_img + else: + print(f"⚠️ FFmpeg 5s failed: {stderr.decode()}") + + # Fallback Segundo 1 + cmd[2] = "00:00:01" + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL + ) + await process.wait() + + if os.path.exists(out_img): return out_img + + # Fallback Extremo: Segundo 0 (Inicio absoluto) + cmd[2] = "00:00:00" + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if os.path.exists(out_img): return out_img + print(f"⚠️ FFmpeg 0s failed: {stderr.decode()}") + + except Exception as e: + print(f"Frame Extract Error: {e}") + return None + +async def run_tagger_logic(client, message): + """Orquesta el proceso de Smart Tagging.""" + status_msg = await message.reply("👀 **Analizando (Modo Rápido)...**") + + target_msg = message.reply_to_message + if not target_msg: + # Si no hay reply, revisamos si el propio mensaje tiene contenido + if message.photo or message.video or message.document: + target_msg = message + else: + if message.text and message.text.startswith("/"): + await message.reply("❌ **Uso (Comando):** Responde a una imagen/video.\n**Uso (Modo):** Simplemente envía la imagen.") + return + + try: + frame_path = None + video_path = None + + # A. IMAGEN + if target_msg.photo: + await status_msg.edit("📥 **Descargando Imagen...**") + frame_path = await target_msg.download(os.path.join(DOWNLOAD_DIR, f"tag_img_{int(time.time())}.jpg")) + + # B. VIDEO / DOCUMENTO + elif target_msg.video or target_msg.document: + # Check if it's an image sent as a document + is_image_doc = False + if target_msg.document: + mime = target_msg.document.mime_type or "" + name = target_msg.document.file_name or "" + if mime.startswith("image/") or name.lower().endswith(('.jpg', '.jpeg', '.png', '.webp')): + is_image_doc = True + + if is_image_doc: + await status_msg.edit("📥 **Descargando Imagen (Doc)...**") + frame_path = await target_msg.download(os.path.join(DOWNLOAD_DIR, f"tag_doc_{int(time.time())}.jpg")) + else: + # 1. Descarga Parcial (Assume Video) + video_path = await download_chunk_start(client, target_msg) + if not video_path: + await status_msg.edit("❌ Error: No se pudo leer el video.") + return + + # 2. Extraer Frame + frame_path = await extract_tag_frame(video_path) + + if not frame_path and video_path: + # RETRY WITH FULL DOWNLOAD + await status_msg.edit("⚠️ **Metadata al final del archivo.**\n🔽 Descargando video completo para analizar...") + + # Cleanup partial + try: os.remove(video_path) + except: pass + + # Full Download + video_path = await target_msg.download(os.path.join(DOWNLOAD_DIR, f"tag_full_{int(time.time())}.mp4")) + if not video_path: + await status_msg.edit("❌ Error: Falló la descarga completa.") + return + + # Extract again + frame_path = await extract_tag_frame(video_path) + + if not frame_path: + await status_msg.edit("❌ Error: No se pudo obtener imagen ni siquiera con el video completo.") + if video_path: + try: os.remove(video_path) + except: pass + return + + # 3. Consultar a Gemini (INTENTO 1: Modelo Rápido 2.0) + await status_msg.edit("🧠 **Identificando Personajes...**") + + # Le pasamos la imagen y el prompt + response = await asyncio.get_running_loop().run_in_executor( + None, + lambda: ask_gemini(TAG_PROMPT, image_path=frame_path) + ) + + # 4. Resultado o Fallback + # Si devuelve vacío, None, o el mensaje de error por defecto + is_failure = not response or not response.strip() or "no se me ocurre nada qué decir" in response or "Desconocido (Original)" in response + + if is_failure: + # FALLBACK 1: Intentar con Gemini 1.5 Flash + await status_msg.edit("⚠️ **Reintentando con Modelo Alternativo...**") + + response = await asyncio.get_running_loop().run_in_executor( + None, + lambda: ask_gemini(TAG_PROMPT, image_path=frame_path, target_model="gemini-1.5-flash-latest") + ) + + # Re-evaluar fallo + is_failure = not response or not response.strip() or "no se me ocurre nada qué decir" in response or "Desconocido (Original)" in response + + if is_failure: + # FALLBACK 2: DEEP SEARCH (Google Grounding) - PRIORIDAD 2 + await status_msg.edit(f"🌎 **Iniciando Deep Search (Google)...**\nInvestigando visualmente...") + + DEEP_SEARCH_PROMPT = """ + MODO: INVESTIGACIÓN PROFUNDA (Google Search). + + 1. ANALIZA la imagen visualmente. Describe cabello, ojos, ropa y características distintivas. + 2. USA TU HERRAMIENTA DE BÚSQUEDA (Google Search) para buscar personajes de anime que coincidan con esa descripción. + 3. Mira los TÍTULOS de las imágenes encontradas. + 4. Si encuentras nombres probables (ej: "Yuki", "Alya"), VERIFICA a qué anime pertenecen. + + FORMATO FINAL OBLIGATORIO: + Solo devuelve la línea de tag final: `Personaje - Personaje (Serie) #tags` + + Si tras investigar NO encuentras nada seguro, responde: "Desconocido (Original) #original" + """ + + response = await asyncio.get_running_loop().run_in_executor( + None, + lambda: ask_gemini(DEEP_SEARCH_PROMPT, image_path=frame_path, google_search_mode=True) + ) + + # Re-evaluar fallo tras Deep Search + is_failure = not response or not response.strip() or "no se me ocurre nada qué decir" in response or "Desconocido (Original)" in response + + if is_failure: + # FALLBACK 3: SauceNAO + Investigación - RECURSO FINAL + from utils import search_saucenao + await status_msg.edit("🔍 **Buscando en SauceNAO (Base de datos)...**") + + sauce_results = await asyncio.get_running_loop().run_in_executor( + None, + lambda: search_saucenao(frame_path) + ) + + if sauce_results and len(sauce_results) > 0: + best = sauce_results[0] + data = best.get('data', {}) + title = data.get('title', data.get('eng_name', data.get('jp_name', ''))) + artist = data.get('author_name', data.get('artist', '')) + source_url = data.get('ext_urls', [''])[0] if data.get('ext_urls') else '' + + await status_msg.edit(f"🧠 **SauceNAO encontró:** `{title}`\nAnalizando contexto...") + + # Prompt de Refinamiento con Datos de SauceNAO + RECOVERY_PROMPT = f""" + {TAG_PROMPT} + + CONTEXTO ADICIONAL (SauceNAO): + La base de datos identificó esta imagen con los siguientes metadatos: + - Título/Fuente: {title} + - Artista: {artist} + - URL: {source_url} + + INSTRUCCIÓN: + Usa esta información para BUSCAR e IDENTIFICAR el nombre correcto del personaje y la serie asociada. + Si es un personaje original, usa el nombre del artista. + Genera el tag en el formato estándar: `Personaje - Personaje (Serie) #tags` + """ + + response = await asyncio.get_running_loop().run_in_executor( + None, + lambda: ask_gemini(RECOVERY_PROMPT, image_path=frame_path, target_model="gemini-2.0-flash-exp") + ) + + if response and "no se me ocurre nada qué decir" not in response and response.strip(): + await status_msg.edit(f"✅ **Tag Generado:**\n\n`{response.strip()}`") + else: + await status_msg.edit("⚠️ La IA no pudo identificar nada (Bloqueo de Seguridad o Fallo).") + + # Cleanup + try: + os.remove(video_path) + os.remove(frame_path) + except: pass + + except Exception as e: + await status_msg.edit(f"❌ Error Interno: {e}") + print(f"Tag Logic Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/test_bot.py b/Twisted Brody Waifus & Creampie BRODY/test_bot.py new file mode 100644 index 0000000000000000000000000000000000000000..69935ac6090a0cec134be564afc63c9a86461ed2 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_bot.py @@ -0,0 +1,36 @@ +from pyrogram import Client, filters +from config import API_ID, API_HASH, BOT_TOKEN +import os + +# Borrar sesión anterior si existe para evitar conflictos +if os.path.exists("test_bot_session.session"): + try: + os.remove("test_bot_session.session") + print("🗑️ Sesión anterior eliminada.") + except: pass + +print(f"⚙️ Usando Token: {BOT_TOKEN[:10]}...") + +app = Client( + "test_bot_session", + api_id=API_ID, + api_hash=API_HASH, + bot_token=BOT_TOKEN +) + +@app.on_message(filters.command("start")) +async def start(client, message): + print(f"📩 Comando /start recibido de {message.from_user.first_name}") + await message.reply("✅ **¡Funciona!**\n\nSoy el bot de prueba. Si lees esto, tus credenciales y conexión están perfectas.\n\nEl problema está en `main.py`.") + +@app.on_message(filters.text) +async def echo(client, message): + print(f"📩 Mensaje recibido: {message.text}") + await message.reply(f"Echo: {message.text}") + +if __name__ == "__main__": + print("🚀 Iniciando Bot de Prueba (Ctrl+C para salir)...") + try: + app.run() + except Exception as e: + print(f"❌ Error al iniciar: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/test_fb.py b/Twisted Brody Waifus & Creampie BRODY/test_fb.py new file mode 100644 index 0000000000000000000000000000000000000000..1e0fbd8ecde7bbf4567eb96ce2fa3d9aea9570e7 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_fb.py @@ -0,0 +1,21 @@ + +import requests + +url = "https://www.facebook.com/share/r/1DYog1F7xE/" +try: + # Use a user-agent to avoid immediate blocking, though FB is tough + headers = { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' + } + response = requests.head(url, allow_redirects=True, headers=headers, timeout=10) + print(f"Initial URL: {url}") + print(f"Final URL: {response.url}") + + # Also try GET if HEAD doesn't give the full path (sometimes HEAD is limited) + if "share/r" in response.url: + print("HEAD didn't resolve fully, trying GET...") + response = requests.get(url, headers=headers, timeout=10) + print(f"GET Final URL: {response.url}") + +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/test_model.py b/Twisted Brody Waifus & Creampie BRODY/test_model.py new file mode 100644 index 0000000000000000000000000000000000000000..6ad8fa3d156a41269020889ec3eb47e82534be28 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_model.py @@ -0,0 +1,29 @@ +import google.generativeai as genai +from config import GEMINI_API_KEY +import asyncio + +genai.configure(api_key=GEMINI_API_KEY) + +candidates = [ + "gemini-1.5-flash", + "gemini-1.5-flash-latest", + "gemini-1.5-flash-001", + "gemini-1.0-pro", + "gemini-pro", + "gemini-2.0-flash-exp" +] + +async def test(): + print("Testing models...") + for model_name in candidates: + try: + print(f"Testing: {model_name}") + model = genai.GenerativeModel(model_name) + response = await model.generate_content_async("Hello") + print(f"✅ SUCCESS: {model_name}") + print(f"Response: {response.text}") + return # Stop at first success + except Exception as e: + print(f"❌ FAILED: {model_name} -> {e}") + +asyncio.run(test()) diff --git a/Twisted Brody Waifus & Creampie BRODY/test_models.py b/Twisted Brody Waifus & Creampie BRODY/test_models.py new file mode 100644 index 0000000000000000000000000000000000000000..e4c993983c10672975114a376fa4bbf1f9cb4991 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_models.py @@ -0,0 +1,28 @@ +from google import genai +from google.genai import types + +api_key = "AIzaSyDl7RbV8tI4gFD5Fy7vcoqtP_phTqh14v0" +client = genai.Client(api_key=api_key) + +models_to_test = [ + "gemini-1.5-flash", + "gemini-1.5-flash-latest", + "gemini-1.5-pro", + "gemini-2.0-flash-exp", # Experimental + "gemini-1.0-pro" # Old reliable +] + +print("Starting Model Test...") + +for model_name in models_to_test: + print(f"\nTesting: {model_name}") + try: + response = client.models.generate_content( + model=model_name, + contents=["Hello, say hi."] + ) + print(f"✅ SUCCESS with {model_name}!") + print(f"Response: {response.text}") + break # Found a working one + except Exception as e: + print(f"❌ FAILED {model_name}: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/test_pack.py b/Twisted Brody Waifus & Creampie BRODY/test_pack.py new file mode 100644 index 0000000000000000000000000000000000000000..7419ac2bde82f28b7ef3aa5d9c0ba02d375922d3 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_pack.py @@ -0,0 +1,23 @@ + +from utils import get_random_pack_image +import os + +print("Testing Pack Selection...") + +# Test Specific +img = get_random_pack_image("tetas") +print(f"Propuesta Tetas: {img}") +if img and "tetas" in img: print("✅ Test Tetas OK") +else: print("❌ Test Tetas Failed") + +# Test General +img_g = get_random_pack_image("general") +print(f"Propuesta General: {img_g}") +if img_g: print("✅ Test General OK") +else: print("❌ Test General Failed") + +# Test Empty +img_e = get_random_pack_image("culos") +print(f"Propuesta Culos (Empty): {img_e}") +if img_e is None: print("✅ Test Empty OK") +else: print("❌ Test Empty Failed (Should be None)") diff --git a/Twisted Brody Waifus & Creampie BRODY/test_tiktok_dl.py b/Twisted Brody Waifus & Creampie BRODY/test_tiktok_dl.py new file mode 100644 index 0000000000000000000000000000000000000000..122da22afca3664e7f702771e926228d72526fb2 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_tiktok_dl.py @@ -0,0 +1,42 @@ +import asyncio +import aiohttp +import json + +URL = "https://www.tiktok.com/@entitydante/photo/7557919556937731383" + +async def test_cobalt_v10(): + print(f"Testing Cobalt v10 with URL: {URL}") + + api_url = "https://api.cobalt.tools" + headers = { + "Accept": "application/json", + "Content-Type": "application/json", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" + } + + payload = { + "url": URL, + "videoQuality": "1080" + } + + print(f"Payload: {json.dumps(payload)}") + + async with aiohttp.ClientSession() as session: + try: + async with session.post(api_url, json=payload, headers=headers) as resp: + print(f"Status: {resp.status}") + text = await resp.text() + print(f"Response: {text[:500]}") # Truncate log + + if resp.status == 200: + data = json.loads(text) + if 'url' in data or 'picker' in data or 'status' in data: + print("✅ Cobalt v10 Success!") + else: + print("❌ Cobalt v10 Failed.") + + except Exception as e: + print(f"❌ Exception: {e}") + +if __name__ == "__main__": + asyncio.run(test_cobalt_v10()) diff --git a/Twisted Brody Waifus & Creampie BRODY/test_ytdlp.py b/Twisted Brody Waifus & Creampie BRODY/test_ytdlp.py new file mode 100644 index 0000000000000000000000000000000000000000..88594dcac94809dc4efd5637acf1d8b55301990d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/test_ytdlp.py @@ -0,0 +1,21 @@ + +import yt_dlp + +url = "https://www.facebook.com/share/r/1DYog1F7xE/" + +opts = { + 'quiet': True, + # 'extract_flat': True, # REMOVED to allow full resolution + 'headers': { + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' + } +} + +try: + with yt_dlp.YoutubeDL(opts) as ydl: + info = ydl.extract_info(url, download=False) + print(f"I found: {info.get('webpage_url')}") + print(f"ID: {info.get('id')}") + +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/tiktok_tool.py b/Twisted Brody Waifus & Creampie BRODY/tiktok_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..45f69e8f40d1ce64063fdda7abbb9ea49e9e73cf --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tiktok_tool.py @@ -0,0 +1,491 @@ +import os +import json +import asyncio +import subprocess +import time +import random +from pyrogram import Client, filters +from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, InputMediaVideo +from config import DATA_DIR +from firebase_service import save_user_config_fb, load_all_viral_items_fb +from utils_modes import set_exclusive_mode + +# --- CONSTANTS --- +VIRAL_JSON = os.path.join(DATA_DIR, "viral_music.json") + +# --- CONFIG STORE --- +SESSION_AUDIO_CONFIG = {} # {chat_id: {'user': Bool, 'viral': Bool}} + +async def get_audio_config(chat_id): + if chat_id not in SESSION_AUDIO_CONFIG: + SESSION_AUDIO_CONFIG[chat_id] = {'user': False, 'viral': True} # Default: User OFF, Viral ON + return SESSION_AUDIO_CONFIG[chat_id] + +# --- UTILS --- +# --- CATALOG CACHE --- +VIRAL_CATALOG = [] +LAST_LOAD_TIME = 0 + +async def refresh_viral_catalog(): + """Load viral music from JSON and Firebase.""" + global VIRAL_CATALOG, LAST_LOAD_TIME + + new_catalog = [] + + # 1. Load Local JSON (Base/Static) + try: + if os.path.exists(VIRAL_JSON): + with open(VIRAL_JSON, 'r', encoding='utf-8') as f: + local_items = json.load(f) + new_catalog.extend(local_items) + except Exception as e: + print(f"❌ Error loading Viral JSON: {e}") + + # 2. Load Firebase (Dynamic/User Saved) + try: + fb_items = await load_all_viral_items_fb() + # Sort by date descending (newest first) + fb_items.sort(key=lambda x: x.get('date', 0), reverse=True) + new_catalog.extend(fb_items) + except Exception as e: + print(f"❌ Error loading Firebase Viral Items: {e}") + + # Filter broken items (No path, No file_id, or Path doesn't exist) + valid_catalog = [] + for item in new_catalog: + has_file = 'file_id' in item and item['file_id'] + has_path = 'path' in item and item['path'] and os.path.exists(item['path']) + + if has_file or has_path: + valid_catalog.append(item) + + VIRAL_CATALOG = valid_catalog + LAST_LOAD_TIME = time.time() + print(f"🎵 Viral Catalog Loaded: {len(VIRAL_CATALOG)} items (Filtered from {len(new_catalog)})") + +async def get_viral_item(index): + global VIRAL_CATALOG + # Refresh if empty or old (every 5 mins) + if not VIRAL_CATALOG or (time.time() - LAST_LOAD_TIME > 300): + await refresh_viral_catalog() + + if not VIRAL_CATALOG: return None, 0 + + # Wrap index + idx = index % len(VIRAL_CATALOG) + return VIRAL_CATALOG[idx], idx + +async def apply_audio_ffmpeg(video_path, audio_input, output_path, mix_user=False, mix_viral=True): + """ + Apply audio logic: + - mix_user=T, mix_viral=T -> Mix both (duration=video) + - mix_user=F, mix_viral=T -> Replace (Viral only, duration=video) + - mix_user=T, mix_viral=F -> Keep Original (User only) + - mix_user=F, mix_viral=F -> Mute all + """ + + cmd = ["ffmpeg", "-y", "-i", video_path] + + if mix_viral: + cmd.extend(["-i", audio_input]) + + # LOGIC + # We use 'apad' filter to pad the audio with infinite silence. + # Combined with '-shortest', this ensures the output matches the Video stream length, + # regardless of whether the audio is shorter or longer. + + if mix_user and mix_viral: + # COMPLEX MIX + # duration=longest insures we don't cut to the shortest audio input inside amix + # then apad ensures we have infinite tail + # finally -shortest cuts to video length + cmd.extend([ + "-filter_complex", "[0:a][1:a]amix=inputs=2:duration=longest[mix];[mix]apad[aout]", + "-map", "0:v:0", + "-map", "[aout]" + ]) + elif mix_viral and not mix_user: + # REPLACE (Viral Only) + # Pad viral audio to avoid cutting video if song is short + cmd.extend([ + "-filter_complex", "[1:a]apad[aout]", + "-map", "0:v:0", + "-map", "[aout]" + ]) + elif mix_user and not mix_viral: + # ORIGINAL (User Only) + cmd.extend([ + "-map", "0:v:0", + "-map", "0:a:0" + ]) + else: + # SILENT + cmd.extend([ + "-map", "0:v:0" + # No audio map + ]) + + # -shortest signals to stop writing when the shortest stream ends. + # Since we apad-ed the audio (making it distinctively infinite conceptually or just very long), + # the video stream becomes the shortest, so output duration == video duration. + cmd.extend(["-c:v", "copy", "-c:a", "aac", "-shortest", output_path]) + + print(f"🎵 FFmpeg Mixing: User={mix_user}, Viral={mix_viral}") + + proc = await asyncio.create_subprocess_exec( + *cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE + ) + stdout, stderr = await proc.communicate() + + if proc.returncode != 0: + err_msg = stderr.decode() + print(f"❌ FFmpeg Error: {err_msg}") + return False + return True + +# --- HANDLERS --- + +async def init_tiktok_fast(client, chat_id, config): + """Muestra el menú principal de Tiktok Fast.""" + is_on = config.get('tiktok_fast_mode', False) + + status_icon = "🟢" if is_on else "🔴" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Modo: {status_icon}", callback_data="toggle|tiktok_fast_mode")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + await client.send_message( + chat_id, + "🎵 **Tiktok Fast Tool**\n\n" + "Activa este modo para reemplazar automáticamente el audio de tus videos con música viral.\n" + "1. Activa el modo.\n" + "2. Envía un video.\n" + "3. Selecciona la canción del catálogo (Virales/Shorts).\n" + "4. Usa el mezclador para ajustar volumenes.", + reply_markup=kb + ) + +async def process_tiktok_video(client, msg, file_path): + """ + Called when a video is received and 'tiktok_fast_mode' is active. + file_path: Local path of the downloaded video. + """ + # Fix: Store video path clearly + from database import url_storage + storage_key = f"tk_{msg.chat.id}_vid" + url_storage[storage_key] = file_path + + await show_catalog(client, msg.chat.id, 0, video_path=file_path) + +async def show_catalog(client, chat_id, index, video_path=None, msg_to_edit=None): + """Display the catalog item.""" + item, idx = await get_viral_item(index) + + from database import url_storage + storage_key = f"tk_{chat_id}_vid" + + # Refresh Video Path + if video_path: url_storage[storage_key] = video_path + saved_path = url_storage.get(storage_key) + if not saved_path and not video_path: return # Should not happen + + if not item: return + + # Load Config + ac = await get_audio_config(chat_id) + user_icon = "🔊" if ac['user'] else "🔇" + viral_icon = "🔊" if ac['viral'] else "🔇" + + total = len(VIRAL_CATALOG) + + # Info Text + name = item.get('name', 'Viral') + if 'caption' in item and item['caption']: name = item['caption'][:50] + elif 'file_id' in item: name = f"Viral #{item.get('id', 'Unknown')}" + type_lbl = item.get('type', 'audio').upper() + + text = ( + f"🎵 **Selector** ({idx + 1}/{total})\n" + f"🎼 {name}\n" + f"📂 {type_lbl}\n\n" + f"🎚 **Mezclador:**\n" + f"👤 Tu Video: {user_icon}\n" + f"🎵 Viral: {viral_icon}" + ) + + # --- NEW NUMBERED KEYBOARD --- + from utils import generate_grid_keyboard + from pyrogram.types import InlineKeyboardButton + + # Extra Control Rows (Mixer + Action) + extra_rows = [ + [ + InlineKeyboardButton(f"👤 Voz {user_icon}", callback_data=f"tiktok|t_user|{idx}"), + InlineKeyboardButton(f"🎵 Viral {viral_icon}", callback_data=f"tiktok|t_viral|{idx}") + ], + [ + InlineKeyboardButton("✅ AGREGAR", callback_data=f"tiktok|add|{idx}"), + InlineKeyboardButton("🎲 Aleatorio", callback_data=f"tiktok|random|{idx}") + ], + [InlineKeyboardButton("❌ Cancelar", callback_data="delete_msg")] + ] + + kb = generate_grid_keyboard( + current_idx=idx, + total_items=total, + prefix_sel="tiktok|sel|", # Select this index + prefix_nav="tiktok|nav|", # Page nav + prefix_jump="tiktok|jump", + extra_rows=extra_rows + ) + + # ... (Media Send/Edit Logic - Keep original) + media_id = item.get('file_id') + local_path = item.get('path') + from pyrogram.types import InputMediaVideo, InputMediaAudio + media_obj = None + + if media_id: + if type_lbl == 'VIDEO': media_obj = InputMediaVideo(media_id, caption=text) + else: media_obj = InputMediaAudio(media_id, caption=text) + elif local_path and os.path.exists(local_path): + if local_path.endswith('.mp4'): media_obj = InputMediaVideo(local_path, caption=text) + else: media_obj = InputMediaAudio(local_path, caption=text) + + # --- SEND / EDIT --- + try: + if msg_to_edit and (msg_to_edit.video or msg_to_edit.audio or msg_to_edit.document): + if media_obj: + await msg_to_edit.edit_media(media=media_obj, reply_markup=kb) + else: + await msg_to_edit.edit_caption(caption=text + "\n\n⚠️ (Vista previa no disponible)", reply_markup=kb) + else: + if msg_to_edit: + try: await msg_to_edit.delete() + except: pass + + if media_obj: + if isinstance(media_obj, InputMediaVideo): + await client.send_video(chat_id, media_obj.media, caption=text, reply_markup=kb) + else: + await client.send_audio(chat_id, media_obj.media, caption=text, reply_markup=kb) + else: + await client.send_message(chat_id, text, reply_markup=kb) + except Exception as e: + print(f"Display Error: {e}") + try: await client.send_message(chat_id, text, reply_markup=kb) + except: pass + +# --- CALLBACK --- +async def tiktok_callback(client, callback_query, config): + # ... (Init logic remains) + data = callback_query.data + chat_id = callback_query.message.chat.id + msg = callback_query.message + + if data == "menu|tiktok_fast_init": + await init_tiktok_fast(client, chat_id, config) + await callback_query.answer() + return + + if data == "toggle|tiktok_fast_mode": + val, disabled = await set_exclusive_mode(chat_id, 'tiktok_fast_mode', is_toggle=True) + if disabled: await msg.reply(f"🛑 **Se desactivó el modo/herramienta:** {disabled}") + + # Refresh Config locally just in case + if val: config['tiktok_fast_mode'] = True + else: config['tiktok_fast_mode'] = False + + await init_tiktok_fast(client, chat_id, config) + await msg.delete() + + await callback_query.answer(f"Modo {'Activado' if val else 'Desactivado'}") + return + + if data.startswith("tiktok|"): + parts = data.split("|") + action = parts[1] + + # HANDLE NAV + if action == "nav": + try: + current_idx = int(parts[2]) + direction = parts[3] # prev/next + + # Jump 10 pages + if direction == 'next': + new_idx = (current_idx + 10) % len(VIRAL_CATALOG) + # Align to start of that page? Or just jump 10? + # User said: "cambia a 11 hasta 20". So we should land on the first item of next page? + # Or just keep relative position? + # Let's align to page start. + # Current page = cur // 10. Next page = page + 1. + page = current_idx // 10 + next_page = page + 1 + # Wrap around if needed? Or clamp? + # Logic: If I am at 5 (Page 0), Next -> 15 (Page 1) ? + # Ensure we don't go out of bounds. + new_idx = min(current_idx + 10, len(VIRAL_CATALOG) - 1) + if new_idx == current_idx: new_idx = 0 # Loop back to start + + else: # prev + new_idx = max(0, current_idx - 10) + if new_idx == 0 and current_idx == 0: new_idx = len(VIRAL_CATALOG) - 1 # Loop to end? + + await show_catalog(client, chat_id, new_idx, msg_to_edit=msg) + except: pass + return + + # HANDLE SEL (Direct Click on Number) + if action == "sel": + try: + target_idx = int(parts[2]) + await show_catalog(client, chat_id, target_idx, msg_to_edit=msg) + except: pass + return + + # HANDLE JUMP (Input) + if action == "jump": + # Ask for input + from database import url_storage + url_storage[chat_id] = {'tiktok_step': 'wait_jump'} + await msg.reply("🔢 **Escribe el número** de la canción a la que quieres ir (1 - " + str(len(VIRAL_CATALOG)) + "):", quote=True) + await callback_query.answer() + return + + try: current_idx = int(parts[2]) + except: current_idx = 0 + + # TOGGLES + if action == "t_user": + ac = await get_audio_config(chat_id) + ac['user'] = not ac['user'] + await show_catalog(client, chat_id, current_idx, msg_to_edit=msg) + await callback_query.answer(f"Voz Usuario: {'ON' if ac['user'] else 'OFF'}") + return + + elif action == "t_viral": + ac = await get_audio_config(chat_id) + ac['viral'] = not ac['viral'] + await show_catalog(client, chat_id, current_idx, msg_to_edit=msg) + await callback_query.answer(f"Audio Viral: {'ON' if ac['viral'] else 'OFF'}") + return + + # NAV + if action == "next": + await show_catalog(client, chat_id, current_idx + 1, msg_to_edit=msg) + await callback_query.answer() + elif action == "prev": + await show_catalog(client, chat_id, current_idx - 1, msg_to_edit=msg) + await callback_query.answer() + elif action == "random": + total = len(VIRAL_CATALOG) + if total > 1: + # Pick random not equal to current + choices = [i for i in range(total) if i != current_idx] + new_idx = random.choice(choices) + else: + new_idx = 0 + + await show_catalog(client, chat_id, new_idx, msg_to_edit=msg) + await callback_query.answer("🎲 random") + + elif action == "add": + # ... (Add logic) + from database import url_storage + storage_key = f"tk_{chat_id}_vid" + video_path = url_storage.get(storage_key) + + if not video_path or not os.path.exists(video_path): + await callback_query.answer("❌ Video expiró.", show_alert=True) + return + + item, _ = await get_viral_item(current_idx) + audio_source = item.get('path') + + # Download file_id if needed + dl_path = None + if not audio_source and 'file_id' in item: + await msg.edit_caption("⬇️ **Descargando audio viral...**") + try: + ts = int(time.time()) + rnd = random.randint(100, 999) + dl_path = os.path.join("downloads", f"viral_src_{ts}_{rnd}") + dl_path = await client.download_media(item['file_id'], file_name=dl_path) + audio_source = dl_path + except Exception as e: + await msg.edit_caption(f"❌ Error descarga: {e}") + return + + if not audio_source or not os.path.exists(audio_source): + await callback_query.answer("❌ Audio no hallado.", show_alert=True) + return + + ac = await get_audio_config(chat_id) + await msg.edit_caption(f"⏳ **Fusionando...**\n(User: {ac['user']} | Viral: {ac['viral']})") + + output_path = video_path.rsplit('.', 1)[0] + f"_tikfast_{int(time.time())}.mp4" + print(f"🎬 Merging: {video_path} + {audio_source} -> {output_path}") + + # PASS CONFIG FLAGS + success = await apply_audio_ffmpeg( + video_path, audio_source, output_path, + mix_user=ac['user'], mix_viral=ac['viral'] + ) + + if success and os.path.exists(output_path): + await msg.edit_caption("📤 **Subiendo...**") + + # --- THUMBNAIL GENERATION --- + thumb_path = output_path.rsplit('.', 1)[0] + ".jpg" + try: + # Extract thumbnail at 1s or 0s + cmd_thumb = [ + "ffmpeg", "-y", "-i", output_path, + "-ss", "00:00:01", "-vframes", "1", + "-q:v", "2", thumb_path + ] + # If video is < 1s, try 0s + proc_thumb = await asyncio.create_subprocess_exec( + *cmd_thumb, stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL + ) + await proc_thumb.wait() + + if not os.path.exists(thumb_path): + # Retry at 0s + cmd_thumb[5] = "00:00:00" + proc_thumb = await asyncio.create_subprocess_exec( + *cmd_thumb, stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL + ) + await proc_thumb.wait() + except Exception as e: + print(f"⚠️ Thumbnail Error: {e}") + thumb_path = None + + try: + await client.send_video( + chat_id, output_path, + caption=f"🎵 **Tiktok Fast**\nTrack: {item.get('name', 'Viral')}", + thumb=thumb_path if (thumb_path and os.path.exists(thumb_path)) else None + ) + await msg.delete() + except Exception as ex_send: + await msg.edit_caption(f"❌ Error envío: {ex_send}") + + # Cleanup + try: os.remove(output_path) + except: pass + + if thumb_path and os.path.exists(thumb_path): + try: os.remove(thumb_path) + except: pass + else: + await msg.edit_caption("❌ Error FFmpeg.") + + if dl_path and os.path.exists(dl_path): + try: os.remove(dl_path) + except: pass + + await callback_query.answer() diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/7zr.exe b/Twisted Brody Waifus & Creampie BRODY/tools/7zr.exe new file mode 100644 index 0000000000000000000000000000000000000000..29b0a8c2a2628f4ffe09f725db7b7d712adabb84 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/7zr.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27cbe3d5804ad09e90bbcaa916da0d5c3b0be9462d0e0fb6cb54be5ed9030875 +size 601088 diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/N_m3u8DL-RE.exe b/Twisted Brody Waifus & Creampie BRODY/tools/N_m3u8DL-RE.exe new file mode 100644 index 0000000000000000000000000000000000000000..c2357506b988495e5c3ac8a30037c9abd98c8da0 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/N_m3u8DL-RE.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8230575979e615b4adcdf795fd289daa6838504e3158291f8616f04963f44820 +size 17352192 diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/Rar.exe b/Twisted Brody Waifus & Creampie BRODY/tools/Rar.exe new file mode 100644 index 0000000000000000000000000000000000000000..9d07c17fad22e3d5c532bc5cc9e51b47999a7593 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/Rar.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdbe2bde697c45e02902f19415d7af07dc871f30a3ac84fb552657aeddc38714 +size 817808 diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/aria2c.exe b/Twisted Brody Waifus & Creampie BRODY/tools/aria2c.exe new file mode 100644 index 0000000000000000000000000000000000000000..924ae3ceb0432e4b830ab23b3f21ead867e7e416 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/aria2c.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be2099c214f63a3cb4954b09a0becd6e2e34660b886d4c898d260febfe9d70c2 +size 5649408 diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/fix_issues.py b/Twisted Brody Waifus & Creampie BRODY/tools/fix_issues.py new file mode 100644 index 0000000000000000000000000000000000000000..66a886b8af7335f50611b0b2abb7ab4f85d9fe30 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/fix_issues.py @@ -0,0 +1,66 @@ +import os +import shutil + +DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "data") +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +SESSION_FILE = os.path.join(DATA_DIR, "twisted_brody_session.session") +JOURNAL_FILE = os.path.join(DATA_DIR, "twisted_brody_session.session-journal") +FIREBASE_FILE = os.path.join(BASE_DIR, "firebase_credentials.json") + +def fix_session(): + print("--- Fixing Session Files ---") + if os.path.exists(SESSION_FILE): + try: + os.remove(SESSION_FILE) + print(f"✅ Deleted: {SESSION_FILE}") + except Exception as e: + print(f"❌ Error deleting session: {e}") + else: + print(f"ℹ️ Session file not found: {SESSION_FILE}") + + if os.path.exists(JOURNAL_FILE): + try: + os.remove(JOURNAL_FILE) + print(f"✅ Deleted: {JOURNAL_FILE}") + except Exception as e: + print(f"❌ Error deleting journal: {e}") + else: + print(f"ℹ️ Journal file not found: {JOURNAL_FILE}") + +def fix_firebase_encoding(): + print("\n--- Fixing Firebase Credentials Encoding ---") + if not os.path.exists(FIREBASE_FILE): + print(f"❌ File not found: {FIREBASE_FILE}") + return + + content = None + # Try reading with different encodings + encodings = ['utf-16', 'utf-16-le', 'utf-16-be', 'utf-8-sig', 'cp1252'] + + for enc in encodings: + try: + with open(FIREBASE_FILE, 'r', encoding=enc) as f: + content = f.read() + print(f"✅ Successfully read file using encoding: {enc}") + break + except Exception: + continue + + if content: + # Check if it looks like JSON + if content.strip().startswith('{'): + try: + # Save back as UTF-8 + with open(FIREBASE_FILE, 'w', encoding='utf-8') as f: + f.write(content) + print(f"✅ Converted {FIREBASE_FILE} to UTF-8") + except Exception as e: + print(f"❌ Error saving file: {e}") + else: + print("⚠️ File content does not look like JSON. Skipping save.") + else: + print("❌ Could not read file with standard encodings. It might be binary or corrupted.") + +if __name__ == "__main__": + fix_session() + fix_firebase_encoding() diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/install_tool.py b/Twisted Brody Waifus & Creampie BRODY/tools/install_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..3fe098b161936dc1fed634195372422a7caf15e1 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/install_tool.py @@ -0,0 +1,31 @@ +import urllib.request +import zipfile +import os +import shutil + +url = "https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.5.0-beta/N_m3u8DL-RE_v0.5.0-beta_win-x64_20251027.zip" +print(f"Downloading fro {url}...") +try: + urllib.request.urlretrieve(url, "tool.zip") + print("Extracting...") + with zipfile.ZipFile("tool.zip", 'r') as zip_ref: + zip_ref.extractall("temp_tool") + + # Find exe + found = False + for root, dirs, files in os.walk("temp_tool"): + for file in files: + if "N_m3u8DL-RE" in file and file.endswith(".exe"): + shutil.move(os.path.join(root, file), "N_m3u8DL-RE.exe") + print(f"Movido {file} a tools/") + found = True + + if not found: + print("No se encontró el .exe en el zip") + + # Clean + if os.path.exists("tool.zip"): os.remove("tool.zip") + if os.path.exists("temp_tool"): shutil.rmtree("temp_tool") + print("Done") +except Exception as e: + print(f"Error: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/tools/tool.zip b/Twisted Brody Waifus & Creampie BRODY/tools/tool.zip new file mode 100644 index 0000000000000000000000000000000000000000..b6a671708451e0cc55ba1523900898e57d7bac8a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools/tool.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3a471ba83401a0830eba2b256a539a826c706d1731342bab465fe787597084c +size 7685726 diff --git a/Twisted Brody Waifus & Creampie BRODY/tools_fusion.py b/Twisted Brody Waifus & Creampie BRODY/tools_fusion.py new file mode 100644 index 0000000000000000000000000000000000000000..a7453fc057919bf9283a88f916eb0ad8186d31bd --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools_fusion.py @@ -0,0 +1,471 @@ +import os +import asyncio +import subprocess +import time +from tools_media import get_meta, has_audio_track + +# Re-using existing check from tools_media if possible, but defining here for standalone safety +async def get_thumb(file_path, chat_id, ts, duration=0): + """ + Genera un thumbnail del video usando FFmpeg. + """ + thumb_path = f"thumb_{chat_id}_{ts}.jpg" + + # Intentar sacar thumb al 10% o al segundo 1 + seek = "00:00:01" + if duration > 10: + seek = time.strftime('%H:%M:%S', time.gmtime(duration * 0.1)) + + cmd = [ + "ffmpeg", "-y", + "-ss", seek, + "-i", file_path, + "-vframes", "1", + "-q:v", "2", + thumb_path + ] + + proc = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await proc.wait() + + if os.path.exists(thumb_path): + return thumb_path + return None + +async def process_fusion(video_path, audio_path, output_path, keep_video_audio=False, keep_added_audio=True, safe_mode=False, vol_v=100, vol_a=100): + """ + Mezcla video y audio usando FFmpeg. + + Args: + keep_video_audio (bool): Si es True, mantiene el audio original del video. + keep_added_audio (bool): Si es True, usa el audio nuevo. + (Ambos True = Mezcla) + """ + cmd = ["ffmpeg", "-y", "-i", video_path, "-i", audio_path] + + # Complex Filter Construction + filter_complex = [] + map_args = [] + + # Video map always 0:v:0 (ensures we don't grab extra mjpeg thumbnail streams) + map_args.extend(["-map", "0:v:0"]) + + # Check if video actually has audio if we want to keep it + if keep_video_audio: + has_audio = await has_audio_track(video_path) + if not has_audio: + keep_video_audio = False + + # Check if added audio actually has audio + if keep_added_audio: + has_added_audio = await has_audio_track(audio_path) + if not has_added_audio: + keep_added_audio = False + + # Audio Volume Factor (e.g. 100% = 1.0, 50% = 0.5) + v_factor = vol_v / 100.0 + a_factor = vol_a / 100.0 + + # Audio Logic + # Audio Logic + if keep_video_audio and keep_added_audio: + # MIX Both + cmd.extend([ + "-filter_complex", + f"[0:a]volume={v_factor}[v_aud];[1:a]volume={a_factor}[a_aud];[v_aud][a_aud]amix=inputs=2:duration=first:dropout_transition=2[a]", + "-map", "[a]" + ]) + elif keep_video_audio and not keep_added_audio: + # Video Audio Only (External Muted) + cmd.extend([ + "-filter_complex", f"[0:a]volume={v_factor}[a]", + "-map", "[a]" + ]) + elif not keep_video_audio and keep_added_audio: + # External Audio Only (Video Muted) + cmd.extend([ + "-filter_complex", f"[1:a]volume={a_factor}[a]", + "-map", "[a]" + ]) + else: + # BOTH MUTED (Silent video) + # We don't map any audio + pass + + cmd.extend(map_args) + + # Codecs and Cut + if safe_mode: + cmd.extend([ + "-vf", "scale=trunc(iw/2)*2:trunc(ih/2)*2", # Ensures width/height are divisible by 2 for yuv420p + "-c:v", "libx264", "-preset", "veryfast", "-crf", "24", + "-pix_fmt", "yuv420p", + "-c:a", "aac", "-b:a", "128k", + "-shortest", output_path + ]) + else: + cmd.extend([ + "-c:v", "copy", # Copy video stream (Fast) unless re-encoding needed? + # Re-encoding is safer for compatibility but slower. + # Copy is best for "Fusion" speed. + "-c:a", "aac", # Re-encode audio to AAC typical for MP4 + "-shortest", # Cut to shortest stream (usually video) + output_path + ]) + + print(f"🧬 Fusion CMD: {' '.join(cmd)}") + + proc = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + + # Wait + stdout, stderr = await proc.communicate() + + if os.path.exists(output_path) and os.path.getsize(output_path) > 0: + return True, None + else: + err_str = stderr.decode('utf-8', errors='ignore') + print(f"❌ FFmpeg Fusion Error: {err_str}") + + # Truncate error to avoid Telegram 400 MESSAGE_TOO_LONG + if len(err_str) > 2000: + err_str = "..." + err_str[-2000:] + + if os.path.exists(output_path): + try: os.remove(output_path) + except: pass + return False, err_str + +# --- UI HANDLERS --- +from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + +async def init_fusion_menu(client, chat_id, config, edit_msg=None): + """Muestra el menú principal de la herramienta Fusión.""" + is_on = config.get('fusion_mode', False) + status_icon = "🟢" if is_on else "🔴" + + is_auto_on = config.get('fusion_auto_mode', False) + auto_icon = "🟢" if is_auto_on else "🔴" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Modo: {status_icon}", callback_data="toggle|fusion")], + [InlineKeyboardButton(f"🤖 Modo Automático {auto_icon}", callback_data="fus_auto|menu")], + [InlineKeyboardButton("🔙 Volver", callback_data="menu|tools")] + ]) + + text = ( + "🎵 **Herramienta de Fusión**\n\n" + "Mezcla audio y video fácilmente.\n" + "1. Activa el modo.\n" + "2. Envía un **Video Base**.\n" + "3. Envía un **Audio** (o video para extraer audio).\n" + "4. Configura la mezcla final." + ) + + if edit_msg: + await edit_msg.edit_text(text, reply_markup=kb) + else: + await client.send_message( + chat_id, + text, + reply_markup=kb + ) + +async def show_fusion_auto_menu(client, chat_id, config, edit_msg=None): + """Muestra el submenú de Fusión Automática.""" + is_on = config.get('fusion_auto_mode', False) + status_icon = "🟢 Encendido" if is_on else "🔴 Apagado" + has_audio = bool(config.get('fusion_default_audio')) + audio_status_icon = "✅ Guardado" if has_audio else "❌ Faltante" + + icon_v = "🔊" if config.get('fusion_auto_cfg_v', True) else "🔇" + icon_a = "🔊" if config.get('fusion_auto_cfg_a', True) else "🔇" + + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton(f"Estado de Fusión Automática: {status_icon}", callback_data="fus_auto|toggle")], + [InlineKeyboardButton(f"🎵 Subir Audio Predeterminado [{audio_status_icon}]", callback_data="fus_auto|set_audio")], + [ + InlineKeyboardButton(f"🎥 Video {icon_v}", callback_data="fus_auto|toggle_vol|v"), + InlineKeyboardButton(f"🔊 {config.get('fusion_auto_vol_v', 100)}%", callback_data="fus_auto|vol|v") + ], + [ + InlineKeyboardButton(f"🎵 Audio {icon_a}", callback_data="fus_auto|toggle_vol|a"), + InlineKeyboardButton(f"🔊 {config.get('fusion_auto_vol_a', 100)}%", callback_data="fus_auto|vol|a") + ], + [InlineKeyboardButton("🔙 Volver a Fusión", callback_data="menu|fusion_init")] + ]) + + text = ( + "🤖 **Modo Fusión Automática**\n\n" + "Al estar encendido, cualquier video que envíes se fusionará instantáneamente con tu audio predeterminado, usando los ajustes de volumen pasados, ¡sin botones!\n\n" + "*(Requiere tener la herramienta Fusión activada y un audio configurado).*") + + if config.get('fusion_auto_audio_capture', False): + text = "🎵 **Esperando Audio Predeterminado...**\n\nPor favor envíame ahora mismo el **Audio** (o video para extraer su audio). Este será tu nuevo fondo predeterminado.\n\n_(Para cancelar, presiona el botón abajo)_" + kb = InlineKeyboardMarkup([ + [InlineKeyboardButton("❌ Cancelar Subida", callback_data="fus_auto|cancel_audio")] + ]) + + if edit_msg: + try: + await edit_msg.edit_text(text, reply_markup=kb) + except Exception as e: + import traceback + print(f"ERROR UI EDIT: {traceback.format_exc()}") + # Intentar notificar + try: await client.send_message(chat_id, f"⚠️ Error visual: {e}") + except: pass + else: + await client.send_message(chat_id, text, reply_markup=kb) + +# --- FUSION SESSION & LOGIC --- +FUSION_SESSIONS = {} # {chat_id: {'video': msg/id, 'audio': msg/id, 'cfg_v': T, 'cfg_a': T, 'step': 0}} + +async def get_fusion_session(chat_id): + if chat_id not in FUSION_SESSIONS: + FUSION_SESSIONS[chat_id] = {'step': 0, 'cfg_v': True, 'cfg_a': True, 'safe_mode': False, 'vol_v': 100, 'vol_a': 100, 'video': None, 'audio': None} + # Step 0: Idle/Wait Video + # Step 1: Wait Audio + # Step 2: Ready/Panel + return FUSION_SESSIONS[chat_id] + +async def show_fusion_panel(client, chat_id, edit_msg=None): + sess = await get_fusion_session(chat_id) + + # Config Icons + icon_v = "🔊" if sess['cfg_v'] else "🔇" + icon_a = "🔊" if sess['cfg_a'] else "🔇" + safe_cb = "✅ Seguro" if sess.get('safe_mode', False) else "⚡️ Rápido" + + txt = ( + "🎚 **Panel de Fusión**\n\n" + "Configura las fuentes de audio antes de procesar:\n\n" + f"🎥 **Video Base:** {'✅ Listo' if sess['video'] else '❌ Falta'}\n" + f"🎵 **Audio/Mix:** {'✅ Listo' if sess['audio'] else '❌ Falta'}\n" + f"⚙️ **Modo Video:** {safe_cb} *(El Seguro evita audios/videos corruptos)*\n" + ) + + kb = InlineKeyboardMarkup([ + [ + InlineKeyboardButton(f"🎥 Video {icon_v}", callback_data="fus|toggle|v"), + InlineKeyboardButton(f"🔊 {sess.get('vol_v', 100)}%", callback_data="fus|vol|v") + ], + [ + InlineKeyboardButton(f"🎵 Audio {icon_a}", callback_data="fus|toggle|a"), + InlineKeyboardButton(f"🔊 {sess.get('vol_a', 100)}%", callback_data="fus|vol|a") + ], + [InlineKeyboardButton(f"⚙️ Cambiar Modo: {safe_cb}", callback_data="fus|toggle|safe")], + [InlineKeyboardButton("✅ ACEPTAR Y FUSIONAR", callback_data="fus|exec")], + [InlineKeyboardButton("❌ Cancelar", callback_data="fus|cancel")] + ]) + + if edit_msg: + await edit_msg.edit_text(txt, reply_markup=kb) + else: + return await client.send_message(chat_id, txt, reply_markup=kb) + +async def fusion_callback(client, callback_query): + data = callback_query.data + chat_id = callback_query.message.chat.id + + # --- AUTO MODE CALLBACKS --- + if data.startswith("fus_auto|"): + from database import get_config, url_storage + from firebase_service import save_user_config_fb + conf = get_config(chat_id) + + cmd = data.split("|")[1] + + if cmd == "dummy": + await callback_query.answer("Controles de volumen de mezcla automática.") + return + + if cmd == "toggle_vol": + target = data.split("|")[2] + key = 'fusion_auto_cfg_v' if target == 'v' else 'fusion_auto_cfg_a' + conf[key] = not conf.get(key, True) + + import asyncio + asyncio.create_task(save_user_config_fb(chat_id, conf)) + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + return + + if cmd == "vol": + target = data.split("|")[2] + key = 'fusion_auto_vol_v' if target == 'v' else 'fusion_auto_vol_a' + vol = conf.get(key, 100) + 10 + if vol > 100: vol = 10 + conf[key] = vol + + import asyncio + asyncio.create_task(save_user_config_fb(chat_id, conf)) + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + await callback_query.answer(f"Volumen Auto {'Video' if target == 'v' else 'Audio'}: {vol}%") + return + + if cmd == "menu": + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + return + + if cmd == "toggle": + from database import set_exclusive_mode + await set_exclusive_mode(chat_id, 'fusion_auto_mode', is_toggle=True) + + conf = get_config(chat_id) + + if not conf.get('fusion_auto_mode', False): + conf['fusion_auto_audio_capture'] = False + import asyncio + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + return + + if cmd == "set_audio": + conf['fusion_auto_audio_capture'] = True + import asyncio + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + try: + await callback_query.answer("Cambiando a Modo Espera...") + except: pass + + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + return + + if cmd == "cancel_audio": + conf['fusion_auto_audio_capture'] = False + import asyncio + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + await show_fusion_auto_menu(client, chat_id, conf, edit_msg=callback_query.message) + return + + # --- STANDARD MODE CALLBACKS --- + sess = await get_fusion_session(chat_id) + + if data == "fus|cancel": + FUSION_SESSIONS[chat_id] = {'step': 0, 'cfg_v': True, 'cfg_a': True, 'safe_mode': False, 'video': None, 'audio': None} + await callback_query.message.edit_text("❌ Fusión cancelada.") + return + + if data == "fus|toggle|safe": + sess['safe_mode'] = not sess.get('safe_mode', False) + await show_fusion_panel(client, chat_id, edit_msg=callback_query.message) + await callback_query.answer(f"Modo: {'Seguro' if sess['safe_mode'] else 'Rápido'}") + return + + if data == "fus|vol|v": + vol = sess.get('vol_v', 100) + 10 + if vol > 100: vol = 10 + sess['vol_v'] = vol + await show_fusion_panel(client, chat_id, edit_msg=callback_query.message) + await callback_query.answer(f"Volumen Video: {vol}%") + return + + if data == "fus|vol|a": + vol = sess.get('vol_a', 100) + 10 + if vol > 100: vol = 10 + sess['vol_a'] = vol + await show_fusion_panel(client, chat_id, edit_msg=callback_query.message) + await callback_query.answer(f"Volumen Audio: {vol}%") + return + + if data == "fus|toggle|v": + sess['cfg_v'] = not sess['cfg_v'] + await show_fusion_panel(client, chat_id, edit_msg=callback_query.message) + await callback_query.answer(f"Audio Video: {'ON' if sess['cfg_v'] else 'OFF'}") + return + + if data == "fus|toggle|a": + sess['cfg_a'] = not sess['cfg_a'] + await show_fusion_panel(client, chat_id, edit_msg=callback_query.message) + await callback_query.answer(f"Audio Externo: {'ON' if sess['cfg_a'] else 'OFF'}") + return + + if data == "fus|exec": + # EXECUTION + if not sess['video'] or not sess['audio']: + await callback_query.answer("❌ Faltan archivos.", show_alert=True) + return + + await callback_query.message.edit_text("⏳ **Descargando archivos...**") + + # Download logic needs to be here or triggered. + # Since main.py usually handles downloads, we need access to the downloader or simple download_media method + # sess['video'] and ['audio'] should be Pyrogram Message objects or IDs + + try: + # Paths + ts = int(time.time()) + v_path = os.path.join("downloads", f"fus_v_{ts}_{chat_id}.mp4") + a_path = os.path.join("downloads", f"fus_a_{ts}_{chat_id}") # Ext guesses later + + # Download Video + # Determine if message or file_id + v_msg = sess['video'] + await client.download_media(v_msg, file_name=v_path) + + # Download Audio + a_msg = sess['audio'] + a_dl = await client.download_media(a_msg, file_name=a_path) + + if not os.path.exists(v_path) or not os.path.exists(a_dl): + await callback_query.message.edit_text("❌ Error en descarga.") + return + + # PROCESS + await callback_query.message.edit_text("⚙️ **Procesando Fusión...**") + + out_path = os.path.join("downloads", f"fusion_final_{ts}_{chat_id}.mp4") + + ok, err = await process_fusion( + v_path, a_dl, out_path, + keep_video_audio=sess['cfg_v'], + keep_added_audio=sess['cfg_a'], + safe_mode=sess.get('safe_mode', False), + vol_v=sess.get('vol_v', 100), + vol_a=sess.get('vol_a', 100) + ) + + if ok: + await callback_query.message.edit_text("📤 **Enviando...**") + # Generate Thumb + thumb = await get_thumb(out_path, chat_id, ts) + w, h, dur = await get_meta(out_path) + + await client.send_video( + chat_id, out_path, + caption="🧬 **Fusión Completada**", + width=w, height=h, duration=dur, thumb=thumb + ) + + # Cleanup + if thumb and os.path.exists(thumb): os.remove(thumb) + if os.path.exists(out_path): os.remove(out_path) + + # Reset Session Loop (Keep settings? User said 'sale el panel nuevamente y asi') + # Usually reset files but keep settings? + # "si le renvio dos videos... sale el panel nuevamente" + sess['video'] = None + sess['audio'] = None + sess['step'] = 0 + + await callback_query.message.delete() + # Reprompt? Or just silent wait? + # User flow: "cuando le de aseptar ... el bot recien comienza ... y asi cuando el boton... este no se apaga" + + else: + await callback_query.message.edit_text(f"❌ Error Fusión: {err}") + + # Clean Inputs + if os.path.exists(v_path): os.remove(v_path) + if os.path.exists(a_dl): os.remove(a_dl) + + except Exception as e: + print(f"Fusion Exec Error: {e}") + await callback_query.message.edit_text(f"❌ Error Crítico: {e}") + diff --git a/Twisted Brody Waifus & Creampie BRODY/tools_media.py b/Twisted Brody Waifus & Creampie BRODY/tools_media.py new file mode 100644 index 0000000000000000000000000000000000000000..86f77a4f8c05f97d3d4a092dccfe1e907c2169a9 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tools_media.py @@ -0,0 +1,981 @@ +import os +import json +import time +import asyncio +import subprocess +from pyrogram import enums +from pyrogram.errors import FloodWait +from config import HAS_FFMPEG +from database import update_progress + +# --- FUNCIONES DE MEDIA (FFMPEG) --- + +async def get_thumb(path, cid, ts, duration=0, seek_override=None): + out = f"t_{cid}_{ts}.jpg" + log_file = "media_debug.log" + if HAS_FFMPEG: + try: + # Smart Seek Calculation + seek_time = "00:00:02" + + if seek_override: + seek_time = seek_override + print(f"📸 Forced Thumbnail Seek: {seek_time}") + elif duration > 0: + # 15% mark usually avoids intros but captures action + s_sec = duration * 0.15 + if duration < 5: s_sec = duration / 2 # Short videos: Middle + elif s_sec < 2: s_sec = 2 # Min 2s + + # Format + m, s = divmod(s_sec, 60) + h, m = divmod(m, 60) + seek_time = f"{int(h):02d}:{int(m):02d}:{s:06.3f}" + + # Thumbnail con corrección de Aspect Ratio (Square Pixels) + # Primero intenta en Smart Seek + cmd = ["ffmpeg", "-ss", seek_time, "-i", path, "-vf", "scale=iw*sar:ih", "-vframes", "1", "-q:v", "2", out, "-y"] + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb Cmd 1 ({seek_time}): {cmd}\n") + + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + + # Si falla, intenta al principio (0s) + if not os.path.exists(out): + cmd = ["ffmpeg", "-ss", "00:00:00", "-i", path, "-vf", "scale=iw*sar:ih", "-vframes", "1", "-q:v", "2", out, "-y"] + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb Cmd 2 (Fallback): {cmd}\n") + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + + if os.path.exists(out): + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb created: {out} ({os.path.getsize(out)} bytes)\n") + return out + else: + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb FAILED for {path}\n") + except Exception as e: + print(f"Error thumb: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb Error: {e}\n") + return None + + +async def get_meta(path): + log_file = "media_debug.log" + if not HAS_FFMPEG: return 0, 0, 0 + try: + cmd = [ + "ffprobe", "-v", "error", "-select_streams", "v:0", + "-show_entries", "stream=width,height,duration,sample_aspect_ratio:stream_tags=rotate", + "-of", "json", path + ] + process = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + stdout, _ = await process.communicate() + + d = json.loads(stdout) + s = d['streams'][0] + w = int(s.get('width', 0)) + h = int(s.get('height', 0)) + dur = int(float(s.get('duration', 0))) + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Raw Meta: w={w}, h={h}, sar={s.get('sample_aspect_ratio')}\n") + + # Aspect Ratio Correction + sar = s.get('sample_aspect_ratio', '1:1') + if sar != '1:1' and sar != '0:1' and ':' in sar: + try: + num, den = map(int, sar.split(':')) + if den > 0: + # Calculate Display Width + w = int(w * (num / den)) + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Corrected w={w}\n") + except: pass + + # Check rotation + tags = s.get('tags', {}) + rot = tags.get('rotate') + if rot: + rot = int(rot) + if abs(rot) in [90, 270]: + w, h = h, w + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Final Meta: w={w}, h={h}\n") + return w, h, dur + except Exception as e: + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Meta Error: {e}\n") + return 0, 0, 0 + +async def get_audio_dur(path): + try: + cmd = [ + "ffprobe", "-v", "error", + "-show_entries", "format=duration", + "-of", "json", path + ] + process = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE + ) + stdout, _ = await process.communicate() + return int(float(json.loads(stdout)['format']['duration'])) + except: + return 0 + +async def progreso(cur, tot, msg, times, act, orig_id=None): + if not msg: return + now = time.time() + if not orig_id: orig_id = msg.id # Fallback + + # SAFEGUARD: tot/cur can be None or 0 + safe_cur = int(cur) if cur else 0 + safe_tot = int(tot) if tot else 0 + + if safe_tot == 0: return + + per = safe_cur * 100 / safe_tot + + # THROTTLING INTELIGENTE: + # Solo actualizar si: + # 1. Pasaron > 8 segundos (Time-based prevent FloodWait) + # 2. O si el progreso cambió > 5% (Step-based) + # 3. O si terminó (100%) + + # Safe guard for bad inputs + if isinstance(times, (int, float)): + times = [times, 0] + + last_time = times[0] + last_per = times[1] + + if (now - last_time) > 8 or (per - last_per) > 5 or safe_cur == safe_tot: + times[0] = now + times[1] = per + + try: + from utils import render_bar + + mb_cur = safe_cur / (1024 * 1024) + mb_tot = safe_tot / (1024 * 1024) + # bar = render_bar(safe_cur, safe_tot) # Removed per user request + + # Custom Action Text + action_text = act if act else "Enviando" + emoji = "⬇️" if "Descargando" in action_text else "📤" + + # Update Admin Progress (Keep URL if exists) + from database import task_progress + existing_url = task_progress.get(msg.chat.id, {}).get(orig_id, {}).get('url', 'N/A') + update_progress(msg.chat.id, orig_id, percent=per, status=f"{action_text} {emoji}", speed=f"{mb_cur:.1f}MB", url=existing_url) + + # Format: 📤 Subiendo Video 📁25.0/97.7 MB (25.6%) + txt = f"{emoji} {action_text} 📁 `{mb_cur:.1f}/{mb_tot:.1f} MB` (`{per:.1f}%`)" + # Console Log (User Request) + print(f"🔄 Progress: {mb_cur:.1f}/{mb_tot:.1f} MB ({per:.1f}%)") + await msg.edit_text(txt) + + except FloodWait as e: + # Si Telegram nos dice "espera X segundos", NO crasheamos, solo esperamos y saltamos este update visual. + # print(f"⏳ FloodWait en barra: {e.value}s") + await asyncio.sleep(e.value) + except Exception as e: + # Error visual ignorado para no romper subida + pass + +async def cut_video_start(path, start_time): + """Corta el video desde start_time hasta el final usando stream copy.""" + log_file = "media_debug.log" + base, ext = os.path.splitext(path) + out_path = f"{base}_cut_{int(time.time())}{ext}" + + if HAS_FFMPEG: + try: + # OPTIMIZATION: Try Stream Copy first (Instant & No Quality Loss) + # -ss before -i for fast seek (keyframe snap) + # -c copy to avoid re-encoding + cmd_copy = ["ffmpeg", "-ss", str(start_time), "-i", path, "-c", "copy", "-map", "0", out_path, "-y"] + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Cut Start Cmd (Copy): {cmd_copy}\n") + + process = await asyncio.create_subprocess_exec(*cmd_copy, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) + _, stderr = await process.communicate() + + if process.returncode == 0 and os.path.exists(out_path): + return out_path + + # Fallback: Re-encoding if copy fails (e.g. incompatible codecs for container) + # Use optimized settings to avoid file bloat: -crf 26 (smaller) -preset fast + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"⚠️ Stream Copy Failed (RC={process.returncode}): {stderr.decode() if stderr else 'Unknown'}\nFallback to Encode...\n") + + # Fallback based on extension + if ext.lower() in ['.mp3', '.m4a', '.flac', '.wav', '.ogg', '.opus']: + # Audio Fallback + cmd_encode = [ + "ffmpeg", "-ss", str(start_time), "-i", path, + "-c:a", "libmp3lame" if ext == '.mp3' else "aac", + "-b:a", "192k", + "-vn", # No video + "-map", "0:a", + out_path, "-y" + ] + else: + # Video Fallback + cmd_encode = [ + "ffmpeg", "-ss", str(start_time), "-i", path, + "-c:v", "libx264", "-preset", "fast", "-crf", "26", + "-c:a", "aac", "-b:a", "128k", + "-map", "0", out_path, "-y" + ] + + process = await asyncio.create_subprocess_exec(*cmd_encode, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + + if os.path.exists(out_path): + return out_path + + except Exception as e: + print(f"Error cutting video: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Cut Error: {e}\n") + return None + +async def extract_audio(path): + """Extrae el audio de un video y lo guarda como MP3.""" + log_file = "media_debug.log" + out_path = os.path.splitext(path)[0] + ".mp3" + + if HAS_FFMPEG: + try: + # ffmpeg -i input.mp4 -q:a 0 -map a output.mp3 + cmd = ["ffmpeg", "-i", path, "-vn", "-acodec", "libmp3lame", "-q:a", "2", out_path, "-y"] + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + + if os.path.exists(out_path): + return out_path + except Exception as e: + print(f"Error extracting audio: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Audio Extract Error: {e}\n") + return None + +async def convert_to_h264(path): + """Convierte cualquier video a MP4 H.264 compatible con Telegram/Web.""" + log_file = "media_debug.log" + # Salida con nombre unico + base, _ = os.path.splitext(path) + # Evitar conflictos de nombre + out_path = f"{base}_h264_{int(time.time())}.mp4" + + if HAS_FFMPEG: + try: + # Comando FFmpeg para estandarizar a H.264 AAC + # -c:v libx264 -preset fast -crf 23 (buen balance calidad/peso) + # -c:a aac -b:a 128k + # -movflags +faststart (para streaming web si hace falta) + # -pix_fmt yuv420p (máxima compatibilidad) + # -map 0:v:0 -map 0:a? (Solo primer video y audio si existe, ignora data/subs rotos de .ts) + cmd = [ + "ffmpeg", + "-probesize", "10M", + "-analyzeduration", "10M", + "-i", path, + "-c:v", "libx264", + "-preset", "superfast", + "-crf", "23", + "-c:a", "aac", + "-b:a", "128k", + "-pix_fmt", "yuv420p", + "-movflags", "+faststart", + "-map", "0:v:0", + "-map", "0:a:0?", + "-sn", + "-dn", + out_path, + "-y" + ] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"H264 Convert Cmd: {cmd}\n") + + # Ejecutar conversión + process = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE + ) + + _, stderr = await process.communicate() + + if process.returncode != 0: + # Error crítico + err_msg = stderr.decode('utf-8', errors='ignore') if stderr else "Unknown Error" + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"❌ FFmpeg FAILED (RC={process.returncode}):\n{err_msg}\n") + + if os.path.exists(out_path): + try: os.remove(out_path) + except: pass + return None + + # Éxito (con posibles warnings) + if stderr: + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"⚠️ FFmpeg Warnings (RC=0): {stderr.decode('utf-8', errors='ignore')}\n") + + if os.path.exists(out_path): + # --- SILENT VIDEO CHECK --- + # User Request: If H264 conversion yields no audio (e.g. from GIF), + # force inject silent audio so it behaves like a video. + has_audio = await has_audio_track(out_path) + if not has_audio: + print("🔇 H264 Output is silent. Injecting ghost audio...") + new_out = await add_silent_audio(out_path) + if new_out and os.path.exists(new_out): + try: os.remove(out_path) + except: pass + out_path = new_out + + return out_path + except Exception as e: + print(f"Error converting H264: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"H264 Error: {e}\n") + + return None + +async def embed_thumbnail(video_path, image_path): + """ + Incrusta una imagen como portada (thumbnail) en el archivo de video. + Usa stream copy para el video, evitando re-encoding. + """ + log_file = "media_debug.log" + if not os.path.exists(video_path) or not os.path.exists(image_path): + return None + + base, ext = os.path.splitext(video_path) + # Nombre temporal para la salida + out_path = f"{base}_thumb_{int(time.time())}.mp4" + + if HAS_FFMPEG: + try: + # Comando mágico: + # -map 0: toma todo del video + # -map 1: toma la imagen + # -c copy: copia sin re-encodear video/audio + # -c:v:1 png: asegura que la imagen sea compatible + # -disposition:v:1 attached_pic: le dice al metadata "esto es la portada" + cmd = [ + "ffmpeg", "-y", + "-i", video_path, + "-i", image_path, + "-map", "0", "-map", "1", + "-c", "copy", + "-c:v:1", "png", + "-disposition:v:1", "attached_pic", + out_path + ] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Thumb Embed Cmd: {cmd}\n") + + process = await asyncio.create_subprocess_exec( + *cmd, + stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if process.returncode == 0 and os.path.exists(out_path): + return out_path + else: + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"❌ Embed Failed: {stderr.decode() if stderr else 'Unknown'}\n") + + except Exception as e: + print(f"Error embed thumb: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Embed Error: {e}\n") + + return None + +async def resize_video(path, target_ratio): + """ + Redimensiona (Scale to Cover/Fill) un video a un aspect ratio específico. + Estrategia: Agrandar y Centrar (Crop). + Base Resolution: 1080p density. + """ + log_file = "media_debug.log" + if not os.path.exists(path): return None + + base, ext = os.path.splitext(path) + out_path = f"{base}_resize_{target_ratio.replace(':','-')}_{int(time.time())}.mp4" + + # 1. Definir Resoluciones Objetivo (Based on 1080p logic) + # Vertical (H=1920) + # Horizontal (W=1920) + # Square (1080x1080) + + w, h = 1920, 1080 # Default 16:9 + + if target_ratio == "9:16": w, h = 1080, 1920 + elif target_ratio == "3:4": w, h = 1080, 1440 # (1080 * 4/3 = 1440) + elif target_ratio == "9:19.5": w, h = 1080, 2340 # ~iPhone X + elif target_ratio == "1:1": w, h = 1080, 1080 + elif target_ratio == "4:3": w, h = 1440, 1080 + elif target_ratio == "16:9": w, h = 1920, 1080 + elif target_ratio == "2.35:1": w, h = 1920, 816 + elif target_ratio == "1.85:1": w, h = 1920, 1038 + + if HAS_FFMPEG: + try: + # FILTER COMPLEX EXPLAINED: + # 1. scale=w:h:force_original_aspect_ratio=increase + # Escala el video para que CUBRA la caja destino (al menos una dimension encaja, la otra sobra) + # 2. crop=w:h + # Recorta el sobrante para llegar exactamente a w:h, centrado automáticamente. + # 3. setsar=1 + # Asegura pixel cuadrado. + + vf = f"scale={w}:{h}:force_original_aspect_ratio=increase,crop={w}:{h},setsar=1" + + cmd = [ + "ffmpeg", "-y", + "-i", path, + "-vf", vf, + "-c:v", "libx264", "-preset", "fast", "-crf", "23", + "-c:a", "copy", # Try copy audio first (or aac if needed) + out_path + ] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Resize Cmd: {cmd}\n") + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if process.returncode == 0 and os.path.exists(out_path): + return out_path + + # If audio copy fails (codecs mismatch handling), retry with aac + if "Audio" in str(stderr): + with open(log_file, "a", encoding="utf-8") as f: f.write(f"⚠️ Audio Copy failed during resize. Retrying with AAC...\n") + cmd[12] = "aac" + cmd.insert(13, "-b:a") + cmd.insert(14, "128k") + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL + ) + await process.wait() + if os.path.exists(out_path): return out_path + + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"Resize Error (RC={process.returncode}): {stderr.decode() if stderr else 'Unknown'}\n") + + except Exception as e: + print(f"Error Resizing: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Resize Ex: {e}\n") + + return None + +async def create_video_collage(video_path, grid='3x3'): + log_file = "media_debug.log" + out_path = f"{os.path.splitext(video_path)[0]}_collage.jpg" + + if HAS_FFMPEG: + try: + # 1. Obtener duración para calcular intervalo + _, _, dur = await get_meta(video_path) + if dur <= 0: dur = 10 # Fallback + + # Setup Grid + if grid == '2x2': + cols, rows, total_frames = 2, 2, 4 + elif grid == '2x1': + cols, rows, total_frames = 2, 1, 2 + else: # 3x3 + cols, rows, total_frames = 3, 3, 9 + + grid_str = f"{cols}x{rows}" + + # User Request: Ignorar el primer segundo y el último. + usable_dur = dur - 2 + if usable_dur < 1: usable_dur = dur + + interval = usable_dur / total_frames + + cmd = [ + "ffmpeg", "-y", + "-ss", "00:00:01", + "-i", video_path, + "-vf", f"select=isnan(prev_selected_t)+gte(t-prev_selected_t\,{interval}),scale=480:-1,tile={grid_str}", + "-frames:v", "1", + "-q:v", "2", + out_path + ] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Collage Cmd ({grid}): {cmd}\n") + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if os.path.exists(out_path): + return out_path + else: + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"Collage Failed: {stderr.decode() if stderr else 'Unknown'}\n") + + except Exception as e: + print(f"Error Collage: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Collage Ex: {e}\n") + + return None + +async def detect_intro_cut_time(video_path): + """ + Detecta el final de una intro analizando cambios de escena en los primeros 20s. + Retorna el timestamp (float) donde cortar. + """ + if not HAS_FFMPEG: return 0 + try: + # --- PHASE 1: STANDARD CUT (Sharp Transitions) --- + # Analizar 20s, buscar cambios de escena > 0.3 (Hard Cuts) + cmd_p1 = [ + "ffmpeg", + "-ss", "0", "-t", "20", + "-i", video_path, + "-vf", "select='gt(scene,0.3)',showinfo", + "-f", "null", "-" + ] + + process = await asyncio.create_subprocess_exec( + *cmd_p1, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + output_p1 = stderr.decode('utf-8', errors='ignore') + + import re + matches = re.findall(r"pts_time:([0-9\.]+)", output_p1) + + # Priority 1: Classic Hard Cut (2s - 15s) + for m in matches: + t = float(m) + if t > 2.0 and t < 15.0: + print(f"🎬 Smart Cut (Hard): {t}s") + return t + + # --- PHASE 2: SMOOTH / FADE DETECTION (Fallback) --- + # Si no hubo cortes duros, buscar pantallazos negros (fades) o cambios sutiles + print("🕵️ Smart Cut: No hard cut found. Trying smooth detection...") + + # Usamos blackdetect para encontrar intervalos negros + # y select con umbral bajo (0.08) para disolvencias + cmd_p2 = [ + "ffmpeg", + "-ss", "0", "-t", "20", + "-i", video_path, + "-vf", "blackdetect=d=0.1:pix_th=0.1,select='gt(scene,0.08)',showinfo", + "-f", "null", "-" + ] + + process_p2 = await asyncio.create_subprocess_exec( + *cmd_p2, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr_p2 = await process_p2.communicate() + output_p2 = stderr_p2.decode('utf-8', errors='ignore') + + # 1. Check for Black Detects: "black_end:3.5" + # ffmpeg output example: [blackdetect @ ...] black_start:2.1 black_end:3.5 black_duration:1.4 + black_ends = re.findall(r"black_end:([0-9\.]+)", output_p2) + + best_black_cut = 0.0 + for b in black_ends: + t = float(b) + if t > 1.0 and t < 18.0: + # Preferimos el último corte negro antes de los 18s (fin de intro) + best_black_cut = t + + if best_black_cut > 0: + print(f"🎬 Smart Cut (Black Fade): {best_black_cut}s") + return best_black_cut + + # 2. Check for Soft Scene Changes (> 0.08) + matches_soft = re.findall(r"pts_time:([0-9\.]+)", output_p2) + for m in matches_soft: + t = float(m) + if t > 2.0 and t < 15.0: + print(f"🎬 Smart Cut (Soft): {t}s") + return t + + return 0 + + except Exception as e: + print(f"Error Smart Detect: {e}") + return 0 + +async def smart_cut_video(input_path): + # 1. Detectar tiempo + cut_time = await detect_intro_cut_time(input_path) + + if cut_time <= 0: return None # No se detectó intro clara + + # 2. Cortar usando cut_video_start (existente) + # cut_video_start ya maneja re-encode si copy falla. + # Necesitamos importar cut_video_start o asegurarnos que esté disponible en scope. + # Está definido arriba en este archivo. + + # FIX: cut_video_start retorna solo path, necesitamos path y tiempo? + # El usuario de esta funcion espera (path, time) + res = await cut_video_start(input_path, cut_time) + return res, cut_time + + return None + +# --- AUTO SUBTITLE LOGIC --- +def format_timestamp(seconds: float): + # SRT format: 00:00:00,000 + ms = int((seconds % 1) * 1000) + total_seconds = int(seconds) + hours = total_seconds // 3600 + minutes = (total_seconds % 3600) // 60 + secs = total_seconds % 60 + return f"{hours:02d}:{minutes:02d}:{secs:02d},{ms:03d}" + + + +# --- FASTER WHISPER GLOBAL MODEL --- +GLOBAL_WHISPER = None + +def get_whisper_model(): + global GLOBAL_WHISPER + if GLOBAL_WHISPER is None: + print("🚀 Loading Faster Whisper Model (Small)...") + from faster_whisper import WhisperModel + # Run on CPU with INT8 by default (Most compatible for valid server/PC) + # If GPU available, user can change device='cuda', compute_type='float16' + try: + GLOBAL_WHISPER = WhisperModel("small", device="cpu", compute_type="int8") + except Exception as e: + print(f"Error loading Whisper: {e}") + return None + return GLOBAL_WHISPER + +async def generate_subtitles_video(video_path, cid=None): + """ + Usa Faster-Whisper para transcribir optimizado. + Soporta traducción y EMOJIS (via Gemini) si se solicita. + """ + try: + # 1. Output Path + ts = int(time.time()) + srt_path = video_path.replace(".mp4", f"_{ts}.srt") + out_path = video_path.replace(".mp4", f"_sub_{ts}.mp4") + + # 2. Transcribe (Blocking, run in executor) + def run_transcribe(): + model = get_whisper_model() + if not model: return None, None + + # Segments is a generator in faster-whisper + segments_gen, info = model.transcribe(video_path, beam_size=5) + # Convert to list immediately to use in async + return list(segments_gen), info + + loop = asyncio.get_running_loop() + res = await loop.run_in_executor(None, run_transcribe) + if not res: return None + + segments, info = res + detected_lang = info.language + print(f"Whisper Detected: {detected_lang} (Prob: {info.language_probability:.2f})") + + # --- LOGICA EMOJIS / TRADUCCIÓN --- + # Si NO es español, traducimos. + # Si ES español (o ya traducido), agregamos emojis si el usuario lo pidió (Implícito en "optimized version") + + texts = [s.text.strip() for s in segments] + + # 2.5 Translation OR Punctuation Enhancement via Gemini + # We use a smart function in ai_service to handle "Text -> Text (Enhanced)" + # Import dynamic to avoid circular defaults + from ai_service import enhance_subtitle_text + + # Define mode: 'translate_punctuate' if not ES, else 'punctuate' + # User wants expressive punctuation (exclamations, questions, screams). + + task_mode = "punctuate" + if detected_lang != 'es': + task_mode = "translate_punctuate" + + # Process in chunks to be efficient + final_texts = [] + + # Helper chucks + def chunks(lst, n): + for i in range(0, len(lst), n): + yield lst[i:i + n] + + full_text_block = texts # Keep original just in case + + # Only use AI if we have CID (Config access? Or just do it by default as requested) + # Assuming we always want emojis now as per request. + + print(f"AI Processing Subtitles: Mode={task_mode}") + + current_batch = [] + + for chunk in chunks(texts, 20): # Batches of 25 lines + chunk_joined = "\n".join(chunk) + + # Call AI Service + processed = await enhance_subtitle_text(chunk_joined, mode=task_mode) + + if processed: + lines = [l.strip() for l in processed.split('\n') if l.strip()] + if len(lines) == len(chunk): + current_batch.extend(lines) + else: + # Fallback: Try to align or just use original + # If length mismatch, usually better to keep original to update sync + print(f"⚠️ AI Segment Mismatch used original for chunk.") + current_batch.extend(chunk) + else: + current_batch.extend(chunk) + + final_texts = current_batch if len(current_batch) == len(segments) else texts + + # 3. Create SRT content + with open(srt_path, "w", encoding="utf-8") as f: + for i, seg in enumerate(segments): + start = format_timestamp(seg.start) + end = format_timestamp(seg.end) + + # Get Enhanced Text + text = final_texts[i] if i < len(final_texts) else seg.text.strip() + + f.write(f"{i+1}\n{start} --> {end}\n{text}\n\n") + + # 4. Burn Subtitles with FFmpeg + # Verify path escaping for Windows FFmpeg + # Using forward slashes usually works best in filter chains even on Windows + srt_path_esc = srt_path.replace("\\", "/").replace(":", "\\:") + + # Style: Yellow with Black outline, Arial, Size 12 (Smaller) + style = "FontName=Arial,FontSize=12,PrimaryColour=&H0000FFFF,OutlineColour=&H00000000,BorderStyle=1,Outline=2,Shadow=0,MarginV=15,Alignment=2" + # Color &H0000FFFF is Yellow in ASS format (BBGGRR) -> 00(Alpha) 00(Blue) FF(Green) FF(Red) = Cyan? No. + # Yellow is R=255, G=255, B=0 -> Hex FFFF00. In ASS it is 00 + (00) + (FF) + (FF) -> &H0000FFFF (BBGGRR). Correct. + + cmd = [ + "ffmpeg", "-y", + "-i", video_path, + "-vf", f"subtitles='{srt_path_esc}':force_style='{style}'", + "-c:v", "libx264", "-preset", "veryfast", "-crf", "23", + "-c:a", "copy", + out_path + ] + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + # Cleanup SRT + try: os.remove(srt_path) + except: pass + + if os.path.exists(out_path): + return out_path + else: + print(f"FFmpeg Sub Error: {stderr.decode() if stderr else 'Unknown'}") + + except Exception as e: + print(f"Subtitler Error: {e}") + + return None + +async def generate_catalog_thumbs(video_path, interval=30): + """ + Genera miniaturas cada N segundos del video usando one-pass. + Retorna lista de paths. + """ + log_file = "media_debug.log" + paths = [] + + if HAS_FFMPEG: + try: + base = os.path.splitext(video_path)[0] + # Pattern for output: base_cat_001.jpg + out_pattern = f"{base}_cat_%03d.jpg" + + # Use fps filter: 1 frame every 'interval' seconds -> fps=1/interval + # scale=320:-1 optimize for menu view (fast load) + vf = f"fps=1/{interval},scale=320:-1" + + cmd = [ + "ffmpeg", "-i", video_path, + "-vf", vf, + "-q:v", "2", + out_pattern, "-y" + ] + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + await process.wait() + + # Find generated files + dir_name = os.path.dirname(video_path) + prefix = os.path.basename(base) + "_cat_" + + for f in os.listdir(dir_name): + if "_cat_" in f and f.endswith(".jpg") and base in os.path.join(dir_name, f): + paths.append(os.path.join(dir_name, f)) + + # Sort naturally just in case (001, 002...) + paths.sort() + + # If empty (maybe video < 30s), extract at least 00:00:01 + if not paths: + one_out = f"{base}_cat_001.jpg" + cmd_one = ["ffmpeg", "-ss", "00:00:01", "-i", video_path, "-vframes", "1", "-q:v", "2", "-vf", "scale=320:-1", one_out, "-y"] + process = await asyncio.create_subprocess_exec(*cmd_one, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + await process.wait() + if os.path.exists(one_out): paths.append(one_out) + + except Exception as e: + print(f"Catalog Error: {e}") + + return paths + +async def create_mixed_media_collage(media_paths, grid=None): + """ + Crea un collage imagen (JPG) a partir de multiples inputs (Video o Imagen). + Si es video, extrae un frame. + Si es imagen, la usa. + media_paths: Lista de rutas de archivos. + """ + log_file = "media_debug.log" + if not media_paths: return None + + # Ensure all paths exist + valid_paths = [p for p in media_paths if os.path.exists(p)] + if not valid_paths: return None + + out_path = f"downloads/mixed_collage_{int(time.time())}.jpg" + + try: + # 1. Determinar Grid si no se fuerza + count = len(valid_paths) + if not grid: + if count <= 2: grid = f"{count}x1" # 2x1 Horizontal + elif count <= 4: grid = "2x2" + elif count <= 6: grid = "3x2" + elif count <= 9: grid = "3x3" + else: grid = "4x4" + + # 2. Construir inputs y filter complex + # ffmpeg -i 1 -i 2 ... -filter_complex "[0:v]scale=480:480:force_original_aspect_ratio=increase,crop=480:480[v0];...[v0][v1]...tile=GRID" + + cmd_inputs = [] + filter_parts = [] + labels = [] + + # Tamaño de celda estandarizado + cw, ch = 480, 480 + + for i, path in enumerate(valid_paths): + cmd_inputs.extend(["-i", path]) + # Escalar y recortar para llenar el cuadrado perfecto + filter_parts.append(f"[{i}:v]scale={cw}:{ch}:force_original_aspect_ratio=increase,crop={cw}:{ch}[v{i}]") + labels.append(f"[v{i}]") + + # Unir todo en tile + # tile=3x3 + filter_join = f"{''.join(labels)}tile={grid}" + + full_filter = ";".join(filter_parts) + ";" + filter_join + + cmd = ["ffmpeg", "-y"] + cmd_inputs + ["-filter_complex", full_filter, "-q:v", "2", out_path] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Mixed Collage Cmd ({count} files): {cmd}\n") + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if process.returncode == 0 and os.path.exists(out_path): + return out_path + else: + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"Mixed Collage Failed: {stderr.decode() if stderr else 'Unknown'}\n") + + except Exception as e: + print(f"Error Mixed Collage: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Mixed Collage Ex: {e}\n") + + return None + +async def has_audio_track(path): + """Verifica si el archivo tiene un stream de audio usando ffprobe.""" + if not HAS_FFMPEG: return True # Asumir sí para evitar loop + try: + cmd = [ + "ffprobe", "-v", "error", + "-select_streams", "a", + "-show_entries", "stream=index", + "-of", "csv=p=0", path + ] + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL + ) + stdout, _ = await process.communicate() + return bool(stdout.strip()) + except: + return False + +async def add_silent_audio(path): + """ + Agrega un track de audio silencioso al video para forzar formato MP4 en Telegram. + Usa 'anullsrc' filter. + """ + if not HAS_FFMPEG: return path + + base, ext = os.path.splitext(path) + # Ensure MP4 extension for final + out_path = f"{base}_silent_{int(time.time())}.mp4" + log_file = "media_debug.log" + + try: + # -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -> Genera silencio infinito + # -shortest -> Corta el audio a la duración del video + # -c:v copy -> Copia el video (rápido, sin pérdida) + # -c:a aac -> Encodea el silencio a AAC + cmd = [ + "ffmpeg", "-y", + "-i", path, + "-f", "lavfi", "-i", "anullsrc=channel_layout=stereo:sample_rate=44100", + "-c:v", "copy", + "-c:a", "aac", + "-shortest", + out_path + ] + + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Silent Audio Cmd: {cmd}\n") + + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if process.returncode == 0 and os.path.exists(out_path): + return out_path + else: + with open(log_file, "a", encoding="utf-8") as f: + f.write(f"Add Silent Audio Failed: {stderr.decode() if stderr else 'Unknown'}\n") + + except Exception as e: + print(f"Error Silent Audio: {e}") + with open(log_file, "a", encoding="utf-8") as f: f.write(f"Silent Audio Ex: {e}\n") + + return None \ No newline at end of file diff --git a/Twisted Brody Waifus & Creampie BRODY/tts_service.py b/Twisted Brody Waifus & Creampie BRODY/tts_service.py new file mode 100644 index 0000000000000000000000000000000000000000..08a5dc949bf75f2373f3f73ae19db1e99759f66f --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/tts_service.py @@ -0,0 +1,68 @@ +import asyncio +import os +import edge_tts +import time + +# --- MAPPING PERSONALIDAD -> VOZ (Latin / Spain Neural) --- +# Available Edge Voices (approximate): +# es-MX-DaliaNeural (Female, Soft/Generic) +# es-MX-JorgeNeural (Male, Generic) +# es-ES-ElviraNeural (Female, Sharp/Mature) +# es-ES-AlvaroNeural (Male, Deep/Pro) +# es-AR-ElenaNeural (Female, Argentinian) +# es-AR-TomasNeural (Male, Argentinian) + +VOICE_MAP = { + 'formal': 'es-MX-JorgeNeural', # Hombre Mexicano (Formal) + 'pasiva': 'es-MX-DaliaNeural', # Mujer Mexicana (Suave y Humana) + 'profesional': 'es-MX-JorgeNeural', # Hombre corporativo + 'agresiva': 'es-VE-PaolaNeural', # Mujer Venezolana (Fuerte) + 'nsfw': 'es-MX-DaliaNeural', # Waifu (Dalia es la voz latina más natural y estándar) + 'timida': 'es-CO-SalomeNeural', # Tímida (Colombiana suave) + 'default': 'es-MX-DaliaNeural' # Default Latina +} + +async def generate_tts_audio(text, persona='default'): + """ + Genera un archivo de audio (MP3) a partir de texto usando edge-tts. + Retorna la ruta del archivo o None si falla. + """ + if not text: return None + + # 1. Clean Text Enhanced + import re + # Remove Markdown (asterisks, bold, etc) + clean_text = text.replace('*', '').replace('_', '').replace('`', '') + + # Remove Stuttering (e.g. "H-hola", "s-soy") -> Replace with single word + # Regex: Look for single letter followed by hyphen and the same letter again (case insensitive) + # This replaces "T-t" with "T", "s-s" with "s", effectively removing the stutter for audio. + clean_text = re.sub(r'\b([a-zA-ZáéíóúñÁÉÍÓÚÑ])-\1', r'\1', clean_text, flags=re.IGNORECASE) + + # Remove excessive dots (keep pause but not too long) "..." -> "." + clean_text = re.sub(r'\.{2,}', '.', clean_text) + + # Remove actions in parenthesis/brackets if any left (sometimes AI puts them) + clean_text = re.sub(r'\s*\(.*?\)\s*', ' ', clean_text) + clean_text = re.sub(r'\s*\[.*?\]\s*', ' ', clean_text) + + # 2. Select Voice + voice = VOICE_MAP.get(persona, VOICE_MAP['default']) + + # 3. Output Path + out_file = f"tts_{int(time.time())}.mp3" + + try: + # Create Communicate object + communicate = edge_tts.Communicate(clean_text, voice) + + # Save to file + await communicate.save(out_file) + + if os.path.exists(out_file): + return out_file + + except Exception as e: + print(f"❌ Error Generating TTS: {e}") + + return None diff --git a/Twisted Brody Waifus & Creampie BRODY/unknown_errors.txt b/Twisted Brody Waifus & Creampie BRODY/unknown_errors.txt new file mode 100644 index 0000000000000000000000000000000000000000..ddfc025f315e5f80871d918caa6cfa8b886b43a9 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/unknown_errors.txt @@ -0,0 +1,2 @@ +2026-02-02 22:09:57.690572 [400 BOT_COMMAND_INVALID] bots.SetBotCommands +2026-02-02 22:10:16.520022 [400 BOT_COMMAND_INVALID] bots.SetBotCommands diff --git a/Twisted Brody Waifus & Creampie BRODY/update_conf.py b/Twisted Brody Waifus & Creampie BRODY/update_conf.py new file mode 100644 index 0000000000000000000000000000000000000000..bc584e199cc10e953eddcd291468ea66ee78d41a --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/update_conf.py @@ -0,0 +1,33 @@ + +import os +import re + +target = "config.py" +if not os.path.exists(target): + print("config.py not found") + exit(1) + +with open(target, "r", encoding="utf-8") as f: + content = f.read() + +# Pattern: find the dropbox entry and the closing brace of the dictionary +# We look for the line with dropbox, any following whitespace/newlines, and the closing brace. +# We want to insert the new keys before the closing brace. +pattern = r'("dropbox\.com":\s*os\.path\.join\(COOKIES_DIR,\s*"dropbox_cookies\.txt"\),)(\s*})' + +# Replacement: specific formatting to match existing style +replacement = r'\1\n "facebook": os.path.join(COOKIES_DIR, "cookies_facebook.txt"),\n "fb.watch": os.path.join(COOKIES_DIR, "cookies_facebook.txt"),\n "instagram": os.path.join(COOKIES_DIR, "cookies_instagram.txt"),\n "tiktok": os.path.join(COOKIES_DIR, "cookies_tiktok.txt"),\2' + +new_content, count = re.subn(pattern, replacement, content) + +if count > 0: + with open(target, "w", encoding="utf-8") as f: + f.write(new_content) + print("Updated successfully") +else: + print("Pattern not found. Content dump near expected area:") + start_idx = content.find("dropbox") + if start_idx != -1: + print(content[start_idx:start_idx+200]) + else: + print("Dropbox entry not found.") diff --git a/Twisted Brody Waifus & Creampie BRODY/update_conf_yt.py b/Twisted Brody Waifus & Creampie BRODY/update_conf_yt.py new file mode 100644 index 0000000000000000000000000000000000000000..cb37b545d6cd9cc6a2a4bf1f9bfd65c964e9357d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/update_conf_yt.py @@ -0,0 +1,34 @@ + +import os +import re + +target = "config.py" +if not os.path.exists(target): + print("config.py not found") + exit(1) + +with open(target, "r", encoding="utf-8") as f: + content = f.read() + +# Pattern: find the tiktok entry (which we added previously) or dropbox if tiktok failed, and insert youtube after +# Ideally looking for the end of the dict which is "}" +pattern = r'( "tiktok": os\.path\.join\(COOKIES_DIR, "cookies_tiktok\.txt"\),\s*})' +replacement = r' "tiktok": os.path.join(COOKIES_DIR, "cookies_tiktok.txt"),\n "youtube": os.path.join(COOKIES_DIR, "cookies_youtube.txt"),\n "youtu.be": os.path.join(COOKIES_DIR, "cookies_youtube.txt"),\n}' + +# Try matching the new tiktok entry first +new_content, count = re.subn(pattern, replacement, content) + +if count == 0: + # If looking for tiktok failed (maybe previous step failed?), try matching the end brace broadly + # But be careful not to match other dicts. COOKIE_MAP is usually near the top. + # Let's try matching dropbox if tiktok isn't there + pattern_backup = r'( "dropbox\.com": os\.path\.join\(COOKIES_DIR, "dropbox_cookies\.txt"\),\s*})' + replacement_backup = r' "dropbox.com": os.path.join(COOKIES_DIR, "dropbox_cookies.txt"),\n "youtube": os.path.join(COOKIES_DIR, "cookies_youtube.txt"),\n "youtu.be": os.path.join(COOKIES_DIR, "cookies_youtube.txt"),\n}' + new_content, count = re.subn(pattern_backup, replacement_backup, content) + +if count > 0: + with open(target, "w", encoding="utf-8") as f: + f.write(new_content) + print("Updated successfully") +else: + print("Pattern not found due to previous state mismatch.") diff --git a/Twisted Brody Waifus & Creampie BRODY/update_cookies.py b/Twisted Brody Waifus & Creampie BRODY/update_cookies.py new file mode 100644 index 0000000000000000000000000000000000000000..d68170fd0b56eb2821923099d2327db05e89d55d --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/update_cookies.py @@ -0,0 +1,35 @@ + +import os + +target = os.path.join("cookies", "cookies_pornhub.txt") +content = """# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +.pornhub.com TRUE / TRUE 1796666933 ss 622127382887760542 +.pornhub.com TRUE / TRUE 1796666933 sessid 813993118168190581 +.pornhub.com TRUE / TRUE 1767722933 comp_detect-cookies 64018.100000 +.pornhub.com TRUE / TRUE 1767722933 fg_afaf12e314c5419a855ddc0bf120670f 83835.100000 +.pornhub.com TRUE / TRUE 1767722933 fg_439f2555043a44b8bd91161b5deddd29 89015.100000 +.pornhub.com TRUE / TRUE 1796687859 __l 6935C2B4-42FE722901BB2FEA3F-3DE8E374 +.pornhub.com TRUE / FALSE 1800802471 _ga GA1.1.782546871.1765130937 +.pornhub.com TRUE / TRUE 1796666949 lvv 250286288644564106 +.pornhub.com TRUE / TRUE 1796666949 vlc 479930477885370351 +.pornhub.com TRUE / TRUE 1796917498 cookieConsent 3 +.pornhub.com TRUE / FALSE 1780933497 g_state {"i_l":0,"i_ll":1765381478170} +.pornhub.com TRUE / TRUE 1781192698 il v1ZoCJCTxtZJoUuds-tYF1eIoveDUJD-q2he-Q9CwFncMxNzgxMTkyNjk4SkZ3NGhMdzZOMk40RXFUR2RvV0M1WHNmUTI2dS0zanFyZDR2TFNDaQ.. +.pornhub.com TRUE / TRUE 1796917498 bs 82ec02b270e1a83342e7c7fcd2f53cc7 +.pornhub.com TRUE / TRUE 1796917498 bsdd 82ec02b270e1a83342e7c7fcd2f53cc7 +.pornhub.com TRUE / TRUE 1767977580 fg_7d31324eedb583147b6dcbea0051c868 66137.100000 +es.pornhub.com FALSE / FALSE 1766242809 etavt %7B%22664773de8baed%22%3A%224_3_2_pornhub.SearchVideoService.194.195%7C8%22%2C%22684455c4cb7ee%22%3A%224_3_2_pornhub.SearchVideoService.194.195%7C7%22%2C%2269103d863cd97%22%3A%224_3_2_pornhub.SearchVideoService.194.195%7C6%22%2C%2268c9b7019ccda%22%3A%225_2_2_pornhub.video_recommendation.141%7C5%22%2C%2268c42d3234640%22%3A%225_2_2_pornhub.video_recommendation.141%7C4%22%2C%22688ad2e03e82e%22%3A%221_24_2_NA%7C3%22%2C%2267bdef8c27df6%22%3A%221_24_2_NA%7C2%22%2C%226857529489ecf%22%3A%221_24_2_NA%7C1%22%2C%2264b842704b9af%22%3A%224_3_2_pornhub.SearchVideoService.208.209%7C0%22%7D +.pornhub.com TRUE / TRUE 1766328870 ua 89db729cfcdc129111f017b0e7ac324a +.pornhub.com TRUE / TRUE 1766847270 platform pc +.pornhub.com TRUE / TRUE 1768834470 fg_55e3b6f0afd46366d6fa797544b15af2 53123.100000 +.pornhub.com TRUE / TRUE 0 __s 6946B8A5-42FE722901BB232936-960B39B +.pornhub.com TRUE / FALSE 1800802471 _ga_B39RFFWGYY GS2.1.s1766242471$o9$g0$t1766242471$j60$l0$h0 +.pornhub.com TRUE / FALSE 1766246071 accessAgeDisclaimerPH 2 +""" + +with open(target, "w", encoding="utf-8") as f: + f.write(content) +print("Updated cookies_pornhub.txt") diff --git a/Twisted Brody Waifus & Creampie BRODY/update_cookies_yt.py b/Twisted Brody Waifus & Creampie BRODY/update_cookies_yt.py new file mode 100644 index 0000000000000000000000000000000000000000..57e8821faac29ce6fb95d13e942712383401a383 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/update_cookies_yt.py @@ -0,0 +1,35 @@ + +import os + +target = os.path.join("cookies", "cookies_youtube.txt") +content = """# Netscape HTTP Cookie File +# https://curl.haxx.se/rfc/cookie_spec.html +# This is a generated file! Do not edit. + +.youtube.com TRUE / FALSE 1798469870 HSID AEzHLmw46kCm76IqP +.youtube.com TRUE / TRUE 1798469870 SSID APy70WTSqNA7LL5cS +.youtube.com TRUE / FALSE 1798469870 APISID OtFADg6TMleW6Owc/AgdKGz7dOEQTCucLt +.youtube.com TRUE / TRUE 1798469870 SAPISID j68u4W8ph5C9vbyy/Axlg2_PKFfxcj7XiS +.youtube.com TRUE / TRUE 1798469870 __Secure-1PAPISID j68u4W8ph5C9vbyy/Axlg2_PKFfxcj7XiS +.youtube.com TRUE / TRUE 1798469870 __Secure-3PAPISID j68u4W8ph5C9vbyy/Axlg2_PKFfxcj7XiS +.youtube.com TRUE / FALSE 1798469870 SID g.a0003wj_l85pnrnRVYhW-VjJSvhVb_2Od6KX_V5wW9T7YJEgkAhjqhFVMvhaKzGdar6Ey_34BgACgYKAcUSARMSFQHGX2MioO7ynZbMAFMRFW5zccfRexoVAUF8yKqFYl1gGBBcKM7HzgsOafZJ0076 +.youtube.com TRUE / TRUE 1798469870 __Secure-1PSID g.a0003wj_l85pnrnRVYhW-VjJSvhVb_2Od6KX_V5wW9T7YJEgkAhjgKXvODcnSgikS9wh7k73bwACgYKAWoSARMSFQHGX2MiHR7DX_4gT0PzfsxxStbsMhoVAUF8yKpGsZXdPCHESZYe6I5_YnIh0076 +.youtube.com TRUE / TRUE 1798469870 __Secure-3PSID g.a0003wj_l85pnrnRVYhW-VjJSvhVb_2Od6KX_V5wW9T7YJEgkAhjl1KdgqtTClE_xVwXkH3O1wACgYKAaASARMSFQHGX2MiU9iaxpVG38SReDLrnMfi9RoVAUF8yKqX64j4wsCW8aA0X7wO9YIp0076 +.youtube.com TRUE / TRUE 1798571109 LOGIN_INFO AFmmF2swRgIhAKiN1lI9ovRIr_d74wyoM0MPRzZ0ugU6cyshYpNKMeycAiEAobsCcCuw6WMb_hgjw3sXlLh-JiV5gSy_FAejmYCrYAE:QUQ3MjNmdzkybG5RWThmQzBJeTNZSm1TeXJ0LXFvNVQxUGh5X2hpWnBEOUVDN3dCWnFkUVRSRmJsQzVhSWh0LWU3QzIyUHpXaThVV0RLOTNGWG5RM2FiV3pCQmxfYUZtZ1YzaFpzMmwxUFpvUm9ROGVucWpfX3JKak83T2JHZzN6QzdoYUFLVXNLZDVhdGFsdVJKNzN2S1NkU1RyenFVd2hn +.youtube.com TRUE / TRUE 1800802502 PREF f4=4000000&f6=40000000&tz=America.Lima&f7=100 +.youtube.com TRUE / FALSE 1766242506 ST-3opvp5 session_logininfo=AFmmF2swRgIhAKiN1lI9ovRIr_d74wyoM0MPRzZ0ugU6cyshYpNKMeycAiEAobsCcCuw6WMb_hgjw3sXlLh-JiV5gSy_FAejmYCrYAE%3AQUQ3MjNmdzkybG5RWThmQzBJeTNZSm1TeXJ0LXFvNVQxUGh5X2hpWnBEOUVDN3dCWnFkUVRSRmJsQzVhSWh0LWU3QzIyUHpXaThVV0RLOTNGWG5RM2FiV3pCQmxfYUZtZ1YzaFpzMmwxUFpvUm9ROGVucWpfX3JKak83T2JHZzN6QzdoYUFLVXNLZDVhdGFsdVJKNzN2S1NkU1RyenFVd2hn +.youtube.com TRUE / FALSE 1766242506 ST-wrgg2f itct=CJEEENwwIhMIv_KxhLbMkQMVyLuVAh3WHh_tMgpnLWhpZ2gtcmVjWg9GRXdoYXRfdG9fd2F0Y2iaAQYQjh4YngHKAQQqCV82&csn=e0DvBt1HzkEFlwJy&session_logininfo=AFmmF2swRgIhAKiN1lI9ovRIr_d74wyoM0MPRzZ0ugU6cyshYpNKMeycAiEAobsCcCuw6WMb_hgjw3sXlLh-JiV5gSy_FAejmYCrYAE%3AQUQ3MjNmdzkybG5RWThmQzBJeTNZSm1TeXJ0LXFvNVQxUGh5X2hpWnBEOUVDN3dCWnFkUVRSRmJsQzVhSWh0LWU3QzIyUHpXaThVV0RLOTNGWG5RM2FiV3pCQmxfYUZtZ1YzaFpzMmwxUFpvUm9ROGVucWpfX3JKak83T2JHZzN6QzdoYUFLVXNLZDVhdGFsdVJKNzN2S1NkU1RyenFVd2hn&endpoint=%7B%22clickTrackingParams%22%3A%22CJEEENwwIhMIv_KxhLbMkQMVyLuVAh3WHh_tMgpnLWhpZ2gtcmVjWg9GRXdoYXRfdG9fd2F0Y2iaAQYQjh4YngHKAQQqCV82%22%2C%22commandMetadata%22%3A%7B%22webCommandMetadata%22%3A%7B%22url%22%3A%22%2Fwatch%3Fv%3DuZ2ZzU_o8Zw%22%2C%22webPageType%22%3A%22WEB_PAGE_TYPE_WATCH%22%2C%22rootVe%22%3A3832%7D%7D%2C%22watchEndpoint%22%3A%7B%22videoId%22%3A%22uZ2ZzU_o8Zw%22%2C%22watchEndpointSupportedOnesieConfig%22%3A%7B%22html5PlaybackOnesieConfig%22%3A%7B%22commonConfig%22%3A%7B%22url%22%3A%22https%3A%2F%2Frr7---sn-uqx2-aph6.googlevideo.com%2Finitplayback%3Fsource%3Dyoutube%26oeis%3D1%26c%3DWEB%26oad%3D3200%26ovd%3D3200%26oaad%3D11000%26oavd%3D11000%26ocs%3D700%26oewis%3D1%26oputc%3D1%26ofpcc%3D1%26siu%3D1%26msp%3D1%26odepv%3D1%26oreouc%3D1%26id%3Db99d99cd4fe8f19c%26ip%3D2001%253A1388%253A74a3%253A773a%253A9d42%253A3e32%253A195e%253A9478%26initcwndbps%3D2386250%26mt%3D1766241900%26oweuc%3D%26pxtags%3DCg4KAnR4Egg1MTUzOTgzMA%26rxtags%3DCg4KAnR4Egg1MTUzOTgzMA%252CCg4KAnR4Egg1MTUzOTgzMQ%22%7D%7D%7D%7D%7D +.youtube.com TRUE / TRUE 1797778502 __Secure-1PSIDTS sidts-CjQBflaCdfwMYHgDZoJUPGoYx-HB8X76j-36oLngt9ZsLUXWt1xenxEGDCBwDMB76h43ME41EAA +.youtube.com TRUE / TRUE 1797778502 __Secure-3PSIDTS sidts-CjQBflaCdfwMYHgDZoJUPGoYx-HB8X76j-36oLngt9ZsLUXWt1xenxEGDCBwDMB76h43ME41EAA +.youtube.com TRUE / FALSE 1797778502 SIDCC AKEyXzXI_7JdX3E2f9kkGZ6QEaS2ygCa5nB8duxfHG477tLXX7nlnE1U2CWyks_Psx7fw5iEUQ +.youtube.com TRUE / TRUE 1797778502 __Secure-1PSIDCC AKEyXzVQG4HTRy-NhgAkTcZswRnBqHlDnqViTgjJKThVxyOOEiELx13sO9YwpmPFfiq-TitKvmc +.youtube.com TRUE / TRUE 1797778502 __Secure-3PSIDCC AKEyXzUoC0fHmZCaum2KivhR_sECB6dXi9nTv61IZK6nitI5bUoB1hrrGrR7wYA3y_NxrQB1RA +.youtube.com TRUE / TRUE 1781794496 VISITOR_INFO1_LIVE xAITy-dFSN0 +.youtube.com TRUE / TRUE 1781794496 VISITOR_PRIVACY_METADATA CgJQRRIEGgAgSQ%3D%3D +.youtube.com TRUE / TRUE 0 YSC rb3eiVqSA64 +.youtube.com TRUE / TRUE 1781794496 __Secure-ROLLOUT_TOKEN CPeSlJbMrLHi6wEQkPbs7NKkkQMYzLathLbMkQM%3D +""" + +with open(target, "w", encoding="utf-8") as f: + f.write(content) +print(f"Updated {target}") diff --git a/Twisted Brody Waifus & Creampie BRODY/utils.py b/Twisted Brody Waifus & Creampie BRODY/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9f303679c56b8880696b4254db0aa5bb14bbc470 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/utils.py @@ -0,0 +1,2644 @@ +import re + +import os + +import asyncio + +import requests + +import zipfile + +from deep_translator import GoogleTranslator + +from config import COOKIE_MAP, TOOLS_DIR + + + +# --- HELPER: ZIP SPLITTER --- + +def create_split_zips(files, base_name, max_size=1.9 * 1024 * 1024 * 1024): + + """Agrupa archivos en ZIPs que no superen max_size.""" + + archives = [] + + + + current_batch = [] + + current_size = 0 + + part_num = 1 + + + + for f_path in files: + + f_size = os.path.getsize(f_path) + + # Si un solo archivo es mayor al límite, va solo en su propio ZIP (Telegram limitará igual, pero bueno) + + if current_size + f_size > max_size and current_batch: + + # Cerrar batch actual + + zip_name = f"{base_name}_part{part_num}.zip" + + with zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED) as zf: + + for tf in current_batch: + + zf.write(tf, os.path.basename(tf)) + + archives.append(zip_name) + + + + # Reset + + current_batch = [] + + current_size = 0 + + part_num += 1 + + + + current_batch.append(f_path) + + current_size += f_size + + + + # Último batch + + if current_batch: + + zip_name = f"{base_name}_part{part_num}.zip" if part_num > 1 else f"{base_name}.zip" + + with zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED) as zf: + + for tf in current_batch: + + zf.write(tf, os.path.basename(tf)) + + archives.append(zip_name) + + + + return archives + + + +def format_bytes(size): + + if not size or size <= 0: return "N/A" + + power = 2**10 + + n = 0 + + power_labels = {0 : 'B', 1: 'KB', 2: 'MB', 3: 'GB'} + + while size > power and n < 3: + + size /= power + + n += 1 + + return f"{size:.1f} {power_labels[n]}" + + + +def render_bar(current, total, length=10): + + """Genera una barra de progreso visual [██░░].""" + + if total == 0: return "░" * length + + pct = current / total + + filled = int(length * pct) + + return "█" * filled + "░" * (length - filled) + + + +def limpiar_url(url): + + url = url.strip() + + if "youtube.com" in url or "youtu.be" in url: + + match = re.search(r'(?:v=|\/|shorts\/)([0-9A-Za-z_-]{11})', url) + + if match: return f"https://www.youtube.com/watch?v={match.group(1)}" + + if "eporner" in url: + + url = re.sub(r'https?://(es|de|fr|it)\.eporner\.com', 'https://www.eporner.com', url) + + if "?" in url and not any(d in url for d in ['facebook', 'instagram', 'pornhub', 'dropbox']): + + url = url.split("?")[0] + + return url + + + +async def resolver_url_facebook(url): + + """ + + Normaliza enlaces de Facebook. + + Intenta extraer el ID numérico o alfanumérico y devuelve un formato estándar. + + """ + + # 1. Expandir redirecciones (fb.watch, etc) + + if "fb.watch" in url or "goo.gl" in url or "bit.ly" in url: + + try: + + headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'} + + loop = asyncio.get_running_loop() + + url = await loop.run_in_executor(None, lambda: requests.head(url, allow_redirects=True, headers=headers).url) + + except: pass + + + + # 2. Extraer ID y formatear según tipo + + # Reels + + match = re.search(r'/reel/([0-9A-Za-z_-]+)', url) + + if match: return f"https://www.facebook.com/reel/{match.group(1)}" + + + + # Videos con ID numérico (watch?v= o /videos/) + + match = re.search(r'/(?:videos|watch\?v)=([0-9]+)', url) + + if match: return f"https://www.facebook.com/video.php?v={match.group(1)}" + + + + # Share links (/share/r/..., /share/v/...) -> Dejar tal cual para que yt-dlp resuelva + + if "/share/" in url: + + return url + + + + return url + + + +def sel_cookie(url): + + for k, v in COOKIE_MAP.items(): + + if k in url and os.path.exists(v): return v + + return None + + + +def load_cookies_dict(filename): + + """Carga cookies de Netscape y las devuelve como diccionario para aiohttp.""" + + cookies = {} + + if filename and os.path.exists(filename): + + try: + + with open(filename, 'r') as f: + + for line in f: + + if line.startswith('#') or not line.strip(): continue + + parts = line.split('\t') + + if len(parts) >= 7: + + cookies[parts[5]] = parts[6].strip() + + except: pass + + return cookies + + + +async def traducir_texto(texto): + + if not texto: return "" + + try: + # Modo 'Calmado': Espera aleatoria de 1.5 a 3 segundos + await asyncio.sleep(1.5 + (0.1 * (id(texto) % 10))) + + loop = asyncio.get_running_loop() + return await loop.run_in_executor(None, lambda: GoogleTranslator(source='auto', target='es').translate(texto)) + + except Exception as e: + + print(f"Translation error: {e}") + + return texto + + + +# Ruta a gallery-dl + +# Prioridad: 1. Pip Install (Latest) | 2. Tools Local (Portable) | 3. System Path + +PIP_GALLERY_PATH = r"C:\Users\Gonzalo\AppData\Roaming\Python\Python311\Scripts\gallery-dl.exe" + +TOOLS_GALLERY_PATH = os.path.join(TOOLS_DIR, "gallery-dl.exe") + + + +if os.path.exists(PIP_GALLERY_PATH): + + GALLERY_DL_EXEC = PIP_GALLERY_PATH + +elif os.path.exists(TOOLS_GALLERY_PATH): + + GALLERY_DL_EXEC = TOOLS_GALLERY_PATH + +else: + + GALLERY_DL_EXEC = "gallery-dl" + + + +def descargar_galeria(url, cookie_file=None): + + """ + + Descarga imágenes de X/Twitter/Facebook usando gallery-dl. + + Retorna una lista de rutas de archivos descargados y el directorio temporal. + + """ + + import subprocess + + import glob + + import shutil + + + + # Directorio temporal único + # Usamos time.time_ns() + Random para evitar colisiones si se lanzan multiples hilos + import time + import random + tmp_dir = f"tmp_gallery_{time.time_ns()}_{random.randint(1000, 9999)}" + + if not os.path.exists(tmp_dir): + + os.makedirs(tmp_dir) + + + + # Construir comando + + # gallery-dl guarda por defecto en ./gallery-dl/twitter/... + + # Usamos -d para forzar una carpeta base + + cmd = [ + + GALLERY_DL_EXEC, + + "--config", "gallery-dl.conf", + + "--destination", tmp_dir, + "--write-metadata", + + "--no-mtime", + + "-q", + + ] + + + + if cookie_file: + + cmd.extend(["--cookies", cookie_file]) + + + + cmd.append(url) + + + + print(f"📸 Ejecutando Gallery-DL ({cookie_file}): {' '.join(cmd)}") + + + + try: + + # Check=True lanza excepción si falla (exit code != 0) + + subprocess.run(cmd, check=True, timeout=45) + + + + # Buscar archivos descargados (solo imágenes) + + files = [] + + exts = ['jpg', 'jpeg', 'png', 'webp'] # Solo imágenes, videos van por yt-dlp + + for ext in exts: + + files.extend(glob.glob(f"{tmp_dir}/**/*.{ext}", recursive=True)) + + # Metadata Extraction + metadata_text = "" + try: + import json + import glob # ensure glob is available + json_files = glob.glob(f"{tmp_dir}/**/*.json", recursive=True) + for jf in json_files: + try: + with open(jf, 'r', encoding='utf-8') as f: + data = json.load(f) + # Try to find content/text + text_found = data.get('content') or data.get('description') or data.get('title') or data.get('full_text') or "" + if text_found: + metadata_text = str(text_found).strip() + break + except: continue + except: pass + + + + print(f"✅ Gallery-DL finalizado. Encontradas {len(files)} imágenes.") + + return files, tmp_dir, metadata_text + + + + except Exception as e: + + print(f"❌ Error Gallery-DL: {e}") + + # Limpiar si hubo error grave + + try: shutil.rmtree(tmp_dir) + + except: pass + + return [], None, None + + + +async def scan_channel_history(client, chat_id, limit=None): + + """ + + Escanea el historial del canal para indexar hashtags. + + Retorna el número de mensajes indexados. + + """ + + from database import hashtag_db, save_tags + + import time + + + + print(f"🔄 Iniciando escaneo de chat: {chat_id}") + + count = 0 + + msgs_indexed = 0 + + msgs_with_text = 0 + + + + try: + + async for msg in client.get_chat_history(chat_id, limit=limit): + + count += 1 + + if count % 100 == 0: print(f"⏳ Escaneados {count} mensajes...") + + + + text = msg.text or msg.caption + + if not text: + + continue + + + + msgs_with_text += 1 + + if msgs_with_text <= 3: # Debug: mostrar primeros 3 textos + + print(f"📝 Debug texto encontrado: {text[:100]}") + + + + # Buscar Hashtags + + tags = re.findall(r"#(\w+)", text) + + if tags: + + if msgs_indexed == 0: # Debug: mostrar el primer tag encontrado + + print(f"✅ Primer hashtag detectado: {tags}") + + + + for tag in tags: + + tag_clean = tag.lower() + + if tag_clean not in hashtag_db: hashtag_db[tag_clean] = [] + + + + # Evitar duplicados exactos (mismo mensaje) + + exists = any(item['id'] == msg.id and item['chat'] == msg.chat.id for item in hashtag_db[tag_clean]) + + if not exists: + + # Guardamos ID mensaje y Chat ID + + hashtag_db[tag_clean].append({ + + 'id': msg.id, + + 'chat': msg.chat.id + + }) + + msgs_indexed += 1 + + + + save_tags() + + print(f"✅ Escaneo completado. Total mensajes: {count}, Con texto: {msgs_with_text}, Con tags: {msgs_indexed}") + + return msgs_indexed + + + + except Exception as e: + + print(f"❌ Error escaneando: {e}") + + import traceback + + traceback.print_exc() + + return 0 + + + +def split_video_generic(input_path, mode, value): + + """ + + Divide video por: 'parts', 'min', 'sec'. + + mode: 'parts' (value=num), 'min' (value=minutos), 'sec' (value=segundos) + + """ + + import subprocess + + import glob + + import os + + + + if not os.path.exists(input_path): return [] + + + + try: + + # 1. Obtener duración + + cmd_dur = [ + + "ffprobe", "-v", "error", "-show_entries", "format=duration", + + "-of", "default=noprint_wrappers=1:nokey=1", input_path + + ] + + duration = float(subprocess.check_output(cmd_dur).decode().strip()) + + except Exception as e: + + print(f"Error duration: {e}") + + return [] + + + + if duration < 1: return [] + + + + # 2. Calcular segment_time + + segment_time = 0 + + if mode == 'parts': + + segment_time = duration / int(value) + + elif mode == 'min': + + segment_time = float(value) * 60 + + elif mode == 'sec': + + segment_time = float(value) + + + + if segment_time <= 0: return [] + + + + # 3. Directorio salida + + base_dir = os.path.dirname(input_path) + + base_name, ext = os.path.splitext(os.path.basename(input_path)) + + output_pattern = os.path.join(base_dir, f"{base_name}_part%03d{ext}") + + # 4. Dividir (ADAPTIVE: Precision vs Speed) + # If segment is small (< 20s), use re-encode for precision (Keyframe independent). + # If segment is large (>= 20s), use copy for speed. + + cmd_split = ["ffmpeg", "-y", "-i", input_path] + + if segment_time < 20: + # Precision Mode (Ultrafast Re-encode) + print(f"🎬 [DEBUG] Precision Mode (<20s): Re-encoding for perfect cuts.") + cmd_split.extend([ + "-c:v", "libx264", "-preset", "ultrafast", "-crf", "23", + "-c:a", "copy" + ]) + else: + # Speed Mode (Stream Copy) + print(f"⚡ [DEBUG] Speed Mode (>=20s): Stream Copy.") + cmd_split.extend([ + "-c", "copy" + ]) + + cmd_split.extend([ + "-map", "0", + "-f", "segment", "-segment_time", str(segment_time), + "-reset_timestamps", "1", output_pattern + ]) + + + + print(f"✂️ [DEBUG] Starting Split: {mode}={value} (seg_time={segment_time:.2f})") + + print(f"✂️ [DEBUG] Command: {' '.join(cmd_split)}") + + + + try: + + # Habilitar salida a consola para ver errores + + subprocess.run(cmd_split, check=True) + + print(f"✅ [DEBUG] Split finished successfully.") + + except Exception as e: + + print(f"❌ [DEBUG] Error during FFmpeg split: {e}") + + return [] + + + + # 5. Listar resultados + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}_part*{ext}"))) + + print(f"📦 [DEBUG] Created {len(parts)} parts.") + + return parts + + + +def get_video_metadata(path): + + """Retorna (width, height) del video.""" + + import subprocess + + import json + + try: + + cmd = [ + + "ffprobe", "-v", "error", "-select_streams", "v:0", + + "-show_entries", "stream=width,height", "-of", "json", path + + ] + + # Si no hay json en imports globales... importarlo dentro. + + out = subprocess.check_output(cmd).decode() + + data = json.loads(out) + + w = data['streams'][0]['width'] + + h = data['streams'][0]['height'] + + return w, h + + except Exception as e: + + print(f"Meta Error: {e}") + + return 0, 0 + + + +def compress_video_ffmpeg(input_path, crf=28, preset="fast"): + + """ + + Comprime video usando FFmpeg + libx264. + + crf: 0-51 (23=default, 28=whatsapp, 35=potato). + + Retorna ruta del archivo comprimido o None si falla. + + """ + + import subprocess + + import os + + + + if not os.path.exists(input_path): return None + + + + base_dir = os.path.dirname(input_path) + + base_name = os.path.splitext(os.path.basename(input_path))[0] + + output_path = os.path.join(base_dir, f"compressed_{base_name}.mp4") + + + + try: + + # Comando FFmpeg simple + + # -v error: menos spam + + # -c:v libx264: codec video + + # -crf: factor calidad + + # -preset: velocidad + + # -c:a copy: copiar audio sin tocar (más rápido) + + cmd = [ + + "ffmpeg", "-y", "-i", input_path, + + "-c:v", "libx264", "-crf", str(crf), "-preset", preset, + + "-c:a", "copy", + + output_path + + ] + + + + print(f"🗜 Iniciando compresión (CRF={crf}): {input_path}") + + subprocess.run(cmd, check=True) # Check lanza error si falla + + + + if os.path.exists(output_path): + + return output_path + + return None + + + + except Exception as e: + + print(f"❌ Error compresión: {e}") + + return None + + + +def cut_video_range(input_path, start, end): + + """ + + Corta un rango específico. + + start/end: strings formato HH:MM:SS o MM:SS o segundos. + + """ + + import subprocess + + import os + + + + if not os.path.exists(input_path): return None + + + + base_dir = os.path.dirname(input_path) + + base_name, ext = os.path.splitext(os.path.basename(input_path)) + + if not ext: ext = ".mp4" + + + + # Limpiar caracteres raros en tiempos para nombre archivo + + s_safe = str(start).replace(":", "-") + + e_safe = str(end).replace(":", "-") + + output_path = os.path.join(base_dir, f"cut_{base_name}_{s_safe}_to_{e_safe}{ext}") + + + + try: + + # Usamos -ss antes de -i para fast seek + + # -to especifica el punto final (no duración) + + # -c copy para velocidad máxima + + cmd = [ + + "ffmpeg", "-y", + + "-ss", str(start), + + "-to", str(end), + + "-i", input_path, + + "-c", "copy", + + "-avoid_negative_ts", "make_zero", + + output_path + + ] + + + + print(f"✂️ Cutting range {start} -> {end}") + + subprocess.run(cmd, check=True) + + + + if os.path.exists(output_path): + + return output_path + + return None + + except Exception as e: + + print(f"❌ Cut Error: {e}") + + return None + + + +def create_split_archive(input_path, part_size_mb=1500): + + """ + + Crea un archivo comprimido dividido en volúmenes. + + Prioridad: + + 1. WinRAR (Rar.exe) -> Crea .part1.rar (Ideal para el usuario) + + 2. 7-Zip (7zr.exe) -> Crea .7z.001 (Open source) + + """ + + import subprocess + + import glob + + import shutil + + + + if not os.path.exists(input_path): return [] + + + + # Definir rutas de herramientas + + tools_dir = os.path.join(os.getcwd(), 'tools') + + rar_exe = os.path.join(tools_dir, 'Rar.exe') + + seven_z_exe = os.path.join(tools_dir, '7zr.exe') + + + + # Fallback a system path + + if not os.path.exists(rar_exe) and shutil.which("rar"): rar_exe = "rar" + + if not os.path.exists(seven_z_exe) and shutil.which("7za"): seven_z_exe = "7za" + + + + base_dir = os.path.dirname(input_path) + + base_name = os.path.splitext(os.path.basename(input_path))[0] + + + + # MODO 1: WINRAR (Prioridad usuario) + + if os.path.exists(rar_exe) or rar_exe == "rar": + + archive_name = os.path.join(base_dir, f"{base_name}.rar") + + # rar a -v1500m -m0 -ep1 archivo.rar input + + # -v: volumen size + + # -m0: store (sin comprimir, rápido para videos que ya están comprimidos) + + # -ep1: excluir ruta base, solo guardar nombre archivo + + cmd = [ + + rar_exe, "a", + + f"-v{part_size_mb}m", + + "-m0", + + "-ep1", + + "-y", # Yes to all + + archive_name, + + input_path + + ] + + print(f"📦 [RAR] Iniciando compresión en volúmenes de {part_size_mb}MB...") + + try: + + subprocess.run(cmd, check=True) + + # Buscar partes creadas + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.part*.rar"))) + + if not parts: # A veces crea solo .rar si cabe en uno + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.rar"))) + + return parts + + except Exception as e: + + print(f"❌ RAR Error: {e}") + + # Fallback a 7z si falla RAR + + + + # MODO 2: 7-ZIP + + if os.path.exists(seven_z_exe) or seven_z_exe == "7za": + + archive_name = os.path.join(base_dir, f"{base_name}.7z") + + # 7zr a -v1500m -mx0 archivo.7z input + + cmd = [ + + seven_z_exe, "a", + + f"-v{part_size_mb}m", + + "-mx0", + + "-y", + + archive_name, + + input_path + + ] + + print(f"📦 [7Z] Iniciando compresión en volúmenes de {part_size_mb}MB...") + + try: + + subprocess.run(cmd, check=True) + + # Buscar partes (.7z.001, .7z.002 ...) + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.7z.*"))) + + if not parts: + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.7z"))) + + return parts + + except Exception as e: + + print(f"❌ 7Z Error: {e}") + + + + print("❌ No se encontró compresor (Rar.exe o 7zr.exe).") + + return [] + + + +# --- PARALLEL DOWNLOADER (TURBO) --- + +async def download_parallel(client, message, file_path, concurrency=8, progress=None, progress_args=None): + + """ + + Descarga un archivo de Telegram en paralelo (Turbo). + + Alineado a 1MB para evitar OFFSET_INVALID. + + """ + + file_size = 0 + + try: + + media = message.video or message.document or message.audio + + if not media: return None + + + + file_size = media.file_size + + if file_size == 0: return None + + + + # Si es pequeño (<10MB), descarga normal + + if file_size < 10 * 1024 * 1024: + + return await client.download_media(message, file_name=file_path, progress=progress, progress_args=progress_args) + + + + print(f"🚀 [TURBO] Iniciando descarga paralela: {file_path} ({format_bytes(file_size)})") + + + + # Pre-alocar archivo + + with open(file_path, "wb") as f: + + f.truncate(file_size) + + + + # Usar alineación de 1MB (1,048,576 bytes) para seguridad total + + # Telegram API prefiere potencias de 2 grandes para paralelos. + + CHUNK_ALIGN = 1024 * 1024 + + + + # Calcular tamaño de parte basado en la alineación + + # Si el archivo es menor a lo que daría la concurrencia x ALIGN, reducimos tareas + + target_part_size = (file_size // concurrency) + + target_part_size = max(CHUNK_ALIGN, (target_part_size // CHUNK_ALIGN) * CHUNK_ALIGN) + + + + tasks = [] + + file_lock = asyncio.Lock() + + + + # Shared progress counter + + downloaded_bytes = 0 + + progress_lock = asyncio.Lock() + + + + async def download_chunk(worker_id, start_byte, length): + + nonlocal downloaded_bytes + + try: + + # Debug print for developers to see in logs + + # print(f"DEBUG: Worker {worker_id} offset={start_byte} len={length}") + + + + async for chunk in client.stream_media(message, offset=start_byte, limit=length): + + if not chunk: break + + + + chunk_len = len(chunk) + + + + async with file_lock: + + with open(file_path, "r+b") as f: + + f.seek(start_byte) + + f.write(chunk) + + start_byte += chunk_len + + + + # Update Progress + + async with progress_lock: + + downloaded_bytes += chunk_len + + if progress: + + try: + + await progress(downloaded_bytes, file_size, *progress_args) + + except: pass + + + + except Exception as e: + + print(f"⚠️ Worker {worker_id} Error: {e}") + + raise e + + + + # Repartir el trabajo + + current_offset = 0 + + w_id = 0 + + while current_offset < file_size: + + # El último worker se lleva el resto (que puede no estar alineado al final, pero GetFile lo permite) + + # Solo los OFFSETS de inicio deben estar alineados. + + remaining = file_size - current_offset + + length = min(target_part_size, remaining) + + + + # Si es el último tramo y es muy pequeño, unirlo al anterior si es posible? + + # No, simplemente añadirlo. + + tasks.append(download_chunk(w_id, current_offset, length)) + + current_offset += length + + w_id += 1 + + + + # Ejecutar con protección + + await asyncio.gather(*tasks) + + + + # Verificación básica: Usamos downloaded_bytes porque el truncate engaña al os.path.getsize + + if os.path.exists(file_path) and downloaded_bytes == file_size: + + print(f"✅ [TURBO] Descarga exitosa: {file_path}") + + return file_path + + else: + + raise Exception(f"Tamaño incompleto: {downloaded_bytes}/{file_size}") + + + + except Exception as e: + + print(f"❌ Error en Turbo: {e}") + + print("🔄 Aplicando Fallback a descarga normal...") + + try: + + if os.path.exists(file_path): os.remove(file_path) + + # El fallback debe ser síncrono/controlado para evitar bucles + + return await client.download_media(message, file_name=file_path, progress=progress, progress_args=progress_args) + + except Exception as e2: + + print(f"❌ Fallback falló: {e2}") + + return None + + + + + +def merge_videos_ffmpeg(video_paths, output_path): + + """ + + Une varios videos usando el protocolo concat de FFmpeg. + + Para mayor compatibilidad, se re-codifica ligeramente o se usa filter_complex if needed. + + Aquí usaremos el método simple de concat demuxer si son del mismo formato, + + o filter complex para mayor robustez. + + """ + + import subprocess + + import os + + + + if not video_paths: + + return None + + + + # Crear archivo de lista para concat demuxer + + list_file = output_path + ".txt" + + try: + + with open(list_file, "w", encoding="utf-8") as f: + + for path in video_paths: + + # FFmpeg necesita escapar comillas y usar rutas absolutas preferiblemente + + abs_path = os.path.abspath(path).replace("\\", "/") + + f.write(f"file '{abs_path}'\n") + + + + # Ejecutar FFmpeg + + # Usamos -c copy para que sea instantáneo si son compatibles. + + # Si fallara, habría que re-codificar. + + cmd = [ + + "ffmpeg", "-y", "-f", "concat", "-safe", "0", + + "-i", list_file, "-c", "copy", output_path + + ] + + + + result = subprocess.run(cmd, capture_output=True, text=True) + + + + if result.returncode != 0: + + print(f"⚠️ Merge simple falló, re-intentando con re-codificación: {result.stderr}") + + # Fallback: Re-codificar para asegurar unión aunque sean de distintos fps/resolución + + # Esto es lento pero seguro. + + cmd_slow = ["ffmpeg", "-y"] + + for p in video_paths: + + cmd_slow.extend(["-i", p]) + + + + filter_str = "" + + for i in range(len(video_paths)): + + filter_str += f"[{i}:v] [{i}:a] " + + filter_str += f"concat=n={len(video_paths)}:v=1:a=1 [v] [a]" + + + + cmd_slow.extend([ + + "-filter_complex", filter_str, + + "-map", "[v]", "-map", "[a]", + + "-c:v", "libx264", "-preset", "fast", "-crf", "23", + + "-c:a", "aac", "-b:a", "128k", + + output_path + + ]) + + result_slow = subprocess.run(cmd_slow, capture_output=True, text=True) + + if result_slow.returncode != 0: + + print(f"❌ Error crítico uniendo videos: {result_slow.stderr}") + + return None + + + + return output_path + + except Exception as e: + + print(f"❌ Error en merge_videos_ffmpeg: {e}") + + return None + + finally: + + if os.path.exists(list_file): + + try: os.remove(list_file) + + except: pass + + + + + +def split_video_by_size(input_path, max_size_bytes=1.9 * 1024 * 1024 * 1024): + + """ + + Divide un video en partes de máximo max_size_bytes usando ffmpeg. + + Calcula la duración estimada de cada parte basándose en el bitrate. + + """ + + import subprocess + + import os + + import math + + from tools_media import get_meta + + + + w, h, duration = asyncio.run(get_meta(input_path)) + + file_size = os.path.getsize(input_path) + + + + if file_size <= max_size_bytes: + + return [input_path] + + + + num_parts = math.ceil(file_size / max_size_bytes) + + part_duration = duration / num_parts + + + + parts = [] + + base, ext = os.path.splitext(input_path) + + + + for i in range(num_parts): + + start_time = i * part_duration + + output_part = f"{base}_part{i+1}{ext}" + + + + # -ss antes de -i para mayor velocidad (fast seek) + + cmd = [ + + "ffmpeg", "-y", "-ss", str(start_time), "-t", str(part_duration), + + "-i", input_path, "-c", "copy", "-map", "0", output_part + + ] + + + + subprocess.run(cmd, capture_output=True) + + if os.path.exists(output_part): + + parts.append(output_part) + + + + return parts + + + + + +def split_file_into_volumes(input_path, max_size_bytes=1.9 * 1024 * 1024 * 1024): + + """ + + Divide un archivo cualquiera en partes binarias (volúmenes) evitando OOM. + + """ + + import os + + file_size = os.path.getsize(input_path) + + if file_size <= max_size_bytes: + + return [input_path] + + + + parts = [] + + part_num = 1 + + + + # Buffer de 10MB para lectura eficiente + + BUFFER_SIZE = 10 * 1024 * 1024 + + + + try: + + with open(input_path, 'rb') as f: + + while True: + + # Verificar si queda algo por leer + + start_pos = f.tell() + + if start_pos >= file_size: break + + + + # Definir nombre parte + + part_path = f"{input_path}.{part_num:03d}" + + current_part_size = 0 + + + + with open(part_path, 'wb') as pf: + + while current_part_size < max_size_bytes: + + # Cuánto falta para llenar esta parte + + remaining = max_size_bytes - current_part_size + + to_read = min(BUFFER_SIZE, remaining) + + + + chunk = f.read(int(to_read)) + + if not chunk: break + + + + pf.write(chunk) + + current_part_size += len(chunk) + + + + parts.append(part_path) + + part_num += 1 + + + + return parts + + except Exception as e: + + print(f"❌ Error en split_file_into_volumes: {e}") + + return [] + + + + + +def extract_images_ffmpeg(video_path, interval, mode='sec'): + + """ + + Extrae fotogramas de un video cada X tiempo o un frame exacto. + + interval: número (segundos o minutos) o string 'HH:MM:SS' / 'SS' + + mode: 'sec', 'min' o 'exact' + + """ + + import subprocess + + import os + + import math + + + + base = video_path.rsplit('.', 1)[0] + + out_dir = f"{base}_frames" + + if not os.path.exists(out_dir): os.makedirs(out_dir) + + + + outputs = [] + + + + if mode == 'exact': + + out_f = os.path.join(out_dir, f"frame_{str(interval).replace(':', '_')}.jpg") + + cmd = [ + + "ffmpeg", "-y", "-ss", str(interval), "-i", video_path, + + "-frames:v", "1", "-q:v", "2", out_f + + ] + + subprocess.run(cmd, capture_output=True) + + if os.path.exists(out_f): outputs.append(out_f) + + else: + + # Convertir a segundos + + try: + + val = float(interval) + + interval_sec = val * 60 if mode == 'min' else val + + except: + + return [], None, None + + + + # FPS = 1 / interval + + cmd = [ + + "ffmpeg", "-y", "-i", video_path, + + "-vf", f"fps=1/{interval_sec}", "-q:v", "2", + + os.path.join(out_dir, "img_%03d.jpg") + + ] + + subprocess.run(cmd, capture_output=True) + + for f in sorted(os.listdir(out_dir)): + + if f.endswith(".jpg"): + + outputs.append(os.path.join(out_dir, f)) + + + + return outputs, out_dir + + + + + +def video_to_gif_ffmpeg(video_path): + + """Convierte un video a GIF optimizado usando filtros de paleta para alta calidad.""" + + import subprocess + + import os + + import time + + + + out_gif = video_path.rsplit('.', 1)[0] + ".gif" + + + + # Nombre único para la paleta para evitar conflictos + + palette = os.path.join(os.path.dirname(video_path), f"palette_{int(time.time())}.png") + + + + try: + + # 1. Generar paleta de 256 colores optimizada + + # bajamos a 12 FPS y 360p para que el GIF no pese demasiado y Telegram lo reproduzca bien + + subprocess.run([ + + "ffmpeg", "-y", "-i", video_path, + + "-vf", "fps=12,scale=360:-1:flags=lanczos,palettegen", palette + + ], capture_output=True) + + + + # 2. Generar el GIF aplicando la paleta + + subprocess.run([ + + "ffmpeg", "-y", "-i", video_path, "-i", palette, + + "-filter_complex", "fps=12,scale=360:-1:flags=lanczos[x];[x][1:v]paletteuse", + + out_gif + + ], capture_output=True) + + + + if os.path.exists(palette): os.remove(palette) + + + + if os.path.exists(out_gif): + + return out_gif + + + + return None + + except Exception as e: + + print(f"Error en video_to_gif: {e}") + + return None + + + + + +def create_telegram_sticker(input_path, is_emoji=False): + + """ + + Crea un Sticker compatible con Telegram. + + - Detecta automáticamente si es Video o Imagen usando FFprobe. + + - Video -> WebM (VP9) + + - Imagen -> WebP (Static) + + """ + + import subprocess + + import os + + import json + + + + base_name = os.path.splitext(input_path)[0] + + + + # 1. Detectar tipo real con FFprobe + + is_video = False + + try: + + cmd_probe = [ + + "ffprobe", "-v", "error", + + "-select_streams", "v:0", + + "-show_entries", "stream=codec_type,duration,nb_frames", + + "-of", "json", + + input_path + + ] + + out_probe = subprocess.check_output(cmd_probe).decode() + + data = json.loads(out_probe) + + stream = data.get('streams', [{}])[0] + + + + # Criterio: Si tiene duración > 0 o más de 1 frame, es video/animación + + duration = float(stream.get('duration', 0)) + + nb_frames = int(stream.get('nb_frames', 0)) + + + + if duration > 0.1 or nb_frames > 1: + + is_video = True + + + + # Refuerzo: Si extensión es mp4/mov/webm, forzar video + + ext = os.path.splitext(input_path)[1].lower() + + if ext in ['.mp4', '.mov', '.webm', '.gif', '.mkv']: + + is_video = True + + + + except Exception as e: + + print(f"⚠️ Error Probe: {e}. Usando extensión...") + + ext = os.path.splitext(input_path)[1].lower() + + is_video = ext in ['.mp4', '.mov', '.webm', '.gif'] + + + + if not is_video: + + # --- MODO IMAGEN (WEBP ESTÁTICO) --- + + out_file = f"{base_name}.webp" + + try: + + cmd = [ + + "ffmpeg", "-y", "-i", input_path, + + "-vf", "scale=512:512:force_original_aspect_ratio=decrease,format=rgba", + + "-c:v", "libwebp", "-lossless", "0", "-q:v", "80", + + "-vframes", "1", # IMPORTANTE: Solo 1 frame para evitar WebP animado gigante + + "-an", + + out_file + + ] + + print(f"🖼 Creando Sticker Estático: {input_path}") + + subprocess.run(cmd, check=True) + + return out_file if os.path.exists(out_file) else None + + except Exception as e: + + print(f"❌ Error Sticker Imagen: {e}") + + return None + + + + else: + + # --- MODO VIDEO (WEBM VP9) --- + + out_file = f"{base_name}.webm" + + try: + + # Configuración de Escala + + scale = "100:100" if is_emoji else "512:512" + + + + # Filtro complejo para garantizar transparencia y tamaño + + if is_emoji: + + vf = f"scale={scale}:force_original_aspect_ratio=decrease,pad={scale}:(ow-iw)/2:(oh-ih)/2:color=0x00000000" + + else: + + vf = f"scale={scale}:force_original_aspect_ratio=decrease" + + + + # Comando FFmpeg VP9 Optimizado + + cmd = [ + + "ffmpeg", "-y", + + "-i", input_path, + + "-ss", "00:00:00", "-t", "00:00:02.900", # Máx 2.9s para asegurar <3s + + "-vf", f"{vf},fps=30,format=yuva420p", + + "-c:v", "libvpx-vp9", + + "-b:v", "300k", # Bajamos bitrate para asegurar <256KB + + "-minrate", "150k", + + "-maxrate", "400k", + + "-crf", "35", # Aumentar CRF para bajar peso + + "-deadline", "realtime", "-cpu-used", "5", + + "-row-mt", "1", + + "-an", "-map", "0:v:0", "-loop", "0", + + out_file + + ] + + + + print(f"🎥 Creando Sticker Video: {input_path}") + + subprocess.run(cmd, check=True) + + + + # Gestión de tamaño (Si pasa de 256KB, re-comprimir agresivamente) + + if os.path.exists(out_file): + + size = os.path.getsize(out_file) + + if size > 256 * 1024: + + print(f"⚠️ Sticker grande ({size/1024:.1f}KB). Reintentando Ultra-Compress...") + + cmd_retry = [ + + "ffmpeg", "-y", "-i", input_path, "-t", "2.9", + + "-vf", f"{vf},fps=24,scale=trunc(iw/2)*2:trunc(ih/2)*2", # Bajar FPS + + "-c:v", "libvpx-vp9", "-b:v", "150k", "-crf", "50", + + "-deadline", "realtime", "-cpu-used", "8", + + "-an", "-map", "0:v:0", + + out_file + + ] + + subprocess.run(cmd_retry, check=False) + + + + return out_file if os.path.exists(out_file) else None + + + + except Exception as e: + + print(f"❌ Error Sticker Video: {e}") + + return None + + + + + +# --- SAUCENAO API SERVICE --- + +def search_saucenao(image_path, api_key="fcb68d6b88094c2cf65e4f69cd6f3ab3cc7a199e"): + + """ + + Realiza una búsqueda inversa en SauceNAO usando el archivo local. + + Retorna una lista de resultados o None si falla. + + """ + + import requests + + import json + + + + url = "https://saucenao.com/search.php" + + + + try: + + with open(image_path, 'rb') as f: + + files = {'file': f} + + params = { + + 'db': 999, + + 'output_type': 2, + + 'numres': 3, + + 'api_key': api_key, + + 'testmode': 1 + + } + + + + print(f"🔍 [SauceNAO] Searching for: {image_path}") + + r = requests.post(url, files=files, params=params, timeout=30) + + + + if r.status_code != 200: + + print(f"❌ SauceNAO Error Status: {r.status_code}") + + return None + + + + results = r.json() + + # Validar respuesta + + if results['header']['status'] > 0: + + print(f"❌ SauceNAO Server Error: {results['header']['message']}") + + return None + + + + return results.get('results', []) + + + + except Exception as e: + + print(f"❌ SauceNAO Exception: {e}") + + return None + + + +def format_saucenao_results(results): + + """Formatea los resultados de SauceNAO para enviar al usuario con más detalle.""" + + if not results: + + return "🤷‍♂️ **No se encontraron coincidencias.**" + + + + msg = "📁 SauceNAO resultados\n" + + + + count = 0 + + for res in results: + + header = res['header'] + + data = res['data'] + + + + similarity = header.get('similarity', '0') + + if float(similarity) < 55.0: continue # Filtrar baja confianza + + + + count += 1 + + if count > 3: break # Máximo 3 resultados + + + + # --- Extracción de Datos Específicos --- + + title = data.get('title', data.get('eng_name', data.get('jp_name', data.get('material', '')))) + + if not title and 'source' in data: title = data['source'] + + + + # Line 2 components + + line2_parts = [] + + if 'part' in data: line2_parts.append(f"Part: {data['part']}") + + if 'episode' in data: line2_parts.append(f"Ep: {data['episode']}") + + if 'est_time' in data: line2_parts.append(f"Time: {data['est_time']}") + + + + line2 = " | ".join(line2_parts) + + if line2: line2 = f"📁 {line2}" + + + + # --- Construcción del Mensaje --- + + msg += f"📁 Similitud: {similarity}%\n\n" + + + + if title: msg += f"📁 Título: `{title}`\n" + + if line2: msg += f"{line2}\n" + + + + if count == 0: + + return "🤷‍♂️ **SauceNAO: Sin coincidencias relevantes.**" + + + + return msg + + + +# ... (omitted get_anilist_info) ... + + + +# --- TRACE.MOE API SERVICE --- + +def get_anilist_info(anilist_id): + + """Obtiene metadatos AVANZADOS de Anilist dado un ID.""" + + import requests + + + + query = ''' + + query ($id: Int) { + + Media (id: $id, type: ANIME) { + + title { + + romaji + + english + + native + + } + + synonyms + + isAdult + + genres + + format + + episodes + + duration + + startDate { year month day } + + endDate { year month day } + + studios(isMain: true) { + + nodes { + + name + + } + + } + + siteUrl + + } + + } + + ''' + + variables = {'id': anilist_id} + + url = 'https://graphql.anilist.co' + + + + try: + + response = requests.post(url, json={'query': query, 'variables': variables}, timeout=10) + + if response.status_code == 200: + + return response.json().get('data', {}).get('Media', {}) + + except Exception as e: + + print(f"❌ Anilist Error: {e}") + + + + return None + + + +def search_tracemoe(image_path): + + """ + + Busca en trace.moe usando el archivo local. + + """ + + import requests + + + + url = "https://api.trace.moe/search?cutBorders" + + + + try: + + print(f"🔍 [Trace.moe] Searching: {image_path}") + + with open(image_path, 'rb') as f: + + files = {'image': f} + + r = requests.post(url, files=files, timeout=30) + + + + if r.status_code == 200: + + return r.json() + + elif r.status_code == 429: + + print("❌ Trace.moe Rate Limit Exceeded") + + return "limit" + + else: + + print(f"❌ Trace.moe Error: {r.status_code} - {r.text}") + + return None + + + + except Exception as e: + + print(f"❌ Trace.moe Exception: {e}") + + return None + + + +def format_tracemoe_results(data): + + """Formatea resultados de trace.moe + anilist info EXTENDIDO.""" + + if not data or isinstance(data, str) or 'result' not in data: + + return "🤷‍♂️ **Trace.moe: Sin resultados.**", None, False + + + + results = data['result'] + + if not results: + + return "🤷‍♂️ **Trace.moe: Sin coincidencias.**", None, False + + + + # Filtrar y tomar el mejor + + best = results[0] + + similarity = float(best.get('similarity', 0)) * 100 + + + + if similarity < 85.0: + + return "🤷‍♂️ **Trace.moe: Sin coincidencias sólidas (<85%).**", None, False + + + + # Obtener info extra de Anilist + + anilist_id = best.get('anilist', None) + + meta = {} + + if anilist_id: + + from utils import get_anilist_info # Ensure import if needed, or rely on global + + meta = get_anilist_info(anilist_id) or {} + + + + # --- PROCESAR DATOS DE ANILIST --- + + + + # 1. Títulos + + titles = meta.get('title', {}) + + title_romaji = titles.get('romaji', 'Desconocido') + + title_native = titles.get('native') + + + + # 2. Info + + episodes = meta.get('episodes', '?') + + duration = meta.get('duration', '?') + + fmt = meta.get('format', 'TV') + + + + desc_type = f"{episodes} ep. ({duration} min) {fmt} anime." + + + + start = meta.get('startDate', {}) + + end = meta.get('endDate', {}) + + s_date = f"{start.get('year', '?')}-{start.get('month', '?')}-{start.get('day', '?')}" + + e_date = f"{end.get('year', '?')}-{end.get('month', '?')}-{end.get('day', '?')}" + + aired = f"Airing from {s_date} to {e_date}." + + + + # 3. Alias + + aliases = meta.get('synonyms', []) + + alias_str = aliases[0] if aliases else "None" + + + + # 4. Géneros + + genres = meta.get('genres', []) + + genre_str = ", ".join(genres[:3]) if genres else "Unknown" + + + + # 5. Studios + + studios_node = meta.get('studios', {}).get('nodes', []) + + studios_str = "Unknown" + + if studios_node: + + studios_str = ", ".join([s['name'] for s in studios_node]) + + + + # 6. Clip Match + + match_episode = best.get('episode', '?') + + time_pos = best.get('from', 0) + + m, s = divmod(int(time_pos), 60) + + time_str = f"{m}:{s:02d}" + + + + # NSFW Check + + is_adult = meta.get('isAdult', False) + + video_preview = best.get('video', '') + + + + # --- CONSTRUIR EL MENSAJE FINAL (EXACTO) --- + + msg = f""" + +📁 Trace moe resultados + +📁 Similitud: {similarity:.2f}% + + + +📁 Title: `{title_romaji}` + +📁 `{title_native if title_native else ''}` + +📁 Info: {desc_type} + +{aired} + +📁 Alias: `{alias_str}` + +📁 Genre: {genre_str} + +📁 Studio: {studios_str} + +📁 Clip Match: Episode: {match_episode} (Time: {time_str}) + +""" + + + + return msg, video_preview, is_adult + + + + + +def get_random_pack_image(category="general"): + + """ + + Selecciona una imagen aleatoria de la carpeta 'pack'. + + category: 'tetas', 'culos', 'cuerpo', 'general'. + + """ + + import random + + import glob + + + + base_dir = "pack" + + if not os.path.exists(base_dir): + + try: + + os.makedirs(base_dir) + + os.makedirs(os.path.join(base_dir, "tetas")) + + os.makedirs(os.path.join(base_dir, "culos")) + + os.makedirs(os.path.join(base_dir, "cuerpo")) + + except: pass + + return None + + + + target_dir = base_dir + + if category and category != "general": + + target_dir = os.path.join(base_dir, category) + + + + files = [] + + + + if category == "general": + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.jpg"), recursive=True)) + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.png"), recursive=True)) + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.webp"), recursive=True)) + + else: + + files.extend(glob.glob(os.path.join(target_dir, "*.jpg"))) + + files.extend(glob.glob(os.path.join(target_dir, "*.png"))) + + files.extend(glob.glob(os.path.join(target_dir, "*.webp"))) + + + + if not files: return None + + + + return random.choice(files) + + + + + + +# --- WAIFU2X INTEGRATION --- +# --- WAIFU2X INTEGRATION --- +WAIFU2X_PATH_WIN = r"bin\waifu2x\waifu2x-ncnn-vulkan.exe" +WAIFU2X_PATH_LINUX = "bin/waifu2x/waifu2x-ncnn-vulkan" # Estructura mirror en Linux + +def waifu2x_upscale(input_path, scale=2, noise=2): + """ + Ejecuta Waifu2x-ncnn-vulkan para mejorar una imagen. + Soporta Windows (binario local) y Linux (PATH o bin local). + """ + import subprocess + import os + import platform + import shutil + + # 1. Determinar el binario según SO + system = platform.system() + waifu2x_bin = None + + if system == "Windows": + if os.path.exists(WAIFU2X_PATH_WIN): + waifu2x_bin = WAIFU2X_PATH_WIN + else: + # Linux: Prioridad 1 -> PATH global + if shutil.which("waifu2x-ncnn-vulkan"): + waifu2x_bin = "waifu2x-ncnn-vulkan" + + # Prioridad 2 -> Carpeta bin local (usuario lo subió ahí) + elif os.path.exists(WAIFU2X_PATH_LINUX): + waifu2x_bin = WAIFU2X_PATH_LINUX + # Dar permisos de ejecución si no tiene + try: os.chmod(waifu2x_bin, 0o755) + except: pass + + # Prioridad 3 -> Carpeta bin local pero con .exe (Si lo subió tal cual de windows) + elif os.path.exists(WAIFU2X_PATH_WIN.replace("\\", "/")): + waifu2x_bin = WAIFU2X_PATH_WIN.replace("\\", "/") + try: os.chmod(waifu2x_bin, 0o755) + except: pass + + if not waifu2x_bin: + print(f"⚠️ Waifu2x bin not found (System: {system}). Checked PATH and {WAIFU2X_PATH_LINUX}") + return None + + base, ext = os.path.splitext(input_path) + if not ext: ext = ".png" + + # Waifu2x output format + output_path = f"{base}_waifu2x{ext}" + + # Command Construction + cmd = [ + waifu2x_bin, + "-i", input_path, + "-o", output_path, + "-s", str(scale), + "-n", str(noise), + "-x" # TTA Mode + ] + + print(f"✨ [Waifu2x] Upscaling ({system}): {input_path} -> {output_path}") + + try: + # Run blocking + subprocess.run(cmd, check=True) + + if os.path.exists(output_path): + return output_path + else: + print("⚠️ Waifu2x did not produce output.") + return None + + except Exception as e: + print(f"Error in waifu2x: {e}") + return None + +from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton + +# --- HELPER: PAGINATION GRID --- +def generate_grid_keyboard(current_idx, total_items, prefix_sel, prefix_nav, prefix_jump, prefix_back='menu|tools', extra_rows=None): + ''' + Genera un teclado de cuadrícula (5x2) para selección paginada. + - current_idx: índice actual (0-based) para resaltar (opcional). + - total_items: total de elementos. + - prefix_sel: callback base para selección (ej: 'tiktok|sel|'). Appends index. + - prefix_nav: callback base para nav (ej: 'tiktok|nav|'). Appends '{cur}|prev' or '{cur}|next'. + - prefix_jump: callback para input manual (ej: 'tiktok|jump'). + - prefix_back: callback para volver. + ''' + page_size = 10 + current_page = current_idx // page_size + start_idx = current_page * page_size + end_idx = min(start_idx + page_size, total_items) + + buttons = [] + + # Grid 5x2 + # Row 1: 1-5 + row1 = [] + for i in range(start_idx, min(start_idx + 5, end_idx)): + # Display is 1-based (i+1) + # Highlight current? Maybe simply numbers. + lbl = f'✅ {i+1}' if i == current_idx else f'{i+1}' + row1.append(InlineKeyboardButton(lbl, callback_data=f'{prefix_sel}{i}')) + buttons.append(row1) + + # Row 2: 6-10 + if end_idx > start_idx + 5: + row2 = [] + for i in range(start_idx + 5, end_idx): + lbl = f'✅ {i+1}' if i == current_idx else f'{i+1}' + row2.append(InlineKeyboardButton(lbl, callback_data=f'{prefix_sel}{i}')) + buttons.append(row2) + + # Nav Row: [< Prev] [Jump] [Next >] + nav_row = [] + + # Prev (If not first page) + if start_idx > 0: + # Jump back 10 + target = max(0, start_idx - 10) + nav_row.append(InlineKeyboardButton('⬅️ Anterior', callback_data=f'{prefix_nav}{current_idx}|prev')) + else: + nav_row.append(InlineKeyboardButton('☁️ Inicio', callback_data='ignore')) + + # Jump Button + nav_row.append(InlineKeyboardButton('🔢 Ir a...', callback_data=f'{prefix_jump}')) + + # Next (If not last page) + if end_idx < total_items: + # Jump forward 10 + # target = start_idx + 10 (handled by logic) + nav_row.append(InlineKeyboardButton('Siguiente ➡️', callback_data=f'{prefix_nav}{current_idx}|next')) + else: + nav_row.append(InlineKeyboardButton('☁️ Fin', callback_data='ignore')) + + buttons.append(nav_row) + + # Extra Rows (Control buttons like 'Add', 'Random', 'Delete') + if extra_rows: + for r in extra_rows: + buttons.append(r) + + # Back Row defaults + # buttons.append([InlineKeyboardButton('🔙 Volver', callback_data=prefix_back)]) + + return InlineKeyboardMarkup(buttons) diff --git a/Twisted Brody Waifus & Creampie BRODY/utils_chat_actions.py b/Twisted Brody Waifus & Creampie BRODY/utils_chat_actions.py new file mode 100644 index 0000000000000000000000000000000000000000..fcb6a964b1ddc4ace541c15e84a81fdf62bbae99 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/utils_chat_actions.py @@ -0,0 +1,31 @@ + +from contextlib import asynccontextmanager +import asyncio + +@asynccontextmanager +async def chat_action_loop(client, chat_id, action, delay=4): + """ + Context manager to keep sending a chat action repeatedly. + Useful for long uploads/operations where the status might timeout. + + Usage: + async with chat_action_loop(client, chat_id, enums.ChatAction.UPLOAD_VIDEO): + await client.send_video(...) + """ + # Define looping task + async def loop_action(): + while True: + try: + await client.send_chat_action(chat_id, action) + await asyncio.sleep(delay) + except asyncio.CancelledError: + break + except Exception as e: + print(f"Chat Action Error: {e}") + await asyncio.sleep(delay) + + task = asyncio.create_task(loop_action()) + try: + yield + finally: + task.cancel() diff --git a/Twisted Brody Waifus & Creampie BRODY/utils_clean.py b/Twisted Brody Waifus & Creampie BRODY/utils_clean.py new file mode 100644 index 0000000000000000000000000000000000000000..f5fd34586e9e27fb62bf51b21c2aa3d2f7fe431b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/utils_clean.py @@ -0,0 +1,2570 @@ +import re + +import os + +import asyncio + +import requests + +import zipfile + +from deep_translator import GoogleTranslator + +from config import COOKIE_MAP, TOOLS_DIR + + + +# --- HELPER: ZIP SPLITTER --- + +def create_split_zips(files, base_name, max_size=1.9 * 1024 * 1024 * 1024): + + """Agrupa archivos en ZIPs que no superen max_size.""" + + archives = [] + + + + current_batch = [] + + current_size = 0 + + part_num = 1 + + + + for f_path in files: + + f_size = os.path.getsize(f_path) + + # Si un solo archivo es mayor al límite, va solo en su propio ZIP (Telegram limitará igual, pero bueno) + + if current_size + f_size > max_size and current_batch: + + # Cerrar batch actual + + zip_name = f"{base_name}_part{part_num}.zip" + + with zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED) as zf: + + for tf in current_batch: + + zf.write(tf, os.path.basename(tf)) + + archives.append(zip_name) + + + + # Reset + + current_batch = [] + + current_size = 0 + + part_num += 1 + + + + current_batch.append(f_path) + + current_size += f_size + + + + # Último batch + + if current_batch: + + zip_name = f"{base_name}_part{part_num}.zip" if part_num > 1 else f"{base_name}.zip" + + with zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED) as zf: + + for tf in current_batch: + + zf.write(tf, os.path.basename(tf)) + + archives.append(zip_name) + + + + return archives + + + +def format_bytes(size): + + if not size or size <= 0: return "N/A" + + power = 2**10 + + n = 0 + + power_labels = {0 : 'B', 1: 'KB', 2: 'MB', 3: 'GB'} + + while size > power and n < 3: + + size /= power + + n += 1 + + return f"{size:.1f} {power_labels[n]}" + + + +def render_bar(current, total, length=10): + + """Genera una barra de progreso visual [██░░].""" + + if total == 0: return "░" * length + + pct = current / total + + filled = int(length * pct) + + return "█" * filled + "░" * (length - filled) + + + +def limpiar_url(url): + + url = url.strip() + + if "youtube.com" in url or "youtu.be" in url: + + match = re.search(r'(?:v=|\/|shorts\/)([0-9A-Za-z_-]{11})', url) + + if match: return f"https://www.youtube.com/watch?v={match.group(1)}" + + if "eporner" in url: + + url = re.sub(r'https?://(es|de|fr|it)\.eporner\.com', 'https://www.eporner.com', url) + + if "?" in url and not any(d in url for d in ['facebook', 'instagram', 'pornhub', 'dropbox']): + + url = url.split("?")[0] + + return url + + + +async def resolver_url_facebook(url): + + """ + + Normaliza enlaces de Facebook. + + Intenta extraer el ID numérico o alfanumérico y devuelve un formato estándar. + + """ + + # 1. Expandir redirecciones (fb.watch, etc) + + if "fb.watch" in url or "goo.gl" in url or "bit.ly" in url: + + try: + + headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'} + + loop = asyncio.get_running_loop() + + url = await loop.run_in_executor(None, lambda: requests.head(url, allow_redirects=True, headers=headers).url) + + except: pass + + + + # 2. Extraer ID y formatear según tipo + + # Reels + + match = re.search(r'/reel/([0-9A-Za-z_-]+)', url) + + if match: return f"https://www.facebook.com/reel/{match.group(1)}" + + + + # Videos con ID numérico (watch?v= o /videos/) + + match = re.search(r'/(?:videos|watch\?v)=([0-9]+)', url) + + if match: return f"https://www.facebook.com/video.php?v={match.group(1)}" + + + + # Share links (/share/r/..., /share/v/...) -> Dejar tal cual para que yt-dlp resuelva + + if "/share/" in url: + + return url + + + + return url + + + +def sel_cookie(url): + + for k, v in COOKIE_MAP.items(): + + if k in url and os.path.exists(v): return v + + return None + + + +def load_cookies_dict(filename): + + """Carga cookies de Netscape y las devuelve como diccionario para aiohttp.""" + + cookies = {} + + if filename and os.path.exists(filename): + + try: + + with open(filename, 'r') as f: + + for line in f: + + if line.startswith('#') or not line.strip(): continue + + parts = line.split('\t') + + if len(parts) >= 7: + + cookies[parts[5]] = parts[6].strip() + + except: pass + + return cookies + + + +async def traducir_texto(texto): + + if not texto: return "" + + try: + # Modo 'Calmado': Espera aleatoria de 1.5 a 3 segundos + await asyncio.sleep(1.5 + (0.1 * (id(texto) % 10))) + + loop = asyncio.get_running_loop() + return await loop.run_in_executor(None, lambda: GoogleTranslator(source='auto', target='es').translate(texto)) + + except Exception as e: + + print(f"Translation error: {e}") + + return texto + + + +# Ruta a gallery-dl + +# Prioridad: 1. Pip Install (Latest) | 2. Tools Local (Portable) | 3. System Path + +PIP_GALLERY_PATH = r"C:\Users\Gonzalo\AppData\Roaming\Python\Python311\Scripts\gallery-dl.exe" + +TOOLS_GALLERY_PATH = os.path.join(TOOLS_DIR, "gallery-dl.exe") + + + +if os.path.exists(PIP_GALLERY_PATH): + + GALLERY_DL_EXEC = PIP_GALLERY_PATH + +elif os.path.exists(TOOLS_GALLERY_PATH): + + GALLERY_DL_EXEC = TOOLS_GALLERY_PATH + +else: + + GALLERY_DL_EXEC = "gallery-dl" + + + +def descargar_galeria(url, cookie_file=None): + + """ + + Descarga imágenes de X/Twitter/Facebook usando gallery-dl. + + Retorna una lista de rutas de archivos descargados y el directorio temporal. + + """ + + import subprocess + + import glob + + import shutil + + + + # Directorio temporal único + # Usamos time.time_ns() + Random para evitar colisiones si se lanzan multiples hilos + import time + import random + tmp_dir = f"tmp_gallery_{time.time_ns()}_{random.randint(1000, 9999)}" + + if not os.path.exists(tmp_dir): + + os.makedirs(tmp_dir) + + + + # Construir comando + + # gallery-dl guarda por defecto en ./gallery-dl/twitter/... + + # Usamos -d para forzar una carpeta base + + cmd = [ + + GALLERY_DL_EXEC, + + "--config", "gallery-dl.conf", + + "--destination", tmp_dir, + "--write-metadata", + + "--no-mtime", + + "-q", + + ] + + + + if cookie_file: + + cmd.extend(["--cookies", cookie_file]) + + + + cmd.append(url) + + + + print(f"📸 Ejecutando Gallery-DL ({cookie_file}): {' '.join(cmd)}") + + + + try: + + # Check=True lanza excepción si falla (exit code != 0) + + subprocess.run(cmd, check=True, timeout=45) + + + + # Buscar archivos descargados (solo imágenes) + + files = [] + + exts = ['jpg', 'jpeg', 'png', 'webp'] # Solo imágenes, videos van por yt-dlp + + for ext in exts: + + files.extend(glob.glob(f"{tmp_dir}/**/*.{ext}", recursive=True)) + + # Metadata Extraction + metadata_text = "" + try: + import json + import glob # ensure glob is available + json_files = glob.glob(f"{tmp_dir}/**/*.json", recursive=True) + for jf in json_files: + try: + with open(jf, 'r', encoding='utf-8') as f: + data = json.load(f) + # Try to find content/text + text_found = data.get('content') or data.get('description') or data.get('title') or data.get('full_text') or "" + if text_found: + metadata_text = str(text_found).strip() + break + except: continue + except: pass + + + + print(f"✅ Gallery-DL finalizado. Encontradas {len(files)} imágenes.") + + return files, tmp_dir, metadata_text + + + + except Exception as e: + + print(f"❌ Error Gallery-DL: {e}") + + # Limpiar si hubo error grave + + try: shutil.rmtree(tmp_dir) + + except: pass + + return [], None, None + + + +async def scan_channel_history(client, chat_id, limit=None): + + """ + + Escanea el historial del canal para indexar hashtags. + + Retorna el número de mensajes indexados. + + """ + + from database import hashtag_db, save_tags + + import time + + + + print(f"🔄 Iniciando escaneo de chat: {chat_id}") + + count = 0 + + msgs_indexed = 0 + + msgs_with_text = 0 + + + + try: + + async for msg in client.get_chat_history(chat_id, limit=limit): + + count += 1 + + if count % 100 == 0: print(f"⏳ Escaneados {count} mensajes...") + + + + text = msg.text or msg.caption + + if not text: + + continue + + + + msgs_with_text += 1 + + if msgs_with_text <= 3: # Debug: mostrar primeros 3 textos + + print(f"📝 Debug texto encontrado: {text[:100]}") + + + + # Buscar Hashtags + + tags = re.findall(r"#(\w+)", text) + + if tags: + + if msgs_indexed == 0: # Debug: mostrar el primer tag encontrado + + print(f"✅ Primer hashtag detectado: {tags}") + + + + for tag in tags: + + tag_clean = tag.lower() + + if tag_clean not in hashtag_db: hashtag_db[tag_clean] = [] + + + + # Evitar duplicados exactos (mismo mensaje) + + exists = any(item['id'] == msg.id and item['chat'] == msg.chat.id for item in hashtag_db[tag_clean]) + + if not exists: + + # Guardamos ID mensaje y Chat ID + + hashtag_db[tag_clean].append({ + + 'id': msg.id, + + 'chat': msg.chat.id + + }) + + msgs_indexed += 1 + + + + save_tags() + + print(f"✅ Escaneo completado. Total mensajes: {count}, Con texto: {msgs_with_text}, Con tags: {msgs_indexed}") + + return msgs_indexed + + + + except Exception as e: + + print(f"❌ Error escaneando: {e}") + + import traceback + + traceback.print_exc() + + return 0 + + + +def split_video_generic(input_path, mode, value): + + """ + + Divide video por: 'parts', 'min', 'sec'. + + mode: 'parts' (value=num), 'min' (value=minutos), 'sec' (value=segundos) + + """ + + import subprocess + + import glob + + import os + + + + if not os.path.exists(input_path): return [] + + + + try: + + # 1. Obtener duración + + cmd_dur = [ + + "ffprobe", "-v", "error", "-show_entries", "format=duration", + + "-of", "default=noprint_wrappers=1:nokey=1", input_path + + ] + + duration = float(subprocess.check_output(cmd_dur).decode().strip()) + + except Exception as e: + + print(f"Error duration: {e}") + + return [] + + + + if duration < 1: return [] + + + + # 2. Calcular segment_time + + segment_time = 0 + + if mode == 'parts': + + segment_time = duration / int(value) + + elif mode == 'min': + + segment_time = float(value) * 60 + + elif mode == 'sec': + + segment_time = float(value) + + + + if segment_time <= 0: return [] + + + + # 3. Directorio salida + + base_dir = os.path.dirname(input_path) + + base_name, ext = os.path.splitext(os.path.basename(input_path)) + + output_pattern = os.path.join(base_dir, f"{base_name}_part%03d{ext}") + + # 4. Dividir (ADAPTIVE: Precision vs Speed) + # If segment is small (< 20s), use re-encode for precision (Keyframe independent). + # If segment is large (>= 20s), use copy for speed. + + cmd_split = ["ffmpeg", "-y", "-i", input_path] + + if segment_time < 20: + # Precision Mode (Ultrafast Re-encode) + print(f"🎬 [DEBUG] Precision Mode (<20s): Re-encoding for perfect cuts.") + cmd_split.extend([ + "-c:v", "libx264", "-preset", "ultrafast", "-crf", "23", + "-c:a", "copy" + ]) + else: + # Speed Mode (Stream Copy) + print(f"⚡ [DEBUG] Speed Mode (>=20s): Stream Copy.") + cmd_split.extend([ + "-c", "copy" + ]) + + cmd_split.extend([ + "-map", "0", + "-f", "segment", "-segment_time", str(segment_time), + "-reset_timestamps", "1", output_pattern + ]) + + + + print(f"✂️ [DEBUG] Starting Split: {mode}={value} (seg_time={segment_time:.2f})") + + print(f"✂️ [DEBUG] Command: {' '.join(cmd_split)}") + + + + try: + + # Habilitar salida a consola para ver errores + + subprocess.run(cmd_split, check=True) + + print(f"✅ [DEBUG] Split finished successfully.") + + except Exception as e: + + print(f"❌ [DEBUG] Error during FFmpeg split: {e}") + + return [] + + + + # 5. Listar resultados + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}_part*{ext}"))) + + print(f"📦 [DEBUG] Created {len(parts)} parts.") + + return parts + + + +def get_video_metadata(path): + + """Retorna (width, height) del video.""" + + import subprocess + + import json + + try: + + cmd = [ + + "ffprobe", "-v", "error", "-select_streams", "v:0", + + "-show_entries", "stream=width,height", "-of", "json", path + + ] + + # Si no hay json en imports globales... importarlo dentro. + + out = subprocess.check_output(cmd).decode() + + data = json.loads(out) + + w = data['streams'][0]['width'] + + h = data['streams'][0]['height'] + + return w, h + + except Exception as e: + + print(f"Meta Error: {e}") + + return 0, 0 + + + +def compress_video_ffmpeg(input_path, crf=28, preset="fast"): + + """ + + Comprime video usando FFmpeg + libx264. + + crf: 0-51 (23=default, 28=whatsapp, 35=potato). + + Retorna ruta del archivo comprimido o None si falla. + + """ + + import subprocess + + import os + + + + if not os.path.exists(input_path): return None + + + + base_dir = os.path.dirname(input_path) + + base_name = os.path.splitext(os.path.basename(input_path))[0] + + output_path = os.path.join(base_dir, f"compressed_{base_name}.mp4") + + + + try: + + # Comando FFmpeg simple + + # -v error: menos spam + + # -c:v libx264: codec video + + # -crf: factor calidad + + # -preset: velocidad + + # -c:a copy: copiar audio sin tocar (más rápido) + + cmd = [ + + "ffmpeg", "-y", "-i", input_path, + + "-c:v", "libx264", "-crf", str(crf), "-preset", preset, + + "-c:a", "copy", + + output_path + + ] + + + + print(f"🗜 Iniciando compresión (CRF={crf}): {input_path}") + + subprocess.run(cmd, check=True) # Check lanza error si falla + + + + if os.path.exists(output_path): + + return output_path + + return None + + + + except Exception as e: + + print(f"❌ Error compresión: {e}") + + return None + + + +def cut_video_range(input_path, start, end): + + """ + + Corta un rango específico. + + start/end: strings formato HH:MM:SS o MM:SS o segundos. + + """ + + import subprocess + + import os + + + + if not os.path.exists(input_path): return None + + + + base_dir = os.path.dirname(input_path) + + base_name, ext = os.path.splitext(os.path.basename(input_path)) + + if not ext: ext = ".mp4" + + + + # Limpiar caracteres raros en tiempos para nombre archivo + + s_safe = str(start).replace(":", "-") + + e_safe = str(end).replace(":", "-") + + output_path = os.path.join(base_dir, f"cut_{base_name}_{s_safe}_to_{e_safe}{ext}") + + + + try: + + # Usamos -ss antes de -i para fast seek + + # -to especifica el punto final (no duración) + + # -c copy para velocidad máxima + + cmd = [ + + "ffmpeg", "-y", + + "-ss", str(start), + + "-to", str(end), + + "-i", input_path, + + "-c", "copy", + + "-avoid_negative_ts", "make_zero", + + output_path + + ] + + + + print(f"✂️ Cutting range {start} -> {end}") + + subprocess.run(cmd, check=True) + + + + if os.path.exists(output_path): + + return output_path + + return None + + except Exception as e: + + print(f"❌ Cut Error: {e}") + + return None + + + +def create_split_archive(input_path, part_size_mb=1500): + + """ + + Crea un archivo comprimido dividido en volúmenes. + + Prioridad: + + 1. WinRAR (Rar.exe) -> Crea .part1.rar (Ideal para el usuario) + + 2. 7-Zip (7zr.exe) -> Crea .7z.001 (Open source) + + """ + + import subprocess + + import glob + + import shutil + + + + if not os.path.exists(input_path): return [] + + + + # Definir rutas de herramientas + + tools_dir = os.path.join(os.getcwd(), 'tools') + + rar_exe = os.path.join(tools_dir, 'Rar.exe') + + seven_z_exe = os.path.join(tools_dir, '7zr.exe') + + + + # Fallback a system path + + if not os.path.exists(rar_exe) and shutil.which("rar"): rar_exe = "rar" + + if not os.path.exists(seven_z_exe) and shutil.which("7za"): seven_z_exe = "7za" + + + + base_dir = os.path.dirname(input_path) + + base_name = os.path.splitext(os.path.basename(input_path))[0] + + + + # MODO 1: WINRAR (Prioridad usuario) + + if os.path.exists(rar_exe) or rar_exe == "rar": + + archive_name = os.path.join(base_dir, f"{base_name}.rar") + + # rar a -v1500m -m0 -ep1 archivo.rar input + + # -v: volumen size + + # -m0: store (sin comprimir, rápido para videos que ya están comprimidos) + + # -ep1: excluir ruta base, solo guardar nombre archivo + + cmd = [ + + rar_exe, "a", + + f"-v{part_size_mb}m", + + "-m0", + + "-ep1", + + "-y", # Yes to all + + archive_name, + + input_path + + ] + + print(f"📦 [RAR] Iniciando compresión en volúmenes de {part_size_mb}MB...") + + try: + + subprocess.run(cmd, check=True) + + # Buscar partes creadas + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.part*.rar"))) + + if not parts: # A veces crea solo .rar si cabe en uno + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.rar"))) + + return parts + + except Exception as e: + + print(f"❌ RAR Error: {e}") + + # Fallback a 7z si falla RAR + + + + # MODO 2: 7-ZIP + + if os.path.exists(seven_z_exe) or seven_z_exe == "7za": + + archive_name = os.path.join(base_dir, f"{base_name}.7z") + + # 7zr a -v1500m -mx0 archivo.7z input + + cmd = [ + + seven_z_exe, "a", + + f"-v{part_size_mb}m", + + "-mx0", + + "-y", + + archive_name, + + input_path + + ] + + print(f"📦 [7Z] Iniciando compresión en volúmenes de {part_size_mb}MB...") + + try: + + subprocess.run(cmd, check=True) + + # Buscar partes (.7z.001, .7z.002 ...) + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.7z.*"))) + + if not parts: + + parts = sorted(glob.glob(os.path.join(base_dir, f"{base_name}.7z"))) + + return parts + + except Exception as e: + + print(f"❌ 7Z Error: {e}") + + + + print("❌ No se encontró compresor (Rar.exe o 7zr.exe).") + + return [] + + + +# --- PARALLEL DOWNLOADER (TURBO) --- + +async def download_parallel(client, message, file_path, concurrency=8, progress=None, progress_args=None): + + """ + + Descarga un archivo de Telegram en paralelo (Turbo). + + Alineado a 1MB para evitar OFFSET_INVALID. + + """ + + file_size = 0 + + try: + + media = message.video or message.document or message.audio + + if not media: return None + + + + file_size = media.file_size + + if file_size == 0: return None + + + + # Si es pequeño (<10MB), descarga normal + + if file_size < 10 * 1024 * 1024: + + return await client.download_media(message, file_name=file_path, progress=progress, progress_args=progress_args) + + + + print(f"🚀 [TURBO] Iniciando descarga paralela: {file_path} ({format_bytes(file_size)})") + + + + # Pre-alocar archivo + + with open(file_path, "wb") as f: + + f.truncate(file_size) + + + + # Usar alineación de 1MB (1,048,576 bytes) para seguridad total + + # Telegram API prefiere potencias de 2 grandes para paralelos. + + CHUNK_ALIGN = 1024 * 1024 + + + + # Calcular tamaño de parte basado en la alineación + + # Si el archivo es menor a lo que daría la concurrencia x ALIGN, reducimos tareas + + target_part_size = (file_size // concurrency) + + target_part_size = max(CHUNK_ALIGN, (target_part_size // CHUNK_ALIGN) * CHUNK_ALIGN) + + + + tasks = [] + + file_lock = asyncio.Lock() + + + + # Shared progress counter + + downloaded_bytes = 0 + + progress_lock = asyncio.Lock() + + + + async def download_chunk(worker_id, start_byte, length): + + nonlocal downloaded_bytes + + try: + + # Debug print for developers to see in logs + + # print(f"DEBUG: Worker {worker_id} offset={start_byte} len={length}") + + + + async for chunk in client.stream_media(message, offset=start_byte, limit=length): + + if not chunk: break + + + + chunk_len = len(chunk) + + + + async with file_lock: + + with open(file_path, "r+b") as f: + + f.seek(start_byte) + + f.write(chunk) + + start_byte += chunk_len + + + + # Update Progress + + async with progress_lock: + + downloaded_bytes += chunk_len + + if progress: + + try: + + await progress(downloaded_bytes, file_size, *progress_args) + + except: pass + + + + except Exception as e: + + print(f"⚠️ Worker {worker_id} Error: {e}") + + raise e + + + + # Repartir el trabajo + + current_offset = 0 + + w_id = 0 + + while current_offset < file_size: + + # El último worker se lleva el resto (que puede no estar alineado al final, pero GetFile lo permite) + + # Solo los OFFSETS de inicio deben estar alineados. + + remaining = file_size - current_offset + + length = min(target_part_size, remaining) + + + + # Si es el último tramo y es muy pequeño, unirlo al anterior si es posible? + + # No, simplemente añadirlo. + + tasks.append(download_chunk(w_id, current_offset, length)) + + current_offset += length + + w_id += 1 + + + + # Ejecutar con protección + + await asyncio.gather(*tasks) + + + + # Verificación básica: Usamos downloaded_bytes porque el truncate engaña al os.path.getsize + + if os.path.exists(file_path) and downloaded_bytes == file_size: + + print(f"✅ [TURBO] Descarga exitosa: {file_path}") + + return file_path + + else: + + raise Exception(f"Tamaño incompleto: {downloaded_bytes}/{file_size}") + + + + except Exception as e: + + print(f"❌ Error en Turbo: {e}") + + print("🔄 Aplicando Fallback a descarga normal...") + + try: + + if os.path.exists(file_path): os.remove(file_path) + + # El fallback debe ser síncrono/controlado para evitar bucles + + return await client.download_media(message, file_name=file_path, progress=progress, progress_args=progress_args) + + except Exception as e2: + + print(f"❌ Fallback falló: {e2}") + + return None + + + + + +def merge_videos_ffmpeg(video_paths, output_path): + + """ + + Une varios videos usando el protocolo concat de FFmpeg. + + Para mayor compatibilidad, se re-codifica ligeramente o se usa filter_complex if needed. + + Aquí usaremos el método simple de concat demuxer si son del mismo formato, + + o filter complex para mayor robustez. + + """ + + import subprocess + + import os + + + + if not video_paths: + + return None + + + + # Crear archivo de lista para concat demuxer + + list_file = output_path + ".txt" + + try: + + with open(list_file, "w", encoding="utf-8") as f: + + for path in video_paths: + + # FFmpeg necesita escapar comillas y usar rutas absolutas preferiblemente + + abs_path = os.path.abspath(path).replace("\\", "/") + + f.write(f"file '{abs_path}'\n") + + + + # Ejecutar FFmpeg + + # Usamos -c copy para que sea instantáneo si son compatibles. + + # Si fallara, habría que re-codificar. + + cmd = [ + + "ffmpeg", "-y", "-f", "concat", "-safe", "0", + + "-i", list_file, "-c", "copy", output_path + + ] + + + + result = subprocess.run(cmd, capture_output=True, text=True) + + + + if result.returncode != 0: + + print(f"⚠️ Merge simple falló, re-intentando con re-codificación: {result.stderr}") + + # Fallback: Re-codificar para asegurar unión aunque sean de distintos fps/resolución + + # Esto es lento pero seguro. + + cmd_slow = ["ffmpeg", "-y"] + + for p in video_paths: + + cmd_slow.extend(["-i", p]) + + + + filter_str = "" + + for i in range(len(video_paths)): + + filter_str += f"[{i}:v] [{i}:a] " + + filter_str += f"concat=n={len(video_paths)}:v=1:a=1 [v] [a]" + + + + cmd_slow.extend([ + + "-filter_complex", filter_str, + + "-map", "[v]", "-map", "[a]", + + "-c:v", "libx264", "-preset", "fast", "-crf", "23", + + "-c:a", "aac", "-b:a", "128k", + + output_path + + ]) + + result_slow = subprocess.run(cmd_slow, capture_output=True, text=True) + + if result_slow.returncode != 0: + + print(f"❌ Error crítico uniendo videos: {result_slow.stderr}") + + return None + + + + return output_path + + except Exception as e: + + print(f"❌ Error en merge_videos_ffmpeg: {e}") + + return None + + finally: + + if os.path.exists(list_file): + + try: os.remove(list_file) + + except: pass + + + + + +def split_video_by_size(input_path, max_size_bytes=1.9 * 1024 * 1024 * 1024): + + """ + + Divide un video en partes de máximo max_size_bytes usando ffmpeg. + + Calcula la duración estimada de cada parte basándose en el bitrate. + + """ + + import subprocess + + import os + + import math + + from tools_media import get_meta + + + + w, h, duration = asyncio.run(get_meta(input_path)) + + file_size = os.path.getsize(input_path) + + + + if file_size <= max_size_bytes: + + return [input_path] + + + + num_parts = math.ceil(file_size / max_size_bytes) + + part_duration = duration / num_parts + + + + parts = [] + + base, ext = os.path.splitext(input_path) + + + + for i in range(num_parts): + + start_time = i * part_duration + + output_part = f"{base}_part{i+1}{ext}" + + + + # -ss antes de -i para mayor velocidad (fast seek) + + cmd = [ + + "ffmpeg", "-y", "-ss", str(start_time), "-t", str(part_duration), + + "-i", input_path, "-c", "copy", "-map", "0", output_part + + ] + + + + subprocess.run(cmd, capture_output=True) + + if os.path.exists(output_part): + + parts.append(output_part) + + + + return parts + + + + + +def split_file_into_volumes(input_path, max_size_bytes=1.9 * 1024 * 1024 * 1024): + + """ + + Divide un archivo cualquiera en partes binarias (volúmenes) evitando OOM. + + """ + + import os + + file_size = os.path.getsize(input_path) + + if file_size <= max_size_bytes: + + return [input_path] + + + + parts = [] + + part_num = 1 + + + + # Buffer de 10MB para lectura eficiente + + BUFFER_SIZE = 10 * 1024 * 1024 + + + + try: + + with open(input_path, 'rb') as f: + + while True: + + # Verificar si queda algo por leer + + start_pos = f.tell() + + if start_pos >= file_size: break + + + + # Definir nombre parte + + part_path = f"{input_path}.{part_num:03d}" + + current_part_size = 0 + + + + with open(part_path, 'wb') as pf: + + while current_part_size < max_size_bytes: + + # Cuánto falta para llenar esta parte + + remaining = max_size_bytes - current_part_size + + to_read = min(BUFFER_SIZE, remaining) + + + + chunk = f.read(int(to_read)) + + if not chunk: break + + + + pf.write(chunk) + + current_part_size += len(chunk) + + + + parts.append(part_path) + + part_num += 1 + + + + return parts + + except Exception as e: + + print(f"❌ Error en split_file_into_volumes: {e}") + + return [] + + + + + +def extract_images_ffmpeg(video_path, interval, mode='sec'): + + """ + + Extrae fotogramas de un video cada X tiempo o un frame exacto. + + interval: número (segundos o minutos) o string 'HH:MM:SS' / 'SS' + + mode: 'sec', 'min' o 'exact' + + """ + + import subprocess + + import os + + import math + + + + base = video_path.rsplit('.', 1)[0] + + out_dir = f"{base}_frames" + + if not os.path.exists(out_dir): os.makedirs(out_dir) + + + + outputs = [] + + + + if mode == 'exact': + + out_f = os.path.join(out_dir, f"frame_{str(interval).replace(':', '_')}.jpg") + + cmd = [ + + "ffmpeg", "-y", "-ss", str(interval), "-i", video_path, + + "-frames:v", "1", "-q:v", "2", out_f + + ] + + subprocess.run(cmd, capture_output=True) + + if os.path.exists(out_f): outputs.append(out_f) + + else: + + # Convertir a segundos + + try: + + val = float(interval) + + interval_sec = val * 60 if mode == 'min' else val + + except: + + return [], None, None + + + + # FPS = 1 / interval + + cmd = [ + + "ffmpeg", "-y", "-i", video_path, + + "-vf", f"fps=1/{interval_sec}", "-q:v", "2", + + os.path.join(out_dir, "img_%03d.jpg") + + ] + + subprocess.run(cmd, capture_output=True) + + for f in sorted(os.listdir(out_dir)): + + if f.endswith(".jpg"): + + outputs.append(os.path.join(out_dir, f)) + + + + return outputs, out_dir + + + + + +def video_to_gif_ffmpeg(video_path): + + """Convierte un video a GIF optimizado usando filtros de paleta para alta calidad.""" + + import subprocess + + import os + + import time + + + + out_gif = video_path.rsplit('.', 1)[0] + ".gif" + + + + # Nombre único para la paleta para evitar conflictos + + palette = os.path.join(os.path.dirname(video_path), f"palette_{int(time.time())}.png") + + + + try: + + # 1. Generar paleta de 256 colores optimizada + + # bajamos a 12 FPS y 360p para que el GIF no pese demasiado y Telegram lo reproduzca bien + + subprocess.run([ + + "ffmpeg", "-y", "-i", video_path, + + "-vf", "fps=12,scale=360:-1:flags=lanczos,palettegen", palette + + ], capture_output=True) + + + + # 2. Generar el GIF aplicando la paleta + + subprocess.run([ + + "ffmpeg", "-y", "-i", video_path, "-i", palette, + + "-filter_complex", "fps=12,scale=360:-1:flags=lanczos[x];[x][1:v]paletteuse", + + out_gif + + ], capture_output=True) + + + + if os.path.exists(palette): os.remove(palette) + + + + if os.path.exists(out_gif): + + return out_gif + + + + return None + + except Exception as e: + + print(f"Error en video_to_gif: {e}") + + return None + + + + + +def create_telegram_sticker(input_path, is_emoji=False): + + """ + + Crea un Sticker compatible con Telegram. + + - Detecta automáticamente si es Video o Imagen usando FFprobe. + + - Video -> WebM (VP9) + + - Imagen -> WebP (Static) + + """ + + import subprocess + + import os + + import json + + + + base_name = os.path.splitext(input_path)[0] + + + + # 1. Detectar tipo real con FFprobe + + is_video = False + + try: + + cmd_probe = [ + + "ffprobe", "-v", "error", + + "-select_streams", "v:0", + + "-show_entries", "stream=codec_type,duration,nb_frames", + + "-of", "json", + + input_path + + ] + + out_probe = subprocess.check_output(cmd_probe).decode() + + data = json.loads(out_probe) + + stream = data.get('streams', [{}])[0] + + + + # Criterio: Si tiene duración > 0 o más de 1 frame, es video/animación + + duration = float(stream.get('duration', 0)) + + nb_frames = int(stream.get('nb_frames', 0)) + + + + if duration > 0.1 or nb_frames > 1: + + is_video = True + + + + # Refuerzo: Si extensión es mp4/mov/webm, forzar video + + ext = os.path.splitext(input_path)[1].lower() + + if ext in ['.mp4', '.mov', '.webm', '.gif', '.mkv']: + + is_video = True + + + + except Exception as e: + + print(f"⚠️ Error Probe: {e}. Usando extensión...") + + ext = os.path.splitext(input_path)[1].lower() + + is_video = ext in ['.mp4', '.mov', '.webm', '.gif'] + + + + if not is_video: + + # --- MODO IMAGEN (WEBP ESTÁTICO) --- + + out_file = f"{base_name}.webp" + + try: + + cmd = [ + + "ffmpeg", "-y", "-i", input_path, + + "-vf", "scale=512:512:force_original_aspect_ratio=decrease,format=rgba", + + "-c:v", "libwebp", "-lossless", "0", "-q:v", "80", + + "-vframes", "1", # IMPORTANTE: Solo 1 frame para evitar WebP animado gigante + + "-an", + + out_file + + ] + + print(f"🖼 Creando Sticker Estático: {input_path}") + + subprocess.run(cmd, check=True) + + return out_file if os.path.exists(out_file) else None + + except Exception as e: + + print(f"❌ Error Sticker Imagen: {e}") + + return None + + + + else: + + # --- MODO VIDEO (WEBM VP9) --- + + out_file = f"{base_name}.webm" + + try: + + # Configuración de Escala + + scale = "100:100" if is_emoji else "512:512" + + + + # Filtro complejo para garantizar transparencia y tamaño + + if is_emoji: + + vf = f"scale={scale}:force_original_aspect_ratio=decrease,pad={scale}:(ow-iw)/2:(oh-ih)/2:color=0x00000000" + + else: + + vf = f"scale={scale}:force_original_aspect_ratio=decrease" + + + + # Comando FFmpeg VP9 Optimizado + + cmd = [ + + "ffmpeg", "-y", + + "-i", input_path, + + "-ss", "00:00:00", "-t", "00:00:02.900", # Máx 2.9s para asegurar <3s + + "-vf", f"{vf},fps=30,format=yuva420p", + + "-c:v", "libvpx-vp9", + + "-b:v", "300k", # Bajamos bitrate para asegurar <256KB + + "-minrate", "150k", + + "-maxrate", "400k", + + "-crf", "35", # Aumentar CRF para bajar peso + + "-deadline", "realtime", "-cpu-used", "5", + + "-row-mt", "1", + + "-an", "-map", "0:v:0", "-loop", "0", + + out_file + + ] + + + + print(f"🎥 Creando Sticker Video: {input_path}") + + subprocess.run(cmd, check=True) + + + + # Gestión de tamaño (Si pasa de 256KB, re-comprimir agresivamente) + + if os.path.exists(out_file): + + size = os.path.getsize(out_file) + + if size > 256 * 1024: + + print(f"⚠️ Sticker grande ({size/1024:.1f}KB). Reintentando Ultra-Compress...") + + cmd_retry = [ + + "ffmpeg", "-y", "-i", input_path, "-t", "2.9", + + "-vf", f"{vf},fps=24,scale=trunc(iw/2)*2:trunc(ih/2)*2", # Bajar FPS + + "-c:v", "libvpx-vp9", "-b:v", "150k", "-crf", "50", + + "-deadline", "realtime", "-cpu-used", "8", + + "-an", "-map", "0:v:0", + + out_file + + ] + + subprocess.run(cmd_retry, check=False) + + + + return out_file if os.path.exists(out_file) else None + + + + except Exception as e: + + print(f"❌ Error Sticker Video: {e}") + + return None + + + + + +# --- SAUCENAO API SERVICE --- + +def search_saucenao(image_path, api_key="fcb68d6b88094c2cf65e4f69cd6f3ab3cc7a199e"): + + """ + + Realiza una búsqueda inversa en SauceNAO usando el archivo local. + + Retorna una lista de resultados o None si falla. + + """ + + import requests + + import json + + + + url = "https://saucenao.com/search.php" + + + + try: + + with open(image_path, 'rb') as f: + + files = {'file': f} + + params = { + + 'db': 999, + + 'output_type': 2, + + 'numres': 3, + + 'api_key': api_key, + + 'testmode': 1 + + } + + + + print(f"🔍 [SauceNAO] Searching for: {image_path}") + + r = requests.post(url, files=files, params=params, timeout=30) + + + + if r.status_code != 200: + + print(f"❌ SauceNAO Error Status: {r.status_code}") + + return None + + + + results = r.json() + + # Validar respuesta + + if results['header']['status'] > 0: + + print(f"❌ SauceNAO Server Error: {results['header']['message']}") + + return None + + + + return results.get('results', []) + + + + except Exception as e: + + print(f"❌ SauceNAO Exception: {e}") + + return None + + + +def format_saucenao_results(results): + + """Formatea los resultados de SauceNAO para enviar al usuario con más detalle.""" + + if not results: + + return "🤷‍♂️ **No se encontraron coincidencias.**" + + + + msg = "📁 SauceNAO resultados\n" + + + + count = 0 + + for res in results: + + header = res['header'] + + data = res['data'] + + + + similarity = header.get('similarity', '0') + + if float(similarity) < 55.0: continue # Filtrar baja confianza + + + + count += 1 + + if count > 3: break # Máximo 3 resultados + + + + # --- Extracción de Datos Específicos --- + + title = data.get('title', data.get('eng_name', data.get('jp_name', data.get('material', '')))) + + if not title and 'source' in data: title = data['source'] + + + + # Line 2 components + + line2_parts = [] + + if 'part' in data: line2_parts.append(f"Part: {data['part']}") + + if 'episode' in data: line2_parts.append(f"Ep: {data['episode']}") + + if 'est_time' in data: line2_parts.append(f"Time: {data['est_time']}") + + + + line2 = " | ".join(line2_parts) + + if line2: line2 = f"📁 {line2}" + + + + # --- Construcción del Mensaje --- + + msg += f"📁 Similitud: {similarity}%\n\n" + + + + if title: msg += f"📁 Título: `{title}`\n" + + if line2: msg += f"{line2}\n" + + + + if count == 0: + + return "🤷‍♂️ **SauceNAO: Sin coincidencias relevantes.**" + + + + return msg + + + +# ... (omitted get_anilist_info) ... + + + +# --- TRACE.MOE API SERVICE --- + +def get_anilist_info(anilist_id): + + """Obtiene metadatos AVANZADOS de Anilist dado un ID.""" + + import requests + + + + query = ''' + + query ($id: Int) { + + Media (id: $id, type: ANIME) { + + title { + + romaji + + english + + native + + } + + synonyms + + isAdult + + genres + + format + + episodes + + duration + + startDate { year month day } + + endDate { year month day } + + studios(isMain: true) { + + nodes { + + name + + } + + } + + siteUrl + + } + + } + + ''' + + variables = {'id': anilist_id} + + url = 'https://graphql.anilist.co' + + + + try: + + response = requests.post(url, json={'query': query, 'variables': variables}, timeout=10) + + if response.status_code == 200: + + return response.json().get('data', {}).get('Media', {}) + + except Exception as e: + + print(f"❌ Anilist Error: {e}") + + + + return None + + + +def search_tracemoe(image_path): + + """ + + Busca en trace.moe usando el archivo local. + + """ + + import requests + + + + url = "https://api.trace.moe/search?cutBorders" + + + + try: + + print(f"🔍 [Trace.moe] Searching: {image_path}") + + with open(image_path, 'rb') as f: + + files = {'image': f} + + r = requests.post(url, files=files, timeout=30) + + + + if r.status_code == 200: + + return r.json() + + elif r.status_code == 429: + + print("❌ Trace.moe Rate Limit Exceeded") + + return "limit" + + else: + + print(f"❌ Trace.moe Error: {r.status_code} - {r.text}") + + return None + + + + except Exception as e: + + print(f"❌ Trace.moe Exception: {e}") + + return None + + + +def format_tracemoe_results(data): + + """Formatea resultados de trace.moe + anilist info EXTENDIDO.""" + + if not data or isinstance(data, str) or 'result' not in data: + + return "🤷‍♂️ **Trace.moe: Sin resultados.**", None, False + + + + results = data['result'] + + if not results: + + return "🤷‍♂️ **Trace.moe: Sin coincidencias.**", None, False + + + + # Filtrar y tomar el mejor + + best = results[0] + + similarity = float(best.get('similarity', 0)) * 100 + + + + if similarity < 85.0: + + return "🤷‍♂️ **Trace.moe: Sin coincidencias sólidas (<85%).**", None, False + + + + # Obtener info extra de Anilist + + anilist_id = best.get('anilist', None) + + meta = {} + + if anilist_id: + + from utils import get_anilist_info # Ensure import if needed, or rely on global + + meta = get_anilist_info(anilist_id) or {} + + + + # --- PROCESAR DATOS DE ANILIST --- + + + + # 1. Títulos + + titles = meta.get('title', {}) + + title_romaji = titles.get('romaji', 'Desconocido') + + title_native = titles.get('native') + + + + # 2. Info + + episodes = meta.get('episodes', '?') + + duration = meta.get('duration', '?') + + fmt = meta.get('format', 'TV') + + + + desc_type = f"{episodes} ep. ({duration} min) {fmt} anime." + + + + start = meta.get('startDate', {}) + + end = meta.get('endDate', {}) + + s_date = f"{start.get('year', '?')}-{start.get('month', '?')}-{start.get('day', '?')}" + + e_date = f"{end.get('year', '?')}-{end.get('month', '?')}-{end.get('day', '?')}" + + aired = f"Airing from {s_date} to {e_date}." + + + + # 3. Alias + + aliases = meta.get('synonyms', []) + + alias_str = aliases[0] if aliases else "None" + + + + # 4. Géneros + + genres = meta.get('genres', []) + + genre_str = ", ".join(genres[:3]) if genres else "Unknown" + + + + # 5. Studios + + studios_node = meta.get('studios', {}).get('nodes', []) + + studios_str = "Unknown" + + if studios_node: + + studios_str = ", ".join([s['name'] for s in studios_node]) + + + + # 6. Clip Match + + match_episode = best.get('episode', '?') + + time_pos = best.get('from', 0) + + m, s = divmod(int(time_pos), 60) + + time_str = f"{m}:{s:02d}" + + + + # NSFW Check + + is_adult = meta.get('isAdult', False) + + video_preview = best.get('video', '') + + + + # --- CONSTRUIR EL MENSAJE FINAL (EXACTO) --- + + msg = f""" + +📁 Trace moe resultados + +📁 Similitud: {similarity:.2f}% + + + +📁 Title: `{title_romaji}` + +📁 `{title_native if title_native else ''}` + +📁 Info: {desc_type} + +{aired} + +📁 Alias: `{alias_str}` + +📁 Genre: {genre_str} + +📁 Studio: {studios_str} + +📁 Clip Match: Episode: {match_episode} (Time: {time_str}) + +""" + + + + return msg, video_preview, is_adult + + + + + +def get_random_pack_image(category="general"): + + """ + + Selecciona una imagen aleatoria de la carpeta 'pack'. + + category: 'tetas', 'culos', 'cuerpo', 'general'. + + """ + + import random + + import glob + + + + base_dir = "pack" + + if not os.path.exists(base_dir): + + try: + + os.makedirs(base_dir) + + os.makedirs(os.path.join(base_dir, "tetas")) + + os.makedirs(os.path.join(base_dir, "culos")) + + os.makedirs(os.path.join(base_dir, "cuerpo")) + + except: pass + + return None + + + + target_dir = base_dir + + if category and category != "general": + + target_dir = os.path.join(base_dir, category) + + + + files = [] + + + + if category == "general": + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.jpg"), recursive=True)) + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.png"), recursive=True)) + + files.extend(glob.glob(os.path.join(base_dir, "**", "*.webp"), recursive=True)) + + else: + + files.extend(glob.glob(os.path.join(target_dir, "*.jpg"))) + + files.extend(glob.glob(os.path.join(target_dir, "*.png"))) + + files.extend(glob.glob(os.path.join(target_dir, "*.webp"))) + + + + if not files: return None + + + + return random.choice(files) + + + + + + +# --- WAIFU2X INTEGRATION --- +# --- WAIFU2X INTEGRATION --- +WAIFU2X_PATH_WIN = r"bin\waifu2x\waifu2x-ncnn-vulkan.exe" +WAIFU2X_PATH_LINUX = "bin/waifu2x/waifu2x-ncnn-vulkan" # Estructura mirror en Linux + +def waifu2x_upscale(input_path, scale=2, noise=2): + """ + Ejecuta Waifu2x-ncnn-vulkan para mejorar una imagen. + Soporta Windows (binario local) y Linux (PATH o bin local). + """ + import subprocess + import os + import platform + import shutil + + # 1. Determinar el binario según SO + system = platform.system() + waifu2x_bin = None + + if system == "Windows": + if os.path.exists(WAIFU2X_PATH_WIN): + waifu2x_bin = WAIFU2X_PATH_WIN + else: + # Linux: Prioridad 1 -> PATH global + if shutil.which("waifu2x-ncnn-vulkan"): + waifu2x_bin = "waifu2x-ncnn-vulkan" + + # Prioridad 2 -> Carpeta bin local (usuario lo subió ahí) + elif os.path.exists(WAIFU2X_PATH_LINUX): + waifu2x_bin = WAIFU2X_PATH_LINUX + # Dar permisos de ejecución si no tiene + try: os.chmod(waifu2x_bin, 0o755) + except: pass + + # Prioridad 3 -> Carpeta bin local pero con .exe (Si lo subió tal cual de windows) + elif os.path.exists(WAIFU2X_PATH_WIN.replace("\\", "/")): + waifu2x_bin = WAIFU2X_PATH_WIN.replace("\\", "/") + try: os.chmod(waifu2x_bin, 0o755) + except: pass + + if not waifu2x_bin: + print(f"⚠️ Waifu2x bin not found (System: {system}). Checked PATH and {WAIFU2X_PATH_LINUX}") + return None + + base, ext = os.path.splitext(input_path) + if not ext: ext = ".png" + + # Waifu2x output format + output_path = f"{base}_waifu2x{ext}" + + # Command Construction + cmd = [ + waifu2x_bin, + "-i", input_path, + "-o", output_path, + "-s", str(scale), + "-n", str(noise), + "-x" # TTA Mode + ] + + print(f"✨ [Waifu2x] Upscaling ({system}): {input_path} -> {output_path}") + + try: + # Run blocking + subprocess.run(cmd, check=True) + + if os.path.exists(output_path): + return output_path + else: + print("⚠️ Waifu2x did not produce output.") + return None + + except Exception as e: diff --git a/Twisted Brody Waifus & Creampie BRODY/utils_modes.py b/Twisted Brody Waifus & Creampie BRODY/utils_modes.py new file mode 100644 index 0000000000000000000000000000000000000000..1fef99e6a7eb7b826787d2c1f22b3ed42efab333 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/utils_modes.py @@ -0,0 +1,95 @@ +import asyncio +from database import get_config, user_config + +# --- EXCLUSIVE MODE HELPER --- +async def set_exclusive_mode(chat_id, mode_key, is_toggle=True): + """ + Activa un modo exclusivo, desactivando otros que puedan crear conflicto. + Lista de modos exclusivos: + - cut_init_mode + - cut_auto_mode (puede coexistir?) + - extract_mode + - party_mode (implícito en url_storage) + - tagger_mode + - research_mode + - collage_mode (legacy) + - video_mixer_mode + - gif_mode + - mp3_mode + - sticker_mode + - saucenao_mode + """ + conf = get_config(chat_id) + current = conf.get(mode_key, False) + target_val = not current if is_toggle else True + + print(f"DEBUG EXCLUSIVE: CID={chat_id} Key={mode_key} Current={current} Target={target_val}") + + # Ensure Conf exists in Global Dict (Consistency) + if chat_id not in user_config: + user_config[chat_id] = conf + + # Si estamos apagando, solo apagamos y guardamos + if not target_val: + conf[mode_key] = False + user_config[chat_id][mode_key] = False # Force Global Update + print(f"DEBUG EXCLUSIVE: Forced OFF. New Val in Dict: {user_config[chat_id].get(mode_key)}") + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + return False, None + + # Si estamos encendiendo, apagamos conflictos + conflict_modes = [ + 'cut_init_mode', 'extract_mode', 'gif_mode', 'mp3_mode', 'sticker_mode', + 'saucenao_mode', 'tagger_mode', 'research_mode', 'collage_mode', 'video_mixer_mode', + 'tiktok_fast_mode', 'parallel_thumb_mode', 'fusion_mode', + 'smart_cut_mode', 'sub_mode', 'waifux2_mode', 'convert_qh_mode', + 'convert_h264_mode', 'resize_mode', 'custom_thumb_mode', + 'translate_manga_mode', 'viral_mode', 'party_mode', 'cut_auto_mode', 'smart_cut_auto_mode' + ] + + # Mapping for Human Readable Names + MODE_NAMES = { + 'cut_init_mode': 'Corte Inteligente', + 'extract_mode': 'Extractor', + 'gif_mode': 'Modo GIF', + 'mp3_mode': 'Modo MP3', + 'sticker_mode': 'Modo Sticker', + 'saucenao_mode': 'SauceNAO', + 'tagger_mode': 'Tagger', + 'research_mode': 'Deep Research', + 'collage_mode': 'Collage', + 'video_mixer_mode': 'Video Mixer', + 'tiktok_fast_mode': 'Tiktok Fast', + 'parallel_thumb_mode': 'Miniatura Personalizada', + 'fusion_mode': 'Modo Fusión', + 'smart_cut_mode': 'Smart Cut', + 'sub_mode': 'Subtitulado AI', + 'waifux2_mode': 'Waifu2x', + 'convert_qh_mode': 'Convertidor QH', + 'convert_h264_mode': 'Convertidor H.264', + 'resize_mode': 'Dimensionador', + 'custom_thumb_mode': 'Miniatura Manual', + 'translate_manga_mode': 'Traductor Manga', + 'viral_mode': 'Shorts Virales', + 'party_mode': 'Modo Party', + 'cut_auto_mode': 'Auto Corte', + 'smart_cut_auto_mode': 'Smart Cut Auto' + } + + disabled_list = [] + for m in conflict_modes: + if m != mode_key and conf.get(m): + conf[m] = False + # Get readable name or fallback to key + name = MODE_NAMES.get(m, m) + disabled_list.append(name) + + conf[mode_key] = True + + from firebase_service import save_user_config_fb + asyncio.create_task(save_user_config_fb(chat_id, conf)) + + disabled_str = ", ".join(disabled_list) if disabled_list else None + return True, disabled_str diff --git a/Twisted Brody Waifus & Creampie BRODY/verify_eporner_fix.py b/Twisted Brody Waifus & Creampie BRODY/verify_eporner_fix.py new file mode 100644 index 0000000000000000000000000000000000000000..f6dfeca19487448e8d78fcca0b26e4b1d59d5f44 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/verify_eporner_fix.py @@ -0,0 +1,38 @@ +import re +import time + +def verify_logic(l_u): + print(f"Testing URL: {l_u}") + is_direct = any(x in l_u for x in ['mediafire.com', 'yourupload.com', 'mp4upload.com', 'rule34video.com/get_file/']) + + # Eporner Direct Check + eporner_id = None + if "eporner.com" in l_u and "/dload/" in l_u: + is_direct = True + try: + # URL format: .../dload/VIDEO_ID/... + parts = l_u.split('/dload/') + if len(parts) > 1: + eporner_id = parts[1].split('/')[0] + except: pass + + if not is_direct and re.search(r'\.(mp4|mkv|webm|avi|mov)(/|\?|$)', l_u, re.I): is_direct = True + + if is_direct: + # Use Eporner ID if available, otherwise fallback to timestamp + final_id = f"eporner_{eporner_id}" if eporner_id else f"direct_{int(time.time())}" + print(f"Final ID: {final_id}") + return final_id + else: + print("Not detected as direct.") + return None + +# Test Case +url = "https://www.eporner.com/dload/2pBe2ZZDqtG/720/15686822-720p.mp4" +extracted_id = verify_logic(url) + +expected = "eporner_2pBe2ZZDqtG" +if extracted_id == expected: + print("✅ SUCCESS: ID extracted correctly.") +else: + print(f"❌ FAILURE: Expected {expected}, got {extracted_id}") diff --git a/Twisted Brody Waifus & Creampie BRODY/verify_manga.py b/Twisted Brody Waifus & Creampie BRODY/verify_manga.py new file mode 100644 index 0000000000000000000000000000000000000000..bb0312dcb9cc0be737136da9401ad9a0484aae52 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/verify_manga.py @@ -0,0 +1,118 @@ +import asyncio +from unittest.mock import AsyncMock, MagicMock +from manga_service import handle_comic_request +import json +import os + +async def test_manga_flow(): + print("🚀 Starting Manga Flow Verification...") + + # Mock Client and Message + mock_client = AsyncMock() + mock_msg = MagicMock() + mock_msg.chat.id = 123456789 + + # Mock status message for editing + mock_status_msg = AsyncMock() + mock_client.send_message.return_value = mock_status_msg + + # 1. Test ZIP Download (Action: download_comic) + # Using a known safe gallery-dl supported URL (or generic if possible) + # Since I don't want to actually download huge files, I will mock descargar_galeria if possible, + # BUT I actually want to test the library integration. + # I'll use a specific small gallery or just rely on the fallback logic if URL fails? + # Let's try to mock the 'descargar_galeria' in mang_service to return local dummy files. + + print("\n--- TEST 1: ZIP Generation ---") + + # Create dummy images + os.makedirs("test_images", exist_ok=True) + os.makedirs("test_images_tmp_dir", exist_ok=True) + img_paths = [] + import PIL.Image + + for i in range(3): + path = f"test_images/img_{i}.jpg" + img = PIL.Image.new('RGB', (100, 100), color = (73, 109, 137)) + img.save(path) + img_paths.append(os.path.abspath(path)) + + # Monkeypatch utils.descargar_galeria inside manga_service? + # Hard to patch inside imported module dynamically without reload. + # I'll just mock the result of the executor call if I can, or better: + # I'll just temporarily swap the function in the module. + + import manga_service + # import utils # No longer needed for patching if we patch the destination + + # Mocking descargar_galeria locally in manga_service + original_downloader = manga_service.descargar_galeria + # Use side_effect to ensure it returns the tuple when called + manga_service.descargar_galeria = MagicMock(side_effect=lambda u: (img_paths, "test_images_tmp_dir")) + + # Mock shutil.rmtree to prevent deletion of temp files during verification + original_rmtree = manga_service.shutil.rmtree + manga_service.shutil.rmtree = MagicMock() + + print(f"DEBUG: Dummy images: {img_paths}") + + # Payload + payload = json.dumps({ + "action": "download_comic", + "manga_id": "test_id", + "manga_title": "Test Manga ZIP", + "url": "https://example.com/gallery" + }) + + await handle_comic_request(mock_client, mock_msg, payload) + + # Verify calls + mock_client.send_message.assert_called() + print("✅ Initial status sent.") + mock_client.send_document.assert_called() + args = mock_client.send_document.call_args + print(f"✅ send_document called with: {args}") + + uploaded_file = args[1]['document'] + if uploaded_file.endswith(".zip") and os.path.exists(uploaded_file): + print(f"✅ ZIP file created at: {uploaded_file}") + else: + print("❌ ZIP file creation failed or not found.") + + # 2. Test PDF Download + print("\n--- TEST 2: PDF Generation ---") + os.makedirs("test_images_tmp_dir", exist_ok=True) # Recreate dir as it was deleted by previous run + payload_pdf = json.dumps({ + "action": "download_comic_pdf", + "manga_id": "test_id_pdf", + "manga_title": "Test Manga PDF", + "url": "https://example.com/gallery" + }) + + # Reset mock + mock_client.reset_mock() + mock_client.send_message.return_value = mock_status_msg + + await handle_comic_request(mock_client, mock_msg, payload_pdf) + + mock_client.send_document.assert_called() + args_pdf = mock_client.send_document.call_args + uploaded_pdf = args_pdf[1]['document'] + + if uploaded_pdf.endswith(".pdf") and os.path.exists(uploaded_pdf): + print(f"✅ PDF file created at: {uploaded_pdf}") + else: + print("❌ PDF file creation failed.") + + # Cleanup + manga_service.descargar_galeria = original_downloader + manga_service.shutil.rmtree = original_rmtree + import shutil + shutil.rmtree("test_images") + if os.path.exists("test_images_tmp_dir"): + shutil.rmtree("test_images_tmp_dir") + + print("\n✅ Verification Complete.") + +if __name__ == "__main__": + asyncio.run(test_manga_flow()) diff --git a/Twisted Brody Waifus & Creampie BRODY/verify_surrit.py b/Twisted Brody Waifus & Creampie BRODY/verify_surrit.py new file mode 100644 index 0000000000000000000000000000000000000000..01abfb62a4c39433384577849f8c09e9a2676d4b --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/verify_surrit.py @@ -0,0 +1,21 @@ +import yt_dlp +import json + +urls = [ + "https://surrit.com/ed92d56f-9e55-4fdc-94b5-fcec4a0fb4d9/1080p/video.m3u8", + "https://surrit.com/ed92d56f-9e55-4fdc-94b5-fcec4a0fb4d9/720p/video.m3u8" +] + +ydl_opts = {'quiet': True, 'nocheckcertificate': True} + +print("Running YT-DLP Check...") +for u in urls: + try: + with yt_dlp.YoutubeDL(ydl_opts) as ydl: + info = ydl.extract_info(u, download=False) + print(f"\n--- URL: {u} ---") + print(f"ID: {info.get('id')}") + print(f"Webpage URL: {info.get('webpage_url')}") + print(f"Original URL: {info.get('original_url')}") + except Exception as e: + print(f"Error {u}: {e}") diff --git a/Twisted Brody Waifus & Creampie BRODY/video_mixer.py b/Twisted Brody Waifus & Creampie BRODY/video_mixer.py new file mode 100644 index 0000000000000000000000000000000000000000..b0d41718a9e1756029241b053e76b31524437d81 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/video_mixer.py @@ -0,0 +1,313 @@ +import asyncio +import os +import subprocess +import time +from config import HAS_FFMPEG + +async def mix_videos_side_by_side(video1_path, video2_path, audio_mode='mix'): + """ + Mezcla dos videos (o imagenes) lado a lado (Side-by-Side). + audio_mode: 'v1', 'v2', 'mix', 'none' + """ + if not HAS_FFMPEG: + return None + + output_path = f"downloads/mixed_{int(time.time())}.mp4" + + try: + # 1. Analizar Inputs para ver si son Imagenes + def is_image(path): + ext = os.path.splitext(path)[1].lower() + return ext in ['.jpg', '.jpeg', '.png', '.webp', '.bmp'] + + img1 = is_image(video1_path) + img2 = is_image(video2_path) + + # Build Inputs + cmd = ["ffmpeg", "-y"] + + # Input Duration Logic + t_duration = "60" + if img1 and img2: t_duration = "10" # Default for Img+Img + + # Input 1 + if img1: cmd.extend(["-loop", "1", "-framerate", "30", "-t", t_duration]) # Limit infinite loop just in case, but -shortest controls it + cmd.extend(["-i", video1_path]) + + # Input 2 + if img2: cmd.extend(["-loop", "1", "-framerate", "30", "-t", t_duration]) + cmd.extend(["-i", video2_path]) + + # Si ambos son IMAGENES, ya no retornamos None. + if img1 and img2: + pass # Valid config now + + # 2. Filter Complex + target_h = 720 + + # [0:v]scale=-2:720[left];[1:v]scale=-2:720[right];[left][right]hstack[v] + filter_complex = f"[0:v]scale=-2:{target_h}[left];[1:v]scale=-2:{target_h}[right];[left][right]hstack=inputs=2[v]" + + if img1 and img2: + # Change output to JPG + output_path = output_path.replace(".mp4", ".jpg") + # Clear previous input args that might have been added (not easy with extend, so let's adjust logic above or overwrite) + + # RE-BUILD Command for Image-Only Mode (Cleaner than patching) + cmd = ["ffmpeg", "-y", "-i", video1_path, "-i", video2_path] + + # Simple Filter + # ADDED: -map "[v]" because filter_complex ends with [v] label. + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-vframes", "1", "-q:v", "2", output_path]) + + print(f"🎬 Image Collage Cmd: {' '.join(cmd)}") + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) + _, stderr = await process.communicate() + + if process.returncode != 0: + print(f"❌ Mixer Image Error: {stderr.decode('utf-8', errors='ignore')}") + return None + return output_path + + # AUDIO LOGIC (Only for Video Output) + + # Handle cases where one is image (no audio stream) + # If img1, stream 0 has no audio. + + final_audio_fc = "" + has_audio_out = False + + if audio_mode == 'v1': + if not img1: + cmd.extend(["-filter_complex", filter_complex]) + cmd.extend(["-map", "[v]", "-map", "0:a?"]) + has_audio_out = True + else: + # Video 1 is image, so silence or nothing? Silent audio track. + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + elif audio_mode == 'v2': + if not img2: + cmd.extend(["-filter_complex", filter_complex]) + cmd.extend(["-map", "[v]", "-map", "1:a?"]) + has_audio_out = True + else: + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + elif audio_mode == 'mix': + if not img1 and not img2: + # Both videos -> Mix + fc_audio = f"{filter_complex};[0:a][1:a]amix=inputs=2:duration=longest[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + elif not img1 and img2: + # V1 Audio only (V2 is image) + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "0:a?"]) + has_audio_out = True + elif img1 and not img2: + # V2 Audio only + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "1:a?"]) + has_audio_out = True + else: + # Both images (Image+Image) -> Generate Silence (Mix Mode fallback) + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + else: # none + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + # Codecs Standard + cmd.extend([ + "-c:v", "libx264", "-preset", "fast", "-crf", "23", + "-pix_fmt", "yuv420p" + ]) + + if has_audio_out: + cmd.extend(["-c:a", "aac", "-b:a", "192k"]) + + # Shortest is KEY for loop inputs (cuts to the length of the video input) + cmd.extend(["-shortest", output_path]) + + # Ejecutar + print(f"🎬 Video Mixer Cmd: {' '.join(cmd)}") + process = await asyncio.create_subprocess_exec( + *cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE + ) + _, stderr = await process.communicate() + + if process.returncode != 0: + print(f"❌ Mixer Error: {stderr.decode('utf-8', errors='ignore')}") + return None + + if os.path.exists(output_path): + return output_path + + except Exception as e: + print(f"❌ Video Config Error: {e}") + + + +async def mix_videos_paper(video1_path, video2_path, text, audio_mode='mix'): + """ + Creates a 'Paper Mode' meme video: + - Side-by-side videos. + - White background with padding. + - Yellow header box. + - Centered black text in the header. + """ + if not HAS_FFMPEG: return None + output_path = f"downloads/paper_{int(time.time())}.mp4" + + try: + # Check Images + def is_image(path): + ext = os.path.splitext(path)[1].lower() + return ext in ['.jpg', '.jpeg', '.png', '.webp', '.bmp'] + + img1 = is_image(video1_path) + img2 = is_image(video2_path) + + # Build Inputs + cmd = ["ffmpeg", "-y"] + # Input Duration Logic + t_duration = "60" + if img1 and img2: t_duration = "10" + + if img1: cmd.extend(["-loop", "1", "-framerate", "30", "-t", t_duration]) + cmd.extend(["-i", video1_path]) + + if img2: cmd.extend(["-loop", "1", "-framerate", "30", "-t", t_duration]) + cmd.extend(["-i", video2_path]) + + if img1 and img2: pass + + # Layout Config + target_h = 720 + pad_top = 150 # Space for text + pad_border = 20 + + # Helper: Wrap Text + import textwrap + def wrap_text(text, width=20): + return textwrap.fill(text, width=width) + + wrapped_text = wrap_text(text, width=25) # Adjust width as needed (approx chars per line) + + # Escape Text for FFmpeg drawtext + # Escapes: \ -> \\, : -> \:, ' -> \', " -> \" + # Newlines need to be escaped for drawtext if passed directly, or usually just work if passed as a string. + # However, for drawtext, newlines are usually respected if escaped properly or using box mode (but we use simple drawtext). + # We need to escape special chars FIRST, then handle newlines if needed or rely on textwrap. + # Actually, drawtext handles \n. + + safe_text = wrapped_text.replace('\\', '\\\\').replace(':', '\\:').replace("'", "").replace('"', '') + + # FFMPEG FILTER COMPLEX EXPLANATION + # ... (omitted comments) + + font_name = "arialbd.ttf" if os.name == 'nt' else "DejaVuSans-Bold.ttf" + font_cmd = f"fontfile='C\:\\Windows\\Fonts\\{font_name}'" if os.name == 'nt' else "" + + filter_complex = ( + f"[0:v]scale=-2:{target_h}[left];[1:v]scale=-2:{target_h}[right];" + f"[left][right]hstack=inputs=2[stacked];" + f"[stacked]pad=iw+40:ih+{pad_top}+20:20:{pad_top}:white[padded];" + f"[padded]drawtext=text='{safe_text}':fontcolor=black:bordercolor=yellow:borderw=3:fontsize=54:x=(w-text_w)/2:y=({pad_top}-text_h)/2:{font_cmd}[v]" + ) + + if img1 and img2: + output_path = output_path.replace(".mp4", ".jpg") + + # Re-build for Image Input + # We need the complex filter with drawtext still + + # Inputs + cmd = ["ffmpeg", "-y", "-i", video1_path, "-i", video2_path] + + # Filter is constructed above in 'filter_complex' variable, we can reuse it? + # Yes, filter_complex string assumes [0:v] and [1:v] which is valid. + # Only the [v] map output is needed. + + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-vframes", "1", "-q:v", "2", output_path]) + + print(f"🎬 Paper Image Cmd: {' '.join(cmd)}") + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) + _, stderr = await process.communicate() + + if os.path.exists(output_path): return output_path + else: return None + + # Audio Logic + has_audio_out = False + + if audio_mode == 'v1': + if not img1: + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "0:a?"]) + has_audio_out = True + else: + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + elif audio_mode == 'v2': + if not img2: + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "1:a?"]) + has_audio_out = True + else: + fc_audio = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_audio, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + elif audio_mode == 'mix': + if not img1 and not img2: + fc_full = f"{filter_complex};[0:a][1:a]amix=inputs=2:duration=longest[a]" + cmd.extend(["-filter_complex", fc_full, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + elif not img1 and img2: + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "0:a?"]) + has_audio_out = True + elif img1 and not img2: + cmd.extend(["-filter_complex", filter_complex, "-map", "[v]", "-map", "1:a?"]) + has_audio_out = True + else: + # Both images for Paper Mode + fc_full = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_full, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + else: # none + fc_full = f"{filter_complex};anullsrc=channel_layout=stereo:sample_rate=44100[a]" + cmd.extend(["-filter_complex", fc_full, "-map", "[v]", "-map", "[a]"]) + has_audio_out = True + + cmd.extend([ + "-c:v", "libx264", "-preset", "fast", "-crf", "23", + "-pix_fmt", "yuv420p" + ]) + + if has_audio_out: + cmd.extend(["-c:a", "aac", "-b:a", "192k"]) + + cmd.extend(["-shortest", output_path]) + + print(f"🎬 Paper Mixer Cmd: {' '.join(cmd)}") + process = await asyncio.create_subprocess_exec(*cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) + _, stderr = await process.communicate() + + if os.path.exists(output_path) and os.path.getsize(output_path) > 1000: + return output_path + else: + print(f"❌ Paper Error: {stderr.decode('utf-8', errors='ignore')}") + return None + + except Exception as e: + print(f"❌ Paper Exception: {e}") + return None + diff --git a/Twisted Brody Waifus & Creampie BRODY/yandex_lens.py b/Twisted Brody Waifus & Creampie BRODY/yandex_lens.py new file mode 100644 index 0000000000000000000000000000000000000000..f9a653a7b186cda100799903e90b7fc028ed9905 --- /dev/null +++ b/Twisted Brody Waifus & Creampie BRODY/yandex_lens.py @@ -0,0 +1,106 @@ + +import asyncio +from playwright.async_api import async_playwright +import os + +async def yandex_lens_screenshot(image_path: str, output_path: str) -> bool: + """ + Uploads an image to Yandex Images and captures a screenshot of the results. + Uses Headful mode to bypass basic anti-bot interactions. + """ + print(f"🕵️‍♂️ [YandexLens] Starting logic for {image_path}") + if not os.path.exists(image_path): + print("❌ Image file not found.") + return False + + async with async_playwright() as p: + try: + # STEALTH ARGS (Same as Google) + args = [ + '--no-sandbox', + '--disable-setuid-sandbox', + '--disable-blink-features=AutomationControlled', + '--disable-infobars', + '--window-size=1920,1080', + '--start-maximized' + ] + + # HEADFUL (Visible) to reduce Ban Risk + print("🕵️‍♂️ [Yandex] Launching Browser...") + browser = await p.chromium.launch(headless=False, args=args) + + context = await browser.new_context( + viewport={'width': 1920, 'height': 1080}, + locale='en-US' # Yandex.com is English + ) + + page = await context.new_page() + + # 1. Go to Yandex Images + await page.goto("https://yandex.com/images/", timeout=20000) + await asyncio.sleep(1) + + # 2. Click Camera Icon (Search by image) + # Yandex: usually has a class like 'cbir-icon' or 'icon_type_cbir' or button with name="cbir" + print("🕵️‍♂️ [Yandex] Clicking Camera...") + try: + # Specify exact selectors seen in Yandex + # '.cbir-icon' is common. Also 'button[aria-label="Search by image"]' + await page.click('.cbir-icon, button[aria-label="Image search"]', timeout=5000) + except: + print("⚠️ [Yandex] Camera icon not found via simple selector. Trying robust search...") + # Fallback + await page.click('div.input__cbir-button button') + + await asyncio.sleep(0.5) + + # 3. Upload File + print("🕵️‍♂️ [Yandex] Uploading image...") + input_selector = 'input[type="file"]' + + # Yandex input is usually explicitly named 'upfile' + try: + await page.wait_for_selector(input_selector, state='attached', timeout=5000) + await page.set_input_files(input_selector, image_path) + except Exception as e: + print(f"❌ [Yandex] Input not found: {e}") + await browser.close() + return False + + # 4. Wait for Results + print("🕵️‍♂️ [Yandex] Waiting for results (up to 40s)...") + + # Yandex can be slow. Wait for either URL change or a result element. + # .CbirItem is a common class for results in Yandex Images + # .cbir-section is the main container + try: + # Wait for URL or Element + await page.wait_for_url("**/search?**", timeout=40000) + await page.wait_for_selector('.cbir-section, .CbirItem, .cbir-panel', timeout=40000) + except Exception as e: + print(f"⚠️ [Yandex] Wait timeout, but checking content... {e}") + + await asyncio.sleep(2) # Stabilize + + # Check for Captcha (SmartCaptcha) + content = await page.content() + if "captcha" in content.lower() or "smartcaptcha" in content.lower(): + print("❌ [Yandex] Captcha Detected!") + await page.screenshot(path=output_path) + await browser.close() + return True # Return captcha shot + + # 5. Screenshot + # Maybe remove search bar to see more results? + # Yandex layout is pretty good by default. + await page.screenshot(path=output_path, full_page=False) + + print(f"✅ [Yandex] Screenshot saved to {output_path}") + await browser.close() + return True + + except Exception as e: + print(f"❌ [Yandex] Playwright Error: {e}") + try: await browser.close() + except: pass + return False diff --git a/src/App.tsx b/src/App.tsx index cf39f18d3abb1dd2a929cb4ca6ea372ffb5ec9af..f96d3decb77523acf1364148eef06ddadbb3ec7a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ -import { Plus, Settings, Layers, User, Copy } from 'lucide-react'; +import { Plus, Settings, Layers, User, Copy, Edit3 } from 'lucide-react'; import { useState, useEffect, useMemo } from 'react'; import { HDComicViewer } from './components/HDComicViewer'; import { NewMangaModal } from './components/NewMangaModal'; @@ -12,6 +12,7 @@ import { BulkCategoryModal } from './components/BulkCategoryModal'; import { BulkRemoveCategoryModal } from './components/BulkRemoveCategoryModal'; import { CategoryFilterModal } from './components/CategoryFilterModal'; import { TitleManagerModal } from './components/TitleManagerModal'; +import { BulkEditTitleModal } from './components/BulkEditTitleModal'; import { Category } from './types/manga'; import { SearchBar } from './components/SearchBar'; @@ -37,8 +38,10 @@ function App() { const [selectedMangaIds, setSelectedMangaIds] = useState([]); const [showBulkModal, setShowBulkModal] = useState(false); const [showBulkRemoveModal, setShowBulkRemoveModal] = useState(false); + const [showBulkEditTitleModal, setShowBulkEditTitleModal] = useState(false); const [showTitleManagerModal, setShowTitleManagerModal] = useState(false); const [isCategoryMinusEnabled, setIsCategoryMinusEnabled] = useState(false); + const [isEditTitlePlusEnabled, setIsEditTitlePlusEnabled] = useState(false); const [selectedComicId, setSelectedComicId] = useState(null); const [navigationHistory, setNavigationHistory] = useState([]); const [selectedChapter, setSelectedChapter] = useState<{ manga: Manga; chapter: Chapter } | null>(null); @@ -126,10 +129,10 @@ function App() { }, []); useEffect(() => { - if (!isCategoryPlusEnabled && !isCopyIdsEnabled && !isDeletePlusEnabled && !isCategoryMinusEnabled) { + if (!isCategoryPlusEnabled && !isCopyIdsEnabled && !isDeletePlusEnabled && !isCategoryMinusEnabled && !isEditTitlePlusEnabled) { setSelectedMangaIds([]); } - }, [isCategoryPlusEnabled, isCopyIdsEnabled, isDeletePlusEnabled, isCategoryMinusEnabled]); + }, [isCategoryPlusEnabled, isCopyIdsEnabled, isDeletePlusEnabled, isCategoryMinusEnabled, isEditTitlePlusEnabled]); async function loadMangas() { try { @@ -247,7 +250,7 @@ function App() { }; const handleSelectComic = (mangaId: string) => { - if (isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled) { + if (isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled || isEditTitlePlusEnabled) { toggleSelectManga(mangaId); return; } @@ -388,11 +391,11 @@ function App() {
- {(isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled) && ( + {(isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled || isEditTitlePlusEnabled) && (
- {isCopyIdsEnabled ? 'Modo Copiar Activo' : isDeletePlusEnabled ? 'Modo Eliminar Activo' : isCategoryMinusEnabled ? 'Modo Minus Activo' : 'Modo Plus Activo'} + {isEditTitlePlusEnabled ? 'Modo Nombres Activo' : isCopyIdsEnabled ? 'Modo Copiar Activo' : isDeletePlusEnabled ? 'Modo Eliminar Activo' : isCategoryMinusEnabled ? 'Modo Minus Activo' : 'Modo Plus Activo'} {selectedMangaIds.length} @@ -499,7 +502,7 @@ function App() { onSelectComic={handleSelectComic} onEditManga={isAdmin ? handleEditManga : undefined} onDeleteManga={isAdmin ? handleDeleteManga : undefined} - isCategoryPlusEnabled={isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled} + isCategoryPlusEnabled={isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled || isEditTitlePlusEnabled} selectedMangaIds={selectedMangaIds} onToggleSelectManga={toggleSelectManga} /> @@ -509,7 +512,7 @@ function App() { {/* Bulk Action Bar */} - {(isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled) && selectedMangaIds.length > 0 && ( + {(isCategoryPlusEnabled || isCopyIdsEnabled || isDeletePlusEnabled || isCategoryMinusEnabled || isEditTitlePlusEnabled) && selectedMangaIds.length > 0 && (
@@ -540,6 +543,15 @@ function App() { Remover Categorías )} + {isEditTitlePlusEnabled && ( + + )} {isCopyIdsEnabled && ( +
+ +
+
+ + setSearchTerm(e.target.value)} + placeholder="Filtrar manga por título..." + className="w-full bg-[#1a1a1a] border border-gray-700 rounded-xl pl-10 pr-4 py-3 text-sm text-white focus:outline-none focus:border-pink-500 transition-colors" + /> +
+
+ +
+ {sortedAndFilteredMangas.map((manga) => { + const originalSrc = manga.cover_url || manga.thumbnail_url; + const optimizedSrc = originalSrc ? getThumbnailUrl(originalSrc) : undefined; + return ( +
+ {optimizedSrc ? ( + + ) : ( +
+ Sin img +
+ )} +
+ handleTitleChange(manga.id, e.target.value)} + className={`w-full bg-transparent border-b pl-2 py-1 text-sm focus:outline-none transition-colors ${ + edits[manga.id] !== undefined && edits[manga.id].trim() !== manga.title + ? 'border-pink-500 text-pink-300' + : 'border-transparent hover:border-gray-700 text-white focus:border-gray-600' + }`} + placeholder="Título del manga" + /> +
+
+ ); + })} + {sortedAndFilteredMangas.length === 0 && ( +
+ No se encontraron mangas con ese nombre en la selección +
+ )} +
+ +
+ + {Object.keys(edits).filter(id => edits[id].trim() !== mangas.find(m => m.id === id)?.title).length} cambios pendientes + +
+ + +
+
+
+
+ ); +} diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx index ab4edf4ed25070916262f04e4a7c78ad6a5c1a4d..481d6692c8a2498ce66ff00b1a84113ca54d29bf 100644 --- a/src/components/SettingsModal.tsx +++ b/src/components/SettingsModal.tsx @@ -17,6 +17,8 @@ interface SettingsModalProps { onDeletePlusChange: (enabled: boolean) => void; isCategoryMinusEnabled: boolean; onCategoryMinusChange: (enabled: boolean) => void; + isEditTitlePlusEnabled: boolean; + onEditTitlePlusChange: (enabled: boolean) => void; onOpenTitleManager: () => void; } @@ -31,6 +33,8 @@ export function SettingsModal({ onDeletePlusChange, isCategoryMinusEnabled, onCategoryMinusChange, + isEditTitlePlusEnabled, + onEditTitlePlusChange, onOpenTitleManager }: SettingsModalProps) { // Announcement State @@ -152,6 +156,30 @@ export function SettingsModal({
+ {/* Edit Title Plus Toggle */} +
+
+
+
+ +
+
+

Nombres Plus

+

Habilitar selección masiva para editar títulos

+
+
+ +
+
+ {/* Copy IDs Plus Toggle */}