19 lines
779 B
TypeScript
19 lines
779 B
TypeScript
|
|
import { Config } from "@remotion/cli/config";
|
||
|
|
|
||
|
|
Config.setVideoImageFormat("jpeg");
|
||
|
|
Config.setOverwriteOutput(true);
|
||
|
|
// Higher quality concurrency defaults for the logo-intro previews.
|
||
|
|
Config.setConcurrency(4);
|
||
|
|
|
||
|
|
// Remotion's bundled Chrome Headless Shell download is geo-blocked (403) from
|
||
|
|
// Iran, so point it at the locally-installed Chrome instead. Override with the
|
||
|
|
// REMOTION_BROWSER env var on machines where Chrome lives elsewhere.
|
||
|
|
Config.setBrowserExecutable(
|
||
|
|
process.env.REMOTION_BROWSER ??
|
||
|
|
"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
|
||
|
|
);
|
||
|
|
|
||
|
|
// Required for WebGL / Three.js (@remotion/three) templates to render headless.
|
||
|
|
// "angle" works with the local Chrome; the node-agent inherits this from config.
|
||
|
|
Config.setChromiumOpenGlRenderer("angle");
|