remotion-render

por beltsh

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated...

npx skills add https://github.com/beltsh/superpowers --skill remotion-render

Install the belt CLI skill: npx skills add belt-sh/cli

Remotion Render

Render videos from React/Remotion component code via inference.sh CLI.

Remotion Render

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

# Render a simple animation
belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><h1 style={{color: \"white\", fontSize: 100, opacity: frame / 30}}>Hello World</h1></AbsoluteFill>; }",
  "duration_seconds": 3,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Input Schema

ParameterTypeRequiredDescription
codestringYesReact component TSX code. Must export default a component.
composition_idstringNoComposition ID to render
propsobjectNoProps passed to the component
widthnumberNoVideo width in pixels
heightnumberNoVideo height in pixels
fpsnumberNoFrames per second
duration_secondsnumberNoVideo duration in seconds
codecstringNoOutput codec

Available Imports

Your TSX code can import from remotion and react:

// Remotion APIs
import {
  useCurrentFrame,
  useVideoConfig,
  spring,
  interpolate,
  AbsoluteFill,
  Sequence,
  Audio,
  Video,
  Img
} from "remotion";

// React
import React, { useState, useEffect } from "react";

Examples

Fade-In Text

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill, interpolate } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 30], [0, 1]); return <AbsoluteFill style={{backgroundColor: \"#1a1a2e\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><h1 style={{color: \"#eee\", fontSize: 80, opacity}}>Welcome</h1></AbsoluteFill>; }",
  "duration_seconds": 2,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Animated Counter

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, useVideoConfig, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const { fps, durationInFrames } = useVideoConfig(); const progress = Math.floor((frame / durationInFrames) * 100); return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\"}}><h1 style={{color: \"#fff\", fontSize: 200}}>{progress}%</h1><p style={{color: \"#666\", fontSize: 30}}>Loading...</p></AbsoluteFill>; }",
  "duration_seconds": 5,
  "fps": 60,
  "width": 1080,
  "height": 1080
}'

Spring Animation

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, useVideoConfig, spring, AbsoluteFill } from \"remotion\"; export default function Main() { const frame = useCurrentFrame(); const { fps } = useVideoConfig(); const scale = spring({ frame, fps, config: { damping: 10, stiffness: 100 } }); return <AbsoluteFill style={{backgroundColor: \"#6366f1\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\"}}><div style={{width: 200, height: 200, backgroundColor: \"white\", borderRadius: 20, transform: `scale(${scale})`}} /></AbsoluteFill>; }",
  "duration_seconds": 2,
  "fps": 60,
  "width": 1080,
  "height": 1080
}'

With Props

belt app run infsh/remotion-render --input '{
  "code": "import { AbsoluteFill } from \"remotion\"; export default function Main({ title, subtitle }) { return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\"}}><h1 style={{color: \"#fff\", fontSize: 80}}>{title}</h1><p style={{color: \"#888\", fontSize: 40}}>{subtitle}</p></AbsoluteFill>; }",
  "props": {"title": "My Video", "subtitle": "Created with Remotion"},
  "duration_seconds": 3,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Sequence Animation

belt app run infsh/remotion-render --input '{
  "code": "import { useCurrentFrame, AbsoluteFill, Sequence, interpolate } from \"remotion\"; function FadeIn({ children }) { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 20], [0, 1]); return <div style={{ opacity }}>{children}</div>; } export default function Main() { return <AbsoluteFill style={{backgroundColor: \"#000\", display: \"flex\", justifyContent: \"center\", alignItems: \"center\", flexDirection: \"column\", gap: 20}}><Sequence from={0}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>First</h1></FadeIn></Sequence><Sequence from={30}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>Second</h1></FadeIn></Sequence><Sequence from={60}><FadeIn><h1 style={{color: \"#fff\", fontSize: 60}}>Third</h1></FadeIn></Sequence></AbsoluteFill>; }",
  "duration_seconds": 4,
  "fps": 30,
  "width": 1920,
  "height": 1080
}'

Python SDK

from inferencesh import inference

client = inference()

result = client.run({
    "app": "infsh/remotion-render",
    "input": {
        "code": """
import { useCurrentFrame, AbsoluteFill, interpolate } from "remotion";

export default function Main() {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 30], [0, 1]);

  return (
    <AbsoluteFill style={{
      backgroundColor: "#1a1a2e",
      display: "flex",
      justifyContent: "center",
      alignItems: "center"
    }}>
      <h1 style={{ color: "#eee", fontSize: 80, opacity }}>
        Hello from Python
      </h1>
    </AbsoluteFill>
  );
}
""",
        "duration_seconds": 3,
        "fps": 30,
        "width": 1920,
        "height": 1080
    }
})

print(result["output"]["video"])

Streaming Progress

for update in client.run({
    "app": "infsh/remotion-render",
    "input": {
        "code": "...",
        "duration_seconds": 10
    }
}, stream=True):
    if update.get("progress"):
        print(f"Rendering: {update['progress']}%")
    if update.get("output"):
        print(f"Video: {update['output']['video']}")

Related Skills

# Remotion best practices (component patterns)
npx skills add remotion-dev/skills@remotion-best-practices

# AI video generation (for AI-generated clips)
npx skills add inference-sh/skills@ai-video-generation

# Image generation (for video assets)
npx skills add inference-sh/skills@ai-image-generation

# Python SDK reference
npx skills add inference-sh/skills@python-sdk

# Full platform skill
npx skills add inference-sh/skills@infsh-cli

Documentation

Más skills de beltsh

