@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/LICENSE.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Remotion License
2
2
 
3
+ In Remotion 5.0, the license will slightly change. [View the changes here](https://github.com/remotion-dev/remotion/pull/3750).
4
+
5
+ ---
6
+
3
7
  Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
4
8
 
5
9
  - [Free license](#free-license)
package/dist/benchmark.js CHANGED
@@ -15,7 +15,7 @@ const get_cli_options_1 = require("./get-cli-options");
15
15
  const image_formats_1 = require("./image-formats");
16
16
  const log_1 = require("./log");
17
17
  const make_progress_bar_1 = require("./make-progress-bar");
18
- const parse_command_line_1 = require("./parse-command-line");
18
+ const parsed_cli_1 = require("./parsed-cli");
19
19
  const progress_bar_1 = require("./progress-bar");
20
20
  const setup_cache_1 = require("./setup-cache");
21
21
  const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
@@ -24,7 +24,7 @@ const truthy_1 = require("./truthy");
24
24
  const DEFAULT_RUNS = 3;
25
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, } = client_1.BrowserSafeApis.options;
26
26
  const getValidConcurrency = (cliConcurrency) => {
27
- const { concurrencies } = parse_command_line_1.parsedCli;
27
+ const { concurrencies } = parsed_cli_1.parsedCli;
28
28
  if (!concurrencies) {
29
29
  return [renderer_1.RenderInternals.getActualConcurrency(cliConcurrency)];
30
30
  }
@@ -88,7 +88,7 @@ const makeBenchmarkProgressBar = ({ totalRuns, run, progress, doneIn, }) => {
88
88
  };
89
89
  const benchmarkCommand = async (remotionRoot, args, logLevel) => {
90
90
  var _a, _b, _c;
91
- const runs = (_a = parse_command_line_1.parsedCli.runs) !== null && _a !== void 0 ? _a : DEFAULT_RUNS;
91
+ const runs = (_a = parsed_cli_1.parsedCli.runs) !== null && _a !== void 0 ? _a : DEFAULT_RUNS;
92
92
  const { file, reason, remainingArgs } = (0, entry_point_1.findEntryPoint)({
93
93
  args,
94
94
  remotionRoot,
@@ -108,14 +108,14 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
108
108
  logLevel,
109
109
  });
110
110
  log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', fullEntryPoint, 'reason:', reason);
111
- const scale = scaleOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
111
+ const scale = scaleOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
112
112
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
113
- commandLine: parse_command_line_1.parsedCli,
113
+ commandLine: parsed_cli_1.parsedCli,
114
114
  }).value;
115
- const gl = glOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
116
- const headless = headlessOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
117
- const publicPath = publicPathOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
118
- const publicDir = publicDirOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
115
+ const gl = glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
116
+ const headless = headlessOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
117
+ const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
118
+ const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
119
119
  const chromiumOptions = {
120
120
  disableWebSecurity,
121
121
  enableMultiProcessOnLinux,
@@ -127,7 +127,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
127
127
  const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
128
128
  indent: false,
129
129
  logLevel,
130
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
130
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
131
131
  });
132
132
  const indent = false;
133
133
  await renderer_1.RenderInternals.internalEnsureBrowser({
@@ -159,7 +159,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
159
159
  (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.deleteDirectory(dir));
160
160
  },
161
161
  quietProgress: false,
162
- quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
162
+ quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
163
163
  outDir: null,
164
164
  // Not needed for benchmark
165
165
  gitSource: null,
@@ -180,7 +180,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
180
180
  envVariables,
181
181
  chromiumOptions,
182
182
  timeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption.getValue({
183
- commandLine: parse_command_line_1.parsedCli,
183
+ commandLine: parsed_cli_1.parsedCli,
184
184
  }).value,
185
185
  port: (0, preview_server_1.getRendererPortFromConfigFileAndCliFlag)(),
186
186
  puppeteerInstance,
@@ -191,10 +191,10 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
191
191
  server: undefined,
192
192
  logLevel,
193
193
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption.getValue({
194
- commandLine: parse_command_line_1.parsedCli,
194
+ commandLine: parsed_cli_1.parsedCli,
195
195
  }).value,
196
196
  binariesDirectory: binariesDirectoryOption.getValue({
197
- commandLine: parse_command_line_1.parsedCli,
197
+ commandLine: parsed_cli_1.parsedCli,
198
198
  }).value,
199
199
  onBrowserDownload,
200
200
  });
