@remotion/cli 4.0.92 → 4.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/benchmark.js CHANGED
@@ -96,7 +96,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
96
96
  process.exit(1);
97
97
  }
98
98
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
99
- const { inputProps, envVariables, browserExecutable, chromiumOptions, puppeteerTimeout, browser, scale, publicDir, proResProfile, x264Preset, frameRange: defaultFrameRange, overwrite, jpegQuality, crf: configFileCrf, pixelFormat, scale: configFileScale, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, height, width, concurrency: unparsedConcurrency, offthreadVideoCacheSizeInBytes, colorSpace, } = await (0, get_cli_options_1.getCliOptions)({
99
+ const { inputProps, envVariables, browserExecutable, chromiumOptions, puppeteerTimeout, scale, publicDir, proResProfile, x264Preset, frameRange: defaultFrameRange, overwrite, jpegQuality, crf: configFileCrf, pixelFormat, scale: configFileScale, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, height, width, concurrency: unparsedConcurrency, offthreadVideoCacheSizeInBytes, colorSpace, } = (0, get_cli_options_1.getCliOptions)({
100
100
  isLambda: false,
101
101
  type: 'series',
102
102
  remotionRoot,
@@ -104,7 +104,7 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
104
104
  });
105
105
  log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', fullEntryPoint, 'reason:', reason);
106
106
  const browserInstance = renderer_1.RenderInternals.internalOpenBrowser({
107
- browser,
107
+ browser: 'chrome',
108
108
  browserExecutable,
109
109
  chromiumOptions,
110
110
  forceDeviceScaleFactor: scale,
package/dist/bundle.js CHANGED
@@ -33,7 +33,7 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
33
33
  log_1.Log.error('See: https://www.remotion.dev/docs/terminology#entry-point');
34
34
  process.exit(1);
35
35
  }
36
- const { publicDir } = await (0, get_cli_options_1.getCliOptions)({
36
+ const { publicDir } = (0, get_cli_options_1.getCliOptions)({
37
37
  isLambda: false,
38
38
  type: 'get-compositions',
39
39
  remotionRoot,
@@ -20,7 +20,7 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
20
20
  process.exit(1);
21
21
  }
22
22
  log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', file, 'reason:', reason);
23
- const { browserExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, publicDir, offthreadVideoCacheSizeInBytes, } = await (0, get_cli_options_1.getCliOptions)({
23
+ const { browserExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, publicDir, offthreadVideoCacheSizeInBytes, } = (0, get_cli_options_1.getCliOptions)({
24
24
  isLambda: false,
25
25
  type: 'get-compositions',
26
26
  remotionRoot,
@@ -1,11 +1,11 @@
1
- import type { BrowserExecutable, ChromiumOptions, FrameRange, LogLevel } from '@remotion/renderer';
1
+ import type { ChromiumOptions, FrameRange, LogLevel } from '@remotion/renderer';
2
2
  export declare const getAndValidateAbsoluteOutputFile: (relativeOutputLocation: string, overwrite: boolean) => string;
3
3
  export declare const getCliOptions: (options: {
4
4
  isLambda: boolean;
5
5
  type: 'still' | 'series' | 'get-compositions';
6
6
  remotionRoot: string;
7
7
  logLevel: LogLevel;
8
- }) => Promise<{
8
+ }) => {
9
9
  puppeteerTimeout: number;
10
10
  concurrency: string | number | null;
11
11
  frameRange: FrameRange | null;
@@ -13,7 +13,6 @@ export declare const getCliOptions: (options: {
13
13
  inputProps: Record<string, unknown>;
14
14
  envVariables: Record<string, string>;
15
15
  jpegQuality: number;
16
- browser: "chrome";
17
16
  crf: import("@remotion/renderer").Crf | null;
18
17
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
19
18
  proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
@@ -21,7 +20,7 @@ export declare const getCliOptions: (options: {
21
20
  everyNthFrame: number;
22
21
  numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
23
22
  stillFrame: number;
24
- browserExecutable: BrowserExecutable;
23
+ browserExecutable: import("@remotion/renderer").BrowserExecutable;
25
24
  logLevel: "verbose" | "info" | "warn" | "error";
26
25
  scale: number;
27
26
  chromiumOptions: ChromiumOptions;
@@ -41,4 +40,4 @@ export declare const getCliOptions: (options: {
41
40
  deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
42
41
  colorSpace: "default" | "bt709" | "bt2020-ncl";
43
42
  repro: boolean;
44
- }>;
43
+ };
@@ -20,7 +20,6 @@ const getAndValidateFrameRange = (logLevel, indent) => {
20
20
  }
21
21
  return frameRange;
22
22
  };
23
- const getBrowser = () => { var _a; return (_a = config_1.ConfigInternals.getBrowser()) !== null && _a !== void 0 ? _a : renderer_1.RenderInternals.DEFAULT_BROWSER; };
24
23
  const getAndValidateAbsoluteOutputFile = (relativeOutputLocation, overwrite) => {
25
24
  const absoluteOutputFile = node_path_1.default.resolve(process.cwd(), relativeOutputLocation);
26
25
  if (node_fs_1.default.existsSync(absoluteOutputFile) && !overwrite) {
@@ -48,23 +47,7 @@ const getx264Preset = () => {
48
47
  const x264Preset = config_1.ConfigInternals.getPresetProfile();
49
48
  return x264Preset;
50
49
  };
51
- const getAndValidateBrowser = async ({ browserExecutable, indent, logLevel, }) => {
52
- const browser = getBrowser();
53
- try {
54
- await renderer_1.RenderInternals.ensureLocalBrowser({
55
- preferredBrowserExecutable: browserExecutable,
56
- indent,
57
- logLevel,
58
- });
59
- }
60
- catch (err) {
61
- log_1.Log.error('Could not download a browser for rendering frames.');
62
- log_1.Log.error(err);
63
- process.exit(1);
64
- }
65
- return browser;
66
- };
67
- const getCliOptions = async (options) => {
50
+ const getCliOptions = (options) => {
68
51
  var _a;
69
52
  const frameRange = getAndValidateFrameRange(options.logLevel, false);
70
53
  const shouldOutputImageSequence = options.type === 'still'
@@ -110,11 +93,6 @@ const getCliOptions = async (options) => {
110
93
  inputProps: (0, get_input_props_1.getInputProps)(null, options.logLevel),
111
94
  envVariables: (0, get_env_1.getEnvironmentVariables)(null, options.logLevel),
112
95
  jpegQuality: config_1.ConfigInternals.getJpegQuality(),
113
- browser: await getAndValidateBrowser({
114
- browserExecutable,
115
- indent: false,
116
- logLevel: options.logLevel,
117
- }),
118
96
  crf,
119
97
  pixelFormat,
120
98
  proResProfile,
package/dist/gpu.js CHANGED
@@ -7,7 +7,7 @@ const get_cli_options_1 = require("./get-cli-options");
7
7
  const log_1 = require("./log");
8
8
  exports.GPU_COMMAND = 'gpu';
9
9
  const gpuCommand = async (remotionRoot, logLevel) => {
10
- const { browserExecutable, chromiumOptions, puppeteerTimeout } = await (0, get_cli_options_1.getCliOptions)({
10
+ const { browserExecutable, chromiumOptions, puppeteerTimeout } = (0, get_cli_options_1.getCliOptions)({
11
11
  isLambda: false,
12
12
  remotionRoot,
13
13
  type: 'get-compositions',
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ export declare const CliInternals: {
75
75
  type: "still" | "series" | "get-compositions";
76
76
  remotionRoot: string;
77
77
  logLevel: "verbose" | "info" | "warn" | "error";
78
- }) => Promise<{
78
+ }) => {
79
79
  puppeteerTimeout: number;
80
80
  concurrency: string | number | null;
81
81
  frameRange: import("@remotion/renderer").FrameRange | null;
@@ -83,7 +83,6 @@ export declare const CliInternals: {
83
83
  inputProps: Record<string, unknown>;
84
84
  envVariables: Record<string, string>;
85
85
  jpegQuality: number;
86
- browser: "chrome";
87
86
  crf: import("@remotion/renderer").Crf | null;
88
87
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
89
88
  proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
@@ -111,7 +110,7 @@ export declare const CliInternals: {
111
110
  deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
112
111
  colorSpace: "default" | "bt709" | "bt2020-ncl";
113
112
  repro: boolean;
114
- }>;
113
+ };
115
114
  loadConfig: (remotionRoot: string) => Promise<string | null>;
116
115
  formatBytes: (number: number, options?: (Intl.NumberFormatOptions & {
117
116
  locale: string;
@@ -125,7 +124,7 @@ export declare const CliInternals: {
125
124
  parsedCli: {
126
125
  "browser-executable": import("@remotion/renderer").BrowserExecutable;
127
126
  "pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
128
- "image-format": "png" | "jpeg" | "pdf" | "webp" | "none";
127
+ "image-format": "png" | "jpeg" | "none" | "pdf" | "webp";
129
128
  "prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
130
129
  "x264-preset": "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
131
130
  "bundle-cache": string;
@@ -195,7 +194,7 @@ export declare const CliInternals: {
195
194
  downloadName: string | null;
196
195
  outName: string | null;
197
196
  configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
198
- cliFlag: "png" | "jpeg" | "pdf" | "webp" | "none" | null;
197
+ cliFlag: "png" | "jpeg" | "none" | "pdf" | "webp" | null;
199
198
  isLambda: boolean;
200
199
  fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
201
200
  }) => {
@@ -9,7 +9,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
9
9
  if (job.type !== 'still') {
10
10
  throw new Error('Expected still job');
11
11
  }
12
- const { publicDir, browserExecutable, browser, puppeteerTimeout } = await (0, get_cli_options_1.getCliOptions)({
12
+ const { publicDir, browserExecutable, puppeteerTimeout } = (0, get_cli_options_1.getCliOptions)({
13
13
  isLambda: false,
14
14
  type: 'still',
15
15
  remotionRoot,
@@ -18,7 +18,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
18
18
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
19
19
  await (0, still_1.renderStillFlow)({
20
20
  remotionRoot,
21
- browser,
21
+ browser: 'chrome',
22
22
  browserExecutable,
23
23
  chromiumOptions: job.chromiumOptions,
24
24
  entryPointReason: 'same as Studio',
@@ -10,7 +10,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
10
10
  if (job.type !== 'video' && job.type !== 'sequence') {
11
11
  throw new Error('Expected video job');
12
12
  }
13
- const { publicDir, browserExecutable, browser, ffmpegOverride } = await (0, get_cli_options_1.getCliOptions)({
13
+ const { publicDir, browserExecutable, ffmpegOverride } = await (0, get_cli_options_1.getCliOptions)({
14
14
  isLambda: false,
15
15
  type: 'still',
16
16
  remotionRoot,
@@ -19,7 +19,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
19
19
  const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
20
20
  await (0, render_1.renderVideoFlow)({
21
21
  remotionRoot,
22
- browser,
22
+ browser: 'chrome',
23
23
  browserExecutable,
24
24
  chromiumOptions: job.chromiumOptions,
25
25
  entryPointReason: 'same as Studio',
package/dist/render.js CHANGED
@@ -25,7 +25,7 @@ const render = async (remotionRoot, args, logLevel) => {
25
25
  log_1.Log.error('--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
  }
28
- const { concurrency, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, jpegQuality, browser, browserExecutable, scale, chromiumOptions, everyNthFrame, puppeteerTimeout, publicDir, height, width, crf, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, offthreadVideoCacheSizeInBytes, colorSpace, repro, } = await (0, get_cli_options_1.getCliOptions)({
28
+ const { concurrency, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, jpegQuality, browserExecutable, scale, chromiumOptions, everyNthFrame, puppeteerTimeout, publicDir, height, width, crf, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, offthreadVideoCacheSizeInBytes, colorSpace, repro, } = (0, get_cli_options_1.getCliOptions)({
29
29
  isLambda: false,
30
30
  type: 'series',
31
31
  remotionRoot,
@@ -38,7 +38,7 @@ const render = async (remotionRoot, args, logLevel) => {
38
38
  browserExecutable,
39
39
  indent: false,
40
40
  logLevel: config_1.ConfigInternals.Logging.getLogLevel(),
41
- browser,
41
+ browser: 'chrome',
42
42
  chromiumOptions,
43
43
  scale,
44
44
  shouldOutputImageSequence,
package/dist/still.js CHANGED
@@ -23,7 +23,7 @@ const still = async (remotionRoot, args, logLevel) => {
23
23
  log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
24
24
  process.exit(1);
25
25
  }
26
- const { browser, browserExecutable, chromiumOptions, envVariables, height, inputProps, overwrite, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, offthreadVideoCacheSizeInBytes, } = await (0, get_cli_options_1.getCliOptions)({
26
+ const { browserExecutable, chromiumOptions, envVariables, height, inputProps, overwrite, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, offthreadVideoCacheSizeInBytes, } = (0, get_cli_options_1.getCliOptions)({
27
27
  isLambda: false,
28
28
  type: 'still',
29
29
  remotionRoot,
@@ -34,7 +34,7 @@ const still = async (remotionRoot, args, logLevel) => {
34
34
  entryPointReason,
35
35
  fullEntryPoint,
36
36
  remainingArgs,
37
- browser,
37
+ browser: 'chrome',
38
38
  browserExecutable,
39
39
  chromiumOptions,
40
40
  envVariables,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "4.0.92",
3
+ "version": "4.0.93",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -31,13 +31,13 @@
31
31
  "dotenv": "9.0.2",
32
32
  "minimist": "1.2.6",
33
33
  "prompts": "2.4.2",
34
- "@remotion/media-utils": "4.0.92",
35
- "@remotion/player": "4.0.92",
36
- "remotion": "4.0.92",
37
- "@remotion/studio-server": "4.0.92",
38
- "@remotion/bundler": "4.0.92",
39
- "@remotion/renderer": "4.0.92",
40
- "@remotion/studio": "4.0.92"
34
+ "@remotion/bundler": "4.0.93",
35
+ "@remotion/media-utils": "4.0.93",
36
+ "@remotion/studio": "4.0.93",
37
+ "@remotion/player": "4.0.93",
38
+ "@remotion/renderer": "4.0.93",
39
+ "@remotion/studio-server": "4.0.93",
40
+ "remotion": "4.0.93"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.8.0",
@@ -62,8 +62,8 @@
62
62
  "react-dom": "18.2.0",
63
63
  "vitest": "0.31.1",
64
64
  "zod": "^3.22.3",
65
- "@remotion/tailwind": "4.0.92",
66
- "@remotion/zod-types": "4.0.92"
65
+ "@remotion/tailwind": "4.0.93",
66
+ "@remotion/zod-types": "4.0.93"
67
67
  },
68
68
  "keywords": [
69
69
  "remotion",