Remotion Video Compositions
Build deterministic React video compositions in Remotion using frame-based timing, validated props and repeatable preview and rendering commands.
Confirm the existing entry point and matching Remotion package versions. Set a delivery width, height, frame rate, duration and output format. Establish a composition ID and an example props file with representative content. Put local assets in the project's public directory or use its existing supported bundling convention. Keep exact fonts and art references available in both local preview and the renderer. ## Key Points - [Remotion Sequence](https://www.remotion.dev/docs/sequence) - [Remotion calculateMetadata](https://www.remotion.dev/docs/calculate-metadata) - [Remotion still command](https://www.remotion.dev/docs/cli/still) - [Remotion render command](https://www.remotion.dev/docs/cli/render) ## Quick Example ```sh npx remotion still src/index.ts ProductTour out/boundary.png --frame=20 --props=props.json npx remotion render src/index.ts ProductTour out/product-tour.mp4 --props=props.json ```
skilldb get motion-graphics-skills/remotion-video-compositionsFull skill: 38 linesRemotion Video Compositions
Confirm the existing entry point and matching Remotion package versions. Set a delivery width, height, frame rate, duration and output format. Establish a composition ID and an example props file with representative content. Put local assets in the project's public directory or use its existing supported bundling convention. Keep exact fonts and art references available in both local preview and the renderer.
Establish frame ownership
Register a Composition with the component, ID, frame rate, dimensions, duration and default props. Animate with useCurrentFrame() and use useVideoConfig() for frame rate and dimensions. Convert timestamps to frames once using the project's rounding rule. Derive the image visible at a given frame directly from that frame and the input props. A seek or headless render should produce the same result regardless of which frame was rendered previously.
Use Sequence to position a scene on the parent timeline. Within the sequence, useCurrentFrame() reports local frame time, so its animation can start at zero. Reserve the root frame for effects shared across sections. When computing durations or other metadata from validated props, return those values with calculateMetadata. Calculate the composition duration from the same section boundaries used to render it. For example, a 20-frame opener followed by an 80-frame scene begins the second sequence at frame 20 and has 100 frames total.
Keep assets and props reproducible
Use the same resolved props for all previews and renders. Validate required fields and bound duration, font sizes and long text. Prefer staticFile() for assets under the configured public directory. Handle missing image or font inputs with an explicit error or approved fallback. Avoid wall-clock time, mutable module state and unseeded randomness for visual decisions. Wait for externally loaded media and fonts through the APIs supported by the pinned Remotion version, with bounded failure behavior.
Review and render
Preview the composition in Studio. Inspect the first and last frame, each sequence boundary and a frame with the longest expected text. For a known local project, call the pinned CLI with the explicit entry point, composition ID and input props.
npx remotion still src/index.ts ProductTour out/boundary.png --frame=20 --props=props.json
npx remotion render src/index.ts ProductTour out/product-tour.mp4 --props=props.json
Adapt paths and commands to the installed version. A still check can catch layout and asset errors before the full render. Probe the final file for dimensions, duration, streams and intended frame rate. Watch transitions and listen for audio alignment in the exported video. Keep the composition ID, props checksum, package lock and render log with the artifact so another run can reproduce the work.
Sources
Install this skill directly: skilldb add motion-graphics-skills
Related Skills
Title Sequence Design
Master the art of crafting compelling title sequences that serve as a concentrated narrative and aesthetic overture for films, television series, or games. Activate this skill when you need to establish tone, introduce core themes, build anticipation, and immerse an audience in a story world from its very first moments.
Transition Design
Master the strategic art of creating purposeful and engaging transitions that seamlessly guide your audience between scenes, states, or ideas. Activate this skill when you need to connect disparate visual information, establish narrative flow, manage audience attention, or enhance emotional impact through dynamic scene changes.
UI Animation
Master the craft of bringing user interfaces to life through purposeful motion, enhancing usability, providing clear feedback, and elevating the overall user experience. Activate this skill when designing interactive elements, transitions, micro-interactions, or any UI component where motion can clarify hierarchy, communicate state changes, guide user attention, or simply delight the user.
After Effects Batch Automation
Prepare and validate After Effects project variants with ExtendScript and render approved compositions from the command line with aerender.
After Effects Expressions
Master the art of scripting animation properties in After Effects to automate complex motion, create dynamic relationships between elements, and build intelligent, reactive graphics. Activate this skill when you need to efficiently manage repetitive animation tasks, link properties dynamically, generate procedural motion, or solve intricate animation challenges with code rather than manual keyframes.
Animated Data Viz
Master the art of bringing static data to life through purposeful motion, revealing hidden insights and enhancing comprehension. Activate this skill when you need to visualize trends over time, tell compelling data stories, make complex datasets accessible, or engage an audience with dynamic information.