@@ -216,39 +216,39 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
216
216
  }
217
217
  const benchmark = {};
218
218
  let count = 1;
219
- const x264Preset = x264Option.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
219
+ const x264Preset = x264Option.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
220
220
  const audioBitrate = audioBitrateOption.getValue({
221
- commandLine: parse_command_line_1.parsedCli,
221
+ commandLine: parsed_cli_1.parsedCli,
222
222
  }).value;
223
- const configFileCrf = crfOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
223
+ const configFileCrf = crfOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
224
224
  const jpegQuality = jpegQualityOption.getValue({
225
- commandLine: parse_command_line_1.parsedCli,
225
+ commandLine: parsed_cli_1.parsedCli,
226
226
  }).value;
227
227
  const videoBitrate = videoBitrateOption.getValue({
228
- commandLine: parse_command_line_1.parsedCli,
228
+ commandLine: parsed_cli_1.parsedCli,
229
229
  }).value;
230
230
  const enforceAudioTrack = enforceAudioOption.getValue({
231
- commandLine: parse_command_line_1.parsedCli,
231
+ commandLine: parsed_cli_1.parsedCli,
232
232
  }).value;
233
- const muted = mutedOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
233
+ const muted = mutedOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
234
234
  const numberOfGifLoops = numberOfGifLoopsOption.getValue({
235
- commandLine: parse_command_line_1.parsedCli,
235
+ commandLine: parsed_cli_1.parsedCli,
236
236
  }).value;
237
237
  const encodingMaxRate = encodingMaxRateOption.getValue({
238
- commandLine: parse_command_line_1.parsedCli,
238
+ commandLine: parsed_cli_1.parsedCli,
239
239
  }).value;
240
240
  const encodingBufferSize = encodingBufferSizeOption.getValue({
241
- commandLine: parse_command_line_1.parsedCli,
241
+ commandLine: parsed_cli_1.parsedCli,
242
242
  }).value;
243
243
  const delayRenderInMilliseconds = delayRenderTimeoutInMillisecondsOption.getValue({
244
- commandLine: parse_command_line_1.parsedCli,
244
+ commandLine: parsed_cli_1.parsedCli,
245
245
  }).value;
246
246
  const overwrite = overwriteOption.getValue({
247
- commandLine: parse_command_line_1.parsedCli,
247
+ commandLine: parsed_cli_1.parsedCli,
248
248
  }, true).value;
