Skip to content

🎥 Make videos programmatically with React

update docs

Jonny Burger20e5d4eac520
diff --git a/packages/docs/docs/chromium-flags.md b/packages/docs/docs/chromium-flags.md
index 6c8c480d00..add83a4e04 100644
--- a/packages/docs/docs/chromium-flags.md
+++ b/packages/docs/docs/chromium-flags.md
@@ -30,7 +30,7 @@ Pass [`--disable-web-security`](/docs/cli/render#--disable-web-security) in one
Use [setChromiumDisableWebSecurity()](/docs/config#setchromiumdisablewebsecurity).
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -58,7 +58,7 @@ Pass [`--ignore-certificate-errors`](/docs/cli/render#--ignore-certificate-error
Use [setChromiumIgnoreCertificateErrors()](/docs/config#setchromiumignorecertificateerrors).
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -86,7 +86,7 @@ Pass [`--disable-headless`](/docs/cli/render#--disable-headless) in one of the f
Use [setChromiumHeadlessMode()](/docs/config#setchromiumheadlessmode).
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -124,7 +124,7 @@ Pass [`--gl=swiftshader`](/docs/cli#gl) in one of the following commands: `remot
### Via config file
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 3f810f8bbd..c7d2c82c6c 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -16,7 +16,7 @@ The configuration file has no effect when using [SSR](/docs/renderer) APIs.
You can control several behaviors of Remotion here.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.setConcurrency(8);
Config.setPixelFormat("yuv444p");
@@ -30,7 +30,7 @@ In v3.3.39, a new config file format was introduced which flattens the options s
Previously, each config option was two levels deep:
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.Bundling.setCachingEnabled(false);
```
@@ -38,7 +38,7 @@ Config.Bundling.setCachingEnabled(false);
From v3.3.39 on, all options can be accessed directly from the `Config` object.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setCachingEnabled(false);
```
@@ -50,7 +50,7 @@ The old way is deprecated, but will work for the foreseeable future.
Allows you to insert your custom Webpack config. [See the page about custom Webpack configs](/docs/webpack) for more information.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.overrideWebpackConfig((currentConfiguration) => {
// Return a new Webpack configuration
@@ -66,7 +66,7 @@ Config.overrideWebpackConfig((currentConfiguration) => {
Enable or disable Webpack caching. Default is `true` which will make the Webpack step in the first run a bit slower but will massively speed up subsequent runs.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setCachingEnabled(false);
```
@@ -86,7 +86,7 @@ During rendering, a HTTP server is also started in the background to serve the W
:::
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setPort(3003);
```
@@ -100,7 +100,7 @@ By default it is a folder named "public" inside the current working directory.
You can either set an absolute path, or a relative path that will be resolved from the closest package.json location.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setPublicDir("./publico");
```
@@ -112,7 +112,7 @@ The [command line flag](/docs/cli/render#--public-dir) `--public-dir` will take
Sets the Remotion [entry point](/docs/terminology#entry-point), you don't have to specify it for CLI commands.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setEntryPoint("./src/index.ts");
```
@@ -130,7 +130,7 @@ Acceptable values:
- `verbose`: All of the above, plus browser logs and other debug info.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setLevel("verbose");
```
@@ -142,7 +142,7 @@ The [command line flag](/docs/cli/render#--log) `--log` will take precedence ove
Set how many tracks are being displayed in the timeline in the Preview at most. This does not affect your video, just the amount of tracks shown when previewing. Default `15`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setMaxTimelineTracks(20);
```
@@ -152,7 +152,7 @@ Config.setMaxTimelineTracks(20);
Whether the Preview should react to keyboard shortcuts. Default `true`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setKeyboardShortcutsEnabled(false);
```
@@ -165,7 +165,7 @@ Enables Webpack polling instead of the file system event listeners for hot reloa
This is useful if you are inside a virtual machine or have a remote file system.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setWebpackPollingInMilliseconds(1000);
```
@@ -177,7 +177,7 @@ The [command line flag](/docs/cli/preview#--webpack-poll) `--webpack-poll` will
How many shared audio tags should be mounted in the Preview. Shared audio tags can help prevent playback issues due to audio autoplay policies of the browser. See [this article](/docs/player/autoplay#use-the-numberofsharedaudiotags-property) which covers the same option but for the Player. Default `0`, meaning no autoplay policies are circumvented.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setNumberOfSharedAudioTags(5);
@@ -188,7 +188,7 @@ Config.setNumberOfSharedAudioTags(5);
Whether Remotion should open a browser when starting the Preview. Default `true`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setShouldOpenBrowser(false);
@@ -199,7 +199,7 @@ Config.setShouldOpenBrowser(false);
Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need [support for the H264 codec](/docs/video#codec-support).
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setBrowserExecutable("/usr/bin/google-chrome-stable");
```
@@ -213,7 +213,7 @@ _previously named "setTimeoutInMilliseconds"_
Define how long a single frame may take to resolve all [`delayRender()`](/docs/delay-render) calls [before it times out](/docs/timeout). Default: `30000`
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setDelayRenderTimeoutInMilliseconds(60000);
```
@@ -225,7 +225,7 @@ The [command line flag](/docs/cli/render#--timeout) `--timeout` will take preced
This will most notably disable CORS among other security features during rendering.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -239,7 +239,7 @@ The [command line flag](/docs/cli/render#--disable-web-security) `--disable-web-
Results in invalid SSL certificates, such as self-signed ones, being ignored during rendering.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -253,7 +253,7 @@ The [command line flag](/docs/cli/render#--ignore-certificate-errors) `--ignore-
By default `true`. Disabling it will open an actual Chrome window where you can see the render happen.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
@@ -268,7 +268,7 @@ Sets how many Puppeteer instances will work on rendering your video in parallel.
Default: `null`, meaning **half of the threads** available on your CPU.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setConcurrency(8);
```
@@ -288,7 +288,7 @@ Determines which in which image format to render the frames. Either:
- `none` - don't render images, just calculate audio information (available from v2.0)
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setImageFormat("png");
```
@@ -300,7 +300,7 @@ The [command line flag](/docs/cli/render#--image-format) `--image-format` will t
[Scales the output frames by the factor you pass in.](/docs/scaling) For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details. Default: `1`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setScale(2);
```
@@ -312,7 +312,7 @@ The [command line flag](/docs/cli/render#--scale) `--scale` will take precedence
Disables audio output. Default `false`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setMuted(true);
```
@@ -324,7 +324,7 @@ The [command line flag](/docs/cli/render#--muted) `--muted` will take precedence
Render a silent audio track if there would be none otherwise. Default `false`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setEnforceAudioTrack(true);
```
@@ -336,7 +336,7 @@ The [command line flag](/docs/cli/render#--enforce-audio-track) `--enforce-audio
Pass a number to render a still frame or a tuple to render a subset of a video. The frame sequence is zero-indexed.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setFrameRange(90); // To render only the 91st frame
```
@@ -344,7 +344,7 @@ Config.setFrameRange(90); // To render only the 91st frame
or
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setFrameRange([0, 20]); // Render a video only containing the first 21 frames
```
@@ -356,7 +356,7 @@ The [command line flag](/docs/cli/render#--frames) `--frames` will take preceden
The JPEG quality of each frame. Must be a number between 0 and 100. Will not work if you render PNG frames. [Default: 80](https://github.com/chromium/chromium/blob/99314be8152e688bafbbf9a615536bdbb289ea87/headless/lib/browser/protocol/headless_handler.cc#L32).
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setQuality(90);
```
@@ -368,7 +368,7 @@ The [command line flag](/docs/cli/render#--quality) `--quality` will take preced
Set a custom location for a [`.env`](https://www.npmjs.com/package/dotenv) file. You can specify an absolute path or a relative path in which case it gets resolved based on the current working directory.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setDotEnvLocation(".my-env");
```
@@ -380,7 +380,7 @@ The [command line flag](/docs/cli/render#--env-file) `--env-file` will take prec
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 twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setFfmpegExecutable("/path/to/custom/ffmpeg");
```
@@ -392,7 +392,7 @@ The [command line flag](/docs/cli/render#--ffmpeg-executable) `--ffmpeg-executab
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 twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setFfprobeExecutable("/path/to/custom/ffprobe");
```
@@ -406,7 +406,7 @@ This option may only be set when rendering GIFs. [It determines how many frames
For example, if the `fps` is 30, and `everyNthFrame` is 2, the FPS of the GIF is `15`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setEveryNthFrame(2);
```
@@ -418,7 +418,7 @@ The [command line flag](/docs/cli/render#--every-nth-frame) `--every-nth-frame`
This option may only be set when rendering GIFs. [If it is set, it will limit the amount of times a GIF will loop. If set to `0`, the GIF will play once, if set to `1`, it will play twice. If set to `null` or not set at all, it will play forever](/docs/render-as-gif).
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setNumberOfGifLoops(2);
```
@@ -430,7 +430,7 @@ The [command line flag](/docs/cli/render#--number-of-gif-loops) `--number-of-gif
Set the output location of the video or still, relative to the current working directory. The default is `out/{composition}.{container}`. For example, `out/HelloWorld.mp4`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setOutputLocation("out/video.mp4");
```
@@ -442,7 +442,7 @@ If you pass another argument to the render command, it will take precedence: `np
Set this to `false` to prevent overwriting Remotion outputs when they already exists.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setOverwriteOutput(false);
```
@@ -457,7 +457,7 @@ Controls the pixel format in FFMPEG. [Read more about it here.](https://trac.ffm
Default value: `yuv420p`
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setPixelFormat("yuv420p");
```
@@ -478,7 +478,7 @@ Choose one of the supported codecs: `h264` _(default)_, `h265`, `vp8`, `vp9`.
- `aac` will export audio only as an AAC file _(available from v2.0)_
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setCodec("h265");
```
@@ -490,7 +490,7 @@ The [command line flag](/docs/cli/render#--codec) `--codec` will take precedence
## setAudioCodec()
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setAudioCodec("pcm-16");
```
@@ -514,7 +514,7 @@ See [here](https://video.stackexchange.com/a/14715) for explanation of possible
Default: `hq`
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setProResProfile("4444");
```
@@ -528,7 +528,7 @@ The [command line flag](/docs/cli/render#--prores-profile) `--prores-profile` wi
Set to true if you want to output an image sequence instead of a video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setImageSequence(true);
```
@@ -540,7 +540,7 @@ The [command line flag](/docs/cli/render#--sequence) `--sequence` will take prec
Overrides the height of the rendered video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.overrideHeight(600);
```
@@ -553,7 +553,7 @@ The [command line flag](/docs/cli/render#--height) `--height` will take preceden
Overrides the width of the rendered video.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.overrideWidth(900);
```
@@ -567,7 +567,7 @@ _Deprecated_. Use `setCodec()` and `setImageSequence()` instead.
Either `'mp4'` or `'png-sequence'`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setOutputFormat("mp4");
```
@@ -594,7 +594,7 @@ The range is exponential, so increasing the CRF value +6 results in roughly half
Choose the highest CRF value that still provides an acceptable quality. If the output looks good, then try a higher value. If it looks bad, choose a lower value.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.setCrf(16);
```
@@ -606,7 +606,7 @@ The [command line flag](/docs/cli/render#--crf) `--crf` will take precedence ove
Modifies the FFMPEG command that Remotion uses under the hood. It works reducer-style, meaning that you pass a function that takes a command as an argument and returns a new command.
```tsx twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.overrideFfmpegCommand(({ args }) => {
return [...args, "-vf", "eq=brightness=0:saturation=1"];
diff --git a/packages/docs/docs/legacy-babel-loader.md b/packages/docs/docs/legacy-babel-loader.md
index 4ba7cfbeae..db8f39bdde 100644
--- a/packages/docs/docs/legacy-babel-loader.md
+++ b/packages/docs/docs/legacy-babel-loader.md
@@ -51,7 +51,7 @@ yarn add mdx-loader babel-loader @babel/preset-env @babel/preset-react
</Tabs>
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
import { replaceLoadersWithBabel } from "@remotion/babel-loader";
diff --git a/packages/docs/docs/miscellaneous/ts-aliases.md b/packages/docs/docs/miscellaneous/ts-aliases.md
index 42ebe5a044..7f6f7dd9f4 100644
--- a/packages/docs/docs/miscellaneous/ts-aliases.md
+++ b/packages/docs/docs/miscellaneous/ts-aliases.md
@@ -36,7 +36,7 @@ you can add the aliases to Webpack, however you need to add each of them manuall
```ts twoslash
import path from "path";
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.overrideWebpackConfig((config) => {
return {
diff --git a/packages/docs/docs/overlay.md b/packages/docs/docs/overlay.md
index 5ab7303160..eb49498535 100644
--- a/packages/docs/docs/overlay.md
+++ b/packages/docs/docs/overlay.md
@@ -13,7 +13,7 @@ If you want to export a Remotion video to use it as an overlay or transition in
<InlineStep>2</InlineStep> To export the video as ProRes file, setup the <code>remotion.config.ts</code> file as follows: <br/><br/>
```tsx twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.setImageFormat("png");
Config.setPixelFormat("yuva444p10le");
diff --git a/packages/docs/docs/overwriting-webpack-config.md b/packages/docs/docs/overwriting-webpack-config.md
index 22418ce294..c5f4279f73 100644
--- a/packages/docs/docs/overwriting-webpack-config.md
+++ b/packages/docs/docs/overwriting-webpack-config.md
@@ -17,7 +17,7 @@ You can override it reducer-style by creating a function that takes the previous
In your `remotion.config.ts` file, you can call `Config.Bundler.overrideWebpackConfig()` from `remotion`.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.overrideWebpackConfig((currentConfiguration) => {
return {
@@ -58,7 +58,7 @@ import { WebpackOverrideFn } from "@remotion/bundler";
export const webpackOverride: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { webpackOverride } from "./src/webpack-override";
Config.overrideWebpackConfig(webpackOverride);
@@ -191,7 +191,7 @@ import { WebpackOverrideFn } from "@remotion/bundler";
export const enableMdx: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableMdx } from "./src/enable-mdx";
Config.overrideWebpackConfig(enableMdx);
@@ -278,7 +278,7 @@ import { WebpackOverrideFn } from "@remotion/bundler";
export const enableSass: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableSass } from "./src/enable-sass";
Config.overrideWebpackConfig(enableSass);
@@ -356,7 +356,7 @@ export const enableGlsl: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableGlsl } from "./src/enable-glsl";
Config.overrideWebpackConfig(enableGlsl);
@@ -381,7 +381,7 @@ declare module "*.glsl" {
There are two WebAssembly modes: asynchronous and synchronous. We recommend testing both and seeing which one works for the WASM library you are trying to use.
```ts twoslash title="remotion.config.ts - synchronous"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.overrideWebpackConfig((conf) => {
return {
@@ -398,7 +398,7 @@ Since Webpack does not allow synchronous WebAssembly code in the main chunk, you
:::
```ts twoslash title="remotion.config.ts - asynchronous"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.overrideWebpackConfig((conf) => {
return {
diff --git a/packages/docs/docs/scaling.md b/packages/docs/docs/scaling.md
index 6ee92626cb..aff1457cc2 100644
--- a/packages/docs/docs/scaling.md
+++ b/packages/docs/docs/scaling.md
@@ -22,7 +22,7 @@ Remotion can support this higher resolution by setting the [`deviceScaleFactor`]
- In the [config file](/docs/config), you can pass the scale using the following statement:
```ts twoslash
- import { Config } from "remotion";
+ import { Config } from "@remotion/cli/config";
// ---cut---
Config.setScale(2);
```
diff --git a/packages/docs/docs/skia/enable-skia.md b/packages/docs/docs/skia/enable-skia.md
index 8cffd7bcb7..acb6c0d7b2 100644
--- a/packages/docs/docs/skia/enable-skia.md
+++ b/packages/docs/docs/skia/enable-skia.md
@@ -7,7 +7,7 @@ crumb: "@remotion/skia"
A function that modifies the default Webpack configuration to make the necessary changes to support Skia.
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableSkia } from "@remotion/skia/enable";
Config.overrideWebpackConfig((currentConfiguration) => {
@@ -22,7 +22,7 @@ Prior to `v3.3.39`, the option was called `Config.Bundling.overrideWebpackConfig
If you want to make other configuration changes, you can do so by doing them reducer-style:
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableSkia } from "@remotion/skia/enable";
Config.overrideWebpackConfig((currentConfiguration) => {
diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.md
index cd1f9e1dbd..c39cc4322c 100644
--- a/packages/docs/docs/skia/skia.md
+++ b/packages/docs/docs/skia/skia.md
@@ -63,7 +63,7 @@ Make sure no package version number has a `^` character in front of it as it can
[Override the Webpack config](/docs/webpack) by using [`enableSkia()`](/docs/skia/enable-skia).
```ts twoslash title="remotion.config.ts"
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableSkia } from "@remotion/skia/enable";
Config.overrideWebpackConfig((currentConfiguration) => {
diff --git a/packages/docs/docs/tailwind-2.md b/packages/docs/docs/tailwind-2.md
index e55b890c24..77148bafc5 100644
--- a/packages/docs/docs/tailwind-2.md
+++ b/packages/docs/docs/tailwind-2.md
@@ -49,7 +49,7 @@ yarn add postcss-loader postcss postcss-preset-env tailwindcss@2 autoprefixer
2. Add the following to your [`remotion.config.ts`](/docs/config) file:
```ts twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
// ---cut---
Config.overrideWebpackConfig((currentConfiguration) => {
return {
diff --git a/packages/docs/docs/tailwind.md b/packages/docs/docs/tailwind.md
index 02911ca52a..76a063b4de 100644
--- a/packages/docs/docs/tailwind.md
+++ b/packages/docs/docs/tailwind.md
@@ -137,7 +137,7 @@ import { WebpackOverrideFn } from "@remotion/bundler";
export const enableTailwind: WebpackOverrideFn = (c) => c;
// @filename: remotion.config.ts
// ---cut---
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
import { enableTailwind } from "./src/enable-tailwind";
Config.overrideWebpackConfig(enableTailwind);
diff --git a/packages/docs/docs/three.md b/packages/docs/docs/three.md
index 8c81e3518f..552f89e3fc 100644
--- a/packages/docs/docs/three.md
+++ b/packages/docs/docs/three.md
@@ -72,7 +72,7 @@ A [`<Sequence>`](/docs/sequence) by default will return a `<div>` component, whi
Three.JS does not render with the default OpenGL renderer - we recommend to set it to `angle`. The config file of new projects includes by default:
```ts twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.setChromiumOpenGlRenderer("angle");
```
diff --git a/packages/docs/docs/transparent-videos.md b/packages/docs/docs/transparent-videos.md
index e00d38d4f8..c9a22725ce 100644
--- a/packages/docs/docs/transparent-videos.md
+++ b/packages/docs/docs/transparent-videos.md
@@ -37,7 +37,7 @@ In order to create a transparent video, you need at least version 1.4 of Remotio
If you want to set these options and persist them, add this to your `remotion.config.ts` file (create it if you don't yet have one);
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.setImageFormat("png");
Config.setPixelFormat("yuva420p");
@@ -58,7 +58,7 @@ ProRes is supported by Final Cut Pro, Adobe Premiere and Davinci Resolve.
Supported since v2.1.7, you can set the codec to `prores` and choose a ProRes profile with alpha support: Either: `4444` or `4444-hq`. The pixel format must be `yuva444p10le`.
```tsx twoslash
-import { Config } from "remotion";
+import { Config } from "@remotion/cli/config";
Config.setImageFormat("png");
Config.setPixelFormat("yuva444p10le");