Skip to content

🎥 Make videos programmatically with React

Clarify encoding and muxing stages in the documentation

Jonny Burgerf0ba913f45ff
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 0e5858af4e..64ea50018f 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -1192,7 +1192,7 @@ Config.overrideFfmpegCommand(({args}) => {
The function you pass must accept an object as it's only parameter which contains the following properties:
-- `type`: Either `"stitcher"` or `"pre-stitcher"`. For the `h264`, `h264-mkv` and `h265` codecs, Remotion uses a two-pass process for the video generation unless [parallel encoding is disallowed](#setdisallowparallelencoding). `pre-stitcher` is the encoding phase and `stitcher` is the muxing phase. If the override function is only called once with `stitcher`, then encoding and muxing is done in the same step. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
+- `type`: Either `"stitcher"` or `"pre-stitcher"`. When [parallel encoding is enabled](#setdisallowparallelencoding), `pre-stitcher` encodes the video while frames are rendered, then `stitcher` muxes the encoded video and any audio into the output file. Otherwise, the function is called once with `stitcher`, which performs encoding and muxing together. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
- `args`: An array of strings that is passed as arguments to the FFmpeg command.
Your function must return a modified array of strings.
diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdx
index a3c7326c22..ba055aa2ed 100644
--- a/packages/docs/docs/renderer/render-media.mdx
+++ b/packages/docs/docs/renderer/render-media.mdx
@@ -443,7 +443,7 @@ const ffmpegOverride: FfmpegOverrideFn = ({type, args}) => {
The function you pass must accept an object as it's only parameter which contains the following properties:
-- `type`: Either `"stitcher"` or `"pre-stitcher"`. For the `h264`, `h264-mkv` and `h265` codecs, Remotion uses a two-pass process for the video generation unless [parallel encoding is disallowed](#disallowparallelencoding). `pre-stitcher` is the encoding phase and `stitcher` is the muxing phase. If the override function is only called once with `stitcher`, then encoding and muxing is done in the same step. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
+- `type`: Either `"stitcher"` or `"pre-stitcher"`. When [parallel encoding is enabled](#disallowparallelencoding), `pre-stitcher` encodes the video while frames are rendered, then `stitcher` muxes the encoded video and any audio into the output file. Otherwise, the function is called once with `stitcher`, which performs encoding and muxing together. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
- `args`: An array of strings that is passed as arguments to the FFMPEG command.
Your function must return a modified array of strings.
diff --git a/packages/docs/docs/renderer/stitch-frames-to-video.mdx b/packages/docs/docs/renderer/stitch-frames-to-video.mdx
index ac1e996fc1..c42889ae19 100644
--- a/packages/docs/docs/renderer/stitch-frames-to-video.mdx
+++ b/packages/docs/docs/renderer/stitch-frames-to-video.mdx
@@ -178,7 +178,7 @@ const ffmpegOverride: FfmpegOverrideFn = ({type, args}) => {
The function you pass must accept an object as it's only parameter which contains the following properties:
-- `type`: Either `"stitcher"` or `"pre-stitcher"`. When rendering with [`renderMedia()`](/docs/renderer/render-media), Remotion uses a two-pass process for the `h264`, `h264-mkv` and `h265` codecs unless [parallel encoding is disallowed](/docs/renderer/render-media#disallowparallelencoding). `pre-stitcher` is the encoding phase and `stitcher` is the muxing phase. If the override function is only called once with `stitcher`, then encoding and muxing is done in the same step. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
+- `type`: Either `"stitcher"` or `"pre-stitcher"`. When rendering with [`renderMedia()`](/docs/renderer/render-media) and [parallel encoding is enabled](/docs/renderer/render-media#disallowparallelencoding), `pre-stitcher` encodes the video while frames are rendered, then `stitcher` muxes the encoded video and any audio into the output file. Otherwise, the function is called once with `stitcher`, which performs encoding and muxing together. You can tell whether parallel encoding is enabled by adding `--log=verbose` to your render command.
- `args`: An array of strings that is passed as arguments to the FFMPEG command.
Your function must return a modified array of strings.