# videos

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.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/videos.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/videos

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/videos.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/videos.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/videos.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/videos.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/videos.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/videos.md

## When to use it
- 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
- 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

## Similar
- [remotion-video-composition](https://affpapa.org/en/nevibecode/skills/remotion-video-composition.md) — skill · 147 installs
- [remotion-to-hyperframes](https://affpapa.org/en/nevibecode/skills/remotion-to-hyperframes.md) — skill · 651200 installs
- [remotion-asset-coordinator](https://affpapa.org/en/nevibecode/skills/remotion-asset-coordinator.md) — skill · 184 installs
- [react-animation](https://affpapa.org/en/nevibecode/skills/react-animation.md) — skill · 191 installs
- [directing-stickman-videos](https://affpapa.org/en/nevibecode/skills/directing-stickman-videos.md) — skill · 774 installs
- [remotion-best-practices](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-best-practices.md) — skill · 860000 installs

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
