Skills2026年3月29日·1 分钟阅读

Remotion Rule: Videos

Remotion skill rule: Embedding videos in Remotion - trimming, volume, speed, looping, pitch. Part of the official Remotion Agent Skill for programmatic video in React.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Remotion Rule: Videos
直接安装命令
npx -y tokrepo@latest install 3260bbfa-8ec9-463a-9cba-3e03f8862984 --target codex

先 dry-run 确认安装计划,再运行此命令。

TL;DR
Remotion agent skill rule for embedding, trimming, and controlling video playback in programmatic React compositions.
§01

What it is

The Remotion Videos rule is part of the official Remotion Agent Skill that teaches AI coding agents how to embed and manipulate video clips inside Remotion compositions. It covers trimming start and end frames, adjusting volume, changing playback speed, enabling loops, and shifting pitch.

This rule targets developers and AI agents building programmatic videos in React with Remotion. If you use Claude Code or another AI assistant to generate Remotion projects, this rule ensures the agent produces correct video embedding code on the first try.

§02

How it saves time or tokens

Without this rule, an AI agent guesses at Remotion's video API and often produces incorrect prop names or missing imports. The rule preloads the correct patterns so the agent generates working code in one shot, saving iteration cycles and token spend. The rule is estimated at around 500 tokens to install.

§03

How to use

  1. Install the Remotion skills pack:
npx skills add remotion-dev/skills
  1. The Videos rule activates automatically when the agent detects video embedding tasks in a Remotion project.
  2. Write a prompt like 'Add a background video trimmed to 3 seconds with 50% volume' and the agent applies the correct Remotion API.
§04

Example

import { Video, staticFile } from 'remotion';

export const MyComp: React.FC = () => {
  return (
    <Video
      src={staticFile('background.mp4')}
      startFrom={30}
      endAt={120}
      volume={0.5}
      playbackRate={1.2}
      loop
    />
  );
};
§05

Related on TokRepo

§06

Common pitfalls

  • Forgetting that startFrom and endAt use frame numbers, not seconds. Multiply seconds by fps to get the right value.
  • Setting volume above 1.0 causes clipping in most browsers. Stick to the 0-1 range.
  • Using loop on very long clips without setting endAt leads to unexpectedly long compositions that break rendering.

常见问题

What does the Remotion Videos rule cover?+

It covers embedding video files in Remotion compositions with controls for trimming (startFrom/endAt), volume, playback speed (playbackRate), looping, and pitch shifting. The rule is part of the official Remotion Agent Skill pack.

How do I install the Remotion Videos rule?+

Run 'npx skills add remotion-dev/skills' in your project. The Videos rule activates automatically when the AI agent detects a video embedding task inside a Remotion project. No manual configuration is needed beyond the install command.

Does this rule work with Claude Code?+

Yes. The Remotion Agent Skill is designed for AI coding agents including Claude Code. Once installed, Claude Code reads the rule and applies the correct Remotion video API patterns without extra prompting.

Can I trim a video to a specific time range?+

Yes. Use the startFrom and endAt props with frame numbers. For example, at 30 fps, to start at 1 second and end at 4 seconds, set startFrom={30} and endAt={120}. The rule teaches the agent this conversion automatically.

What formats does Remotion support for embedded videos?+

Remotion supports MP4 (H.264), WebM, and MOV files. MP4 with H.264 encoding is the most reliable across browsers and rendering targets. Place video files in the public folder and reference them with staticFile().

引用来源 (3)
🙏

来源与感谢

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: videos

Part of the Remotion AI Skill collection on TokRepo.

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产