@remotion/cli 3.0.16 → 3.0.17

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.
@@ -34,11 +34,12 @@ const listCompositionsCommand = async () => {
34
34
  }
35
35
  const fullPath = path_1.default.join(process.cwd(), file);
36
36
  await (0, get_config_file_name_1.loadConfig)();
37
- const { browserExecutable, ffmpegExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'get-compositions' });
37
+ const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'get-compositions' });
38
38
  const bundled = await (0, setup_cache_1.bundleOnCli)(fullPath, ['bundling']);
39
39
  const compositions = await (0, renderer_1.getCompositions)(bundled, {
40
40
  browserExecutable,
41
41
  ffmpegExecutable,
42
+ ffprobeExecutable,
42
43
  chromiumOptions,
43
44
  envVariables,
44
45
  inputProps,
@@ -22,6 +22,7 @@ export declare const getCliOptions: (options: {
22
22
  stillFrame: number;
23
23
  browserExecutable: BrowserExecutable;
24
24
  ffmpegExecutable: import("remotion").FfmpegExecutable;
25
+ ffprobeExecutable: import("remotion").FfmpegExecutable;
25
26
  logLevel: "verbose" | "info" | "warn" | "error";
26
27
  scale: number;
27
28
  chromiumOptions: ChromiumOptions;
@@ -144,6 +144,7 @@ const getCliOptions = async (options) => {
144
144
  const proResProfile = getAndValidateProResProfile(codec);
145
145
  const browserExecutable = remotion_1.Internals.getBrowserExecutable();
146
146
  const ffmpegExecutable = remotion_1.Internals.getCustomFfmpegExecutable();
147
+ const ffprobeExecutable = remotion_1.Internals.getCustomFfprobeExecutable();
147
148
  const scale = remotion_1.Internals.getScale();
148
149
  const port = remotion_1.Internals.getServerPort();
149
150
  const chromiumOptions = {
@@ -173,6 +174,7 @@ const getCliOptions = async (options) => {
173
174
  stillFrame: remotion_1.Internals.getStillFrame(),
174
175
  browserExecutable,
175
176
  ffmpegExecutable,
177
+ ffprobeExecutable,
176
178
  logLevel: remotion_1.Internals.Logging.getLogLevel(),
177
179
  scale,
178
180
  chromiumOptions,
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export declare const CliInternals: {
47
47
  stillFrame: number;
48
48
  browserExecutable: import("remotion").BrowserExecutable;
49
49
  ffmpegExecutable: import("remotion").FfmpegExecutable;
50
+ ffprobeExecutable: import("remotion").FfmpegExecutable;
50
51
  logLevel: "verbose" | "info" | "warn" | "error";
51
52
  scale: number;
52
53
  chromiumOptions: import("@remotion/renderer").ChromiumOptions;
@@ -3,6 +3,7 @@ import { BrowserExecutable, Codec, FfmpegExecutable, ImageFormat, OpenGlRenderer
3
3
  export declare type CommandLineOptions = {
4
4
  ['browser-executable']: BrowserExecutable;
5
5
  ['ffmpeg-executable']: FfmpegExecutable;
6
+ ['ffprobe-executable']: FfmpegExecutable;
6
7
  ['pixel-format']: PixelFormat;
7
8
  ['image-format']: ImageFormat;
8
9
  ['prores-profile']: ProResProfile;
@@ -42,6 +42,9 @@ const parseCommandLine = (type) => {
42
42
  if (exports.parsedCli['ffmpeg-executable']) {
43
43
  remotion_1.Config.Rendering.setFfmpegExecutable((0, path_1.resolve)(exports.parsedCli['ffmpeg-executable']));
44
44
  }
45
+ if (exports.parsedCli['ffprobe-executable']) {
46
+ remotion_1.Config.Rendering.setFfprobeExecutable((0, path_1.resolve)(exports.parsedCli['ffprobe-executable']));
47
+ }
45
48
  if (typeof exports.parsedCli['bundle-cache'] !== 'undefined') {
46
49
  remotion_1.Config.Bundling.setCachingEnabled(exports.parsedCli['bundle-cache'] !== 'false');
47
50
  }
package/dist/render.js CHANGED
@@ -31,7 +31,7 @@ const render = async () => {
31
31
  ? file
32
32
  : path_1.default.join(process.cwd(), file);
33
33
  await (0, initialize_render_cli_1.initializeRenderCli)('sequence');
34
- const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
34
+ const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
35
35
  if (!absoluteOutputFile) {
36
36
  throw new Error('assertion error - expected absoluteOutputFile to not be null');
37
37
  }
@@ -164,6 +164,7 @@ const render = async () => {
164
164
  chromiumOptions,
165
165
  scale,
166
166
  ffmpegExecutable,
167
+ ffprobeExecutable,
167
168
  browserExecutable,
168
169
  port,
169
170
  });
@@ -181,6 +182,7 @@ const render = async () => {
181
182
  crf,
182
183
  envVariables,
183
184
  ffmpegExecutable,
185
+ ffprobeExecutable,
184
186
  frameRange,
185
187
  imageFormat,
186
188
  inputProps,
@@ -229,5 +231,8 @@ const render = async () => {
229
231
  log_1.Log.warn('Do you have minimum required Node.js version?');
230
232
  }
231
233
  log_1.Log.info(chalk_1.default.green('\nYour video is ready!'));
234
+ if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
235
+ remotion_1.Internals.perf.logPerf();
236
+ }
232
237
  };
233
238
  exports.render = render;
package/dist/still.js CHANGED
@@ -33,7 +33,7 @@ const still = async () => {
33
33
  log_1.Log.verbose('Output file has a PNG extension, therefore setting the image format to PNG.');
34
34
  remotion_1.Config.Rendering.setImageFormat('png');
35
35
  }
36
- const { inputProps, envVariables, quality, browser, imageFormat, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, overwrite, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'still' });
36
+ const { inputProps, envVariables, quality, browser, imageFormat, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'still' });
37
37
  log_1.Log.verbose('Browser executable: ', browserExecutable);
38
38
  if (imageFormat === 'none') {
39
39
  log_1.Log.error('No image format was selected - this is probably an error in Remotion - please post your command on Github Issues for help.');
@@ -73,6 +73,7 @@ const still = async () => {
73
73
  port,
74
74
  browserExecutable,
75
75
  ffmpegExecutable,
76
+ ffprobeExecutable,
76
77
  });
77
78
  const compositionId = (0, get_composition_id_1.getCompositionId)(comps);
78
79
  const composition = comps.find((c) => c.id === compositionId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -23,18 +23,17 @@
23
23
  "author": "Jonny Burger <jonny@remotion.dev>",
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "dependencies": {
26
- "@remotion/bundler": "3.0.16",
27
- "@remotion/media-utils": "3.0.16",
28
- "@remotion/player": "3.0.16",
29
- "@remotion/renderer": "3.0.16",
26
+ "@remotion/bundler": "3.0.17",
27
+ "@remotion/media-utils": "3.0.17",
28
+ "@remotion/player": "3.0.17",
29
+ "@remotion/renderer": "3.0.17",
30
30
  "better-opn": "2.1.1",
31
31
  "chalk": "4.1.2",
32
32
  "dotenv": "9.0.2",
33
33
  "execa": "5.1.1",
34
34
  "minimist": "1.2.6",
35
- "remotion": "3.0.16",
36
- "semver": "7.3.5",
37
- "webpack": "5.72.0"
35
+ "remotion": "3.0.17",
36
+ "semver": "7.3.5"
38
37
  },
39
38
  "peerDependencies": {
40
39
  "react": ">=16.8.0",
@@ -72,5 +71,5 @@
72
71
  "publishConfig": {
73
72
  "access": "public"
74
73
  },
75
- "gitHead": "9f09f61ae8fb65674d7dfbfc526a8f909d426519"
74
+ "gitHead": "c973653a9ced0d8793ce0cb03ce5f837b149d865"
76
75
  }