@remotion/cli 4.0.380 → 4.0.381
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/benchmark.js +3 -1
- package/dist/compositions.js +13 -11
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +2 -1
- package/dist/get-render-defaults.js +5 -1
- package/dist/gpu.js +3 -1
- package/dist/parse-command-line.d.ts +15 -0
- package/dist/parse-command-line.js +4 -1
- package/dist/parsed-cli.js +1 -0
- package/dist/render.js +3 -1
- package/dist/still.js +3 -1
- package/package.json +14 -14
package/dist/benchmark.js
CHANGED
|
@@ -22,7 +22,7 @@ const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-
|
|
|
22
22
|
const show_compositions_picker_1 = require("./show-compositions-picker");
|
|
23
23
|
const truthy_1 = require("./truthy");
|
|
24
24
|
const DEFAULT_RUNS = 3;
|
|
25
|
-
const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
25
|
+
const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
26
26
|
const getValidConcurrency = (cliConcurrency) => {
|
|
27
27
|
const { concurrencies } = parsed_cli_1.parsedCli;
|
|
28
28
|
if (!concurrencies) {
|
|
@@ -118,6 +118,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
118
118
|
const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
119
119
|
const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
120
120
|
const chromeMode = chromeModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
121
|
+
const darkMode = darkModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
121
122
|
const chromiumOptions = {
|
|
122
123
|
disableWebSecurity,
|
|
123
124
|
enableMultiProcessOnLinux,
|
|
@@ -125,6 +126,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
125
126
|
headless,
|
|
126
127
|
ignoreCertificateErrors,
|
|
127
128
|
userAgent,
|
|
129
|
+
darkMode,
|
|
128
130
|
};
|
|
129
131
|
const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
|
|
130
132
|
indent: false,
|
package/dist/compositions.js
CHANGED
|
@@ -13,7 +13,7 @@ const log_1 = require("./log");
|
|
|
13
13
|
const parsed_cli_1 = require("./parsed-cli");
|
|
14
14
|
const print_compositions_1 = require("./print-compositions");
|
|
15
15
|
const setup_cache_1 = require("./setup-cache");
|
|
16
|
-
const { enableMultiprocessOnLinuxOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
16
|
+
const { enableMultiprocessOnLinuxOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
17
17
|
const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
18
18
|
const { file, reason } = (0, entry_point_1.findEntryPoint)({
|
|
19
19
|
args,
|
|
@@ -33,16 +33,6 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
33
33
|
logLevel,
|
|
34
34
|
indent: false,
|
|
35
35
|
});
|
|
36
|
-
const chromiumOptions = {
|
|
37
|
-
disableWebSecurity,
|
|
38
|
-
enableMultiProcessOnLinux: enableMultiprocessOnLinuxOption.getValue({
|
|
39
|
-
commandLine: parsed_cli_1.parsedCli,
|
|
40
|
-
}).value,
|
|
41
|
-
gl: glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
|
|
42
|
-
headless: headlessOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
|
|
43
|
-
ignoreCertificateErrors,
|
|
44
|
-
userAgent,
|
|
45
|
-
};
|
|
46
36
|
const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
47
37
|
const timeoutInMilliseconds = delayRenderTimeoutInMillisecondsOption.getValue({
|
|
48
38
|
commandLine: parsed_cli_1.parsedCli,
|
|
@@ -50,6 +40,7 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
50
40
|
const binariesDirectory = binariesDirectoryOption.getValue({
|
|
51
41
|
commandLine: parsed_cli_1.parsedCli,
|
|
52
42
|
}).value;
|
|
43
|
+
const darkMode = darkModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
53
44
|
const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
|
|
54
45
|
commandLine: parsed_cli_1.parsedCli,
|
|
55
46
|
}).value;
|
|
@@ -66,6 +57,17 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
66
57
|
const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
|
|
67
58
|
commandLine: parsed_cli_1.parsedCli,
|
|
68
59
|
}).value;
|
|
60
|
+
const chromiumOptions = {
|
|
61
|
+
disableWebSecurity,
|
|
62
|
+
enableMultiProcessOnLinux: enableMultiprocessOnLinuxOption.getValue({
|
|
63
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
64
|
+
}).value,
|
|
65
|
+
gl: glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
|
|
66
|
+
headless: headlessOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
|
|
67
|
+
ignoreCertificateErrors,
|
|
68
|
+
userAgent,
|
|
69
|
+
darkMode,
|
|
70
|
+
};
|
|
69
71
|
const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
|
|
70
72
|
remotionRoot,
|
|
71
73
|
fullPath: file,
|
package/dist/config/index.d.ts
CHANGED
|
@@ -112,6 +112,11 @@ declare global {
|
|
|
112
112
|
* Default: true
|
|
113
113
|
*/
|
|
114
114
|
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Set whether to use dark mode for Chrome.
|
|
117
|
+
* Default: false
|
|
118
|
+
*/
|
|
119
|
+
readonly setChromiumDarkMode: (should: boolean) => void;
|
|
115
120
|
/**
|
|
116
121
|
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader', 'swangle', 'vulkan' and 'angle-egl'.
|
|
117
122
|
* Default: 'swangle' in Lambda, null elsewhere.
|
package/dist/config/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const user_agent_1 = require("./user-agent");
|
|
|
42
42
|
const webpack_caching_2 = require("./webpack-caching");
|
|
43
43
|
const webpack_poll_1 = require("./webpack-poll");
|
|
44
44
|
const width_1 = require("./width");
|
|
45
|
-
const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, } = client_1.BrowserSafeApis.options;
|
|
45
|
+
const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
46
46
|
exports.Config = {
|
|
47
47
|
get Bundling() {
|
|
48
48
|
throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
|
|
@@ -87,6 +87,7 @@ exports.Config = {
|
|
|
87
87
|
setDotEnvLocation: env_file_2.setDotEnvLocation,
|
|
88
88
|
setConcurrency: concurrency_2.setConcurrency,
|
|
89
89
|
setChromiumMultiProcessOnLinux: enableMultiprocessOnLinuxOption.setConfig,
|
|
90
|
+
setChromiumDarkMode: darkModeOption.setConfig,
|
|
90
91
|
setQuality: () => {
|
|
91
92
|
throw new Error('setQuality() has been renamed - use setJpegQuality() instead.');
|
|
92
93
|
},
|
|
@@ -5,7 +5,7 @@ const renderer_1 = require("@remotion/renderer");
|
|
|
5
5
|
const client_1 = require("@remotion/renderer/client");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
8
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
9
9
|
const getRenderDefaults = () => {
|
|
10
10
|
var _a;
|
|
11
11
|
const defaultJpegQuality = jpegQualityOption.getValue({
|
|
@@ -90,11 +90,15 @@ const getRenderDefaults = () => {
|
|
|
90
90
|
const videoImageFormat = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
|
|
91
91
|
const disableWebSecurity = config_1.ConfigInternals.getChromiumDisableWebSecurity();
|
|
92
92
|
const ignoreCertificateErrors = config_1.ConfigInternals.getIgnoreCertificateErrors();
|
|
93
|
+
const darkMode = darkModeOption.getValue({
|
|
94
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
95
|
+
}).value;
|
|
93
96
|
const userAgent = config_1.ConfigInternals.getChromiumUserAgent();
|
|
94
97
|
const metadata = config_1.ConfigInternals.getMetadata();
|
|
95
98
|
const maxConcurrency = renderer_1.RenderInternals.getMaxConcurrency();
|
|
96
99
|
const minConcurrency = renderer_1.RenderInternals.getMinConcurrency();
|
|
97
100
|
return {
|
|
101
|
+
darkMode,
|
|
98
102
|
jpegQuality: defaultJpegQuality !== null && defaultJpegQuality !== void 0 ? defaultJpegQuality : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
|
|
99
103
|
scale: defaultScale !== null && defaultScale !== void 0 ? defaultScale : 1,
|
|
100
104
|
logLevel,
|
package/dist/gpu.js
CHANGED
|
@@ -9,7 +9,7 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
9
9
|
const log_1 = require("./log");
|
|
10
10
|
const parsed_cli_1 = require("./parsed-cli");
|
|
11
11
|
exports.GPU_COMMAND = 'gpu';
|
|
12
|
-
const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, chromeModeOption, } = client_1.BrowserSafeApis.options;
|
|
12
|
+
const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, chromeModeOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
13
13
|
const gpuCommand = async (logLevel) => {
|
|
14
14
|
const { browserExecutable, disableWebSecurity, ignoreCertificateErrors, userAgent, } = (0, get_cli_options_1.getCliOptions)({
|
|
15
15
|
isStill: false,
|
|
@@ -29,6 +29,7 @@ const gpuCommand = async (logLevel) => {
|
|
|
29
29
|
const chromeMode = chromeModeOption.getValue({
|
|
30
30
|
commandLine: parsed_cli_1.parsedCli,
|
|
31
31
|
}).value;
|
|
32
|
+
const darkMode = darkModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
32
33
|
const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
|
|
33
34
|
quiet: (0, parsed_cli_1.quietFlagProvided)(),
|
|
34
35
|
indent: false,
|
|
@@ -48,6 +49,7 @@ const gpuCommand = async (logLevel) => {
|
|
|
48
49
|
headless,
|
|
49
50
|
ignoreCertificateErrors,
|
|
50
51
|
userAgent,
|
|
52
|
+
darkMode,
|
|
51
53
|
};
|
|
52
54
|
const statuses = await renderer_1.RenderInternals.getChromiumGpuInformation({
|
|
53
55
|
browserExecutable,
|
|
@@ -286,6 +286,20 @@ declare const beepOnFinishOption: {
|
|
|
286
286
|
source: string;
|
|
287
287
|
};
|
|
288
288
|
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
289
|
+
}, darkModeOption: {
|
|
290
|
+
name: string;
|
|
291
|
+
cliFlag: "dark-mode";
|
|
292
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
293
|
+
ssrName: string;
|
|
294
|
+
docLink: string;
|
|
295
|
+
type: boolean;
|
|
296
|
+
getValue: ({ commandLine }: {
|
|
297
|
+
commandLine: Record<string, unknown>;
|
|
298
|
+
}) => {
|
|
299
|
+
source: string;
|
|
300
|
+
value: boolean;
|
|
301
|
+
};
|
|
302
|
+
setConfig: (value: boolean) => void;
|
|
289
303
|
};
|
|
290
304
|
export type CommandLineOptions = {
|
|
291
305
|
['browser-executable']: BrowserExecutable;
|
|
@@ -296,6 +310,7 @@ export type CommandLineOptions = {
|
|
|
296
310
|
['bundle-cache']: string;
|
|
297
311
|
['env-file']: string;
|
|
298
312
|
['ignore-certificate-errors']: string;
|
|
313
|
+
[darkModeOption.cliFlag]: TypeOfOption<typeof darkModeOption>;
|
|
299
314
|
['disable-web-security']: string;
|
|
300
315
|
['every-nth-frame']: number;
|
|
301
316
|
[numberOfGifLoopsOption.cliFlag]: TypeOfOption<typeof numberOfGifLoopsOption>;
|
|
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
|
|
|
5
5
|
const config_1 = require("./config");
|
|
6
6
|
const log_1 = require("./log");
|
|
7
7
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
|
-
const { beepOnFinishOption, colorSpaceOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, } = client_1.BrowserSafeApis.options;
|
|
8
|
+
const { beepOnFinishOption, colorSpaceOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
9
9
|
const parseCommandLine = () => {
|
|
10
10
|
if (parsed_cli_1.parsedCli['pixel-format']) {
|
|
11
11
|
config_1.Config.setPixelFormat(parsed_cli_1.parsedCli['pixel-format']);
|
|
@@ -22,6 +22,9 @@ const parseCommandLine = () => {
|
|
|
22
22
|
if (parsed_cli_1.parsedCli['ignore-certificate-errors']) {
|
|
23
23
|
config_1.Config.setChromiumIgnoreCertificateErrors(true);
|
|
24
24
|
}
|
|
25
|
+
if (parsed_cli_1.parsedCli[darkModeOption.cliFlag]) {
|
|
26
|
+
config_1.Config.setChromiumDarkMode(parsed_cli_1.parsedCli[darkModeOption.cliFlag]);
|
|
27
|
+
}
|
|
25
28
|
if (parsed_cli_1.parsedCli['user-agent']) {
|
|
26
29
|
config_1.Config.setChromiumUserAgent(parsed_cli_1.parsedCli['user-agent']);
|
|
27
30
|
}
|
package/dist/parsed-cli.js
CHANGED
package/dist/render.js
CHANGED
|
@@ -11,7 +11,7 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parsed_cli_1 = require("./parsed-cli");
|
|
13
13
|
const render_1 = require("./render-flows/render");
|
|
14
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const render = async (remotionRoot, args, logLevel) => {
|
|
16
16
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
@@ -95,6 +95,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
95
95
|
const metadata = metadataOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
96
96
|
const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
97
97
|
const chromeMode = chromeModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
98
|
+
const darkMode = darkModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
98
99
|
const chromiumOptions = {
|
|
99
100
|
disableWebSecurity,
|
|
100
101
|
enableMultiProcessOnLinux,
|
|
@@ -102,6 +103,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
102
103
|
headless,
|
|
103
104
|
ignoreCertificateErrors,
|
|
104
105
|
userAgent,
|
|
106
|
+
darkMode,
|
|
105
107
|
};
|
|
106
108
|
const audioCodec = audioCodecOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
107
109
|
const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
package/dist/still.js
CHANGED
|
@@ -11,7 +11,7 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parsed_cli_1 = require("./parsed-cli");
|
|
13
13
|
const still_1 = require("./render-flows/still");
|
|
14
|
-
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const still = async (remotionRoot, args, logLevel) => {
|
|
16
16
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
@@ -71,6 +71,7 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
71
71
|
const audioLatencyHint = audioLatencyHintOption.getValue({
|
|
72
72
|
commandLine: parsed_cli_1.parsedCli,
|
|
73
73
|
}).value;
|
|
74
|
+
const darkMode = darkModeOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
74
75
|
const chromiumOptions = {
|
|
75
76
|
disableWebSecurity,
|
|
76
77
|
enableMultiProcessOnLinux,
|
|
@@ -78,6 +79,7 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
78
79
|
headless,
|
|
79
80
|
ignoreCertificateErrors,
|
|
80
81
|
userAgent,
|
|
82
|
+
darkMode,
|
|
81
83
|
};
|
|
82
84
|
await (0, still_1.renderStillFlow)({
|
|
83
85
|
remotionRoot,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cli",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.381",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@remotion/bundler": "4.0.
|
|
40
|
-
"@remotion/media-utils": "4.0.
|
|
41
|
-
"@remotion/player": "4.0.
|
|
42
|
-
"@remotion/renderer": "4.0.
|
|
43
|
-
"@remotion/studio-shared": "4.0.
|
|
44
|
-
"@remotion/studio-server": "4.0.
|
|
45
|
-
"@remotion/studio": "4.0.
|
|
39
|
+
"@remotion/bundler": "4.0.381",
|
|
40
|
+
"@remotion/media-utils": "4.0.381",
|
|
41
|
+
"@remotion/player": "4.0.381",
|
|
42
|
+
"@remotion/renderer": "4.0.381",
|
|
43
|
+
"@remotion/studio-shared": "4.0.381",
|
|
44
|
+
"@remotion/studio-server": "4.0.381",
|
|
45
|
+
"@remotion/studio": "4.0.381",
|
|
46
46
|
"dotenv": "9.0.2",
|
|
47
47
|
"minimist": "1.2.6",
|
|
48
48
|
"prompts": "2.4.2",
|
|
49
|
-
"remotion": "4.0.
|
|
49
|
+
"remotion": "4.0.381"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=16.8.0",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"@types/prompts": "^2.4.1",
|
|
58
58
|
"@types/prettier": "^2.7.2",
|
|
59
59
|
"@types/node": "20.12.14",
|
|
60
|
-
"@remotion/zod-types": "4.0.
|
|
61
|
-
"@remotion/tailwind-v4": "4.0.
|
|
62
|
-
"@remotion/enable-scss": "4.0.
|
|
63
|
-
"@remotion/skia": "4.0.
|
|
60
|
+
"@remotion/zod-types": "4.0.381",
|
|
61
|
+
"@remotion/tailwind-v4": "4.0.381",
|
|
62
|
+
"@remotion/enable-scss": "4.0.381",
|
|
63
|
+
"@remotion/skia": "4.0.381",
|
|
64
64
|
"react": "19.0.0",
|
|
65
65
|
"react-dom": "19.0.0",
|
|
66
66
|
"zod": "3.22.3",
|
|
67
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
67
|
+
"@remotion/eslint-config-internal": "4.0.381",
|
|
68
68
|
"eslint": "9.19.0"
|
|
69
69
|
},
|
|
70
70
|
"keywords": [
|