🎥 Make videos programmatically with React
"packages/skills: align bunx to npx in ffmpeg.md"
pullfrog[bot]332d1930a2a8
diff --git a/packages/skills/skills/remotion/rules/ffmpeg.md b/packages/skills/skills/remotion/rules/ffmpeg.mdindex 9d18117488..d3fd100c58 100644--- a/packages/skills/skills/remotion/rules/ffmpeg.md+++ b/packages/skills/skills/remotion/rules/ffmpeg.md@@ -7,11 +7,11 @@ metadata:## FFmpeg in Remotion-`ffmpeg` and `ffprobe` do not need to be installed. They are available via the `bunx remotion ffmpeg` and `bunx remotion ffprobe`:+`ffmpeg` and `ffprobe` do not need to be installed. They are available via the `npx remotion ffmpeg` and `npx remotion ffprobe`:```bash-bunx remotion ffmpeg -i input.mp4 output.mp3-bunx remotion ffprobe input.mp4+npx remotion ffmpeg -i input.mp4 output.mp3+npx remotion ffprobe input.mp4```### Trimming videos@@ -21,18 +21,14 @@ You have 2 options for trimming videos: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";+import {Video} from '@remotion/media';-<Video- src={staticFile("video.mp4")}- trimBefore={5 * fps}- trimAfter={10 * fps}-/>;+<Video src={staticFile('video.mp4')} trimBefore={5 * fps} 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+npx remotion ffmpeg -ss 00:00:05 -i public/input.mp4 -to 00:00:10 -c:v libx264 -c:a aac public/output.mp4```