Abstract
We present a unified controllable video generation approach, AnimateAnything, that facilitates precise and consistent video manipulation across various conditions, including camera trajectories, text prompts, and user motion annotations. Specifically, we carefully design a multi-scale control feature fusion network to construct a common motion representation for different conditions. It explicitly converts all control information into frame-by-frame optical flows. Then we incorporate the optical flows as motion priors to guide final video generation. In addition, to reduce the flickering issues caused by large-scale motion, we propose a frequency-based stabilization module. It can enhance temporal coherence by ensuring the video's frequency domain consistency. Experiments demonstrate that our method outperforms the state-of-the-art approaches.
Introduction
While large-scale video generation models have demonstrated remarkable creative potential, achieving precise "director-level" control remains a significant hurdle. Existing tools often specialize in isolated control modalities: some manage camera movement (e.g., CameraCtrl), while others focus on local object manipulation via user-defined "drags" (e.g., DragAnything).
The fundamental challenge lies in modality conflict. Camera movement induces global pixel shifts, whereas object movement creates local shifts. Directly combining these signals often results in visual "hallucinations" or temporal flickering where the model loses consistency. AnimateAnything addresses this by proposing a unified pipeline capable of ingesting multiple, potentially conflicting control signals to produce stable, high-fidelity video content.
Methodology
The AnimateAnything framework utilizes a two-stage pipeline to decouple motion planning from visual rendering, ensuring that complex control signals do not interfere with the model's ability to generate high-quality pixels.
Stage 1: Unified Flow Generation
Rather than injecting raw control signals directly into the video generator, the model first translates them into a dense optical flow field.
- Explicit Injection: Simple signals like user-drawn motion arrows (drags) are converted into sparse motion points.
- Implicit Injection: Complex signals like camera trajectories are represented using Plücker embeddings (a method for describing 3D lines) and processed through a Camera Reference Model (CRM).
- Fusion: A Flow Generation Model (FGM) synchronizes these inputs to generate a frame-by-frame dense optical flow, which serves as a "motion blueprint" for the entire sequence.
Stage 2: Flow-Guided Video Generation
The generated optical flow guides a Diffusion Transformer (DiT) model (built on the CogVideoX framework). While the flow dictates the spatial-temporal trajectory of pixels (the "where" and "how"), reference images and text prompts provide the semantic and appearance details (the "what").
To further mitigate flickering, the authors introduce a Spectral Attention mechanism within a frequency-based stabilization module. By applying a Fast Fourier Transform (FFT) to attention weights, the model can refine features in the frequency domain. This specifically targets and suppresses high-frequency temporal instabilities that manifest as visual jitter, ensuring smoother transitions without blurring the actual motion.
Results and Evaluation
AnimateAnything was evaluated against several state-of-the-art models, including Motion-I2V, MOFA-Video, and OpenSora.
Quantitative Performance: On the WebVid dataset, AnimateAnything achieved a Frechet Video Distance (FVD) of 380, significantly outperforming CogVideoX (486) and Open-Sora (552). In terms of trajectory alignment, the model achieved a translation error (T-Err) of 0.041, nearly doubling the accuracy of CameraCtrl (0.090).
Qualitative Comparison: As shown in comparative evaluations, AnimateAnything maintains higher structural integrity during complex motions. Unlike previous methods that may suffer from "melting" artifacts or loss of identity when combining camera pans with object motion, this approach preserves object consistency and scene geometry.
Conclusion
AnimateAnything demonstrates that treating optical flow as a "universal language" for motion control effectively resolves modality conflicts in video generation. By decoupling motion from appearance and stabilizing the result in the frequency domain, the model achieves superior consistency across diverse prompts and trajectories. Future work will focus on expanding the range of control signals, such as audio or depth maps, and addressing the computational overhead inherent in the two-stage diffusion process.
Summary updated