Change temporal route path? #891
-
Hello everyone! I would like to know if there is any way to change the default directory where Remotion stores temporary images when rendering a video. Right now everything is dumped to "/tmp" and my idea is to be able to do it to "/data/tmp". I've looked at the documentation but haven't seen anything about it. Is it possible to change it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @SergioGracia! Indeed, that is currently hardcoded and cannot be changed. We can consider this feature - what is your motivation to use a different directory? |
Beta Was this translation helpful? Give feedback.
-
@SergioGracia @kave-me I found a solution! Node.JS will respect the TMPDIR environment variable on macOS and Linux, and the TEMP environment variable on Windows. So set the |
Beta Was this translation helpful? Give feedback.
@SergioGracia @kave-me I found a solution!
Node.JS will respect the TMPDIR environment variable on macOS and Linux, and the TEMP environment variable on Windows.
So set the
TMPDIR
orTEMP
environment variable either globally (put it in your .bashrc for example),or just for the Remotion script (
TMPDIR=/custom/tmp npx remotion ...
)