Recent advances in video diffusion models and LLM-driven coding agents have enabled promising progress in automated video generation. However, generating coherent multi-shot narrative videos remains challenging: end-to-end diffusion models struggle to preserve object states across cuts and often alter the entire video when a single shot is edited, while existing 3D agents suffer from fragile spatial control and slow environment interaction that bottlenecks interactive coding. To provide a stable world state across cuts, we present CineCoder, a visual coding framework that anchors scenes, stateful objects, and characters in executable code before draft-aligned reference-to-video synthesis. When using draft videos as references, it utilize existing frozen DiT models to generate videos across multiple shots while maintaining consistency in draft scenes and motion. Furthermore, to overcome the slow feedback loop that limits reinforcement learning updates in existing agent environments, we develop CineCoder-Env in Three.js, a versatile agentic environment that combines diverse scenes, character actions, stateful assets, and camera controls with fast execution and visibility feedback. Building on CineCoder-Env, we post-train a 27B multimodal coding agent on real short dramas and synthesized multi-shot scripts, via supervised fine-tuning (SFT) without reasoning traces, followed by Group Relative Policy Optimization (GRPO) with chain-of-thought reasoning to strengthen 3D spatial planning. Finally, we construct DramaBench, a comprehensive multi-shot benchmark spanning diverse scene domains, task types, and difficulty levels, where CineCoder achieves promising performance across narrative faithfulness, visual quality, and local editing consistency.
翻译:暂无翻译