@remotion/cli 4.0.423 → 4.0.425
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/add.d.ts +1 -2
- package/dist/benchmark.d.ts +1 -2
- package/dist/benchmark.js +23 -2
- package/dist/browser/ensure.d.ts +1 -2
- package/dist/browser/ensure.js +5 -6
- package/dist/browser/index.d.ts +1 -2
- package/dist/browser-download-bar.d.ts +2 -2
- package/dist/bundle.d.ts +1 -2
- package/dist/chalk/index.js +1 -1
- package/dist/check-for-npm-run-flag-pass.d.ts +1 -2
- package/dist/cleanup-before-quit.d.ts +2 -3
- package/dist/cloudrun-command.d.ts +1 -2
- package/dist/code-frame.d.ts +2 -2
- package/dist/compositions.d.ts +1 -2
- package/dist/compositions.js +12 -2
- package/dist/config/image-format.d.ts +4 -5
- package/dist/config/index.d.ts +9 -12
- package/dist/config/index.js +15 -38
- package/dist/config/pixel-format.d.ts +2 -3
- package/dist/config/prores-profile.d.ts +2 -3
- package/dist/determine-image-format.d.ts +4 -6
- package/dist/determine-image-format.js +10 -17
- package/dist/entry-point.d.ts +1 -2
- package/dist/extra-packages.js +1 -1
- package/dist/ffmpeg.d.ts +6 -7
- package/dist/get-cli-options.d.ts +5 -12
- package/dist/get-cli-options.js +19 -22
- package/dist/get-composition-id.d.ts +3 -3
- package/dist/get-composition-with-dimension-override.d.ts +7 -5
- package/dist/get-composition-with-dimension-override.js +3 -1
- package/dist/get-env.d.ts +1 -2
- package/dist/get-filename.d.ts +1 -2
- package/dist/get-github-repository.d.ts +2 -3
- package/dist/get-input-props.d.ts +1 -2
- package/dist/get-render-defaults.js +22 -10
- package/dist/gpu.d.ts +1 -2
- package/dist/gpu.js +11 -7
- package/dist/image-formats.d.ts +3 -5
- package/dist/image-formats.js +6 -11
- package/dist/index.d.ts +32 -37
- package/dist/initialize-cli.d.ts +1 -2
- package/dist/lambda-command.d.ts +1 -2
- package/dist/log.js +1 -1
- package/dist/make-on-download.d.ts +2 -2
- package/dist/parse-command-line.d.ts +237 -15
- package/dist/parse-command-line.js +1 -49
- package/dist/parsed-cli.js +2 -2
- package/dist/print-compositions.d.ts +1 -2
- package/dist/print-error.d.ts +1 -2
- package/dist/print-help.d.ts +1 -2
- package/dist/progress-bar.d.ts +4 -4
- package/dist/render-flows/add-log-to-aggregate-progress.d.ts +3 -5
- package/dist/render-flows/render.d.ts +16 -16
- package/dist/render-flows/render.js +5 -1
- package/dist/render-flows/still.d.ts +8 -6
- package/dist/render-flows/still.js +7 -5
- package/dist/render-queue/process-still.js +7 -8
- package/dist/render-queue/process-video.d.ts +1 -2
- package/dist/render-queue/process-video.js +8 -3
- package/dist/render-queue/queue.d.ts +1 -2
- package/dist/render.d.ts +1 -2
- package/dist/render.js +23 -2
- package/dist/setup-cache.d.ts +2 -3
- package/dist/should-use-non-overlaying-logger.d.ts +1 -2
- package/dist/show-compositions-picker.d.ts +2 -5
- package/dist/skills.d.ts +2 -3
- package/dist/still.d.ts +1 -2
- package/dist/still.js +15 -3
- package/dist/studio.d.ts +1 -2
- package/dist/upgrade.d.ts +1 -2
- package/dist/versions.d.ts +2 -3
- package/package.json +19 -18
- package/remotion-cli.js +1 -1
package/dist/get-cli-options.js
CHANGED
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getCliOptions = exports.getAndValidateAbsoluteOutputFile = void 0;
|
|
7
7
|
const renderer_1 = require("@remotion/renderer");
|
|
8
|
+
const client_1 = require("@remotion/renderer/client");
|
|
8
9
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
10
|
const node_path_1 = __importDefault(require("node:path"));
|
|
10
11
|
const config_1 = require("./config");
|
|
11
12
|
const get_env_1 = require("./get-env");
|
|
12
13
|
const get_input_props_1 = require("./get-input-props");
|
|
13
14
|
const log_1 = require("./log");
|
|
15
|
+
const parsed_cli_1 = require("./parsed-cli");
|
|
14
16
|
const getAndValidateFrameRange = (logLevel, indent) => {
|
|
15
17
|
const frameRange = config_1.ConfigInternals.getRange();
|
|
16
18
|
if (typeof frameRange === 'number') {
|
|
@@ -29,25 +31,26 @@ const getAndValidateAbsoluteOutputFile = (relativeOutputLocation, overwrite, log
|
|
|
29
31
|
return absoluteOutputFile;
|
|
30
32
|
};
|
|
31
33
|
exports.getAndValidateAbsoluteOutputFile = getAndValidateAbsoluteOutputFile;
|
|
32
|
-
const getProResProfile = () => {
|
|
33
|
-
const proResProfile = config_1.ConfigInternals.getProResProfile();
|
|
34
|
-
return proResProfile;
|
|
35
|
-
};
|
|
36
34
|
const getCliOptions = (options) => {
|
|
37
35
|
const frameRange = getAndValidateFrameRange(options.logLevel, false);
|
|
38
36
|
const shouldOutputImageSequence = options.isStill
|
|
39
37
|
? true
|
|
40
38
|
: config_1.ConfigInternals.getShouldOutputImageSequence(frameRange);
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const
|
|
39
|
+
const concurrency = client_1.BrowserSafeApis.options.concurrencyOption.getValue({
|
|
40
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
41
|
+
}).value;
|
|
42
|
+
const height = client_1.BrowserSafeApis.options.overrideHeightOption.getValue({
|
|
43
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
44
|
+
}).value;
|
|
45
|
+
const width = client_1.BrowserSafeApis.options.overrideWidthOption.getValue({
|
|
46
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
47
|
+
}).value;
|
|
48
|
+
const fps = client_1.BrowserSafeApis.options.overrideFpsOption.getValue({
|
|
49
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
50
|
+
}).value;
|
|
51
|
+
const durationInFrames = client_1.BrowserSafeApis.options.overrideDurationOption.getValue({
|
|
52
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
53
|
+
}).value;
|
|
51
54
|
renderer_1.RenderInternals.validateConcurrency({
|
|
52
55
|
value: concurrency,
|
|
53
56
|
setting: 'concurrency',
|
|
@@ -59,18 +62,12 @@ const getCliOptions = (options) => {
|
|
|
59
62
|
shouldOutputImageSequence,
|
|
60
63
|
inputProps: (0, get_input_props_1.getInputProps)(null, options.logLevel),
|
|
61
64
|
envVariables: (0, get_env_1.getEnvironmentVariables)(null, options.logLevel, options.indent),
|
|
62
|
-
pixelFormat,
|
|
63
|
-
proResProfile,
|
|
64
|
-
everyNthFrame,
|
|
65
65
|
stillFrame: config_1.ConfigInternals.getStillFrame(),
|
|
66
|
-
browserExecutable,
|
|
67
|
-
userAgent,
|
|
68
|
-
disableWebSecurity,
|
|
69
|
-
ignoreCertificateErrors,
|
|
70
66
|
ffmpegOverride: config_1.ConfigInternals.getFfmpegOverrideFunction(),
|
|
71
67
|
height,
|
|
72
68
|
width,
|
|
73
|
-
|
|
69
|
+
fps,
|
|
70
|
+
durationInFrames,
|
|
74
71
|
};
|
|
75
72
|
};
|
|
76
73
|
exports.getCliOptions = getCliOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BrowserExecutable,
|
|
1
|
+
import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { VideoConfig } from 'remotion';
|
|
3
3
|
export declare const getCompositionId: ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
4
4
|
args: (string | number)[];
|
|
@@ -11,14 +11,14 @@ export declare const getCompositionId: ({ args, compositionIdFromUi, serializedI
|
|
|
11
11
|
port: number | null;
|
|
12
12
|
browserExecutable: BrowserExecutable;
|
|
13
13
|
serveUrlOrWebpackUrl: string;
|
|
14
|
-
logLevel:
|
|
14
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
15
15
|
indent: boolean;
|
|
16
16
|
server: RemotionServer;
|
|
17
17
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
18
18
|
offthreadVideoThreads: number | null;
|
|
19
19
|
binariesDirectory: string | null;
|
|
20
20
|
onBrowserDownload: OnBrowserDownload;
|
|
21
|
-
chromeMode:
|
|
21
|
+
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
22
22
|
mediaCacheSizeInBytes: number | null;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
compositionId: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { BrowserExecutable,
|
|
1
|
+
import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { VideoConfig } from 'remotion';
|
|
3
|
-
export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
3
|
+
export declare const getCompositionWithDimensionOverride: ({ height, width, fps, durationInFrames, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
4
4
|
height: number | null;
|
|
5
5
|
width: number | null;
|
|
6
|
+
fps: number | null;
|
|
7
|
+
durationInFrames: number | null;
|
|
6
8
|
args: (string | number)[];
|
|
7
9
|
compositionIdFromUi: string | null;
|
|
8
10
|
timeoutInMilliseconds: number;
|
|
@@ -10,17 +12,17 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
|
|
|
10
12
|
envVariables: Record<string, string>;
|
|
11
13
|
chromiumOptions: ChromiumOptions;
|
|
12
14
|
port: number | null;
|
|
13
|
-
browserExecutable: BrowserExecutable
|
|
15
|
+
browserExecutable: BrowserExecutable;
|
|
14
16
|
serveUrlOrWebpackUrl: string;
|
|
15
17
|
indent: boolean;
|
|
16
|
-
logLevel:
|
|
18
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
17
19
|
serializedInputPropsWithCustomSchema: string;
|
|
18
20
|
server: RemotionServer;
|
|
19
21
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
20
22
|
offthreadVideoThreads: number | null;
|
|
21
23
|
binariesDirectory: string | null;
|
|
22
24
|
onBrowserDownload: OnBrowserDownload;
|
|
23
|
-
chromeMode:
|
|
25
|
+
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
24
26
|
mediaCacheSizeInBytes: number | null;
|
|
25
27
|
}) => Promise<{
|
|
26
28
|
compositionId: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCompositionWithDimensionOverride = void 0;
|
|
4
4
|
const get_composition_id_1 = require("./get-composition-id");
|
|
5
|
-
const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }) => {
|
|
5
|
+
const getCompositionWithDimensionOverride = async ({ height, width, fps, durationInFrames, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }) => {
|
|
6
6
|
const returnValue = await (0, get_composition_id_1.getCompositionId)({
|
|
7
7
|
args,
|
|
8
8
|
compositionIdFromUi,
|
|
@@ -30,6 +30,8 @@ const getCompositionWithDimensionOverride = async ({ height, width, args, compos
|
|
|
30
30
|
...returnValue.config,
|
|
31
31
|
height: height !== null && height !== void 0 ? height : returnValue.config.height,
|
|
32
32
|
width: width !== null && width !== void 0 ? width : returnValue.config.width,
|
|
33
|
+
fps: fps !== null && fps !== void 0 ? fps : returnValue.config.fps,
|
|
34
|
+
durationInFrames: durationInFrames !== null && durationInFrames !== void 0 ? durationInFrames : returnValue.config.durationInFrames,
|
|
33
35
|
},
|
|
34
36
|
};
|
|
35
37
|
};
|
package/dist/get-env.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getEnvironmentVariables: (onUpdate: null | ((newProps: Record<string, string>) => void), logLevel: LogLevel, indent: boolean) => Record<string, string>;
|
|
1
|
+
export declare const getEnvironmentVariables: (onUpdate: ((newProps: Record<string, string>) => void) | null, logLevel: "error" | "info" | "trace" | "verbose" | "warn", indent: boolean) => Record<string, string>;
|
package/dist/get-filename.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const getOutputFilename: ({ imageSequence, compositionName, compositionDefaultOutName, defaultExtension, args, fromUi, indent, logLevel, }: {
|
|
3
2
|
imageSequence: boolean;
|
|
4
3
|
compositionName: string;
|
|
@@ -7,5 +6,5 @@ export declare const getOutputFilename: ({ imageSequence, compositionName, compo
|
|
|
7
6
|
args: (string | number)[];
|
|
8
7
|
fromUi: string | null;
|
|
9
8
|
indent: boolean;
|
|
10
|
-
logLevel:
|
|
9
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
11
10
|
}) => string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
import type { GitSource } from '@remotion/studio-shared';
|
|
3
2
|
export type ParsedGitRemote = {
|
|
4
3
|
type: 'github';
|
|
@@ -11,9 +10,9 @@ export declare const getGitRemoteOrigin: (gitConfig: string) => {
|
|
|
11
10
|
url: string | null;
|
|
12
11
|
} | null;
|
|
13
12
|
export declare const normalizeGitRemoteUrl: (url: string) => ParsedGitRemote | null;
|
|
14
|
-
export declare const getGifRef: (logLevel:
|
|
13
|
+
export declare const getGifRef: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => string | null;
|
|
15
14
|
export declare const getGitSource: ({ remotionRoot, disableGitSource, logLevel, }: {
|
|
16
15
|
remotionRoot: string;
|
|
17
16
|
disableGitSource: boolean;
|
|
18
|
-
logLevel:
|
|
17
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
19
18
|
}) => GitSource | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getInputProps: (onUpdate: ((newProps: Record<string, unknown>) => void) | null, logLevel: LogLevel) => Record<string, unknown>;
|
|
1
|
+
export declare const getInputProps: (onUpdate: ((newProps: Record<string, unknown>) => void) | null, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Record<string, unknown>;
|
|
@@ -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, darkModeOption, publicLicenseKeyOption, } = client_1.BrowserSafeApis.options;
|
|
8
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, concurrencyOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, publicLicenseKeyOption, stillImageFormatOption, videoImageFormatOption, } = client_1.BrowserSafeApis.options;
|
|
9
9
|
const getRenderDefaults = () => {
|
|
10
10
|
var _a;
|
|
11
11
|
const defaultJpegQuality = jpegQualityOption.getValue({
|
|
@@ -13,9 +13,11 @@ const getRenderDefaults = () => {
|
|
|
13
13
|
}).value;
|
|
14
14
|
const logLevel = logLevelOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
15
15
|
const defaultCodec = config_1.ConfigInternals.getOutputCodecOrUndefined();
|
|
16
|
-
const concurrency = renderer_1.RenderInternals.resolveConcurrency(
|
|
17
|
-
const pixelFormat =
|
|
18
|
-
|
|
16
|
+
const concurrency = renderer_1.RenderInternals.resolveConcurrency(concurrencyOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value);
|
|
17
|
+
const pixelFormat = pixelFormatOption.getValue({
|
|
18
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
19
|
+
}).value;
|
|
20
|
+
const proResProfile = (_a = proResProfileOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value) !== null && _a !== void 0 ? _a : null;
|
|
19
21
|
const x264Preset = x264Option.getValue({
|
|
20
22
|
commandLine: parsed_cli_1.parsedCli,
|
|
21
23
|
}).value;
|
|
@@ -88,15 +90,25 @@ const getRenderDefaults = () => {
|
|
|
88
90
|
const publicLicenseKey = publicLicenseKeyOption.getValue({
|
|
89
91
|
commandLine: parsed_cli_1.parsedCli,
|
|
90
92
|
}).value;
|
|
91
|
-
const everyNthFrame =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
|
|
93
|
+
const everyNthFrame = everyNthFrameOption.getValue({
|
|
94
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
95
|
+
}).value;
|
|
96
|
+
const stillImageFormat = stillImageFormatOption.getValue({
|
|
97
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
98
|
+
}).value;
|
|
99
|
+
const videoImageFormat = videoImageFormatOption.getValue({
|
|
100
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
101
|
+
}).value;
|
|
102
|
+
const disableWebSecurity = disableWebSecurityOption.getValue({
|
|
103
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
104
|
+
}).value;
|
|
105
|
+
const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
|
|
106
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
107
|
+
}).value;
|
|
96
108
|
const darkMode = darkModeOption.getValue({
|
|
97
109
|
commandLine: parsed_cli_1.parsedCli,
|
|
98
110
|
}).value;
|
|
99
|
-
const userAgent =
|
|
111
|
+
const userAgent = userAgentOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
100
112
|
const metadata = config_1.ConfigInternals.getMetadata();
|
|
101
113
|
const outputLocation = config_1.ConfigInternals.getOutputLocation();
|
|
102
114
|
const maxConcurrency = renderer_1.RenderInternals.getMaxConcurrency();
|
package/dist/gpu.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const GPU_COMMAND = "gpu";
|
|
3
|
-
export declare const gpuCommand: (logLevel:
|
|
2
|
+
export declare const gpuCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
package/dist/gpu.js
CHANGED
|
@@ -5,17 +5,21 @@ const renderer_1 = require("@remotion/renderer");
|
|
|
5
5
|
const client_1 = require("@remotion/renderer/client");
|
|
6
6
|
const browser_download_bar_1 = require("./browser-download-bar");
|
|
7
7
|
const chalk_1 = require("./chalk");
|
|
8
|
-
const get_cli_options_1 = require("./get-cli-options");
|
|
9
8
|
const log_1 = require("./log");
|
|
10
9
|
const parsed_cli_1 = require("./parsed-cli");
|
|
11
10
|
exports.GPU_COMMAND = 'gpu';
|
|
12
|
-
const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, chromeModeOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
11
|
+
const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, chromeModeOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, } = client_1.BrowserSafeApis.options;
|
|
13
12
|
const gpuCommand = async (logLevel) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const browserExecutable = browserExecutableOption.getValue({
|
|
14
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
15
|
+
}).value;
|
|
16
|
+
const userAgent = userAgentOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
17
|
+
const disableWebSecurity = disableWebSecurityOption.getValue({
|
|
18
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
19
|
+
}).value;
|
|
20
|
+
const ignoreCertificateErrors = ignoreCertificateErrorsOption.getValue({
|
|
21
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
22
|
+
}).value;
|
|
19
23
|
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
|
|
20
24
|
commandLine: parsed_cli_1.parsedCli,
|
|
21
25
|
}).value;
|
package/dist/image-formats.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { VideoImageFormat } from '@remotion/renderer';
|
|
2
|
-
import { ConfigInternals } from './config';
|
|
3
1
|
export declare const getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
4
|
-
codec:
|
|
5
|
-
uiImageFormat:
|
|
6
|
-
}) =>
|
|
2
|
+
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
3
|
+
uiImageFormat: "jpeg" | "none" | "png" | null;
|
|
4
|
+
}) => "jpeg" | "none" | "png";
|
package/dist/image-formats.js
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoImageFormat = void 0;
|
|
4
|
-
const
|
|
4
|
+
const client_1 = require("@remotion/renderer/client");
|
|
5
5
|
const pure_1 = require("@remotion/renderer/pure");
|
|
6
|
-
const config_1 = require("./config");
|
|
7
6
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
7
|
const getVideoImageFormat = ({ codec, uiImageFormat, }) => {
|
|
9
8
|
if (uiImageFormat !== null) {
|
|
10
9
|
return uiImageFormat;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
const configFileOption = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
|
|
19
|
-
if (typeof configFileOption !== 'undefined') {
|
|
20
|
-
return configFileOption;
|
|
11
|
+
const configured = client_1.BrowserSafeApis.options.videoImageFormatOption.getValue({
|
|
12
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
13
|
+
}).value;
|
|
14
|
+
if (configured !== null) {
|
|
15
|
+
return configured;
|
|
21
16
|
}
|
|
22
17
|
if (pure_1.NoReactAPIs.isAudioCodec(codec)) {
|
|
23
18
|
return 'none';
|
package/dist/index.d.ts
CHANGED
|
@@ -77,76 +77,71 @@ export declare const CliInternals: {
|
|
|
77
77
|
};
|
|
78
78
|
getCliOptions: (options: {
|
|
79
79
|
isStill: boolean;
|
|
80
|
-
logLevel:
|
|
80
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
81
81
|
indent: boolean;
|
|
82
82
|
}) => {
|
|
83
|
-
concurrency:
|
|
83
|
+
concurrency: import("@remotion/renderer").Concurrency;
|
|
84
84
|
frameRange: import("@remotion/renderer").FrameRange | null;
|
|
85
85
|
shouldOutputImageSequence: boolean;
|
|
86
86
|
inputProps: Record<string, unknown>;
|
|
87
87
|
envVariables: Record<string, string>;
|
|
88
|
-
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
89
|
-
proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
90
|
-
everyNthFrame: number;
|
|
91
88
|
stillFrame: number;
|
|
92
|
-
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
93
|
-
userAgent: string | null;
|
|
94
|
-
disableWebSecurity: boolean;
|
|
95
|
-
ignoreCertificateErrors: boolean;
|
|
96
89
|
ffmpegOverride: import("@remotion/renderer").FfmpegOverrideFn;
|
|
97
90
|
height: number | null;
|
|
98
91
|
width: number | null;
|
|
99
|
-
|
|
92
|
+
fps: number | null;
|
|
93
|
+
durationInFrames: number | null;
|
|
100
94
|
};
|
|
101
95
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
102
|
-
formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
|
|
96
|
+
formatBytes: (number: number, options?: (Intl.NumberFormatOptions & {
|
|
103
97
|
locale: string;
|
|
104
|
-
bits?: boolean;
|
|
105
|
-
binary?: boolean;
|
|
98
|
+
bits?: boolean | undefined;
|
|
99
|
+
binary?: boolean | undefined;
|
|
106
100
|
signed: boolean;
|
|
107
|
-
}) => string;
|
|
108
|
-
initializeCli: (remotionRoot: string) => Promise<
|
|
101
|
+
}) | undefined) => string;
|
|
102
|
+
initializeCli: (remotionRoot: string) => Promise<"error" | "info" | "trace" | "verbose" | "warn">;
|
|
109
103
|
BooleanFlags: string[];
|
|
110
104
|
quietFlagProvided: () => boolean;
|
|
111
105
|
parsedCli: import("./parse-command-line").CommandLineOptions & {
|
|
112
106
|
_: string[];
|
|
113
107
|
};
|
|
114
|
-
printError: (err: Error, logLevel:
|
|
108
|
+
printError: (err: Error, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
115
109
|
getFileSizeDownloadBar: (downloaded: number) => string;
|
|
116
|
-
determineFinalStillImageFormat: ({ downloadName, outName,
|
|
110
|
+
determineFinalStillImageFormat: ({ downloadName, outName, configuredImageFormat, isLambda, fromUi, }: {
|
|
117
111
|
downloadName: string | null;
|
|
118
112
|
outName: string | null;
|
|
119
|
-
|
|
120
|
-
cliFlag: import("@remotion/renderer").StillImageFormat | import("@remotion/renderer").VideoImageFormat | null;
|
|
113
|
+
configuredImageFormat: "jpeg" | "pdf" | "png" | "webp" | null;
|
|
121
114
|
isLambda: boolean;
|
|
122
|
-
fromUi:
|
|
115
|
+
fromUi: "jpeg" | "pdf" | "png" | "webp" | null;
|
|
123
116
|
}) => {
|
|
124
|
-
format:
|
|
117
|
+
format: "jpeg" | "pdf" | "png" | "webp";
|
|
125
118
|
source: string;
|
|
126
119
|
};
|
|
127
120
|
minimist: typeof minimist;
|
|
128
121
|
findEntryPoint: ({ args, logLevel, remotionRoot, allowDirectory, }: {
|
|
129
122
|
args: (string | number)[];
|
|
130
123
|
remotionRoot: string;
|
|
131
|
-
logLevel:
|
|
124
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
132
125
|
allowDirectory: boolean;
|
|
133
126
|
}) => {
|
|
134
127
|
file: string | null;
|
|
135
128
|
remainingArgs: (string | number)[];
|
|
136
|
-
reason: "argument passed - found in cwd" | "argument passed - found in root" | "
|
|
129
|
+
reason: "argument passed" | "argument passed - found in cwd" | "argument passed - found in root" | "common paths" | "config file" | "none found";
|
|
137
130
|
};
|
|
138
131
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
139
|
-
codec:
|
|
140
|
-
uiImageFormat:
|
|
141
|
-
}) =>
|
|
142
|
-
printCompositions: (compositions: import("remotion").VideoConfig[], logLevel:
|
|
132
|
+
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
133
|
+
uiImageFormat: "jpeg" | "none" | "png" | null;
|
|
134
|
+
}) => "jpeg" | "none" | "png";
|
|
135
|
+
printCompositions: (compositions: import("remotion").VideoConfig[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
143
136
|
listOfRemotionPackages: string[];
|
|
144
137
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
145
|
-
logLevel:
|
|
138
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
146
139
|
}) => boolean;
|
|
147
|
-
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
140
|
+
getCompositionWithDimensionOverride: ({ height, width, fps, durationInFrames, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
148
141
|
height: number | null;
|
|
149
142
|
width: number | null;
|
|
143
|
+
fps: number | null;
|
|
144
|
+
durationInFrames: number | null;
|
|
150
145
|
args: (string | number)[];
|
|
151
146
|
compositionIdFromUi: string | null;
|
|
152
147
|
timeoutInMilliseconds: number;
|
|
@@ -154,17 +149,17 @@ export declare const CliInternals: {
|
|
|
154
149
|
envVariables: Record<string, string>;
|
|
155
150
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
156
151
|
port: number | null;
|
|
157
|
-
browserExecutable: import("@remotion/renderer").BrowserExecutable
|
|
152
|
+
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
158
153
|
serveUrlOrWebpackUrl: string;
|
|
159
154
|
indent: boolean;
|
|
160
|
-
logLevel:
|
|
155
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
161
156
|
serializedInputPropsWithCustomSchema: string;
|
|
162
157
|
server: import("@remotion/renderer").RemotionServer;
|
|
163
158
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
164
159
|
offthreadVideoThreads: number | null;
|
|
165
160
|
binariesDirectory: string | null;
|
|
166
161
|
onBrowserDownload: import("@remotion/renderer").OnBrowserDownload;
|
|
167
|
-
chromeMode:
|
|
162
|
+
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
168
163
|
mediaCacheSizeInBytes: number | null;
|
|
169
164
|
}) => Promise<{
|
|
170
165
|
compositionId: string;
|
|
@@ -174,17 +169,17 @@ export declare const CliInternals: {
|
|
|
174
169
|
}>;
|
|
175
170
|
defaultBrowserDownloadProgress: ({ indent, logLevel, quiet, onProgress, }: {
|
|
176
171
|
indent: boolean;
|
|
177
|
-
logLevel:
|
|
172
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
178
173
|
quiet: boolean;
|
|
179
174
|
onProgress: (progress: import("@remotion/studio-shared").BrowserDownloadState) => void;
|
|
180
175
|
}) => import("@remotion/renderer").OnBrowserDownload;
|
|
181
176
|
LABEL_WIDTH: number;
|
|
182
|
-
printFact: (printLevel:
|
|
177
|
+
printFact: (printLevel: "error" | "info" | "trace" | "verbose" | "warn") => ({ indent, logLevel, left, right, color, link, }: {
|
|
183
178
|
indent: boolean;
|
|
184
|
-
logLevel:
|
|
179
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
185
180
|
left: string;
|
|
186
181
|
right: string;
|
|
187
|
-
link?: string;
|
|
182
|
+
link?: string | undefined;
|
|
188
183
|
color: "blue" | "blueBright" | "gray" | undefined;
|
|
189
184
|
}) => void;
|
|
190
185
|
makeHyperlink: ({ text, url, fallback, }: {
|
|
@@ -196,6 +191,6 @@ export declare const CliInternals: {
|
|
|
196
191
|
getGitSource: ({ remotionRoot, disableGitSource, logLevel, }: {
|
|
197
192
|
remotionRoot: string;
|
|
198
193
|
disableGitSource: boolean;
|
|
199
|
-
logLevel:
|
|
194
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
200
195
|
}) => import("@remotion/studio-shared").GitSource | null;
|
|
201
196
|
};
|
package/dist/initialize-cli.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const initializeCli: (remotionRoot: string) => Promise<LogLevel>;
|
|
1
|
+
export declare const initializeCli: (remotionRoot: string) => Promise<"error" | "info" | "trace" | "verbose" | "warn">;
|
package/dist/lambda-command.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const lambdaCommand: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<never>;
|
|
1
|
+
export declare const lambdaCommand: (remotionRoot: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<never>;
|
package/dist/log.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RenderMediaOnDownload } from '@remotion/renderer';
|
|
2
2
|
import type { DownloadProgress } from '@remotion/studio-server';
|
|
3
3
|
export declare const makeOnDownload: ({ indent, logLevel, updatesDontOverwrite, downloads, updateRenderProgress, isUsingParallelEncoding, }: {
|
|
4
4
|
indent: boolean;
|
|
5
|
-
logLevel:
|
|
5
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
6
6
|
updatesDontOverwrite: boolean;
|
|
7
7
|
downloads: DownloadProgress[];
|
|
8
8
|
isUsingParallelEncoding: boolean;
|