Skip to content

🎥 Make videos programmatically with React

deprecation notices for ffmpeg

Jonny Burger7b276c1a1fda
diff --git a/packages/docs/docs/cli/benchmark.md b/packages/docs/docs/cli/benchmark.md
index 77c9cb545f..abc923741b 100644
--- a/packages/docs/docs/cli/benchmark.md
+++ b/packages/docs/docs/cli/benchmark.md
@@ -49,18 +49,6 @@ _optional_
Inherited from [`npx remotion render`](/docs/cli/render#--crf)
-### `--ffmpeg-executable`
-
-_optional_
-
-Inherited from [`npx remotion render`](/docs/cli/render#--ffmpeg-executable)
-
-### `--ffprobe-executable`
-
-_optional_
-
-Inherited from [`npx remotion render`](/docs/cli/render#--ffprobe-executable)
-
### `--frames`
_optional_
@@ -210,3 +198,15 @@ Inherited from [`npx remotion render`](/docs/cli/render#--video-bitrate)
_optional_
Inherited from [`npx remotion render`](/docs/cli/render#--audio-bitrate)
+
+### ~~`--ffmpeg-executable`~~
+
+_optional, removed in v4.0_
+
+Inherited from [`npx remotion render`](/docs/cli/render#--ffmpeg-executable)
+
+### ~~`--ffprobe-executable`~~
+
+_optional, removed in v4.0_
+
+Inherited from [`npx remotion render`](/docs/cli/render#--ffprobe-executable)
diff --git a/packages/docs/docs/cli/compositions.md b/packages/docs/docs/cli/compositions.md
index 8c3cdb9df9..8cd7776aa3 100644
--- a/packages/docs/docs/cli/compositions.md
+++ b/packages/docs/docs/cli/compositions.md
@@ -57,14 +57,6 @@ If you don't feel like passing command line flags every time, consider creating
[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.
-### `--ffmpeg-executable`
-
-[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.
-
-### `--ffprobe-executable`
-
-[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
-
### `--timeout`
Define how long it may take to resolve all [`delayRender()`](/docs/delay-render) calls before the composition fetching times out in milliseconds. Default: `30000`.
@@ -91,6 +83,18 @@ Opens an actual browser to observe the composition fetching.
Only prints the composition IDs, separated by a space.
+### ~~`--ffmpeg-executable`~~
+
+_removed in v4.0_
+
+Set a custom `ffmpeg` executable. If not defined, a `ffmpeg` executable will be searched in `PATH`.
+
+### ~~`--ffprobe-executable`~~
+
+_removed in v4.0_
+
+[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
+
## See also
- [`getCompositions()`](/docs/cli/compositions)
diff --git a/packages/docs/docs/cli/render.md b/packages/docs/docs/cli/render.md
index 73364ef5fd..ef0ab32c93 100644
--- a/packages/docs/docs/cli/render.md
+++ b/packages/docs/docs/cli/render.md
@@ -152,14 +152,6 @@ For example only every second frame, every third frame and so on. Only works for
[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.
-### `--ffmpeg-executable`
-
-[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.
-
-### `--ffprobe-executable` <AvailableFrom v="3.0.17" />
-
-[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
-
### `--timeout`
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout) in milliseconds. Default: `30000`.
@@ -195,3 +187,15 @@ Accepted values:
**Default for local rendering**: `null`.
**Default for Lambda rendering**: `"swangle"`.
+
+### ~~`--ffmpeg-executable`~~
+
+_removed in v4.0_
+
+Set a custom `ffmpeg` executable. If not defined, a `ffmpeg` executable will be searched in `PATH`.
+
+### ~~`--ffprobe-executable`~~ <AvailableFrom v="3.0.17" />
+
+_removed in v4.0_
+
+[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
diff --git a/packages/docs/docs/cli/still.md b/packages/docs/docs/cli/still.md
index a10e465b32..29c3585dc3 100644
--- a/packages/docs/docs/cli/still.md
+++ b/packages/docs/docs/cli/still.md
@@ -77,14 +77,6 @@ From v3.2.27, negative values are allowed, with `-1` being the last frame.
[Define the location of the `public/` directory.](/docs/config#setpublicdir). If not defined, Remotion will assume the location is the `public` folder in your Remotion root.
-### `--ffmpeg-executable`
-
-[Set a custom `ffmpeg` executable](/docs/config#setFfmpegExecutable). If not defined, a `ffmpeg` executable will be searched in `PATH`.
-
-### `--ffprobe-executable`
-
-[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
-
### `--timeout`
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout) in milliseconds. Default: `30000`.
@@ -120,3 +112,15 @@ Accepted values:
**Default for local rendering**: `null`.
**Default for Lambda rendering**: `"swangle"`.
+
+### ~~`--ffmpeg-executable`~~
+
+_removed in v4.0_
+
+Set a custom `ffmpeg` executable. If not defined, a `ffmpeg` executable will be searched in `PATH`.
+
+### ~~`--ffprobe-executable`~~
+
+_removed in v4.0_
+
+[Set a custom `ffprobe` executable](/docs/config#setFfprobeExecutable). If not defined, a `ffprobe` executable will be searched in `PATH`.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index bce9c2a330..dc86e51441 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -606,6 +606,34 @@ Using this feature is discouraged. Before using it, we want to make you aware of
Before you use this hack, reach out to the Remotion team on [Discord](https://remotion.dev/discord) and ask us if we are open to implement the feature you need in a clean way - we often do implement new features quickly based on users feedback.
:::
+## ~~setFfmpegExecutable()~~
+
+_removed in v4.0_
+
+Allows you to use a custom FFMPEG binary. Must be an absolute path. By default, this is null and the FFMPEG in `PATH` will be used.
+
+```ts title="remotion.config.ts"
+import { Config } from "@remotion/cli/config";
+// ---cut---
+Config.setFfmpegExecutable("/path/to/custom/ffmpeg");
+```
+
+The [command line flag](/docs/cli/render#--ffmpeg-executable) `--ffmpeg-executable` will take precedence over this option.
+
+## ~~setFfprobeExecutable()~~
+
+_removed in v4.0_
+
+Allows you to use a custom `ffprobe` binary. Must be an absolute path. By default, this is null and the `ffprobe` in `PATH` will be used.
+
+```ts title="remotion.config.ts"
+import { Config } from "@remotion/cli/config";
+// ---cut---
+Config.setFfprobeExecutable("/path/to/custom/ffprobe");
+```
+
+The [command line flag](/docs/cli/render#--ffprobe-executable) `--ffprobe-executable` will take precedence over this option.
+
## See also
- [Encoding guide](/docs/encoding)
diff --git a/packages/docs/docs/ffmpeg.md b/packages/docs/docs/ffmpeg.md
index 304b1371ee..1d1dbe6073 100644
--- a/packages/docs/docs/ffmpeg.md
+++ b/packages/docs/docs/ffmpeg.md
@@ -5,17 +5,23 @@ sidebar_label: Installing FFmpeg
crumb: "(you don't have to)"
---
+Since Remotion v4.0, Remotion comes bundled with a lightweight version of FFmpeg.
+
+## FFmpeg in V3 of Remotion
+
+**The following documentation is an archival for how FFmpeg worked in v3.0.**
+
Remotion requires FFmpeg to encode videos. Since v3.3, you do not need to install FFmpeg manually. This page documents the behavior of Remotion for developers needing advanced control.
-## `ffmpeg` and `ffprobe`
+### `ffmpeg` and `ffprobe`
Two binaries are required for Remotion: `ffmpeg` and `ffprobe`. When talking about FFmpeg in the documentation, it may also refer to FFprobe.
-## Auto-install
+### Auto-install
When rendering a video and binaries are not found, Remotion will download them from the internet and put it inside your `node_modules` folder. The binary will not get added to your `PATH`, so if you type in `ffmpeg` into your Terminal, it may not be found. However, Remotion will be able to use it
-### Supported architectures
+#### Supported architectures
Auto-install is supported on the following platforms:
@@ -26,7 +32,7 @@ Auto-install is supported on the following platforms:
For other platforms, you need to supply your own binaries.
-### Triggering auto-install
+#### Triggering auto-install
By rendering a video, the download of FFmpeg will be triggered automatically.
@@ -35,7 +41,7 @@ On servers, it might be of use to install the binaries before the first render,
- Using the CLI, you can run [`npx remotion install ffmpeg`](/docs/cli/install) and `npx remotion install ffprobe` to trigger auto-install of binaries. If the binaries exist, the command will do nothing. This requires `@remotion/cli` to be installed.
- The [`@remotion/renderer`](/docs/renderer) package exposes [`ensureFfmpeg()`](/docs/renderer/ensure-ffmpeg) and [`ensureFfprobe()`](/docs/renderer/ensure-ffprobe) functions
-## Order of priority
+### Order of priority
In case of multiple binaries being supplied, they priority order is the following:
diff --git a/packages/docs/docs/renderer/get-can-extract-frames-fast.md b/packages/docs/docs/renderer/get-can-extract-frames-fast.md
index f53921815e..3c64548165 100644
--- a/packages/docs/docs/renderer/get-can-extract-frames-fast.md
+++ b/packages/docs/docs/renderer/get-can-extract-frames-fast.md
@@ -50,15 +50,17 @@ An object containing one or more of the following options:
Pointing to a video file. Must be an absolute file path.
-### `ffmpegExecutable?`
+### ~~`ffmpegExecutable`~~
+
+_removed in v4.0_
_string - optional_
An absolute path overriding the `ffmpeg` executable to use.
-### `ffprobeExecutable?`
+### ~~`ffprobeExecutable`~~
-_string, options_
+_removed in v4.0, \_string, options_
An absolute path overriding the `ffprobe` executable to use.
diff --git a/packages/docs/docs/renderer/get-compositions.md b/packages/docs/docs/renderer/get-compositions.md
index 9f7fecee93..45b2f655b6 100644
--- a/packages/docs/docs/renderer/get-compositions.md
+++ b/packages/docs/docs/renderer/get-compositions.md
@@ -20,8 +20,6 @@ const getCompositions: (
puppeteerInstance?: PuppeteerBrowser;
onBrowserLog?: (log: BrowserLog) => void;
browserExecutable?: BrowserExecutable;
- ffmpegExecutable?: FfmpegExecutable;
- ffprobeExecutable?: FfmpegExecutable;
}
) => Promise<TComposition[]>;
```
@@ -54,18 +52,6 @@ An already open Puppeteer [`Browser`](https://pptr.dev/#?product=Puppeteer&versi
A string defining the absolute path on disk of the browser executable that should be used. By default Remotion will try to detect it automatically and download one if none is available. If `puppeteerInstance` is defined, it will take precedence over `browserExecutable`.
-#### `ffmpegExecutable?` <AvailableFrom v="3.0.11" />
-
-_optional_
-
-An absolute path overriding the `ffmpeg` executable to use.
-
-#### `ffprobeExecutable?` <AvailableFrom v="3.0.17" />
-
-_optional_
-
-An absolute path overriding the `ffprobe` executable to use.
-
#### `onBrowserLog?` <AvailableFrom v="3.0.0" />
_optional_
@@ -213,6 +199,18 @@ Returns a promise that resolves to an array of available compositions. Example v
The `defaultProps` only get returned since v2.5.7.
+#### ~~`ffmpegExecutable`~~
+
+_removed in v4.0, optional_
+
+An absolute path overriding the `ffmpeg` executable to use.
+
+#### ~~`ffprobeExecutable?`~~ <AvailableFrom v="3.0.17" />
+
+_removed in v4.0_
+
+An absolute path overriding the `ffprobe` executable to use.
+
## See also
- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/renderer/src/get-compositions.ts)
diff --git a/packages/docs/docs/renderer/render-frames.md b/packages/docs/docs/renderer/render-frames.md
index e6e8ca4cc8..782795c8be 100644
--- a/packages/docs/docs/renderer/render-frames.md
+++ b/packages/docs/docs/renderer/render-frames.md
@@ -209,18 +209,6 @@ renderFrames({
});
```
-### `ffmpegExecutable?` <AvailableFrom v="3.0.11" />
-
-_optional_
-
-An absolute path overriding the `ffmpeg` executable to use.
-
-### `ffprobeExecutable?` <AvailableFrom v="3.0.17" />
-
-_optional_
-
-An absolute path overriding the `ffprobe` executable to use.
-
### `browserExecutable?` <AvailableFrom v="3.0.11" />
_optional_
@@ -297,6 +285,18 @@ Accepted values:
**Default for local rendering**: `null`.
**Default for Lambda rendering**: `"swangle"`.
+### ~~`ffmpegExecutable`~~
+
+_removed in v4.0, optional_
+
+An absolute path overriding the `ffmpeg` executable to use.
+
+### ~~`ffprobeExecutable?`~~ <AvailableFrom v="3.0.17" />
+
+_removed in v4.0, optional_
+
+An absolute path overriding the `ffprobe` executable to use.
+
## Return value
A promise resolving to an object containing the following properties:
diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.md
index 39d984cb2e..1a455ea01d 100644
--- a/packages/docs/docs/renderer/render-media.md
+++ b/packages/docs/docs/renderer/render-media.md
@@ -109,18 +109,6 @@ In which image format the frames should be rendered.
- `png` if you want to [render transparent videos](/docs/transparent-videos/)
- `none` if you are rendering audio
-### `ffmpegExecutable?`
-
-_string - optional_
-
-An absolute path overriding the `ffmpeg` executable to use.
-
-### `ffprobeExecutable?` <AvailableFrom v="3.0.17" />
-
-_optional_
-
-An absolute path overriding the `ffprobe` executable to use.
-
### `browserExecutable?` <AvailableFrom v="3.0.11" />
_optional_
@@ -427,6 +415,18 @@ const onSlowestFrames: OnSlowestFrames = (slowestFrames) => {
};
```
+### ~~`ffmpegExecutable`~~
+
+_removed in v4.0, string, optional_
+
+An absolute path overriding the `ffmpeg` executable to use.
+
+### ~~`ffprobeExecutable?`~~ <AvailableFrom v="3.0.17" />
+
+_removed in v4.0, optional_
+
+An absolute path overriding the `ffprobe` executable to use.
+
## Return Value
_since v3.0.26_
diff --git a/packages/docs/docs/renderer/stitch-frames-to-video.md b/packages/docs/docs/renderer/stitch-frames-to-video.md
index 2938a3011f..d541380b2b 100644
--- a/packages/docs/docs/renderer/stitch-frames-to-video.md
+++ b/packages/docs/docs/renderer/stitch-frames-to-video.md
@@ -151,18 +151,6 @@ _optional_
A boolean value that when set to `true`, will log all kinds of debug information. Default `false`.
-### `ffmpegExecutable?`
-
-_optional_
-
-A custom FFMPEG executable to be used. By default, a binary called `ffmpeg` will be searched in your `PATH`.
-
-#### `ffprobeExecutable?` <AvailableFrom v="3.0.17" />
-
-_optional_
-
-An absolute path overriding the `ffprobe` executable to use.
-
### `cancelSignal?` <AvailableFrom v="3.0.15" />
_optional_
@@ -201,6 +189,18 @@ Using this feature is discouraged. Before using it, we want to make you aware of
Before you use this hack, reach out to the Remotion team on [Discord](https://remotion.dev/discord) and ask us if we are open to implement the feature you need in a clean way - we often do implement new features quickly based on users feedback.
:::
+### ~~`ffmpegExecutable`~~
+
+_removed in v4.0, optional_
+
+A custom FFMPEG executable to be used. By default, a binary called `ffmpeg` will be searched in your `PATH`.
+
+#### ~~`ffprobeExecutable?`~~ <AvailableFrom v="3.0.17" />
+
+_removed in v4.0, optional_
+
+An absolute path overriding the `ffprobe` executable to use.
+
## Return value
`stitchFramesToVideo()` returns a promise which resolves to nothing. If everything goes well, the output will be placed in `outputLocation`.