videos — Claude Code rule: video in Remotion
videos — a rule for embedding video in Remotion compositions with trimming, volume control, playback speed, looping and pitch adjustment. Lets you work with video files in animations without repeating boilerplate code.
no license ★ 849 updated 2026-01-24
.claude/rules/videos.mdWhat videos does
The rule provides examples for the <Video> component from @remotion/media. Works with local files via staticFile() and remote URLs. Covers trimming by frame count, delayed playback via <Sequence>, sizing and positioning through style, static and dynamic volume with interpolation, playback rates from 0.5 to 2x. Includes looping with frame counter control and pitch shifting (toneFrequency from 0.01 to 2) that works only during server-side rendering.
Start by installing @remotion/media — the rule includes commands for npm, Bun, Yarn and pnpm. Pitch shifting does not work in Remotion Studio or the player, only during render.
What it helps with
- embed a video file in a Remotion composition
- trim video by time or frame range
- control volume and playback for video
- loop video with animation synchronization
- shift the pitch of video audio
Example prompts for the agent
- Embed a video file, skip the first 2 seconds, end at 10 seconds
- Make video twice as loud and loop it with gradual fade-out
- Start playback at 1.5x speed after a 1-second delay
How to install videos
Manually: put the files in place
.claude/rules/videos.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/videos.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/videos.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/videos.mdManually: put the files in place
.clinerules/videos.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about videos
How do I install the videos rule in Claude Code?
Copy the file to .claude/rules/ in your project as videos.md. Claude Code will automatically load it and use it when working with Remotion video.
What does the videos rule do?
Provides examples for embedding and configuring video in Remotion: trimming by time, volume, speed, looping, and pitch control.
What package is needed for video in Remotion?
Install @remotion/media using npx remotion add @remotion/media (npm), bunx remotion add @remotion/media (Bun), yarn remotion add @remotion/media (Yarn), or pnpm exec remotion add @remotion/media (pnpm).