Skip to content

πŸŽ₯ Make videos programmatically with React

simplify skills

Jonny Burger0b2dd6c79863
diff --git a/packages/skills/skills/remotion/SKILL.md b/packages/skills/skills/remotion/SKILL.md
index 5b8ba03a7c..88577c8d3a 100644
--- a/packages/skills/skills/remotion/SKILL.md
+++ b/packages/skills/skills/remotion/SKILL.md
@@ -19,7 +19,7 @@ For some video operations, such as trimming videos or detecting silence, FFmpeg
## Silence detection
-When needing to detect and trim silent segments from video or audio files, load the [./rules/silence-detection.md](./rules/silence-detection.md) file. It uses adaptive per-file loudness thresholds (EBU R128) for accurate results across recordings with different volume levels. Requires FFmpeg β€” see [./rules/ffmpeg.md](./rules/ffmpeg.md).
+When needing to detect and trim silent segments from video or audio files, load the [./rules/silence-detection.md](./rules/silence-detection.md) file.
## Audio visualization
diff --git a/packages/skills/skills/remotion/rules/ffmpeg.md b/packages/skills/skills/remotion/rules/ffmpeg.md
index 5793690242..9d18117488 100644
--- a/packages/skills/skills/remotion/rules/ffmpeg.md
+++ b/packages/skills/skills/remotion/rules/ffmpeg.md
@@ -18,14 +18,7 @@ bunx remotion ffprobe input.mp4
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 `<Video>` component. The benefit is that this is non-destructive and you can change the trim at any time.
+1. **Preferred**: Use the `trimBefore` and `trimAfter` props of the `<Video>` component. This is non-destructive, requires no re-encoding, and you can change the trim at any time.
```tsx
import { Video } from "@remotion/media";
@@ -36,3 +29,10 @@ import { Video } from "@remotion/media";
trimAfter={10 * fps}
/>;
```
+
+2. Use the FFmpeg command line. You MUST re-encode the video to avoid frozen frames at the start of the video. Only use this if you need a standalone trimmed file (e.g. for upload or external use).
+
+```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
+```