@remotion/cli 4.0.142 → 4.0.144

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/index.d.ts CHANGED
@@ -100,73 +100,7 @@ export declare const CliInternals: {
100
100
  initializeCli: (remotionRoot: string) => Promise<"verbose" | "info" | "warn" | "error">;
101
101
  BooleanFlags: string[];
102
102
  quietFlagProvided: () => boolean;
103
- parsedCli: {
104
- "browser-executable": import("@remotion/renderer").BrowserExecutable;
105
- "pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
106
- "image-format": "png" | "jpeg" | "none" | "pdf" | "webp";
107
- "prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
108
- "bundle-cache": string;
109
- "env-file": string;
110
- "ignore-certificate-errors": string;
111
- "disable-web-security": string;
112
- "every-nth-frame": number;
113
- "number-of-shared-audio-tags": number;
114
- version: string;
115
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
116
- concurrency: number;
117
- timeout: number;
118
- config: string;
119
- "public-dir": string;
120
- crf: number;
121
- force: boolean;
122
- output: string;
123
- overwrite: boolean;
124
- png: boolean;
125
- props: string;
126
- quality: number;
127
- frames: string | number;
128
- scale: number;
129
- sequence: boolean;
130
- quiet: boolean;
131
- q: boolean;
132
- log: string;
133
- help: boolean;
134
- port: number;
135
- frame: string | number;
136
- "disable-headless": boolean;
137
- "disable-keyboard-shortcuts": boolean;
138
- muted: boolean;
139
- height: number;
140
- width: number;
141
- runs: number;
142
- concurrencies: string;
143
- gl: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
144
- "package-manager": string;
145
- "webpack-poll": number;
146
- "no-open": boolean;
147
- browser: string;
148
- "browser-args": string;
149
- "user-agent": string;
150
- "out-dir": string;
151
- ipv4: boolean;
152
- repro: boolean;
153
- "x264-preset": "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
154
- "number-of-gif-loops": number | null;
155
- "offthreadvideo-cache-size-in-bytes": number | null;
156
- "color-space": "default" | "bt709" | "bt2020-ncl";
157
- "beep-on-finish": boolean;
158
- "audio-bitrate": string | null;
159
- "video-bitrate": string | null;
160
- "buffer-size": string | null;
161
- "max-rate": string | null;
162
- "audio-codec": "mp3" | "aac" | "pcm-16" | "opus";
163
- "public-path": string;
164
- "jpeg-quality": number;
165
- "enforce-audio-track": boolean;
166
- "delete-after": import("@remotion/renderer").DeleteAfter | null;
167
- "enable-folder-expiry": boolean | null;
168
- "enable-multiprocess-on-linux": boolean;
169
- } & {
103
+ parsedCli: import("./parse-command-line").CommandLineOptions & {
170
104
  _: string[];
171
105
  };
172
106
  printError: (err: Error, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
@@ -175,7 +109,7 @@ export declare const CliInternals: {
175
109
  downloadName: string | null;
176
110
  outName: string | null;
177
111
  configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
178
- cliFlag: "png" | "jpeg" | "none" | "pdf" | "webp" | null;
112
+ cliFlag: "png" | "jpeg" | "pdf" | "webp" | "none" | null;
179
113
  isLambda: boolean;
180
114
  fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
181
115
  }) => {
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ const lambda_command_1 = require("./lambda-command");
29
29
  const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
30
30
  const log_1 = require("./log");
31
31
  const make_progress_bar_1 = require("./make-progress-bar");
32
- const parse_command_line_1 = require("./parse-command-line");
32
+ const parsed_cli_1 = require("./parsed-cli");
33
33
  const print_compositions_1 = require("./print-compositions");
34
34
  const print_error_1 = require("./print-error");
35
35
  const print_help_1 = require("./print-help");
@@ -41,8 +41,8 @@ const studio_1 = require("./studio");
41
41
  const upgrade_1 = require("./upgrade");
42
42
  const versions_1 = require("./versions");
43
43
  const cli = async () => {
44
- const [command, ...args] = parse_command_line_1.parsedCli._;
45
- if (parse_command_line_1.parsedCli.help) {
44
+ const [command, ...args] = parsed_cli_1.parsedCli._;
45
+ if (parsed_cli_1.parsedCli.help) {
46
46
  (0, print_help_1.printHelp)('info');
47
47
  process.exit(0);
48
48
  }
@@ -101,7 +101,7 @@ const cli = async () => {
101
101
  (0, ffmpeg_1.ffprobeCommand)(remotionRoot, process.argv.slice(3), logLevel);
102
102
  }
103
103
  else if (command === 'upgrade') {
104
- await (0, upgrade_1.upgrade)(remotionRoot, parse_command_line_1.parsedCli['package-manager'], parse_command_line_1.parsedCli.version, logLevel);
104
+ await (0, upgrade_1.upgrade)(remotionRoot, parsed_cli_1.parsedCli['package-manager'], parsed_cli_1.parsedCli.version, logLevel);
105
105
  }
106
106
  else if (command === versions_1.VERSIONS_COMMAND) {
107
107
  await (0, versions_1.versionsCommand)(remotionRoot, logLevel);
@@ -145,9 +145,9 @@ exports.CliInternals = {
145
145
  loadConfig: get_config_file_name_1.loadConfig,
146
146
  formatBytes: studio_server_1.StudioServerInternals.formatBytes,
147
147
  initializeCli: initialize_cli_1.initializeCli,
148
- BooleanFlags: parse_command_line_1.BooleanFlags,
149
- quietFlagProvided: parse_command_line_1.quietFlagProvided,
150
- parsedCli: parse_command_line_1.parsedCli,
148
+ BooleanFlags: parsed_cli_1.BooleanFlags,
149
+ quietFlagProvided: parsed_cli_1.quietFlagProvided,
150
+ parsedCli: parsed_cli_1.parsedCli,
151
151
  printError: print_error_1.printError,
152
152
  getFileSizeDownloadBar: download_progress_1.getFileSizeDownloadBar,
153
153
  determineFinalStillImageFormat: determine_image_format_1.determineFinalStillImageFormat,
@@ -5,11 +5,12 @@ const client_1 = require("@remotion/renderer/client");
5
5
  const get_config_file_name_1 = require("./get-config-file-name");
6
6
  const log_1 = require("./log");
7
7
  const parse_command_line_1 = require("./parse-command-line");
8
+ const parsed_cli_1 = require("./parsed-cli");
8
9
  const initializeCli = async (remotionRoot) => {
9
10
  const appliedName = await (0, get_config_file_name_1.loadConfig)(remotionRoot);
10
11
  (0, parse_command_line_1.parseCommandLine)();
11
12
  const logLevel = client_1.BrowserSafeApis.options.logLevelOption.getValue({
12
- commandLine: parse_command_line_1.parsedCli,
13
+ commandLine: parsed_cli_1.parsedCli,
13
14
  }).value;
14
15
  // Only now Log.verbose is available
15
16
  log_1.Log.verbose({ indent: false, logLevel }, 'Remotion root directory:', remotionRoot);
@@ -147,17 +147,17 @@ declare const beepOnFinishOption: {
147
147
  description: () => import("react/jsx-runtime").JSX.Element;
148
148
  ssrName: "x264Preset";
149
149
  docLink: string;
150
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
150
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
151
151
  getValue: ({ commandLine }: {
152
152
  commandLine: Record<string, unknown>;
153
153
  }) => {
154
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
154
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
155
155
  source: string;
156
156
  } | {
157
157
  value: null;
158
158
  source: string;
159
159
  };
160
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
160
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
161
161
  }, enforceAudioOption: {
162
162
  name: string;
163
163
  cliFlag: "enforce-audio-track";
@@ -255,7 +255,7 @@ declare const beepOnFinishOption: {
255
255
  setConfig: (value: string | null) => void;
256
256
  type: string | null;
257
257
  };
258
- type CommandLineOptions = {
258
+ export type CommandLineOptions = {
259
259
  ['browser-executable']: BrowserExecutable;
260
260
  ['pixel-format']: PixelFormat;
261
261
  ['image-format']: VideoImageFormat | StillImageFormat;
@@ -322,10 +322,5 @@ type CommandLineOptions = {
322
322
  [enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
323
323
  repro: boolean;
324
324
  };
325
- export declare const BooleanFlags: string[];
326
- export declare const parsedCli: CommandLineOptions & {
327
- _: string[];
328
- };
329
325
  export declare const parseCommandLine: () => void;
330
- export declare const quietFlagProvided: () => boolean;
331
326
  export {};
@@ -1,107 +1,69 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.quietFlagProvided = exports.parseCommandLine = exports.parsedCli = exports.BooleanFlags = void 0;
3
+ exports.parseCommandLine = void 0;
7
4
  const client_1 = require("@remotion/renderer/client");
8
- const minimist_1 = __importDefault(require("minimist"));
9
5
  const config_1 = require("./config");
10
6
  const log_1 = require("./log");
7
+ const parsed_cli_1 = require("./parsed-cli");
11
8
  const { beepOnFinishOption, colorSpaceOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, } = client_1.BrowserSafeApis.options;
12
- exports.BooleanFlags = [
13
- 'overwrite',
14
- 'force',
15
- 'sequence',
16
- 'help',
17
- 'quiet',
18
- 'q',
19
- 'muted',
20
- enforceAudioOption.cliFlag,
21
- // Lambda flags
22
- 'force',
23
- 'disable-chunk-optimization',
24
- 'save-browser-logs',
25
- 'disable-cloudwatch',
26
- 'enable-lambda-insights',
27
- 'yes',
28
- 'y',
29
- 'disable-web-security',
30
- 'ignore-certificate-errors',
31
- 'disable-headless',
32
- 'disable-keyboard-shortcuts',
33
- 'default-only',
34
- 'no-open',
35
- 'ipv4',
36
- beepOnFinishOption.cliFlag,
37
- 'repro',
38
- ];
39
- exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
40
- boolean: exports.BooleanFlags,
41
- default: {
42
- overwrite: true,
43
- },
44
- });
45
9
  const parseCommandLine = () => {
46
- if (exports.parsedCli['pixel-format']) {
47
- config_1.Config.setPixelFormat(exports.parsedCli['pixel-format']);
10
+ if (parsed_cli_1.parsedCli['pixel-format']) {
11
+ config_1.Config.setPixelFormat(parsed_cli_1.parsedCli['pixel-format']);
48
12
  }
49
- if (exports.parsedCli['browser-executable']) {
50
- config_1.Config.setBrowserExecutable(exports.parsedCli['browser-executable']);
13
+ if (parsed_cli_1.parsedCli['browser-executable']) {
14
+ config_1.Config.setBrowserExecutable(parsed_cli_1.parsedCli['browser-executable']);
51
15
  }
52
- if (typeof exports.parsedCli['bundle-cache'] !== 'undefined') {
53
- config_1.Config.setCachingEnabled(exports.parsedCli['bundle-cache'] !== 'false');
16
+ if (typeof parsed_cli_1.parsedCli['bundle-cache'] !== 'undefined') {
17
+ config_1.Config.setCachingEnabled(parsed_cli_1.parsedCli['bundle-cache'] !== 'false');
54
18
  }
55
- if (exports.parsedCli['disable-web-security']) {
19
+ if (parsed_cli_1.parsedCli['disable-web-security']) {
56
20
  config_1.Config.setChromiumDisableWebSecurity(true);
57
21
  }
58
- if (exports.parsedCli['ignore-certificate-errors']) {
22
+ if (parsed_cli_1.parsedCli['ignore-certificate-errors']) {
59
23
  config_1.Config.setChromiumIgnoreCertificateErrors(true);
60
24
  }
61
- if (exports.parsedCli['user-agent']) {
62
- config_1.Config.setChromiumUserAgent(exports.parsedCli['user-agent']);
25
+ if (parsed_cli_1.parsedCli['user-agent']) {
26
+ config_1.Config.setChromiumUserAgent(parsed_cli_1.parsedCli['user-agent']);
63
27
  }
64
- if (exports.parsedCli.concurrency) {
65
- config_1.Config.setConcurrency(exports.parsedCli.concurrency);
28
+ if (parsed_cli_1.parsedCli.concurrency) {
29
+ config_1.Config.setConcurrency(parsed_cli_1.parsedCli.concurrency);
66
30
  }
67
- if (exports.parsedCli.height) {
68
- config_1.Config.overrideHeight(exports.parsedCli.height);
31
+ if (parsed_cli_1.parsedCli.height) {
32
+ config_1.Config.overrideHeight(parsed_cli_1.parsedCli.height);
69
33
  }
70
- if (exports.parsedCli.width) {
71
- config_1.Config.overrideWidth(exports.parsedCli.width);
34
+ if (parsed_cli_1.parsedCli.width) {
35
+ config_1.Config.overrideWidth(parsed_cli_1.parsedCli.width);
72
36
  }
73
- if (exports.parsedCli.frames) {
74
- config_1.ConfigInternals.setFrameRangeFromCli(exports.parsedCli.frames);
37
+ if (parsed_cli_1.parsedCli.frames) {
38
+ config_1.ConfigInternals.setFrameRangeFromCli(parsed_cli_1.parsedCli.frames);
75
39
  }
76
- if (exports.parsedCli.frame) {
77
- config_1.ConfigInternals.setStillFrame(Number(exports.parsedCli.frame));
40
+ if (parsed_cli_1.parsedCli.frame) {
41
+ config_1.ConfigInternals.setStillFrame(Number(parsed_cli_1.parsedCli.frame));
78
42
  }
79
- if (exports.parsedCli.png) {
43
+ if (parsed_cli_1.parsedCli.png) {
80
44
  throw new Error('The --png flag has been removed. Use --sequence --image-format=png from now on.');
81
45
  }
82
- if (exports.parsedCli.sequence) {
46
+ if (parsed_cli_1.parsedCli.sequence) {
83
47
  config_1.Config.setImageSequence(true);
84
48
  }
85
- if (exports.parsedCli['every-nth-frame']) {
86
- config_1.Config.setEveryNthFrame(exports.parsedCli['every-nth-frame']);
49
+ if (parsed_cli_1.parsedCli['every-nth-frame']) {
50
+ config_1.Config.setEveryNthFrame(parsed_cli_1.parsedCli['every-nth-frame']);
87
51
  }
88
- if (exports.parsedCli['prores-profile']) {
89
- config_1.Config.setProResProfile(String(exports.parsedCli['prores-profile']));
52
+ if (parsed_cli_1.parsedCli['prores-profile']) {
53
+ config_1.Config.setProResProfile(String(parsed_cli_1.parsedCli['prores-profile']));
90
54
  }
91
- if (typeof exports.parsedCli.quality !== 'undefined') {
55
+ if (typeof parsed_cli_1.parsedCli.quality !== 'undefined') {
92
56
  log_1.Log.warn({ indent: false, logLevel: 'info' }, 'The --quality flag has been renamed to --jpeg-quality instead.');
93
- config_1.Config.setJpegQuality(exports.parsedCli.quality);
57
+ config_1.Config.setJpegQuality(parsed_cli_1.parsedCli.quality);
94
58
  }
95
- if (typeof exports.parsedCli.scale !== 'undefined') {
96
- config_1.Config.setScale(exports.parsedCli.scale);
59
+ if (typeof parsed_cli_1.parsedCli.scale !== 'undefined') {
60
+ config_1.Config.setScale(parsed_cli_1.parsedCli.scale);
97
61
  }
98
- if (typeof exports.parsedCli['disable-keyboard-shortcuts'] !== 'undefined') {
99
- config_1.Config.setKeyboardShortcutsEnabled(!exports.parsedCli['disable-keyboard-shortcuts']);
62
+ if (typeof parsed_cli_1.parsedCli['disable-keyboard-shortcuts'] !== 'undefined') {
63
+ config_1.Config.setKeyboardShortcutsEnabled(!parsed_cli_1.parsedCli['disable-keyboard-shortcuts']);
100
64
  }
101
- if (typeof exports.parsedCli['webpack-poll'] !== 'undefined') {
102
- config_1.Config.setWebpackPollingInMilliseconds(exports.parsedCli['webpack-poll']);
65
+ if (typeof parsed_cli_1.parsedCli['webpack-poll'] !== 'undefined') {
66
+ config_1.Config.setWebpackPollingInMilliseconds(parsed_cli_1.parsedCli['webpack-poll']);
103
67
  }
104
68
  };
105
69
  exports.parseCommandLine = parseCommandLine;
106
- const quietFlagProvided = () => exports.parsedCli.quiet || exports.parsedCli.q;
107
- exports.quietFlagProvided = quietFlagProvided;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.printCompositions = void 0;
4
4
  const log_1 = require("./log");
5
- const parse_command_line_1 = require("./parse-command-line");
5
+ const parsed_cli_1 = require("./parsed-cli");
6
6
  const max = (arr) => {
7
7
  if (arr.length === 0) {
8
8
  throw new Error('Array of 0 length');
@@ -17,12 +17,12 @@ const max = (arr) => {
17
17
  return biggest;
18
18
  };
19
19
  const printCompositions = (compositions, logLevel) => {
20
- if (!(0, parse_command_line_1.quietFlagProvided)()) {
20
+ if (!(0, parsed_cli_1.quietFlagProvided)()) {
21
21
  log_1.Log.info({ indent: false, logLevel });
22
22
  log_1.Log.info({ indent: false, logLevel }, 'The following compositions are available:');
23
23
  log_1.Log.info({ indent: false, logLevel });
24
24
  }
25
- if ((0, parse_command_line_1.quietFlagProvided)()) {
25
+ if ((0, parsed_cli_1.quietFlagProvided)()) {
26
26
  log_1.Log.info({ indent: false, logLevel }, compositions.map((c) => c.id).join(' '));
27
27
  return;
28
28
  }
@@ -42,7 +42,7 @@ const get_filename_1 = require("../get-filename");
42
42
  const image_formats_1 = require("../image-formats");
43
43
  const log_1 = require("../log");
44
44
  const make_on_download_1 = require("../make-on-download");
45
- const parse_command_line_1 = require("../parse-command-line");
45
+ const parsed_cli_1 = require("../parsed-cli");
46
46
  const progress_bar_1 = require("../progress-bar");
47
47
  const setup_cache_1 = require("../setup-cache");
48
48
  const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
@@ -54,7 +54,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
54
54
  const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
55
55
  indent,
56
56
  logLevel,
57
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
57
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
58
58
  });
59
59
  await renderer_1.RenderInternals.internalEnsureBrowser({
60
60
  browserExecutable,
@@ -131,7 +131,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
131
131
  addCleanupCallback(() => renderer_1.RenderInternals.deleteDirectory(dir));
132
132
  },
133
133
  quietProgress: updatesDontOverwrite,
134
- quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
134
+ quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
135
135
  outDir: null,
136
136
  // Not needed for render
137
137
  gitSource: null,
@@ -184,7 +184,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
184
184
  onBrowserDownload,
185
185
  });
186
186
  const { value: codec, source: codecReason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
187
- commandLine: parse_command_line_1.parsedCli,
187
+ commandLine: parsed_cli_1.parsedCli,
188
188
  }, {
189
189
  configFile: (_a = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _a !== void 0 ? _a : null,
190
190
  downloadName: null,
@@ -18,7 +18,7 @@ const get_cli_options_1 = require("../get-cli-options");
18
18
  const get_composition_with_dimension_override_1 = require("../get-composition-with-dimension-override");
19
19
  const log_1 = require("../log");
20
20
  const make_on_download_1 = require("../make-on-download");
21
- const parse_command_line_1 = require("../parse-command-line");
21
+ const parsed_cli_1 = require("../parsed-cli");
22
22
  const progress_bar_1 = require("../progress-bar");
23
23
  const progress_types_1 = require("../progress-types");
24
24
  const setup_cache_1 = require("../setup-cache");
@@ -30,7 +30,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
30
30
  const aggregate = (0, progress_types_1.initialAggregateRenderProgress)();
31
31
  const updatesDontOverwrite = (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel });
32
32
  const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)({
33
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
33
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
34
34
  cancelSignal,
35
35
  updatesDontOverwrite: (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel }),
36
36
  indent,
@@ -52,7 +52,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
52
52
  onProgress({ message, value: progress, ...aggregate });
53
53
  };
54
54
  const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
55
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
55
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
56
56
  indent,
57
57
  logLevel,
58
58
  });
@@ -95,7 +95,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
95
95
  });
96
96
  },
97
97
  quietProgress: updatesDontOverwrite,
98
- quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
98
+ quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
99
99
  outDir: null,
100
100
  // Not needed for still
101
101
  gitSource: null,
@@ -139,7 +139,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
139
139
  onBrowserDownload,
140
140
  });
141
141
  const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalStillImageFormat)({
142
- cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
142
+ cliFlag: (_a = parsed_cli_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
143
143
  configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _b !== void 0 ? _b : null,
144
144
  downloadName: null,
145
145
  outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition, outputLocationFromUi),
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
5
5
  const preview_server_1 = require("../config/preview-server");
6
6
  const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
7
7
  const get_cli_options_1 = require("../get-cli-options");
8
- const parse_command_line_1 = require("../parse-command-line");
8
+ const parsed_cli_1 = require("../parsed-cli");
9
9
  const still_1 = require("../render-flows/still");
10
10
  const { publicDirOption } = client_1.BrowserSafeApis.options;
11
11
  const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }) => {
@@ -17,7 +17,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
17
17
  logLevel: job.logLevel,
18
18
  });
19
19
  const publicDir = publicDirOption.getValue({
20
- commandLine: parse_command_line_1.parsedCli,
20
+ commandLine: parsed_cli_1.parsedCli,
21
21
  }).value;
22
22
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
23
23
  await (0, still_1.renderStillFlow)({
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
5
5
  const preview_server_1 = require("../config/preview-server");
6
6
  const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
7
7
  const get_cli_options_1 = require("../get-cli-options");
8
- const parse_command_line_1 = require("../parse-command-line");
8
+ const parsed_cli_1 = require("../parsed-cli");
9
9
  const render_1 = require("../render-flows/render");
10
10
  const { publicDirOption } = client_1.BrowserSafeApis.options;
11
11
  const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, logLevel, }) => {
@@ -14,7 +14,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
14
14
  throw new Error('Expected video job');
15
15
  }
16
16
  const publicDir = publicDirOption.getValue({
17
- commandLine: parse_command_line_1.parsedCli,
17
+ commandLine: parsed_cli_1.parsedCli,
18
18
  }).value;
19
19
  const { browserExecutable, ffmpegOverride } = (0, get_cli_options_1.getCliOptions)({
20
20
  isStill: true,
package/dist/render.js CHANGED
@@ -9,7 +9,7 @@ const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-ser
9
9
  const entry_point_1 = require("./entry-point");
10
10
  const get_cli_options_1 = require("./get-cli-options");
11
11
  const log_1 = require("./log");
12
- const parse_command_line_1 = require("./parse-command-line");
12
+ const parsed_cli_1 = require("./parsed-cli");
13
13
  const render_1 = require("./render-flows/render");
14
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, } = client_1.BrowserSafeApis.options;
15
15
  const render = async (remotionRoot, args, logLevel) => {
@@ -21,7 +21,7 @@ const render = async (remotionRoot, args, logLevel) => {
21
21
  process.exit(1);
22
22
  }
23
23
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
24
- if (parse_command_line_1.parsedCli.frame) {
24
+ if (parsed_cli_1.parsedCli.frame) {
25
25
  log_1.Log.error({ indent: false, logLevel }, '--frame flag was passed to the `render` command. This flag only works with the `still` command. Did you mean `--frames`? See reference: https://www.remotion.dev/docs/cli/');
26
26
  process.exit(1);
27
27
  }
@@ -29,63 +29,63 @@ const render = async (remotionRoot, args, logLevel) => {
29
29
  isStill: false,
30
30
  logLevel,
31
31
  });
32
- const x264Preset = x264Option.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
32
+ const x264Preset = x264Option.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
33
33
  const audioBitrate = audioBitrateOption.getValue({
34
- commandLine: parse_command_line_1.parsedCli,
34
+ commandLine: parsed_cli_1.parsedCli,
35
35
  }).value;
36
36
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
37
- commandLine: parse_command_line_1.parsedCli,
37
+ commandLine: parsed_cli_1.parsedCli,
38
38
  }).value;
39
- const scale = scaleOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
39
+ const scale = scaleOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
40
40
  const jpegQuality = jpegQualityOption.getValue({
41
- commandLine: parse_command_line_1.parsedCli,
41
+ commandLine: parsed_cli_1.parsedCli,
42
42
  }).value;
43
43
  const videoBitrate = videoBitrateOption.getValue({
44
- commandLine: parse_command_line_1.parsedCli,
44
+ commandLine: parsed_cli_1.parsedCli,
45
45
  }).value;
46
46
  const enforceAudioTrack = enforceAudioOption.getValue({
47
- commandLine: parse_command_line_1.parsedCli,
47
+ commandLine: parsed_cli_1.parsedCli,
48
48
  }).value;
49
- const muted = mutedOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
49
+ const muted = mutedOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
50
50
  const colorSpace = colorSpaceOption.getValue({
51
- commandLine: parse_command_line_1.parsedCli,
51
+ commandLine: parsed_cli_1.parsedCli,
52
52
  }).value;
53
53
  const crf = shouldOutputImageSequence
54
54
  ? null
55
- : crfOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
55
+ : crfOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
56
56
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
57
- commandLine: parse_command_line_1.parsedCli,
57
+ commandLine: parsed_cli_1.parsedCli,
58
58
  }).value;
59
- const gl = glOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
59
+ const gl = glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
60
60
  const numberOfGifLoops = numberOfGifLoopsOption.getValue({
61
- commandLine: parse_command_line_1.parsedCli,
61
+ commandLine: parsed_cli_1.parsedCli,
62
62
  }).value;
63
63
  const encodingMaxRate = encodingMaxRateOption.getValue({
64
- commandLine: parse_command_line_1.parsedCli,
64
+ commandLine: parsed_cli_1.parsedCli,
65
65
  }).value;
66
66
  const encodingBufferSize = encodingBufferSizeOption.getValue({
67
- commandLine: parse_command_line_1.parsedCli,
67
+ commandLine: parsed_cli_1.parsedCli,
68
68
  }).value;
69
- const repro = reproOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
69
+ const repro = reproOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
70
70
  const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
71
- commandLine: parse_command_line_1.parsedCli,
71
+ commandLine: parsed_cli_1.parsedCli,
72
72
  }).value;
73
73
  const headless = headlessOption.getValue({
74
- commandLine: parse_command_line_1.parsedCli,
74
+ commandLine: parsed_cli_1.parsedCli,
75
75
  }).value;
76
76
  const overwrite = overwriteOption.getValue({
77
- commandLine: parse_command_line_1.parsedCli,
77
+ commandLine: parsed_cli_1.parsedCli,
78
78
  }, true).value;
79
79
  const binariesDirectory = binariesDirectoryOption.getValue({
80
- commandLine: parse_command_line_1.parsedCli,
80
+ commandLine: parsed_cli_1.parsedCli,
81
81
  }).value;
82
82
  const forSeamlessAacConcatenation = forSeamlessAacConcatenationOption.getValue({
83
- commandLine: parse_command_line_1.parsedCli,
83
+ commandLine: parsed_cli_1.parsedCli,
84
84
  }).value;
85
85
  const separateAudioTo = separateAudioOption.getValue({
86
- commandLine: parse_command_line_1.parsedCli,
86
+ commandLine: parsed_cli_1.parsedCli,
87
87
  }).value;
88
- const publicPath = publicPathOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
88
+ const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
89
89
  const chromiumOptions = {
90
90
  disableWebSecurity,
91
91
  enableMultiProcessOnLinux,
@@ -94,8 +94,8 @@ const render = async (remotionRoot, args, logLevel) => {
94
94
  ignoreCertificateErrors,
95
95
  userAgent,
96
96
  };
97
- const audioCodec = audioCodecOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
98
- const publicDir = publicDirOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
97
+ const audioCodec = audioCodecOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
98
+ const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
99
99
  await (0, render_1.renderVideoFlow)({
100
100
  fullEntryPoint,
101
101
  remotionRoot,
@@ -121,7 +121,7 @@ const render = async (remotionRoot, args, logLevel) => {
121
121
  compositionIdFromUi: null,
122
122
  entryPointReason,
123
123
  overwrite,
124
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
124
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
125
125
  concurrency,
126
126
  everyNthFrame,
127
127
  frameRange,
@@ -1,6 +1,6 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
- import type { GitSource } from '@remotion/studio';
3
2
  import type { BundlingState, CopyingState } from '@remotion/studio-server';
3
+ import type { GitSource } from '@remotion/studio-shared';
4
4
  export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimelineTracks, publicPath, }: {
5
5
  fullPath: string;
6
6
  remotionRoot: string;