Expediente 03 · 0 / 8 pasos
Ver Bóveda Completa ↗
EXPEDIENTE 03 · GRATIS
La Agencia Sin Humanos · Capítulo 03

6 Videos con IA + Remotion

Tu estudio de cine adentro de Claude.

Cómo armamos anuncios y Reels hiperrealistas de punta a punta por centavos: 6 formatos reales, fotos base en 6 capas, ApiMart, corte al milisegundo con faster-whisper y edición automática por código en Remotion.

El Zorro Director de Cine
Nota personal de Jonathan (@jonathanvarela74) antes de arrancar

¡Qué bueno tenerte acá adentro, de verdad! 🙌

Antes de que veas los bloques técnicos de abajo y pienses «uy, yo no sé programar en Python ni en Remotion», respira tranquilo: yo tampoco escribo ese código a mano.

La gracia de esta serie es que tu propio Claude trabaja como tu ingeniero y editor de video. En las hojas de abajo te abro la cocina entera para que veas exactamente cómo hicimos el Reel que acabas de ver en Instagram, y en la Hoja 08 te dejé el archivo CLAUDE.md completo para que solo lo copies, lo pegues en una carpeta vacía y tu Claude arme toda la máquina contigo.

Y un favor: cuando mires qué formato te sirve más, vuelve al DM de Instagram donde te mandé este botón y cuéntame si ya estás vendiendo un producto digital o estás armando el primero. Te leo yo mismo.

Hoja 01 · Los 3 Frenos

Los 3 frenos obligatorios antes de gastar un solo dólar

El 90 % de la gente quema saldo o saca caras de plástico porque se salta una de estas tres reglas medidas en producción real:

Freno 01 · Cuadro 0 en 9:16

Foto cruda recortada a 9:16 y sin grano

El realismo nace en la foto base (6 capas). Mírala al 100 %, recórtala exacto a 1080×1920 (9:16) y jamás le pongas grano artificial antes de animar: el modelo de video convierte el grano en arrugas raras.

Freno 02 · Regla de 1 línea

¿Habla? Omni · ¿No habla? Grok

Tu llave va solo en .env (en .gitignore). Paga Omni 1080p (~US$ 0,19–0,35) únicamente cuando una cara habla a cámara; para planos de manos o apoyo sin hablar usa Grok (~US$ 0,11).

Freno 03 · Oración y Voz

≤ 16 palabras + misma línea [VOICE]

Mete una sola oración corta por clip (≤ 8 palabras en 4 s, ≤ 16 en 8 s, sin puntos intermedios) y pega idéntica la línea [VOICE] en todos los clips del mismo personaje.

Con estos tres candados puestos, producir un Reel entero de 12 tomas te cuesta alrededor de 3 a 4 dólares en total, sin pagar suscripciones mensuales de 100 o 200 dólares.

Hoja 02 · Guion en Tomas

Nunca pidas un monólogo de 60 segundos: pártelo en tomas de 4 a 8 s

Un Reel dinámico de 65 segundos en realidad son 10 a 13 clips cortos cosidos al milisegundo sobre la voz. Al cambiar de formato cada 4 a 6 segundos la retención sube y cada clip sale limpio:

clips.json · Estructura del plan de tomas
{
  "proyecto": "mi-reel-producto-digital",
  "fps": 30,
  "clips": [
    {
      "id": "C01",
      "formato": "ugc_guia",
      "foto_base": "fotos/01-creador.png",
      "modelo": "gemini-omni-1.1-flash-ext",
      "duracion": 6,
      "voz_guion": "Nadie compra un PDF suelto cuando puedes mostrar tu sistema funcionando en vivo."
    },
    {
      "id": "C02",
      "formato": "pip_240px",
      "foto_base": "fotos/01-creador.png",
      "modelo": "gemini-omni-1.1-flash-ext",
      "duracion": 8,
      "voz_guion": "Aquí abajo en la esquina te acompaño mientras ves por dentro cada plantilla entregable."
    },
    {
      "id": "B03",
      "formato": "broll_grok",
      "foto_base": "fotos/02-manos-mesa.png",
      "modelo": "grok-imagine-1.5-video-ext",
      "duracion": 6,
      "voz_tts": "Y para las tomas de apoyo sin rostro, animas las manos por centavos."
    }
  ]
}
¡Copiado!
Hoja 03 · Conector ApiMart

