Skip to content

🎥 Make videos programmatically with React

npx remotion ffmpeg/probe

Patric Salvisbergae70601abb5b
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.md
index 8d2ee6be99..2ae6f90efd 100644
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@ -89,6 +89,11 @@ Therefore, the `npx remotion install ffmpeg` and `npx remotion install ffprope`
- Remove the `--ffmpeg-executable` flag from [`npx remotion render`](/docs/cli/render), [`npx remotion still`](/docs/cli/still) and [`npx remotion benchmark`](/docs/cli/benchmark)
- Remove the `--ffprobe-executable` flag from [`npx remotion render`](/docs/cli/render), [`npx remotion still`](/docs/cli/still) and [`npx remotion benchmark`](/docs/cli/benchmark)
+## Added `npx remotion ffmpeg` and `npx remotion ffprobe`
+
+Since FFmpeg and FFprobe no longer have to be installed, the `ffmpeg` and `ffprobe` commands are no longer globally available. In order to still be able to use some of `FFmpeg`s handy commands, we introduced `npx remotion ffmpeg` and `npx remotion ffprobe`.
+Note that in order to keep the binary size small, we only support the most commonly used codecs: h264, h265, vp8, vp9 and prores videos.
+
## Moved `onSlowestFrames` API
In V3, `onSlowestFrames` has been a callback function that you could pass to `renderMedia()`.
diff --git a/packages/docs/docs/cli/ffmpeg.md b/packages/docs/docs/cli/ffmpeg.md
new file mode 100644
index 0000000000..4bb5ddb152
--- /dev/null
+++ b/packages/docs/docs/cli/ffmpeg.md
@@ -0,0 +1,22 @@
+---
+image: /generated/articles-docs-cli-ffmpeg.png
+id: ffmpeg
+title: ffmpeg
+crumb: "@remotion/cli"
+---
+
+_available since v4.0_
+
+In order to use FFmpeg tools without having to directly install it, remotion provides a part of Ffmpegs toolkit via `npx remotion ffmpeg`
+
+Note that in order to keep the binary size small, we only support the most commonly used codecs, namely h264, h265, vp8, vp9 and prores videos. FFmpeg 6.0 is used.
+
+# Example
+
+Convert a video file to an audio file
+
+```bash
+npx remotion ffmpeg -i input.mp4 output.mp3
+```
+
+To find out more about FFmpeg, visit their [docs](https://ffmpeg.org/documentation.html).
diff --git a/packages/docs/docs/cli/ffprobe.md b/packages/docs/docs/cli/ffprobe.md
new file mode 100644
index 0000000000..c190f8b6a1
--- /dev/null
+++ b/packages/docs/docs/cli/ffprobe.md
@@ -0,0 +1,20 @@
+---
+image: /generated/articles-docs-cli-ffprobe.png
+id: ffprobe
+title: ffprobe
+crumb: "@remotion/cli"
+---
+
+_available since v4.0_
+
+In order to use ffprobe tools without having to directly install it, remotion provides a part of the ffprobe toolkit via `npx remotion ffprobe`
+
+Note that in order to keep the binary size small, we only support the most commonly used codecs, namely h264, h265, vp8, vp9 and prores videos. FFmpeg 6.0 is used.
+
+# Example
+
+```bash
+npx remotion ffprobe your_video.mp4
+```
+
+To find out more about FFprobe, visit their [docs](https://ffmpeg.org/ffprobe.html).
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 1fc242b3a1..b059cd55ea 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -37,6 +37,8 @@ module.exports = {
"cli/versions",
"cli/upgrade",
"cli/help",
+ "cli/ffmpeg",
+ "cli/ffprobe",
],
},
"config",