Skip to main content

Changing the temporary directory

During rendering, Remotion will write items into the temporary directory of the system. This includes rendered frames, uncompressed audio and other artifacts.

If you want to customize the directory that Remotion uses, you can set the TEMP environment variable to specify a directory to your liking.

bash
TEMP=/var/tmp npx remotion render
bash
TEMP=/var/tmp npx remotion render

Remotion will make a new temporary directory in the path that you have specified. This is because the Node.JS API os.tmpdir() is called by Remotion which is checking for environment variables.

Changing the temporary directory may be useful if the default temporary directory is on a disk that has limited space available.