Cómo tu Claude sube la foto 9:16, lanza los clips en 1080p y mide el gasto

Tu Claude corre este script leyendo APIMART_API_KEY desde tu archivo local .env. Sube la foto base de Cuadro 0, lanza la tarea, espera a que termine y anota cuánto costó al centavo:

conectar_apimart.py · Generador con control de saldo
# conectar_apimart.py — Requiere APIMART_API_KEY en tu archivo .env
import os, time, requests

BASE = "https://api.apimart.ai/v1"
KEY = os.environ["APIMART_API_KEY"]
HDR = {"Authorization": f"Bearer {KEY}"}

def saldo_usd():
    r = requests.get(f"{BASE}/user/balance", headers=HDR, timeout=20).json()
    d = r.get("data", r) if isinstance(r, dict) else {}
    return float(d.get("used_balance", 0)), float(d.get("remain_balance", -1))

def generar_clip(prompt_en, ruta_salida_mp4, imagen_png=None, modelo="gemini-omni-1.1-flash-ext", dur=8, res="1080p", tope_usd=1.0):
    usado_antes, resto = saldo_usd()
    if 0 <= resto < tope_usd:
        raise RuntimeError(f"Saldo disponible ({resto:.2f} USD) menor al tope ({tope_usd:.2f} USD)")
    body = {"model": modelo, "prompt": prompt_en, "duration": dur, "aspect_ratio": "9:16", "resolution": res}
    if imagen_png:
        with open(imagen_png, "rb") as f:
            up = requests.post(f"{BASE}/uploads/images", headers=HDR, files={"file": f}, timeout=90).json()
        u_data = up.get("data", up)
        ref_url = (u_data[0].get("url") if isinstance(u_data, list) else u_data.get("url")) or up.get("url")
        body["image_urls"] = [ref_url]
    tarea = requests.post(f"{BASE}/videos/generations", headers=HDR, json=body, timeout=60).json()
    t_data = tarea.get("data", tarea)
    item = t_data[0] if isinstance(t_data, list) else t_data
    tid = item.get("task_id") or item.get("id") or tarea.get("id")
    for _ in range(90):
        time.sleep(8)
        st = requests.get(f"{BASE}/tasks/{tid}", headers=HDR, timeout=30).json()
        d = st.get("data", st)
        if d.get("status") in ("succeeded", "completed"):
            vids = (d.get("result") or {}).get("videos") or d.get("videos") or []
            mp4_url = (vids[0]["url"][0] if vids and isinstance(vids[0].get("url"), list) else (vids[0].get("url") if vids else None)) or d.get("video_url") or d.get("url")
            bin_mp4 = requests.get(mp4_url, timeout=120).content
            open(ruta_salida_mp4, "wb").write(bin_mp4)
            usado_despues, _ = saldo_usd()
            print(f"✓ Guardado {ruta_salida_mp4} | Costo real: US$ {usado_despues - usado_antes:.4f}")
            return ruta_salida_mp4
        if d.get("status") in ("failed", "error"):
            raise RuntimeError(f"Tarea fallida: {d}")
    raise TimeoutError(f"Tiempo agotado esperando {tid}")
¡Copiado!
Hoja 04 · Whisper + Corte 30 fps

Quitar silencios muertos, clavar la ortografía y sincronizar labios

Los clips crudos de IA suelen traer 0,2 s de silencio al empezar o al cerrar, o escribir mal nombres propios si transcribes sin comparar contra tu guion. Antes de entrar a Remotion hacemos 3 cosas:

  1. Recorte limpio a 30 cuadros fijos por segundo (CFR): si un clip repite media sílaba adentro de una frase, cortamos ese medio segundo con FFmpeg aplicando un zoom suave 1.16× en la segunda mitad (parece un cambio de cámara real de estudio).
  2. Ritmo ágil (SPEED = 1.12): acelera un 12 % sin deformar la voz (atempo=1.12 + setpts=PTS/1.12).
  3. Alineación SequenceMatcher: toma los milisegundos reales de faster-whisper pero conserva letra por letra la ortografía limpia de tu guion.
