Sandbox
@wangxin6x/AutoVideo-Agent

Markdown to video pipeline for agent workflows

AutoVideo-Agent turns a Markdown script into a storyboard, scene manifest, media assets, timeline, QA report, and MP4. It is built to be reproducible and local-first, so you can inspect the intermediate files even when FFmpeg or external media providers are unavailable.

92 stars3 forksPythonUpdated 22d ago
Who it's for

Builders who want their agent to turn a Markdown script into a video they can inspect and rerun.

What it delivers

You can go from a script to a reproducible video build with manifest, assets, timeline, and QA output.

What it does

Markdown storyboard parsing

Reads a script and turns it into scenes and structure for the rest of the pipeline.

Deterministic local rendering

Creates placeholder scene cards and a silent audio track so the pipeline works without cloud services.

FFmpeg MP4 output

Builds an H.264 MP4 when FFmpeg is available.

QA report

Writes `report.json` so you can inspect success, degradation, and build details.

Provider slots

Includes experimental ComfyUI media support and mock or command TTS providers.

Agent onboarding

Ships `AGENTS.md` and a Codex skill file for agent-driven use of the repo.

How to get it

  1. 1Install the package from PyPI
    python -m pip install autovideo-agent
  2. 2To run the repository demo, clone the repository for its example script
    git clone https://github.com/wangxin6x/AutoVideo-Agent.git
    cd AutoVideo-Agent
    autovideo run examples/demo-script.md

README

AutoVideo-Agent

Tests Latest Release Python MIT License

Turn a Markdown script into a reproducible video pipeline — storyboard, scene assets, timeline, QA, and MP4.

Built for Codex, Claude Code, Gemini CLI and other coding-agent workflows. v0.1 is local-first and deterministic: it creates inspectable placeholder scene assets and an FFmpeg video without an API key or cloud account.

Markdown Script -> Storyboard -> Scene Manifest -> Media -> Timeline -> FFmpeg -> QA -> MP4

The default v0.1-compatible command does not claim AI video generation. v0.2 provider mode adds ComfyUI API media, while MiniMax and other hosted providers remain planned.

Demo

The demo uses examples/demo-script.md: three scenes and seven seconds.

INPUT                         PIPELINE                         OUTPUT
examples/demo-script.md  ->  autovideo run              ->  video.mp4
                              parse + manifest + assets      manifest.json
                              silent WAV + FFmpeg            report.json

Deterministic scene-card demo

Run it:

autovideo run examples/demo-script.md

The build is written to build/demo-script/. Open video.mp4 when FFmpeg is available. Always inspect manifest.json and report.json; without FFmpeg the command reports status: degraded and keeps the inspectable assets.

Quick Start

Install the package from PyPI:

python -m pip install autovideo-agent

To run the repository demo, clone the repository for its example script:

git clone https://github.com/wangxin6x/AutoVideo-Agent.git
cd AutoVideo-Agent
autovideo run examples/demo-script.md

The wheel contains the autovideo CLI and runtime package. examples/ is a repository fixture, so use your own Markdown script after installing from PyPI or clone the repository to run this demo.

FFmpeg is optional. With it, the output is an H.264 MP4 with a silent AAC track. Without it, scene cards, manifest, WAV timeline, and QA report are still produced.

Features

StatusCapabilityEvidence
✅ Available nowMarkdown storyboard parsersrc/autovideo/parser.py
✅ Available nowScene manifestmanifest.json
✅ Available nowDeterministic offline assetsPPM scene cards
✅ Available nowSilent WAV timelineaudio-silence.wav
✅ Available nowFFmpeg MP4 renderingsrc/autovideo/render.py
✅ Available nowGraceful degradationreport.json status
✅ Available nowCLIautovideo run <script.md>
✅ Available nowQA reportreport.json
✅ Available nowCodex Skill / AGENTS integrationAGENTS.md and skills/auto-video/SKILL.md
🧪 ExperimentalComfyUI API media providerImplemented; API workflow submit, poll, retry, resume, and download; awaiting live validation
✅ Available nowMock and command TTS providersSilent fallback or any local TTS CLI
✅ Available nowScene-level SRT subtitlesTimed from actual TTS audio duration
🚧 PlannedMiniMax#1
🚧 PlannedHosted TTS integrationsOpenAI, Volcengine, and ElevenLabs
🚧 PlannedWord-level subtitle alignment#4
🚧 PlannedReal media adapters#5

Architecture

flowchart LR
    Script[Markdown Script] --> Parser[Script Parser]
    Parser --> Storyboard[Storyboard]
    Storyboard --> Manifest[Scene Manifest]
    Storyboard --> Providers[Provider Interface]
    Providers --> Media[Media assets]
    Media --> Timeline[Timeline]
    Timeline --> Renderer[Renderer]
    Renderer --> QA[QA report]
    QA --> MP4[MP4 output]
    VideoProvider[ComfyUI Media Provider - Experimental] -. media .-> Providers
    TTSProvider[Mock / Command TTS] -. audio .-> Providers
    AssetProvider[Asset Provider - Planned] -. slot .-> Providers

The current renderer creates deterministic placeholder cards and a silent audio track. Provider slots are documented extension points, not shipped integrations.

ComfyUI validation status

The ComfyUI API behavior is covered by mocked integration tests, but v0.2.0-beta.1 has not yet been validated against a live ComfyUI workflow. The provider is implemented and experimental; live image/video validation is tracked in Issue #12. Do not treat it as production-ready.

Use with Codex

Read AGENTS.md for repository rules, tests, security constraints, and the development loop. Then point Codex at skills/auto-video/SKILL.md for the local storyboard workflow:

Turn examples/demo-script.md into a video and run QA. Use skills/auto-video/SKILL.md.

The real command is:

autovideo run examples/demo-script.md

QA means checking the command result plus report.json and manifest.json; there is no separate AI quality grader. This is a repository workflow, not an endorsement by Codex or any model vendor.

Roadmap

  • v0.1 ✅ — Local parser, deterministic cards, silent timeline, FFmpeg MP4, degradation report, tests, and agent onboarding.
  • v0.2 (this development branch) — Provider contracts, ComfyUI media, Mock/Command TTS, scene-level SRT, normalized timeline, mixed renderer, and deterministic QA. MiniMax and hosted TTS remain planned.
  • v0.3media adapters #5, cross-platform FFmpeg #6, CI render coverage #9, more formats #10.

Community

Contributions to docs, examples, portability, and provider boundaries are welcome. Read AGENTS.md, add tests for core behavior, run python -m pytest, and review git diff --check before opening a pull request.

Development

python -m pip install -e ".[test]"
python -m pytest

The runtime has no third-party dependencies. Never commit API keys, tokens, passwords, cookies, or machine-specific paths.

中文文档

中文文档 -> README_CN.md

License

MIT. See LICENSE.

Files in the repo

Repository payload16 top-level entries
  • .github
  • docs
  • examples
  • skills
  • src
  • tests
  • workflows
  • .env.example
  • .gitignore
  • AGENTS.md
  • CHANGELOG.md
  • LICENSE
  • MANIFEST.in
  • pyproject.toml
  • README_CN.md
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k