OpenClaw and Remotion Pipeline for Automated Video Editing

✍️ OpenClawRadar📅 Published: February 26, 2026🔗 Source
OpenClaw and Remotion Pipeline for Automated Video Editing
Ad

A developer has detailed a practical automated video editing pipeline using OpenClaw for agent orchestration and Remotion as a React-based video renderer. The setup processes hundreds of raw video clips into finished social media Reels without manual editing.

Workflow Components

The stack consists of:

  • OpenClaw – for agent orchestration and automation
  • Remotion – React-based video editor/renderer
  • Python + JSON glue code for montage generation

Processing Pipeline

The workflow follows these concrete steps:

1. Raw Ingestion: Videos from Telegram are dumped into a raw folder without manual renaming: remotion-lab/source-videos/<brand>/raw/

2. Filtering & Cleaning: A script filters clips to keep only vertical smartphone resolutions (720×1280, 1080×1920) and excludes junk like old campaign footage, AI/stock visuals, and unrelated brands. This produces a filtered/ folder and a catalog_filtered.json file listing usable videos.

3. JSON-defined Montages: Another script generates montage structures with categories like "Prep," "Baking," and "Final vibe" clips. It creates a JSON storyboard like:

[{"type": "video", "src": "filtered/file_001.mp4", "duration": 80},{"type": "video", "src": "filtered/file_037.mp4", "duration": 80}]

4. Remotion Composition: A single Remotion React composition reads montage_filtered.json and applies:

  • TransitionSeries with fade transitions
  • Ken Burns effect (subtle scale + pan) on all clips
  • Original clip audio preserved
  • Background music added underneath
  • White screen + logo outro

Creative rules are encoded here: remove on-screen text, avoid AI/stock visuals, keep original audio, use crossfade transitions, and finish with a white fade and logo.

5. Render + Compress: OpenClaw triggers rendering via:

npx remotion render src/index.tsx StoryFinal out.mp4

Then compresses with ffmpeg:

ffmpeg -i out.mp4 -vcodec libx264 -crf 20 -preset slow -acodec aac -b:a 192k out_hq.mp4

This produces 9:16 vertical videos around 45 seconds long.

Ad

Batch Autopilot Mode

The agent handles batch generation with instructions like: "Generate 20 unique Reels, don't reuse clips between them." It:

  • Tracks usage in a state.json file
  • Loops through generating new montage_filtered.json using only unused clips
  • Runs Remotion render and ffmpeg compression
  • Creates send_ready_#.json files describing outputs
  • OpenClaw sends finished videos to Telegram

The result: 20 different Reels (18-30s each) with consistent transitions, logo outros, and no off-brand footage, delivered overnight.

This approach works because agents handle the boring parts (cataloging, filtering, picking clips, batch rendering) while creative control remains centralized in one Remotion composition and JSON generator scripts.

📖 Read the full source: r/clawdbot

Ad

👀 See Also

Developer Builds Personal Finance App in One Month Using Claude Code: Key Workflows and Challenges
Use Cases

Developer Builds Personal Finance App in One Month Using Claude Code: Key Workflows and Challenges

A developer with 14 years of experience built and shipped a personal finance forecasting app to the App Store in about a month using Claude Code. He identified three specific workflows where Claude Code was most effective and shared challenges with scope creep and data model complexity.

OpenClawRadar
Hybrid Local+API Approach Cuts AI Costs by 79% in Month-Long Test
Use Cases

Hybrid Local+API Approach Cuts AI Costs by 79% in Month-Long Test

A developer running a 24/7 AI assistant on a Hetzner VPS reduced monthly costs from $288 to $60 by strategically combining local models with API calls. The setup uses nomic-embed-text for embeddings and Qwen2.5 7B for background tasks, routing more complex work to Claude models.

OpenClawRadar
Practical AI Support Improvements from Claude Code Leak Analysis
Use Cases

Practical AI Support Improvements from Claude Code Leak Analysis

A developer analyzed the Claude Code source leak and implemented six specific changes to their Chatbase setup: overhauling text snippets, adding sentiment analytics, building structured Q&A pairs, creating adversarial testing agents, connecting actions to tools, and cross-referencing topics.

OpenClawRadar
Developer Combines Claude Code and Codex for Better AI Coding Workflow
Use Cases

Developer Combines Claude Code and Codex for Better AI Coding Workflow

A developer reports using Claude Code as an orchestrator and Codex as a worker, finding that Codex's faster coding speed with GPT 5.4 is offset by poor explanations that require multiple readings to understand what changed.

OpenClawRadar