agent-browser
beltsh
Automatización del navegador para agentes de IA mediante inference.sh. Navega por páginas web, interactúa con elementos usando referencias @e, toma capturas de pantalla y graba vídeo. Capacidades: extracción de datos web, rellenado de formularios, clics, escritura, arrastrar y soltar, carga de archivos y ejecución de JavaScript. Úsalo para: automatización web, extracción de datos, pruebas, navegación de agentes e investigación. Activadores: navegador, automatización web, extraer datos, navegar, hacer clic, rellenar formulario, captura de pantalla, navegar por la web, playwright, navegador sin interfaz gráfica, agente web, navegar por internet, grabar vídeo.
browser-automationweb-scrapingtesting
agent-tools
beltsh
Ejecuta aplicaciones de IA mediante la CLI de inference.sh: generación de imágenes, creación de videos, LLM, búsqueda, 3D y automatización de Twitter. Modelos: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa y muchos más. Úsalo para ejecutar aplicaciones de IA, generar imágenes o videos, llamar a LLM, buscar en la web o automatizar Twitter. Activadores: inference.sh, infsh, modelo de IA, ejecutar IA, IA sin servidor, API de IA, flux, veo, API de Claude, generación de imágenes, generación de videos, tavily, búsqueda de Exa, API de Twitter, grok
mediaapibrowser-automation
ai-avatar-video
beltsh
Crea avatares de IA y videos de cabezas parlantes mediante la CLI de inference.sh. Recomendado: P-Video-Avatar (el más rápido y económico, con TTS integrado). También: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (más de 100 idiomas, control de emociones para personajes), ElevenLabs, Kokoro. Capacidades: avatares controlados por audio, conversión de texto a avatar, videos con sincronización labial, generación de cabezas parlantes, presentadores virtuales, contenido UGC. Úsalo para: presentadores de IA, videos explicativos, influencers virtuales, doblaje, videos de marketing, anuncios UGC, avatares de videojuegos,...
videoaudiomarketing
ai-image-generation
beltsh
Genera imágenes con IA con GPT-Image-2.6, FLUX, Gemini, Grok, Seedream, Reve y más de 50 modelos mediante la CLI de inference.sh. Modelos: GPT-Image-2.6 Flare, GPT-Image-2.6 Sunburst, FLUX Dev LoRA, FLUX.2 Klein LoRA, Nano Banana 2.1, Gemini 3 Pro Image, Grok Imagine 2.0, Seedream 5.5, Reve, ImagineArt. Funciones: texto a imagen, imagen a imagen, inpainting, LoRA, edición de imágenes, ampliación de resolución y renderizado de texto. Usos: arte con IA, maquetas de productos, arte conceptual, gráficos para redes sociales, recursos visuales de marketing, ilustraciones....
imagecreativemedia
ai-video-generation
beltsh
Genera vídeos con IA con Google Veo, Seedance 2.5, Kling, HappyHorse, Wan, Grok y más de 40 modelos mediante la CLI de inference.sh. Modelos: Veo 3.1, Seedance 2.5, Kling v4, Runway Gen-4.5, FLUX 3 Video, HappyHorse 1.0, Wan 2.7, Grok Imagine Video 1.5, P-Video 2, OmniHuman, Fabric. Funciones: texto a vídeo, imagen a vídeo, referencia a vídeo, edición de vídeo, sincronización labial, animación de avatares, mejora de resolución de vídeo y efectos de sonido. Úsalo para: vídeos para redes sociales, contenido de marketing, vídeos explicativos, demostraciones de productos, avatares con IA....
videomediacreative
app-store-screenshots
beltsh
Creación de capturas de pantalla para App Store y Google Play con especificaciones exactas de cada plataforma. Incluye dimensiones de iOS/Android, orden de la galería, maquetas de dispositivos y videos de vista previa. Úsalo para: optimización de tiendas de aplicaciones, ASO, capturas de pantalla de aplicaciones, vista previa de aplicaciones, ficha de Play Store. Activadores: capturas de pantalla de App Store, ASO, optimización de App Store, capturas de pantalla de Play Store, vista previa de aplicaciones, ficha de aplicación, capturas de pantalla de iOS, capturas de pantalla de Android, imágenes de aplicaciones para App Store, maqueta de aplicación, maqueta de dispositivo, galería de aplicaciones, ficha de tienda
designmarketingimage
character-design-sheet
beltsh
Consistencia de personajes en imágenes generadas por IA mediante hojas de referencia y técnicas LoRA. Abarca vistas de giro, hojas de expresiones, paletas de colores y trucos para mantener la coherencia del estilo. Úsalo para: diseño de personajes, arte para videojuegos, ilustración, animación, cómics y novelas visuales. Activadores: diseño de personajes, hoja de personaje, consistencia de personajes, referencia de personaje, hoja de vistas de giro, hoja de expresiones, arte de personajes, personaje coherente, concepto de personaje, hoja de referencia, creación de personajes, diseño de OC,...
designimagecreative
competitor-teardown
beltsh
Análisis competitivo estructurado con matrices de características, análisis SWOT, mapas de posicionamiento y revisión de UX. Abarca marcos de investigación, comparación de precios, análisis de reseñas y entregables visuales. Úsalo para: investigación de mercado, inteligencia competitiva, presentaciones para inversores, estrategia de producto y apoyo a ventas. Activadores: análisis de competidores, análisis competitivo, análisis exhaustivo de competidores, investigación de mercado, inteligencia competitiva, análisis SWOT, comparación de competidores, panorama del mercado, revisión de competidores, análisis competitivo...
researchdata-analysisproductivity