---
name: remotion-best-practices
description: Best practices for Remotion - Video creation in React
metadata:
  tags: remotion, video, react, animation, composition
title: remotion-best-practices
canonical_url: https://skilld.dev/gh/openmontageinc/openmontage/remotion-best-practices
last_updated: 2026-11-12T11:03:20.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 40 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install openmontageinc/openmontage/remotion-best-practices`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/remotion-best-practices`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/openmontageinc/openmontage/remotion-best-practices) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/remotion-best-practices`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/remotion-best-practices --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/remotion-best-practices --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

## When to use

Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.

## Captions

When dealing with captions or subtitles, load the [./rules/subtitles.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/subtitles.md) file for more information.

## Using FFmpeg

For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the [./rules/ffmpeg.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/ffmpeg.md) file for more information.

## Audio visualization

When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the [./rules/audio-visualization.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/audio-visualization.md) file for more information.

## Sound effects

When needing to use sound effects, load the [./rules/sfx.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/sfx.md) file for more information.

## How to use

Read individual rule files for detailed explanations and code examples:

- [rules/3d.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/3d.md) - 3D content in Remotion using Three.js and React Three Fiber
- [rules/animations.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/animations.md) - Fundamental animation skills for Remotion
- [rules/assets.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/assets.md) - Importing images, videos, audio, and fonts into Remotion
- [rules/audio.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/audio.md) - Using audio and sound in Remotion - importing, trimming, volume, speed, pitch
- [rules/calculate-metadata.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/calculate-metadata.md) - Dynamically set composition duration, dimensions, and props
- [rules/can-decode.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/can-decode.md) - Check if a video can be decoded by the browser using Mediabunny
- [rules/charts.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/charts.md) - Chart and data visualization patterns for Remotion (bar, pie, line, stock charts)
- [rules/compositions.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/compositions.md) - Defining compositions, stills, folders, default props and dynamic metadata
- [rules/extract-frames.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/extract-frames.md) - Extract frames from videos at specific timestamps using Mediabunny
- [rules/fonts.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/fonts.md) - Loading Google Fonts and local fonts in Remotion
- [rules/get-audio-duration.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/get-audio-duration.md) - Getting the duration of an audio file in seconds with Mediabunny
- [rules/get-video-dimensions.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/get-video-dimensions.md) - Getting the width and height of a video file with Mediabunny
- [rules/get-video-duration.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/get-video-duration.md) - Getting the duration of a video file in seconds with Mediabunny
- [rules/gifs.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/gifs.md) - Displaying GIFs synchronized with Remotion's timeline
- [rules/images.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/images.md) - Embedding images in Remotion using the Img component
- [rules/light-leaks.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/light-leaks.md) - Light leak overlay effects using @remotion/light-leaks
- [rules/lottie.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/lottie.md) - Embedding Lottie animations in Remotion
- [rules/measuring-dom-nodes.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/measuring-dom-nodes.md) - Measuring DOM element dimensions in Remotion
- [rules/measuring-text.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/measuring-text.md) - Measuring text dimensions, fitting text to containers, and checking overflow
- [rules/sequencing.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/sequencing.md) - Sequencing patterns for Remotion - delay, trim, limit duration of items
- [rules/tailwind.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/tailwind.md) - Using TailwindCSS in Remotion
- [rules/text-animations.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/text-animations.md) - Typography and text animation patterns for Remotion
- [rules/timing.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/timing.md) - Interpolation curves in Remotion - linear, easing, spring animations
- [rules/transitions.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/transitions.md) - Scene transition patterns for Remotion
- [rules/transparent-videos.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/transparent-videos.md) - Rendering out a video with transparency
- [rules/trimming.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/trimming.md) - Trimming patterns for Remotion - cut the beginning or end of animations
- [rules/videos.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/videos.md) - Embedding videos in Remotion - trimming, volume, speed, looping, pitch
- [rules/parameters.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/parameters.md) - Make a video parametrizable by adding a Zod schema
- [rules/maps.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/maps.md) - Add a map using Mapbox and animate it
- [rules/voiceover.md](https://skilld.dev/api/skills-raw/openmontageinc/openmontage/remotion-best-practices/rules/voiceover.md) - Adding AI-generated voiceover to Remotion compositions using ElevenLabs TTS
