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.
Changing the temporary directory may be useful if the default temporary directory is on a disk that has limited space available.
If you want to customize the directory that Remotion uses, you can set the TMPDIR (Linux, macOS) or TEMP (Windows) environment variable to specify a directory to your liking.
bashTMPDIR=/var/tmp npx remotion render
bashTMPDIR=/var/tmp npx remotion render
Remotion will make a new temporary directory in the path that you have specified.
This is because Remotion uses the the Node.JS os.tmpdir() API, which checks for environment variables in the following order:
TMPDIR,TMP,TEMPon non-Windows platformsTEMPandTMPon Windows platforms