Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/videos.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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).

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set33

The whole set →
images images directs the AI to embed graphics in Remotion via the Img element, staticFile helper, and dimensions calculation. CX Codex +1 ★ 849repo stars calculate-metadata The calculate-metadata rule configures Remotion composition metadata before rendering, including duration, dimensions, FPS, props, and the output filename. CX Codex +1 ★ 849repo stars measuring-text measuring-text — a rule to calculate text size, fit fonts to containers, and detect overflow. Use it when building dynamic text in Remotion and need precise dimensions to avoid clipping or wrong scaling. CX Codex +1 ★ 849repo stars fonts Guides Claude Code on loading Google Fonts and local font assets in Remotion video projects without render glitches. CX Codex +1 ★ 849repo stars display-captions display-captions — a rule that walks through drawing captions in Remotion: grouping them into TikTok-style pages and highlighting whichever word is being spoken. CX Codex +1 ★ 849repo stars compositions Sets guidelines for structuring Remotion compositions, still frames, folders, and dynamic metadata in src/Root.tsx. CX Codex +1 ★ 849repo stars transitions This rule guides Claude Code in adding fullscreen transitions between Remotion scenes or clips. Use it when building a composition from multiple scenes. CX Codex +1 ★ 849repo stars audio Rule for handling sound in Remotion: import audio files, trim, adjust volume and playback speed, shift pitch. Requires the @remotion/media package. CX Codex +1 ★ 849repo stars

Project sponsors

Companies that keep this analytics open