# Remotion Rule: Ffmpeg > Remotion skill rule: Using FFmpeg and FFprobe in Remotion. Part of the official Remotion Agent Skill for programmatic video in React. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add remotion-dev/skills ``` This rule activates automatically when working with ffmpeg in a Remotion project. --- ## Intro Using FFmpeg and FFprobe in Remotion. Part of the [Remotion AI Skill](https://tokrepo.com/en/workflows/57997ead-c8fa-409c-916f-28bbc0adc8d9) — the official Agent Skill for programmatic video creation in React. **Best for**: Developers using Remotion for ffmpeg **Works with**: Claude Code, OpenAI Codex, Cursor --- ## Rule Content ## FFmpeg in Remotion `ffmpeg` and `ffprobe` do not need to be installed. They are available via the `bunx remotion ffmpeg` and `bunx remotion ffprobe`: ```bash bunx remotion ffmpeg -i input.mp4 output.mp3 bunx remotion ffprobe input.mp4 ``` ### Trimming videos You have 2 options for trimming videos: 1. Use the FFmpeg command line. You MUST re-encode the video to avoid frozen frames at the start of the video. ```bash # Re-encodes from the exact frame bunx remotion ffmpeg -ss 00:00:05 -i public/input.mp4 -to 00:00:10 -c:v libx264 -c:a aac public/output.mp4 ``` 2. Use the `trimBefore` and `trimAfter` props of the `