Abstract
Existing Text-to-Video (T2V) models often struggle with complex, multi-scene instructions and precise camera control, frequently resulting in static scenes or disjointed transitions. We present Modular-Cam, a novel framework that treats video generation as a modular, directed process. By utilizing a Large Language Model (LLM) as a "director" to decompose complex prompts into sequential actions, and employing pluggable motion modules (CamOperators) alongside a consistency-focused AdaControlNet, Modular-Cam achieves fine-grained camera control and seamless transitions in long-form video generation.
1. Introduction
While recent advancements in Text-to-Video (T2V) synthesis have produced visually impressive results, these models often fail when tasked with executing sequential, multi-step camera instructions. Standard models typically rely on CLIP-based text encoders, which excel at semantic understanding of individual frames but lack the temporal reasoning required for complex camera transformations. This leads to two primary failure modes: the "Static Problem," where motion commands are ignored, and the "Messy Transition Problem," where the model produces abrupt cuts or hallucinated mixtures of scenes. Modular-Cam addresses these issues by decoupling the generation process into discrete, manageable modules coordinated by an LLM.
2. Methodology
The Modular-Cam architecture consists of four primary components designed to handle the complexity of dynamic video synthesis.
2.1 LLM-Director
To bridge the gap between complex natural language and temporal execution, we utilize an LLM-Director (GPT-3.5-turbo). This component parses the user's prompt and decomposes it into a structured script. Each segment of the script identifies a discrete scene paired with a specific "transition action," such as ZoomIn, PanLeft, or TiltUp.
2.2 CamOperator
Rather than retraining a monolithic model for every possible camera movement, we introduce CamOperators—modular Low-Rank Adaptation (LoRA) layers. Each operator is trained on specialized simulated data to master a specific camera transformation. These modules are "pluggable," allowing the system to dynamically slot in the required motion module as dictated by the LLM-Director.
2.3 AdaControlNet
To maintain visual continuity across scene transitions, we developed AdaControlNet. This component uses the final frame of a preceding scene as a condition for the subsequent scene. It incorporates two key mechanisms:
- Adaptive Pixel Normalization: This ensures the new scene inherits the color distribution and RGB variance of the previous one, preventing "color drift."
- Randomized Blending: This technique smooths the transition between the terminal frame of Scene A and the initial frame of Scene B, ensuring temporal seamlessness.
2.4 Base Video Generator
The framework is built upon AnimateDiff, which utilizes temporal transformers within a Stable Diffusion backbone to maintain frame-to-frame consistency within individual scenes.
3. Experiments and Datasets
The model was trained and evaluated using a combination of large-scale and specialized datasets:
- WebVid-10M: Used to train the base temporal transformer layers for general video dynamics.
- Simulated Motion Data: Approximately 50 specialized videos were generated for each of the six basic motion patterns (ZoomIn/Out, PanLeft/Right, TiltUp/Down) to train the CamOperator LoRAs.
- Multi-Scene Benchmark: A new evaluation set of 1,000 multi-scene instructions was created using ChatGPT to test the system's ability to follow sequential camera commands.
4. Results
Modular-Cam was compared against state-of-the-art baselines, including AnimateDiff, FreeNoise, and StreamingT2V.
4.1 Quantitative Performance
In terms of "Dynamic Degree" (DD)—a metric quantifying how accurately a video follows motion commands—Modular-Cam achieved a score of 0.994. This significantly outperformed AnimateDiff (0.329) and SparseCtrl (0.677).
4.2 User Evaluation
Human evaluations (User Rank) placed Modular-Cam at a score of 1.7 (where lower is better), notably ahead of the next best model, StreamingT2V, which scored 2.3. Qualitative results confirm that Modular-Cam successfully executes distinct camera moves while maintaining environmental consistency, whereas baseline models often "forget" parts of the prompt or produce blurry transitions.
5. Conclusion and Future Work
Modular-Cam demonstrates that decomposing video generation into a modular, directed process is a highly effective strategy for complex T2V tasks. While the current system is limited to six basic motion patterns and lacks precise degree-based control (e.g., "Pan exactly 45 degrees"), its modular nature allows for easy expansion. Future work will focus on increasing the library of CamOperators to include cinematic movements like orbital shots and dolly zooms, as well as refining the LLM prompting strategies for even more granular control.
Summary updated