249
249
  for (const composition of compositions) {
250
250
  const { value: videoCodec, source: codecReason } = videoCodecOption.getValue({
251
- commandLine: parse_command_line_1.parsedCli,
251
+ commandLine: parsed_cli_1.parsedCli,
252
252
  }, {
253
253
  downloadName: null,
254
254
  outName: null,
@@ -260,7 +260,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
260
260
  benchmark[composition.id] = {};
261
261
  for (const con of concurrency) {
262
262
  const benchmarkProgress = (0, progress_bar_1.createOverwriteableCliOutput)({
263
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
263
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
264
264
  cancelSignal: null,
265
265
  updatesDontOverwrite: (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel }),
266
266
  indent: false,
@@ -322,19 +322,19 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
322
322
  staticBase: null,
323
323
  }).serializedString,
324
324
  offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption.getValue({
325
- commandLine: parse_command_line_1.parsedCli,
325
+ commandLine: parsed_cli_1.parsedCli,
326
326
  }).value,
327
327
  colorSpace: colorSpaceOption.getValue({
328
- commandLine: parse_command_line_1.parsedCli,
328
+ commandLine: parsed_cli_1.parsedCli,
329
329
  }).value,
330
330
  repro: false,
331
331
  binariesDirectory: binariesDirectoryOption.getValue({
332
- commandLine: parse_command_line_1.parsedCli,
332
+ commandLine: parsed_cli_1.parsedCli,
333
333
  }).value,
334
334
  finishRenderProgress: () => undefined,
335
335
  separateAudioTo: null,
336
336
  forSeamlessAacConcatenation: forSeamlessAacConcatenationOption.getValue({
337
- commandLine: parse_command_line_1.parsedCli,
337
+ commandLine: parsed_cli_1.parsedCli,
338
338
  }).value,
339
339
  compositionStart: 0,
340
340
  onBrowserDownload,
@@ -5,7 +5,7 @@ const renderer_1 = require("@remotion/renderer");
5
5
  const browser_download_bar_1 = require("../browser-download-bar");
6
6
  const get_cli_options_1 = require("../get-cli-options");
7
7
  const log_1 = require("../log");
8
- const parse_command_line_1 = require("../parse-command-line");
8
+ const parsed_cli_1 = require("../parsed-cli");
9
9
  exports.ENSURE_COMMAND = 'ensure';
10
10
  const ensureCommand = async (logLevel) => {
11
11
  const { browserExecutable } = (0, get_cli_options_1.getCliOptions)({
@@ -19,7 +19,7 @@ const ensureCommand = async (logLevel) => {
19
19
  onBrowserDownload: (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
20
20
  indent,
21
21
  logLevel,
22
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
22
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
23
23
  }),
24
24
  });
25
25
  if (status.type === 'no-browser') {
package/dist/bundle.js CHANGED
@@ -13,7 +13,7 @@ const chalk_1 = require("./chalk");
13
13
  const entry_point_1 = require("./entry-point");
14
14
  const get_github_repository_1 = require("./get-github-repository");
15
15
  const log_1 = require("./log");
16
- const parse_command_line_1 = require("./parse-command-line");
16
+ const parsed_cli_1 = require("./parsed-cli");
17
17
  const setup_cache_1 = require("./setup-cache");
18
18
  const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
19
19
  const yes_or_no_1 = require("./yes-or-no");
@@ -40,10 +40,10 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
40
40
  log_1.Log.error({ indent: false, logLevel }, 'See: https://www.remotion.dev/docs/terminology/entry-point');
41
41
  process.exit(1);
42
42
  }
43
- const publicPath = publicPathOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
44
- const publicDir = publicDirOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
45
- const outputPath = parse_command_line_1.parsedCli['out-dir']
46
- ? path_1.default.resolve(process.cwd(), parse_command_line_1.parsedCli['out-dir'])
43
+ const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
44
+ const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
45
+ const outputPath = parsed_cli_1.parsedCli['out-dir']
46
+ ? path_1.default.resolve(process.cwd(), parsed_cli_1.parsedCli['out-dir'])
47
47
  : path_1.default.join(remotionRoot, 'build');
48
48
  const gitignoreFolder = bundler_1.BundlerInternals.findClosestFolderWithItem(outputPath, '.gitignore');
49
49
  const existed = (0, fs_1.existsSync)(outputPath);
@@ -82,7 +82,7 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
82
82
  }
83
83
  }
84
84
  },
85
- quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
85
+ quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
86
86
  outDir: outputPath,
87
87
  gitSource,
88
88
  bufferStateDelayInMilliseconds: null,
@@ -10,7 +10,7 @@ const preview_server_1 = require("./config/preview-server");
10
10
  const entry_point_1 = require("./entry-point");
11
11
  const get_cli_options_1 = require("./get-cli-options");
12
12
  const log_1 = require("./log");
13
- const parse_command_line_1 = require("./parse-command-line");
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
16
  const { enableMultiprocessOnLinuxOption, offthreadVideoCacheSizeInBytesOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, publicPathOption, publicDirOption, } = client_1.BrowserSafeApis.options;
@@ -35,24 +35,24 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
35
35
  const chromiumOptions = {
36
36
  disableWebSecurity,
37
37
  enableMultiProcessOnLinux: enableMultiprocessOnLinuxOption.getValue({
38
- commandLine: parse_command_line_1.parsedCli,
38
+ commandLine: parsed_cli_1.parsedCli,
39
39
  }).value,
40
- gl: glOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value,
41
- headless: headlessOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value,
40
+ gl: glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
41
+ headless: headlessOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
42
42
  ignoreCertificateErrors,
43
43
  userAgent,
44
44
  };
45
- const publicPath = publicPathOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
45
+ const publicPath = publicPathOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
46
46
  const timeoutInMilliseconds = delayRenderTimeoutInMillisecondsOption.getValue({
47
- commandLine: parse_command_line_1.parsedCli,
47
+ commandLine: parsed_cli_1.parsedCli,
48
48
  }).value;
49
49
  const binariesDirectory = binariesDirectoryOption.getValue({
50
- commandLine: parse_command_line_1.parsedCli,
50
+ commandLine: parsed_cli_1.parsedCli,
51
51
  }).value;
52
52
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
53
- commandLine: parse_command_line_1.parsedCli,
53
+ commandLine: parsed_cli_1.parsedCli,
54
54
  }).value;