preparar_tramos.py · faster-whisper + SequenceMatcher + CFR 30 fps
# preparar_tramos.py — Recorta a CFR 30 fps y exporta src/tiempos.json para Remotion
import difflib, json, pathlib, subprocess, unicodedata
from faster_whisper import WhisperModel

FPS = 30
SPEED = 1.12  # 1.00 = original; 1.12 = +12% más ágil manteniendo tono natural

def norm(s):
    s = unicodedata.normalize("NFD", s.lower())
    return "".join(c for c in s if unicodedata.category(c) != "Mn" and c.isalnum())

def alinear_guion(texto_guion, whisper_words, dur_clip):
    g_toks = texto_guion.strip().split()
    sm = difflib.SequenceMatcher(None, [norm(t) for t in g_toks], [norm(w["word"]) for w in whisper_words])
    out = [None] * len(g_toks)
    for tag, i1, i2, j1, j2 in sm.get_opcodes():
        if tag == "equal":
            for k in range(i2 - i1):
                ww = whisper_words[j1 + k]
                out[i1 + k] = {"t": g_toks[i1 + k], "ini": round(ww["start"], 3), "fin": round(ww["end"], 3)}
        elif tag in ("replace", "delete"):
            ta = whisper_words[j1]["start"] if j2 > j1 else (whisper_words[j1 - 1]["end"] if j1 > 0 else 0.0)
            tb = whisper_words[j2 - 1]["end"] if j2 > j1 else min(dur_clip, ta + 0.25 * (i2 - i1))
            step = max(0.06, (tb - ta) / max(1, i2 - i1))
            for k in range(i2 - i1):
                out[i1 + k] = {"t": g_toks[i1 + k], "ini": round(ta + k * step, 3), "fin": round(ta + (k + 1) * step, 3)}
    return out

def normalizar_clip(crudo_mp4, destino_mp4, destino_wav, t_in, raw_dur):
    frames = max(30, int(round((raw_dur / SPEED) * FPS)))
    dur_exacta = frames / FPS
    vf = f"setpts=PTS/{SPEED},fps={FPS},scale=1080:1920:flags=lanczos,tpad=stop_mode=clone:stop_duration=0.2,format=yuv420p"
    subprocess.run(["ffmpeg", "-y", "-v", "error", "-ss", f"{t_in:.3f}", "-t", f"{raw_dur:.3f}", "-i", str(crudo_mp4),
                    "-vf", vf, "-frames:v", str(frames), "-an", "-c:v", "libx264", "-crf", "15", str(destino_mp4)], check=True)
    af = f"atempo={SPEED},apad=pad_dur=0.2,atrim=0:{dur_exacta:.5f}"
    subprocess.run(["ffmpeg", "-y", "-v", "error", "-ss", f"{t_in:.3f}", "-t", f"{raw_dur:.3f}", "-i", str(crudo_mp4),
                    "-vn", "-af", af, "-ac", "2", "-ar", "48000", "-c:a", "pcm_s16le", str(destino_wav)], check=True)
    return frames, round(dur_exacta, 4)
¡Copiado!
Hoja 05 · Edición en Remotion

Montaje por código en Remotion centrado para las zonas seguras de Instagram

Con Remotion (React para video), tu Claude arma el recuadro de 240 px con resorte físico y pone los subtítulos karaoke exactamente en el eje central (left: 108px; right: 108px; bottom: 342px) para que nunca choquen con los íconos de Instagram ni se corten en el feed 4:5:

src/ReelMaestro.tsx · Componente base para Remotion
// Instalar en carpeta nueva: npx create-video@latest mi-motor-reels
import React from "react";
import { AbsoluteFill, Audio, OffthreadVideo, Sequence, interpolate, spring, staticFile, useCurrentFrame, useVideoConfig } from "remotion";
import tiempos from "./tiempos.json";

const KEYWORDS = new Set(["ia", "claude", "apimart", "formato", "podcast", "dualcast", "código", "remotion", "video"]);

