@remotion/cli 4.0.314 → 4.0.315
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 +5 -2
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.js +2 -1
- package/dist/parse-command-line.d.ts +15 -0
- package/dist/parse-command-line.js +1 -1
- package/dist/parsed-cli.js +1 -0
- package/dist/progress-bar.js +1 -1
- package/dist/render.js +5 -2
- 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, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, } = 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, } = client_1.BrowserSafeApis.options;
|
|
26
26
|
const getValidConcurrency = (cliConcurrency) => {
|
|
27
27
|
const { concurrencies } = parsed_cli_1.parsedCli;
|
|
28
28
|
if (!concurrencies) {
|
|
@@ -238,6 +238,9 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
238
238
|
commandLine: parsed_cli_1.parsedCli,
|
|
239
239
|
}).value;
|
|
240
240
|
const muted = mutedOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
241
|
+
const disallowParallelEncoding = disallowParallelEncodingOption.getValue({
|
|
242
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
243
|
+
}).value;
|
|
241
244
|
const numberOfGifLoops = numberOfGifLoopsOption.getValue({
|
|
242
245
|
commandLine: parsed_cli_1.parsedCli,
|
|
243
246
|
}).value;
|
|
@@ -316,7 +319,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
316
319
|
concurrency: con,
|
|
317
320
|
audioCodec: null,
|
|
318
321
|
cancelSignal: undefined,
|
|
319
|
-
disallowParallelEncoding
|
|
322
|
+
disallowParallelEncoding,
|
|
320
323
|
indent: false,
|
|
321
324
|
onBrowserLog: null,
|
|
322
325
|
onCtrlCExit: () => undefined,
|
package/dist/config/index.d.ts
CHANGED
|
@@ -272,6 +272,12 @@ declare global {
|
|
|
272
272
|
* Opt into bt709 rendering.
|
|
273
273
|
*/
|
|
274
274
|
readonly setColorSpace: (colorSpace: ColorSpace) => void;
|
|
275
|
+
/**
|
|
276
|
+
* Disallows the renderer from doing rendering frames and encoding at the same time.
|
|
277
|
+
* This makes the rendering process more memory-efficient, but possibly slower.
|
|
278
|
+
* Default: false
|
|
279
|
+
*/
|
|
280
|
+
readonly setDisallowParallelEncoding: (disallowParallelEncoding: boolean) => void;
|
|
275
281
|
/**
|
|
276
282
|
* Removes the --single-process flag that gets passed to
|
|
277
283
|
Chromium on Linux by default. This will make the render faster because
|
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, 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, } = 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.');
|
|
@@ -127,6 +127,7 @@ exports.Config = {
|
|
|
127
127
|
},
|
|
128
128
|
setDeleteAfter: deleteAfterOption.setConfig,
|
|
129
129
|
setColorSpace: colorSpaceOption.setConfig,
|
|
130
|
+
setDisallowParallelEncoding: disallowParallelEncodingOption.setConfig,
|
|
130
131
|
setBeepOnFinish: beepOnFinishOption.setConfig,
|
|
131
132
|
setEnableFolderExpiry: folderExpiryOption.setConfig,
|
|
132
133
|
setRepro: reproOption.setConfig,
|
|
@@ -28,6 +28,20 @@ declare const beepOnFinishOption: {
|
|
|
28
28
|
value: import("@remotion/renderer").ColorSpace;
|
|
29
29
|
};
|
|
30
30
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
31
|
+
}, disallowParallelEncodingOption: {
|
|
32
|
+
name: string;
|
|
33
|
+
cliFlag: "disallow-parallel-encoding";
|
|
34
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
ssrName: string;
|
|
36
|
+
docLink: string;
|
|
37
|
+
type: boolean;
|
|
38
|
+
getValue: ({ commandLine }: {
|
|
39
|
+
commandLine: Record<string, unknown>;
|
|
40
|
+
}) => {
|
|
41
|
+
value: boolean;
|
|
42
|
+
source: string;
|
|
43
|
+
};
|
|
44
|
+
setConfig(value: boolean): void;
|
|
31
45
|
}, offthreadVideoCacheSizeInBytesOption: {
|
|
32
46
|
name: string;
|
|
33
47
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
@@ -287,6 +301,7 @@ export type CommandLineOptions = {
|
|
|
287
301
|
['number-of-shared-audio-tags']: number;
|
|
288
302
|
[offthreadVideoCacheSizeInBytesOption.cliFlag]: TypeOfOption<typeof offthreadVideoCacheSizeInBytesOption>;
|
|
289
303
|
[colorSpaceOption.cliFlag]: TypeOfOption<typeof colorSpaceOption>;
|
|
304
|
+
[disallowParallelEncodingOption.cliFlag]: TypeOfOption<typeof disallowParallelEncodingOption>;
|
|
290
305
|
[beepOnFinishOption.cliFlag]: TypeOfOption<typeof beepOnFinishOption>;
|
|
291
306
|
version: string;
|
|
292
307
|
codec: Codec;
|
|
@@ -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, 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, } = 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']);
|
package/dist/parsed-cli.js
CHANGED
|
@@ -32,6 +32,7 @@ exports.BooleanFlags = [
|
|
|
32
32
|
'ipv4',
|
|
33
33
|
client_1.BrowserSafeApis.options.beepOnFinishOption.cliFlag,
|
|
34
34
|
client_1.BrowserSafeApis.options.disableGitSourceOption.cliFlag,
|
|
35
|
+
client_1.BrowserSafeApis.options.disallowParallelEncodingOption.cliFlag,
|
|
35
36
|
'repro',
|
|
36
37
|
'compatible-only',
|
|
37
38
|
'force-path-style',
|
package/dist/progress-bar.js
CHANGED
|
@@ -242,7 +242,7 @@ const getGuiProgressSubtitle = (progress) => {
|
|
|
242
242
|
: '';
|
|
243
243
|
return `Rendered ${progress.rendering.frames}/${progress.rendering.totalFrames}${etaString}`;
|
|
244
244
|
}
|
|
245
|
-
return `
|
|
245
|
+
return `Encoded ${progress.stitching.frames}/${progress.stitching.totalFrames}`;
|
|
246
246
|
};
|
|
247
247
|
const printFact = (printLevel) => ({ indent, logLevel, left, right, color, link, }) => {
|
|
248
248
|
const fn = (str) => {
|
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, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, } = 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, } = 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) {
|
|
@@ -54,6 +54,9 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
54
54
|
const colorSpace = colorSpaceOption.getValue({
|
|
55
55
|
commandLine: parsed_cli_1.parsedCli,
|
|
56
56
|
}).value;
|
|
57
|
+
const disallowParallelEncoding = disallowParallelEncodingOption.getValue({
|
|
58
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
59
|
+
}).value;
|
|
57
60
|
const crf = shouldOutputImageSequence
|
|
58
61
|
? null
|
|
59
62
|
: crfOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
@@ -162,7 +165,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
162
165
|
encodingBufferSize,
|
|
163
166
|
numberOfGifLoops,
|
|
164
167
|
audioCodec,
|
|
165
|
-
disallowParallelEncoding
|
|
168
|
+
disallowParallelEncoding,
|
|
166
169
|
offthreadVideoCacheSizeInBytes,
|
|
167
170
|
colorSpace,
|
|
168
171
|
repro,
|
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.315",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"dotenv": "9.0.2",
|
|
34
34
|
"minimist": "1.2.6",
|
|
35
35
|
"prompts": "2.4.2",
|
|
36
|
-
"@remotion/bundler": "4.0.
|
|
37
|
-
"@remotion/
|
|
38
|
-
"@remotion/
|
|
39
|
-
"@remotion/
|
|
40
|
-
"@remotion/studio-shared": "4.0.
|
|
41
|
-
"remotion": "4.0.
|
|
42
|
-
"@remotion/studio-server": "4.0.
|
|
43
|
-
"
|
|
36
|
+
"@remotion/bundler": "4.0.315",
|
|
37
|
+
"@remotion/media-utils": "4.0.315",
|
|
38
|
+
"@remotion/player": "4.0.315",
|
|
39
|
+
"@remotion/renderer": "4.0.315",
|
|
40
|
+
"@remotion/studio-shared": "4.0.315",
|
|
41
|
+
"@remotion/studio": "4.0.315",
|
|
42
|
+
"@remotion/studio-server": "4.0.315",
|
|
43
|
+
"remotion": "4.0.315"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"react-dom": "19.0.0",
|
|
55
55
|
"zod": "3.22.3",
|
|
56
56
|
"eslint": "9.19.0",
|
|
57
|
-
"@remotion/zod-types": "4.0.
|
|
58
|
-
"@remotion/tailwind-v4": "4.0.
|
|
59
|
-
"@remotion/
|
|
60
|
-
"@remotion/
|
|
61
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
57
|
+
"@remotion/zod-types": "4.0.315",
|
|
58
|
+
"@remotion/tailwind-v4": "4.0.315",
|
|
59
|
+
"@remotion/enable-scss": "4.0.315",
|
|
60
|
+
"@remotion/skia": "4.0.315",
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.315"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"remotion",
|