🎥 Make videos programmatically with React
Updated `setBrowserExecutable()` doc
Shankhadeep Deyddf9316e05b7
diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex b51f082829..76a92bf59b 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -23,6 +23,7 @@ Besides choosing a video and output location with the command line arguments, th- `--sequence`: [Pass this flag if you want an image sequence as the output instead of a video.](config#setimagesequence) Available since v1.4.- `--codec`: [`h264` or `h265` or `png` or `vp8` or `vp9`](config#setoutputformat). If you don't supply `--codec`, it will use the H.264 encoder. Available since v1.4.- `--crf`: [To set Constant Rate Factor (CRF) of the output](config#setcrf). Minimum 0. Use this rate control mode if you want to keep the best quality and care less about the file size. Available since v1.4.+- `--browser-executable`: [to add custom chrome executable](config#setbrowserexecutable). If you add custom chrome executable it will help rendering H.264 video (MP4).:::infoIf you don't feel like passing command line flags every time, consider creating a `remotion.config.ts` [config file](config).diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 9d6aec8a2a..f12fd5edb5 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -27,6 +27,19 @@ Config.Bundling.overrideWebpackConfig((currentConfiguration) => {});```+## Puppeteer++### setBrowserExecutable()++Sets puppeteer-core to use custom chrome or chromium browser executable. If you provide path of chrome executable it will help render H.264 video (the codec of MP4 videos) in your output video. To find chrome executable [for linux use this guide](https://askubuntu.com/questions/1046848/how-to-find-the-path-of-a-specific-application-google-chrome), [for windows use this guide](https://stackoverflow.com/a/20752358/8737200) and by default it searches for custom chrome executable in macos.++```ts+//for linux+Config.Puppeteer.setBrowserExecutable('/usr/bin/google-chrome-stable')+```++The [command line flag](cli) `--browser-executable` will take precedence over this option.+## Rendering### setConcurrency()diff --git a/packages/docs/docs/video.md b/packages/docs/docs/video.mdindex 5936c83d74..2314f27151 100644--- a/packages/docs/docs/video.md+++ b/packages/docs/docs/video.md@@ -5,8 +5,8 @@ id: videoThis component allows you to include a video file in your Remtotion project. While in the preview, the video will just play in a HTML5 `<video>` tag, during render, the exact frame needed will be extracted.-:::warning-Please note that while H.264 video (the codec of MP4 videos) will show up during Preview, it will not work during render. This is because Puppeteer with Chromium is used during rendering, which does not ship with H.264 codecs. Convert your videos to a Chromium compatible format such as WebM instead.+:::info+Please note that while H.264 video (the codec of MP4 videos) will show up during Preview, it will not work during render unless you sets custom puppeteer browser executable using command line `--browser-executable` or [configure](config#setbrowserexecutable) `Config.Puppeteer.setBrowserExecutable()` in remotion config file. This is because by default Puppeteer with Chromium is used during rendering, which does not ship with H.264 codecs.::::::warning