55
- const publicDir = publicDirOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
55
+ const publicDir = publicDirOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
56
56
  const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
57
57
  remotionRoot,
58
58
  fullPath: file,
@@ -66,7 +66,7 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
66
66
  (0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.deleteDirectory(dir));
67
67
  },
68
68
  quietProgress: false,
69
- quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
69
+ quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
70
70
  outDir: null,
71
71
  // Not needed for compositions
72
72
  gitSource: null,
@@ -97,7 +97,7 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
97
97
  onBrowserDownload: (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
98
98
  indent: false,
99
99
  logLevel,
100
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
100
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
101
101
  }),
102
102
  });
103
103
  (0, print_compositions_1.printCompositions)(compositions, logLevel);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRendererPortFromConfigFileAndCliFlag = exports.getRendererPortFromConfigFile = exports.getStudioPort = exports.setRendererPort = exports.setStudioPort = exports.setPort = void 0;
4
- const parse_command_line_1 = require("../parse-command-line");
4
+ const parsed_cli_1 = require("../parsed-cli");
5
5
  let studioPort;
6
6
  let rendererPort;
7
7
  const validatePort = (port) => {
@@ -44,6 +44,6 @@ const getRendererPortFromConfigFile = () => {
44
44
  exports.getRendererPortFromConfigFile = getRendererPortFromConfigFile;
45
45
  const getRendererPortFromConfigFileAndCliFlag = () => {
46
46
  var _a, _b;
47
- return (_b = (_a = parse_command_line_1.parsedCli.port) !== null && _a !== void 0 ? _a : rendererPort) !== null && _b !== void 0 ? _b : null;
47
+ return (_b = (_a = parsed_cli_1.parsedCli.port) !== null && _a !== void 0 ? _a : rendererPort) !== null && _b !== void 0 ? _b : null;
48
48
  };
49
49
  exports.getRendererPortFromConfigFileAndCliFlag = getRendererPortFromConfigFileAndCliFlag;
package/dist/ffmpeg.js CHANGED
@@ -8,7 +8,7 @@ const renderer_1 = require("@remotion/renderer");
8
8
  const client_1 = require("@remotion/renderer/client");
9
9
  const node_child_process_1 = require("node:child_process");
10
10
  const node_path_1 = __importDefault(require("node:path"));
11
- const parse_command_line_1 = require("./parse-command-line");
11
+ const parsed_cli_1 = require("./parsed-cli");
12
12
  const dynamicLibEnv = (indent, logLevel, binariesDirectory) => {
13
13
  const lib = node_path_1.default.dirname(renderer_1.RenderInternals.getExecutablePath({
14
14
  type: 'compositor',
@@ -34,7 +34,7 @@ const dynamicLibEnv = (indent, logLevel, binariesDirectory) => {
34
34
  exports.dynamicLibEnv = dynamicLibEnv;
35
35
  const ffmpegCommand = (_root, args, logLevel) => {
36
36
  const { value: binariesDirectory } = client_1.BrowserSafeApis.options.binariesDirectoryOption.getValue({
37
- commandLine: parse_command_line_1.parsedCli,
37
+ commandLine: parsed_cli_1.parsedCli,
38
38
  });
39
39
  const binary = renderer_1.RenderInternals.getExecutablePath({
40
40
  type: 'ffmpeg',
@@ -52,7 +52,7 @@ const ffmpegCommand = (_root, args, logLevel) => {
52
52
  exports.ffmpegCommand = ffmpegCommand;
53
53
  const ffprobeCommand = (_root, args, logLevel) => {
54
54
  const { value: binariesDirectory } = client_1.BrowserSafeApis.options.binariesDirectoryOption.getValue({
55
- commandLine: parse_command_line_1.parsedCli,
55
+ commandLine: parsed_cli_1.parsedCli,
56
56
  });
57
57
  const binary = renderer_1.RenderInternals.getExecutablePath({
58
58
  type: 'ffprobe',
@@ -8,17 +8,17 @@ const node_fs_1 = require("node:fs");
8
8
  const node_path_1 = __importDefault(require("node:path"));
9
9
  const load_config_1 = require("./load-config");
10
10
  const log_1 = require("./log");
11
- const parse_command_line_1 = require("./parse-command-line");
11
+ const parsed_cli_1 = require("./parsed-cli");
12
12
  const defaultConfigFileJavascript = 'remotion.config.js';
13
13
  const defaultConfigFileTypescript = 'remotion.config.ts';
14
14
  const loadConfig = (remotionRoot) => {
15
- if (parse_command_line_1.parsedCli.config) {
16
- const fullPath = node_path_1.default.resolve(process.cwd(), parse_command_line_1.parsedCli.config);
15
+ if (parsed_cli_1.parsedCli.config) {
16
+ const fullPath = node_path_1.default.resolve(process.cwd(), parsed_cli_1.parsedCli.config);
17
17
  if (!(0, node_fs_1.existsSync)(fullPath)) {
18
- log_1.Log.error({ indent: false, logLevel: 'error' }, `You specified a config file location of "${parse_command_line_1.parsedCli.config}" but no file under ${fullPath} was found.`);
18
+ log_1.Log.error({ indent: false, logLevel: 'error' }, `You specified a config file location of "${parsed_cli_1.parsedCli.config}" but no file under ${fullPath} was found.`);
19
19
  process.exit(1);
20
20
  }
21
- return (0, load_config_1.loadConfigFile)(remotionRoot, parse_command_line_1.parsedCli.config, fullPath.endsWith('.js'));
21
+ return (0, load_config_1.loadConfigFile)(remotionRoot, parsed_cli_1.parsedCli.config, fullPath.endsWith('.js'));
22
22
  }
23
23
  if (remotionRoot === null) {
24
24
  return Promise.resolve(null);
package/dist/get-env.js CHANGED
@@ -35,7 +35,7 @@ const node_path_1 = __importDefault(require("node:path"));
35
35
  const chalk_1 = require("./chalk");
36
36
  const config_1 = require("./config");
37
37
  const log_1 = require("./log");
38
- const parse_command_line_1 = require("./parse-command-line");
38
+ const parsed_cli_1 = require("./parsed-cli");
39
39
  function getProcessEnv() {
40
40
  const env = {};
41
41
  const validKeys = Object.keys(process.env).filter((key) => key.startsWith('REMOTION_'));
@@ -110,8 +110,8 @@ const findDotEnvFile = (remotionRoot) => {
110
110
  };
111
111
  const getEnvironmentVariables = (onUpdate, logLevel, indent) => {
112
112
  const processEnv = getProcessEnv();
113
- if (parse_command_line_1.parsedCli['env-file']) {
114
- const envFile = node_path_1.default.resolve(process.cwd(), parse_command_line_1.parsedCli['env-file']);
113
+ if (parsed_cli_1.parsedCli['env-file']) {
114
+ const envFile = node_path_1.default.resolve(process.cwd(), parsed_cli_1.parsedCli['env-file']);
115
115
  if (!node_fs_1.default.existsSync(envFile)) {
116
116
  log_1.Log.error({ indent: false, logLevel }, 'You passed a --env-file but it could not be found.');
117
117
  log_1.Log.error({ indent: false, logLevel }, 'We looked for the file at:', envFile);
@@ -1,4 +1,4 @@
1
- import type { GitSource } from '@remotion/studio';
1
+ import type { GitSource } from '@remotion/studio-shared';
2
2
  export type ParsedGitRemote = {
3
3
  type: 'github';
4
4
  org: string;
@@ -8,12 +8,12 @@ const node_fs_1 = __importDefault(require("node:fs"));
8
8
  const node_os_1 = __importDefault(require("node:os"));
9
9
  const node_path_1 = __importDefault(require("node:path"));
10
10
  const log_1 = require("./log");
11
- const parse_command_line_1 = require("./parse-command-line");
11
+ const parsed_cli_1 = require("./parsed-cli");
12
12
  const getInputProps = (onUpdate, logLevel) => {
13
- if (!parse_command_line_1.parsedCli.props) {
13
+ if (!parsed_cli_1.parsedCli.props) {
14
14
  return {};
15
15
  }
16
- const jsonFile = node_path_1.default.resolve(process.cwd(), parse_command_line_1.parsedCli.props);
16
+ const jsonFile = node_path_1.default.resolve(process.cwd(), parsed_cli_1.parsedCli.props);
17
17
  try {
18
18
  if (node_fs_1.default.existsSync(jsonFile)) {
19
19
  const rawJsonData = node_fs_1.default.readFileSync(jsonFile, 'utf-8');
@@ -30,12 +30,12 @@ const getInputProps = (onUpdate, logLevel) => {
30
30
  }
31
31
  return JSON.parse(rawJsonData);
32
32
  }
33
- return JSON.parse(parse_command_line_1.parsedCli.props);
33
+ return JSON.parse(parsed_cli_1.parsedCli.props);
34
34
  }
35
35
  catch (err) {
36
36
  log_1.Log.error({ indent: false, logLevel }, 'You passed --props but it was neither valid JSON nor a file path to a valid JSON file. Provided value: ' +
37
- parse_command_line_1.parsedCli.props);
38
- log_1.Log.info({ indent: false, logLevel }, 'Got the following value:', parse_command_line_1.parsedCli.props);
37
+ parsed_cli_1.parsedCli.props);
38
+ log_1.Log.info({ indent: false, logLevel }, 'Got the following value:', parsed_cli_1.parsedCli.props);
39
39
  log_1.Log.error({ indent: false, logLevel }, 'Check that your input is parseable using `JSON.parse` and try again.');
40
40
  if (node_os_1.default.platform() === 'win32') {
41
41
  const logOptions = {
@@ -1,2 +1,2 @@
1
- import type { RenderDefaults } from '@remotion/studio';
1
+ import type { RenderDefaults } from '@remotion/studio-shared';
2
2
  export declare const getRenderDefaults: () => RenderDefaults;
@@ -4,74 +4,74 @@ exports.getRenderDefaults = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const client_1 = require("@remotion/renderer/client");
6
6
  const config_1 = require("./config");
7
- const parse_command_line_1 = require("./parse-command-line");
7
+ const parsed_cli_1 = require("./parsed-cli");
8
8
  const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, } = client_1.BrowserSafeApis.options;
9
9
  const getRenderDefaults = () => {
10
10
  var _a;
11
11
  const defaultJpegQuality = jpegQualityOption.getValue({
12
- commandLine: parse_command_line_1.parsedCli,
12
+ commandLine: parsed_cli_1.parsedCli,
13
13
  }).value;
14
- const logLevel = logLevelOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
14
+ const logLevel = logLevelOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
15
15
  const defaultCodec = config_1.ConfigInternals.getOutputCodecOrUndefined();
16
16
  const concurrency = renderer_1.RenderInternals.getActualConcurrency(config_1.ConfigInternals.getConcurrency());
17
17
  const pixelFormat = config_1.ConfigInternals.getPixelFormat();
18
18
  const proResProfile = (_a = config_1.ConfigInternals.getProResProfile()) !== null && _a !== void 0 ? _a : 'hq';
19
19
  const x264Preset = x264Option.getValue({
20
- commandLine: parse_command_line_1.parsedCli,
20
+ commandLine: parsed_cli_1.parsedCli,
21
21
  }).value;
22
22
  const audioBitrate = audioBitrateOption.getValue({
23
- commandLine: parse_command_line_1.parsedCli,
23
+ commandLine: parsed_cli_1.parsedCli,
24
24
  }).value;
25
25
  const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
26
- commandLine: parse_command_line_1.parsedCli,
26
+ commandLine: parsed_cli_1.parsedCli,
27
27
  }).value;
28
28
  const defaultScale = scaleOption.getValue({
29
- commandLine: parse_command_line_1.parsedCli,
29
+ commandLine: parsed_cli_1.parsedCli,
30
30
  }).value;
31
31
  const videoBitrate = videoBitrateOption.getValue({
32
- commandLine: parse_command_line_1.parsedCli,
32
+ commandLine: parsed_cli_1.parsedCli,
33
33
  }).value;
34
34
  const enforceAudioTrack = enforceAudioOption.getValue({
35
- commandLine: parse_command_line_1.parsedCli,
35
+ commandLine: parsed_cli_1.parsedCli,
36
36
  }).value;
37
37
  const muted = mutedOption.getValue({
38
- commandLine: parse_command_line_1.parsedCli,
38
+ commandLine: parsed_cli_1.parsedCli,
39
39
  }).value;
40
40
  const colorSpace = colorSpaceOption.getValue({
41
- commandLine: parse_command_line_1.parsedCli,
41
+ commandLine: parsed_cli_1.parsedCli,
42
42
  }).value;
43
43
  const multiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
44
- commandLine: parse_command_line_1.parsedCli,
44
+ commandLine: parsed_cli_1.parsedCli,
45
45
  }).value;
46
46
  const gl = glOption.getValue({
47
- commandLine: parse_command_line_1.parsedCli,
47
+ commandLine: parsed_cli_1.parsedCli,
48
48
  }).value;
49
49
  const numberOfGifLoops = numberOfGifLoopsOption.getValue({
50
- commandLine: parse_command_line_1.parsedCli,
50
+ commandLine: parsed_cli_1.parsedCli,
51
51
  }).value;
52
52
  const beepOnFinish = beepOnFinishOption.getValue({
53
- commandLine: parse_command_line_1.parsedCli,
53
+ commandLine: parsed_cli_1.parsedCli,
54
54
  }).value;
55
55
  const encodingMaxRate = encodingMaxRateOption.getValue({
56
- commandLine: parse_command_line_1.parsedCli,
56
+ commandLine: parsed_cli_1.parsedCli,
57
57
  }).value;
58
58
  const encodingBufferSize = encodingBufferSizeOption.getValue({
59
- commandLine: parse_command_line_1.parsedCli,
59
+ commandLine: parsed_cli_1.parsedCli,
60
60
  }).value;
61
61
  const repro = reproOption.getValue({
62
- commandLine: parse_command_line_1.parsedCli,
62
+ commandLine: parsed_cli_1.parsedCli,
63
63
  }).value;
64
64
  const delayRenderTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
65
- commandLine: parse_command_line_1.parsedCli,
65
+ commandLine: parsed_cli_1.parsedCli,
66
66
  }).value;
67
67
  const headless = headlessOption.getValue({
68
- commandLine: parse_command_line_1.parsedCli,
68
+ commandLine: parsed_cli_1.parsedCli,
69
69
  }).value;
70
70
  const forSeamlessAacConcatenation = forSeamlessAacConcatenationOption.getValue({
71
- commandLine: parse_command_line_1.parsedCli,
71
+ commandLine: parsed_cli_1.parsedCli,
72
72
  }).value;
73
73
  const audioCodec = audioCodecOption.getValue({
74
- commandLine: parse_command_line_1.parsedCli,
74
+ commandLine: parsed_cli_1.parsedCli,
75
75
  }).value;
76
76
  const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
77
77
  const stillImageFormat = config_1.ConfigInternals.getUserPreferredStillImageFormat();
package/dist/gpu.js CHANGED
@@ -7,7 +7,7 @@ const browser_download_bar_1 = require("./browser-download-bar");
7
7
  const chalk_1 = require("./chalk");
8
8
  const get_cli_options_1 = require("./get-cli-options");
9
9
  const log_1 = require("./log");
10
- const parse_command_line_1 = require("./parse-command-line");
10
+ const parsed_cli_1 = require("./parsed-cli");
11
11
  exports.GPU_COMMAND = 'gpu';
12
12
  const { enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, } = client_1.BrowserSafeApis.options;
13
13
  const gpuCommand = async (logLevel) => {
@@ -16,14 +16,14 @@ const gpuCommand = async (logLevel) => {
16
16
  logLevel,
17
17
  });
18
18
  const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
19
- commandLine: parse_command_line_1.parsedCli,
19
+ commandLine: parsed_cli_1.parsedCli,
20
20
  }).value;
21
- const gl = glOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
21
+ const gl = glOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
22
22
  const puppeteerTimeout = delayRenderTimeoutInMillisecondsOption.getValue({
23
- commandLine: parse_command_line_1.parsedCli,
23
+ commandLine: parsed_cli_1.parsedCli,
24
24
  }).value;
25
25
  const headless = headlessOption.getValue({
26
- commandLine: parse_command_line_1.parsedCli,
26
+ commandLine: parsed_cli_1.parsedCli,
27
27
  }).value;
28
28
  const chromiumOptions = {
29
29
  disableWebSecurity,
@@ -42,7 +42,7 @@ const gpuCommand = async (logLevel) => {
42
42
  onBrowserDownload: (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
43
43
  indent: false,
44
44
  logLevel,
45
- quiet: (0, parse_command_line_1.quietFlagProvided)(),
45
+ quiet: (0, parsed_cli_1.quietFlagProvided)(),
46
46
  }),
47
47
  });
48
48
  for (const { feature, status } of statuses) {
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getVideoImageFormat = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const config_1 = require("./config");
6
- const parse_command_line_1 = require("./parse-command-line");
6
+ const parsed_cli_1 = require("./parsed-cli");
7
7
  const getVideoImageFormat = ({ codec, uiImageFormat, }) => {
8
8
  if (uiImageFormat !== null) {
9
9
  return uiImageFormat;
10
10
  }
11
- if (typeof parse_command_line_1.parsedCli['image-format'] !== 'undefined') {
12
- if (!renderer_1.RenderInternals.validVideoImageFormats.includes(parse_command_line_1.parsedCli['image-format'])) {
13
- throw new Error(`Invalid image format: ${parse_command_line_1.parsedCli['image-format']}`);
11
+ if (typeof parsed_cli_1.parsedCli['image-format'] !== 'undefined') {
12
+ if (!renderer_1.RenderInternals.validVideoImageFormats.includes(parsed_cli_1.parsedCli['image-format'])) {
13
+ throw new Error(`Invalid image format: ${parsed_cli_1.parsedCli['image-format']}`);
14
14
  }
15
- return parse_command_line_1.parsedCli['image-format'];
15
+ return parsed_cli_1.parsedCli['image-format'];
16
16
  }
17
17
  const configFileOption = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
18
18
  if (typeof configFileOption !== 'undefined') {