TL;DR
CameraAnything is the first unified video editing framework that gives users complete control over both camera movement (extrinsics) and lens properties (intrinsics like focal length and resolution) within a single model. By embedding per-pixel geometric rays directly into a video diffusion transformer's attention mechanism, it enables advanced cinematic effects like dolly zooms, multi-shot cuts, and aspect-ratio adaptation without needing expensive 3D reconstruction.
What Problem Does This Paper Address?
Controlling the camera is essential for cinematic storytelling, but existing AI video editing tools are heavily restricted. Most state-of-the-art methods only let you change the camera's position (extrinsic parameters) and completely ignore lens properties like focal length or aspect ratio (intrinsic parameters).
Furthermore, changing both simultaneously—such as a Hitchcock dolly zoom, where the camera moves backward while zooming in—causes complex, tightly coupled changes in video appearance that are incredibly hard to model. Existing solutions either require slow, error-prone 3D scene reconstruction or resort to crude cropping and outpainting to change resolutions, which destroys the original composition. CameraAnything aims to solve this by unifying full intrinsic and extrinsic camera control into a single, end-to-end generative framework.
Methods
CameraAnything is built on top of a state-of-the-art Video Diffusion Transformer (Wan2.1). To achieve precise control, the authors introduced several key architectural innovations:
- Per-Pixel Plücker Ray Representation: Instead of using simple frame-level camera matrices, the model represents camera geometry using token-wise Plücker rays. This encodes the exact 3D viewing direction and origin of every pixel ray, naturally capturing both camera position and focal length details.
- RoPE Injection: Rather than adding camera features directly to the visual tokens (which can destabilize training), the authors inject these Plücker embeddings into the 3D Rotary Position Embedding (RoPE) within the self-attention layers. This modulates the attention mechanism based on geometric alignment—tokens sharing consistent viewpoints receive boosted attention, while geometrically distant ones are suppressed.
- Native Resolution Adaptation: To handle aspect ratio changes seamlessly, the spatial coordinates of the 3D RoPE are directly recomputed from the target-resolution latent grid. The Plücker ray field naturally adapts to the new imaging geometry, eliminating the need for post-process cropping or masking.
- Orthogonal Training Strategy: The model is trained using a decomposed sampling strategy that independently varies camera motion, focal length, and aspect ratio. This teaches the model to decouple these controls, allowing it to handle single-dimension tweaks or complex compound instructions.
Datasets
Because real-world datasets with paired videos of varying camera intrinsics do not exist, the authors built a high-fidelity synthetic pipeline using Unreal Engine 5:
- The CameraAnything Dataset: Contains 15,000 dynamic scenes across 150 diverse indoor and outdoor environments, populated with animated human characters.
- Structure: Each scene includes 20 synchronized video clips (81 frames each, total ~300,000 videos) split into three groups: Group A (continuous single-shot base views), Group B (multi-shot sequences with 1–3 cinematic cuts), and Group C (re-focal variants with varying focal lengths/zooms).
For real-world evaluation, the authors tested the model's zero-shot generalization capabilities on 50 videos from the standard DAVIS dataset.
Key Insights and Ideas
- Geometry Belongs in the Attention Mechanism: Traditional additive injection alters the feature space and degrades the generative prior of the model. Injecting camera geometry as a phase shift in the complex rotation domain (RoPE) naturally guides how tokens interact based on 3D structure.
- Resolution as a Geometric Property: Instead of treating aspect ratio changes as a post-processing or outpainting task, CameraAnything treats it as a change in the underlying camera ray grid. The model naturally learns to re-compose the scene because the Plücker rays inherently adapt to the new resolution.
- Decoupling via Identity Sampling: By explicitly including training samples where only one parameter changes (e.g., changing focal length while keeping the camera still), the model successfully disentangles optical zoom from physical camera movement.
Key Results
CameraAnything achieves state-of-the-art performance across both synthetic and real-world benchmarks:
- Higher Reconstruction Fidelity: On synthetic data, CameraAnything significantly outperforms previous methods like ReCamMaster, boosting PSNR from 12.87 to 15.88 on extrinsic/focal tasks.
- Superior Real-World Accuracy: When tested on real-world DAVIS videos, it achieves a much lower rotation error (RotErr of 2.76° vs. 5.12° for ReCamMaster), demonstrating excellent zero-shot generalization despite being trained purely on synthetic data.
- User Preference: A user study with 20 participants showed an overwhelming preference for CameraAnything, particularly in camera alignment (73.3% preference rate vs. 21.0% for the closest baseline).
Limitations and Future Work
While the paper does not include a dedicated limitations section, a few challenges are apparent from the text:
- Synthetic-to-Real Gap: The model is trained entirely on synthetic data from Unreal Engine 5. Although it generalizes remarkably well to real-world datasets like DAVIS, extreme real-world environments, complex lighting, or highly unusual human motions might still pose challenges.
- Novel Region Synthesis: Large viewpoint changes and sudden camera cuts require the model to synthesize extensive unseen regions. This is an inherently difficult generative task that can occasionally lead to minor tracking or consistency artifacts in highly complex scenes.
Summary updated