export const ReelMaestro: React.FC = () => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  const segActual = frame / fps;

  return (
    <AbsoluteFill style={{ backgroundColor: "#06080f", fontFamily: "Inter, system-ui, sans-serif" }}>
      {tiempos.segmentos.map((seg) => {
        const fromFrame = Math.round(seg.inicio * fps);
        const durFrames = Math.max(1, Math.round(seg.duracion * fps));
        const localFrame = frame - fromFrame;

        // Formato 02 (pip_240px): abre grande 1.4 s y viaja con resorte a la esquina inferior
        const dock = seg.formato === "pip_240px"
          ? spring({ frame: localFrame - Math.round(1.4 * fps), fps, config: { damping: 16, stiffness: 120 } })
          : 0;
        const escala = interpolate(dock, [0, 1], [1, 0.235]);
        const posX = interpolate(dock, [0, 1], [0, -344]);
        const posY = interpolate(dock, [0, 1], [0, 162]);

        return (
          <Sequence key={seg.id} from={fromFrame} durationInFrames={durFrames}>
            {seg.formato === "pip_240px" && (
              <AbsoluteFill style={{ padding: "262px 56px 516px 56px", backgroundColor: "#080c17" }}>
                <div style={{ flex: 1, background: "#0e1526", border: "2px solid #283655", borderRadius: 26, padding: "24px 28px 24px 305px", color: "#fff" }}>
                  <div style={{ color: "#ffc83d", fontFamily: "monospace", fontWeight: 800, fontSize: 18 }}>VISTA INTERNA DE TU ENTREGABLE</div>
                  <h2 style={{ fontSize: 30, margin: "8px 0" }}>Tu comprador ve exactamente lo que recibe</h2>
                </div>
              </AbsoluteFill>
            )}
            {seg.video_asset && (
              <OffthreadVideo
                src={staticFile(seg.video_asset)}
                muted
                style={{
                  width: 1080,
                  height: 1920,
                  objectFit: "cover",
                  transform: `translate(${posX}px, ${posY}px) scale(${escala})`,
                  borderRadius: dock > 0.1 ? 56 : 0,
                  border: dock > 0.1 ? "12px solid #ffc83d" : "none",
                }}
              />
            )}
          </Sequence>
        );
      })}

      {/* Subtítulos Karaoke centrados simétricos (x: 108..972 px) */}
      {tiempos.frases.map((fr, idx) => {
        if (segActual < fr.ini || segActual >= fr.fin) return null;
        return (
          <div
            key={idx}
            style={{
              position: "absolute", left: 108, right: 108, bottom: 342, minHeight: 150,
              background: "#17171C", border: "3px solid #FFC83D", borderBottom: "7px solid #FFC83D",
              borderRadius: 24, padding: "16px 22px", display: "flex", flexWrap: "wrap",
              justifyContent: "center", alignItems: "center", gap: "7px 10px",
              boxShadow: "0 20px 46px rgba(0,0,0,0.85)",
            }}
          >
            {fr.palabras.map((w, wi) => {
              const activa = segActual >= w.ini && segActual <= w.fin + 0.08;
              const limp = w.t.replace(/[.,;:¡!¿?]/g, "").toLowerCase();
              const esOro = KEYWORDS.has(limp);
              return (
                <span
                  key={wi}
                  style={{
                    fontSize: 36, fontWeight: 800, padding: "2px 7px", borderRadius: 10,
                    transform: activa ? "scale(1.05)" : "scale(1)",
                    color: activa ? "#17171C" : (esOro ? "#FFC83D" : "#FBF7EA"),
                    backgroundColor: activa ? "#FFC83D" : "transparent",
                  }}
                >
                  {w.t}
                </span>
              );
            })}
          </div>
        );
      })}

      <Audio src={staticFile("mezcla-maestra.wav")} />
    </AbsoluteFill>
  );
};
¡Copiado!

