forge-film
Multi-model DAG-driven parallel AI film generation — parallel speedup scales with scene independence; Generate film scenes simultaneously instead of one by one;
What is forge-film?
Multi-model DAG-driven parallel AI film generation — parallel speedup scales with scene independence; Generate film scenes simultaneously instead of one by one; "把影视生成的执行图从拓扑序变成关键路径最优调度" ; 唯一把场景叙事依赖建模为 DAG、以 CPM 算法驱动并行调度的影视生成引擎
Overview of forge-film
What it is
Forge is an open-source, multi-model DAG-driven parallel AI film generation engine. It compiles a story into a scene dependency graph (DAG), routes each scene to the appropriate AI model (e.g., Kling, CogVideoX, Seedance), runs independent scenes in parallel using Critical Path Method (CPM) scheduling, applies cross-model color calibration for visual continuity, and assembles the final video into a single final.mp4 file.
Key features
- Story → DAG: GPT-4o (or Claude / DeepSeek) compiles a story into a dependency graph; scenes with no dependencies run in parallel.
- CPM parallel scheduling: Critical Path Method finds the longest dependency chain and prioritizes it; N workers run simultaneously.
- Scene-type routing: dialogue → Kling, landscapes → CogVideoX (free, local), action → Kling; fully configurable in
forge.yaml. - Cross-model continuity: when scene B follows scene A with different backends, Forge extracts A's last frame, applies histogram color matching, and passes it as the i2v seed for scene B.
- Final assembly: once all scenes are generated, clips are concatenated in a single ffmpeg pass with normalized resolution and frame rate; outputs
final.mp4.
Use cases
Multi-scene AI film generation where the user writes a story and Forge automates the entire pipeline, eliminating manual downloading, color correction, and stitching across different AI video models.
Getting started
Requirements: Python 3.11+, ffmpeg, GPU optional (CogVideoX local needs CUDA 12+).bashgit clone https://github.com/F-R-L/forge-filmcd forge-filmpip install -e .cp .env.example .env``````bash# Run with mock backend — no API keys neededforge run examples/detective.txt --backend mock --workers 4# Multi-model orchestrationforge run examples/multi_backend_demo.txt --workers 4# Inspect DAG and routing without generating videoforge plan examples/detective.txt --scenes 6# Launch Web UIforge webui
License and pricing
License: MIT. Pricing: open source (free).
Based on the project's public README and repository metadata.