Truco: fíjate cómo la caja de subtítulos usa el mismo negro (#17171C) y amarillo (#FFC83D) de nuestra marca para que cualquier persona reconozca tu serie en medio segundo sin leer tu nombre.

Hoja 06 · Sonido -14 LUFS

Masterización a -14,0 LUFS para que suene fuerte y claro en el teléfono

Después de renderizar en Remotion, calibramos sonoridad a estándar Instagram (-14,0 LUFS, pico seguro <= -1,2 dBTP) y limpiamos metadatos con FFmpeg:

Terminal · Render Remotion + Mezcla FFmpeg -14 LUFS
# 1. Renderizar el video maestro en Remotion a 30 fps alta calidad
npx remotion render src/index.ts ReelMaestro out/video-crudo.mp4 --codec=h264 --crf=16

# 2. Calibrar sonoridad y limitador de picos, limpiando metadatos
ffmpeg -y -i out/video-crudo.mp4 -i public/mezcla-maestra.wav \
  -map 0:v:0 -map 1:a:0 -map_metadata -1 -c:v copy \
  -af "highpass=f=85,acompressor=threshold=-19dB:ratio=2.8:attack=5:release=70:makeup=2,alimiter=limit=0.74:attack=4:release=45:level=false" \
  -c:a aac -b:a 256k -ar 48000 -movflags +faststart out/reel-listo-instagram.mp4

# 3. Verificar sonoridad real con ebur128 (I ~ -14.0 LUFS, Peak <= -1.0 dBFS)
ffmpeg -hide_banner -nostats -i out/reel-listo-instagram.mp4 -af ebur128=peak=true -f null -
¡Copiado!
Hoja 07 · Los 6 Formatos

Las plantillas copiables de los 6 formatos (Foto en 6 Capas + Video)

Formato 01 y 02 · Foto Base en 6 Capas + Animación en Omni 1080p

Prompt Foto 6 Capas + Video Omni 1080p
[PASO A · FOTO BASE CUADRO 0 EN 6 CAPAS — RECORTAR A 9:16 ANTES DE ANIMAR]
There is NO reference image for this one: create the person from this description.
Vertical 9:16 iPhone photo (if your generator outputs 2:3 1024x1536, keep the person inside the central 80% of the width and center-crop to exact 9:16 before animating), phone propped on a desk at eye level, candid real UGC vibe, relatable everyday creator, not a model, natural colors, no beauty filter, no HDR look.
[CAPA 1 PERSONA]: A [EDAD]-year-old [ORIGEN] [man/woman] with [FORMA DE CARA, PELO, OJOS]. Visible skin detail with pores, faint natural redness around the nose, small natural asymmetry; no skin smoothing, natural matte lips. Mouth slightly parted on a syllable, no teeth showing, looking straight into the lens, head level, no head tilt.
[CAPA 2 LENTE]: Medium close-up from the chest up, 26mm iPhone lens look.
[CAPA 3 ROPA + DETALLE]: Wearing [ROPA REAL CON ARRUGAS] and a tiny black clip-on lavalier microphone on the collar. One hand rests on the desk holding upright a spiral-bound printed workbook with a clean blank cover (zero readable text).
[CAPA 4 OFICIO]: Behind them, a lived-in home office softly out of focus with shelves and one plant.
[CAPA 5 UNA SOLA LUZ]: Soft daylight from ONE window on the left side, single light source, neutral daylight white balance, no orange skin tint.
[CAPA 6 LIMPIEZA]: Natural anatomy with five fingers. No golden hour, no sunset, no studio backlight, no text, no watermark, no phone UI.

[PASO B · ANIMACIÓN EN OMNI 1080P (MÁXIMO 16 PALABRAS EN 8 SEGUNDOS)]
[CAMERA] Vertical 9:16 medium close-up on a desk stand at eye level, static camera, no zoom, single continuous take, no cuts.
[ANCHOR] Keep the SAME person, outfit, lavalier mic, spiral workbook and soft left window daylight from the reference image.
[WHO] Looking straight into the lens, they say, in Spanish, word for word and NOTHING else: "[ESCRIBE AQUÍ UNA SOLA ORACIÓN DE 10 A 16 PALABRAS]" and after the last word give one subtle nod.
[START AND END] Lips part on frame 0; head level. First word is "[PRIMERA]", nothing before it, and nothing after "[ÚLTIMA]"; when finished they close their lips gently.
[VOICE] Voice: [SEXO, EDAD, TIMBRE MEDIO CÁLIDO], natural conversational pace of about 3.0 words per second; copia esta línea IDÉNTICA en todos sus clips.
[ACCENT] Accent: Neutral Latin American Spanish. Sound: clean room tone, no music. No on-screen text.
¡Copiado!

Formato 03 · Podcast a 2 Cámaras (asiento opuesto sin voltear en espejo)

Prompt Contraplano de Podcast
Using the attached image ONLY as a reference for the podcast room atmosphere and lighting, recreate the SAME podcast room — same acoustic wood wall, warm subtle practical lamp and studio atmosphere — but filmed from the OPPOSITE seat across the table.
Do NOT make a mirror image of the reference. Vertical 9:16 26mm iPhone tripod shot at eye level (keep the person inside the central 80% of the width).
Show a COMPLETELY DIFFERENT person seated there: [DESCRIBE NUEVA PERSONA: EDAD, RASGOS, ROPA].
A matte-black boom podcast microphone WITHOUT any brand logo enters from the opposite side near their mouth, and they face slightly toward the host across from them, mouth slightly parted on a syllable, head level, natural skin pores, no orange tint, no text, no watermark.
¡Copiado!

Formato 04 · Dualcast (2 personas en 1 plano con bloqueo de escucha activa)

Prompt Dualcast · Turno A y Turno B
[TURNO A · HABLA IZQUIERDA / ESCUCHA DERECHA]
[CAMERA] Vertical 9:16 static tripod shot, no camera movement, single continuous take, no cuts.
[ANCHOR] Keep BOTH podcast hosts, outfits, microphones and studio identical to the reference image.
[WHO] The person on the LEFT is actively speaking in a natural conversation and says, in Spanish, word for word and NOTHING else: "[ORACIÓN CORTA DEL HOST IZQUIERDO]"
Meanwhile, the person on the RIGHT is ONLY listening with their mouth closed, looking at the speaker and nodding slightly with natural calm reactions, zero interruption.
[VOICE] Voice (speaker on the left): [VOZ FIJA DEL HOST A].
[ACCENT] Accent: Neutral Latin American Spanish. Sound: clean studio room tone, no music. No on-screen text.

[TURNO B · INVERSIÓN EN EL CORTE SIGUIENTE]
Cambia únicamente [WHO] y [VOICE]: ahora "The person on the RIGHT is actively speaking..." mientras "the person on the LEFT is ONLY listening with their mouth closed, nodding slightly, zero interruption".
¡Copiado!

Formato 05 (B-Roll en Grok) + Formato 06 (3 líneas para otros países)

Grok B-Roll (~US$ 0,11) + Bloque Multipaís (EN · PT-BR · IT)
[FORMATO 05 · B-ROLL DE MANOS EN GROK — PROHIBIDO PAGAR LIPSYNC]
Vertical phone video on a small tripod: the camera does not move (no zoom, no push-in, no pan); no talking.
Realistic hands naturally turn one printed page of the spiral-bound workbook on the wooden desk and point smoothly at a highlighted diagram block, soft morning window light, no faces, no text, no watermark.

[FORMATO 06 · SOLO 3 LÍNEAS CAMBIAN PARA OTRO IDIOMA]
- EN-US: American creator in their mid-30s, casual cotton crewneck | Bright home office with wooden desk | [ACCENT] Accent: General American English, natural understated cadence.
- PT-BR: Brazilian creator in their early 30s, warm light-tan skin | Sunny apartment workspace with indoor plant | [ACCENT] Accent: Native Brazilian Portuguese (Southeast neutral), warm conversational rhythm.
- IT: Northern/Central Italian creator in their late 30s, knit shirt | Warm study with wooden shelves and side window light | [ACCENT] Accent: Native neutral Italian, clear natural diction.
¡Copiado!
Hoja 08 · ★ Entrégaselo a tu Claude

El archivo CLAUDE.md listo para pegar en tu propio Claude

Aquí es donde ocurre la magia: crea una carpeta vacía en tu computadora, guarda el texto de abajo como CLAUDE.md, abre Claude Code en esa carpeta y dile: «Quiero armar mi primer Reel de 60 segundos para mi producto digital siguiendo el CLAUDE.md». Tu Claude te va a guiar paso a paso y escribirá todo el código por ti:

CLAUDE.md · Pega esto en la raíz de tu carpeta de videos
# Instrucciones del Proyecto: Fábrica de Reels con IA + Remotion

Actúa como mi director técnico de producción de video para productos digitales. Nunca inventes datos ni gastes saldo de API sin mostrarme antes el plan y el costo estimado.

## Flujo obligatorio en 5 pasos (con compuerta de aprobación)
1. **Brief rápido (pregunta antes de producir):**
   - Pídeme qué producto digital vendo, qué problema resuelve, qué puedo mostrar por dentro (plantilla, guía, calculadora o app) y cuál será la palabra clave para comentar en Instagram.
2. **Guion partido en 10–12 tomas de 4 a 8 segundos (`clips.json`):**
   - Escribe oraciones habladas naturales (máximo 8 palabras en clips de 4 s y máximo 16 palabras en clips de 8 s, cero puntos intermedios dentro de un mismo clip).
   - Combina al menos 4 de los 6 formatos: UGC con guía impresa, Recuadro explicativo de 240 px sobre mi entregable real, Podcast a 2 cámaras (asiento opuesto sin voltear en espejo), Dualcast (1 habla y el co-host dice explícitamente "ONLY listening with their mouth closed, zero interruption"), y B-Roll de manos en Grok con "no talking".
   - Muéstrame el guion y el costo estimado antes de llamar a cualquier API.
3. **Fotos Base (Cuadro 0 en 6 Capas) -> Videos en ApiMart:**
   - Lee `APIMART_API_KEY` únicamente desde `.env` (verifica que `.env` esté en `.gitignore`).
   - Cada foto base debe tener poros reales, lente 26mm de iPhone, una sola luz lateral de ventana, cero grano artificial y recorte exacto `1080x1920` (`9:16`) antes de animar.
   - Copia la línea `[VOICE]` idéntica en todas las tomas del mismo personaje. Usa `Omni 1080p` (`gemini-omni-1.1-flash-ext`) solo donde hay rostro hablando y `Grok` (`grok-imagine-1.5-video-ext`, `no talking`) en planos de manos/apoyo.
4. **Auditoría con `faster-whisper` + Recorte CFR 30 fps (`FFmpeg`):**
   - Transcribe cada clip descargado con `faster-whisper` (`word_timestamps=True`). Si un clip inventó o repitió sílabas, recórtalo limpio con FFmpeg (ocultando cortes internos con un punch-in `1.16x`) o regénéralo con mi permiso.
   - Convierte todos los tramos a `1080x1920`, `30 fps` constantes (`CFR`), y alinea las palabras reales con la ortografía exacta de mi guion usando `difflib.SequenceMatcher` hacia `src/tiempos.json`.
5. **Montaje en Remotion + Masterización `-14.0 LUFS`:**
   - Inicializa o usa un proyecto Remotion (`1080x1920`, `30 fps`).
   - Centra toda la interfaz para Instagram (`4:5` feed y `9:16` Reels): tarjetas superiores debajo de `top: 262px` (`left/right: 56px`), recuadro explicativo animado con `spring()` a `240 px` abajo a la izquierda sin tapar el entregable, y subtítulos karaoke simétricos en `left: 108px; right: 108px; bottom: 342px`.
   - Mezcla voz limpia (`highpass=85Hz`) + música sutil (`-17.5 dB` bajo la voz) + compresor/limitador a `-14.0 LUFS` (`Peak <= -1.2 dBTP`), exporta con `-map_metadata -1 -movflags +faststart`, extrae una hoja de contacto de 16 cuadros para verificar que no haya textos cortados ni caras tapadas, y muéstrame el resultado final.
¡Copiado!
La Agencia Sin Humanos · Hablemos por DM

¿Cuál de los 6 formatos vas a probar primero?

Vuelve ahora mismo al chat de Instagram donde te llegó este botón y escríbeme en una línea qué producto digital tienes (o quieres lanzar). Y si quieres ver los capítulos anteriores o anotarte en mi lista privada de trabajo:

Ir a la Bóveda Principal →

Zorro Director