@remotion/cli 4.0.212 → 4.0.214

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.
@@ -4,10 +4,10 @@ export declare const chalk: {
4
4
  styles: Record<string, {
5
5
  codes: [number, number];
6
6
  name: string;
7
- wrap?: ((input: string, newline: boolean) => string) | undefined;
7
+ wrap?: (input: string, newline: boolean) => string;
8
8
  }>;
9
9
  keys: Record<string, string[]>;
10
- alias?: ((name: string, col: string) => void) | undefined;
10
+ alias?: (name: string, col: string) => void;
11
11
  } & {
12
12
  reset: (str: string) => string;
13
13
  bold: (str: string) => string;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.selectAsync = void 0;
6
+ exports.selectAsync = selectAsync;
7
7
  const prompts_1 = __importDefault(require("prompts"));
8
8
  const log_1 = require("./log");
9
9
  function prompt(questions, logLevel) {
@@ -22,4 +22,3 @@ async function selectAsync(question, logLevel) {
22
22
  }, logLevel);
23
23
  return value !== null && value !== void 0 ? value : null;
24
24
  }
25
- exports.selectAsync = selectAsync;
@@ -345,7 +345,7 @@ export declare const ConfigInternals: {
345
345
  getRange: () => FrameRange | null;
346
346
  getBrowser: () => null;
347
347
  getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
348
- getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
348
+ getProResProfile: () => import("@remotion/renderer").ProResProfile | undefined;
349
349
  getBrowserExecutable: () => BrowserExecutable;
350
350
  getStudioPort: () => number | undefined;
351
351
  getRendererPortFromConfigFile: () => number | null;
@@ -375,5 +375,5 @@ export declare const ConfigInternals: {
375
375
  getShouldOpenBrowser: () => boolean;
376
376
  getChromiumUserAgent: () => string | null;
377
377
  getBufferStateDelayInMilliseconds: () => number | null;
378
- getOutputCodecOrUndefined: () => CodecOrUndefined;
378
+ getOutputCodecOrUndefined: () => import("@remotion/renderer/dist/codec").CodecOrUndefined;
379
379
  };
package/dist/get-env.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
- export declare const getEnvironmentVariables: (onUpdate: ((newProps: Record<string, string>) => void) | null, logLevel: LogLevel, indent: boolean) => Record<string, string>;
2
+ export declare const getEnvironmentVariables: (onUpdate: null | ((newProps: Record<string, string>) => void), logLevel: LogLevel, indent: boolean) => Record<string, string>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // From https://github.com/jamestalmage/supports-hyperlinks/blob/master/index.js
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.supportsHyperlink = void 0;
4
+ exports.supportsHyperlink = supportsHyperlink;
5
5
  // MIT License
6
6
  // Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
7
7
  // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -77,4 +77,3 @@ function supportsHyperlink() {
77
77
  }
78
78
  return false;
79
79
  }
80
- exports.supportsHyperlink = supportsHyperlink;
package/dist/index.d.ts CHANGED
@@ -14,10 +14,10 @@ export declare const CliInternals: {
14
14
  styles: Record<string, {
15
15
  codes: [number, number];
16
16
  name: string;
17
- wrap?: ((input: string, newline: boolean) => string) | undefined;
17
+ wrap?: (input: string, newline: boolean) => string;
18
18
  }>;
19
19
  keys: Record<string, string[]>;
20
- alias?: ((name: string, col: string) => void) | undefined;
20
+ alias?: (name: string, col: string) => void;
21
21
  } & {
22
22
  reset: (str: string) => string;
23
23
  bold: (str: string) => string;
@@ -60,18 +60,18 @@ export declare const CliInternals: {
60
60
  };
61
61
  makeProgressBar: (percentage: number, noColor: boolean) => string;
62
62
  Log: {
63
- verbose: (options: import("@remotion/renderer").LogOptions & {
64
- tag?: string | undefined;
65
- }, ...args: any[]) => void;
66
- info: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
67
- warn: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
68
- error: (options: import("@remotion/renderer").LogOptions & {
69
- tag?: string | undefined;
70
- }, ...args: any[]) => void;
63
+ verbose: (options: import("@remotion/renderer/dist/logger").LogOptions & {
64
+ tag?: string;
65
+ }, ...args: Parameters<typeof console.log>) => void;
66
+ info: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
67
+ warn: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
68
+ error: (options: import("@remotion/renderer/dist/logger").LogOptions & {
69
+ tag?: string;
70
+ }, ...args: Parameters<typeof console.log>) => void;
71
71
  };
72
72
  getCliOptions: (options: {
73
73
  isStill: boolean;
74
- logLevel: "verbose" | "info" | "warn" | "error";
74
+ logLevel: import("@remotion/renderer").LogLevel;
75
75
  indent: boolean;
76
76
  }) => {
77
77
  concurrency: string | number | null;
@@ -93,36 +93,36 @@ export declare const CliInternals: {
93
93
  configFileImageFormat: "png" | "jpeg" | "none" | undefined;
94
94
  };
95
95
  loadConfig: (remotionRoot: string) => Promise<string | null>;
96
- formatBytes: (number: number, options?: (Intl.NumberFormatOptions & {
96
+ formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
97
97
  locale: string;
98
- bits?: boolean | undefined;
99
- binary?: boolean | undefined;
98
+ bits?: boolean;
99
+ binary?: boolean;
100
100
  signed: boolean;
101
- }) | undefined) => string;
102
- initializeCli: (remotionRoot: string) => Promise<"verbose" | "info" | "warn" | "error">;
101
+ }) => string;
102
+ initializeCli: (remotionRoot: string) => Promise<import("@remotion/renderer").LogLevel>;
103
103
  BooleanFlags: string[];
104
104
  quietFlagProvided: () => boolean;
105
105
  parsedCli: import("./parse-command-line").CommandLineOptions & {
106
106
  _: string[];
107
107
  };
108
- printError: (err: Error, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
108
+ printError: (err: Error, logLevel: import("@remotion/renderer").LogLevel) => Promise<void>;
109
109
  getFileSizeDownloadBar: (downloaded: number) => string;
110
110
  determineFinalStillImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, isLambda, fromUi, }: {
111
111
  downloadName: string | null;
112
112
  outName: string | null;
113
- configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
114
- cliFlag: "png" | "jpeg" | "pdf" | "webp" | "none" | null;
113
+ configImageFormat: import("@remotion/renderer").StillImageFormat | null;
114
+ cliFlag: import("@remotion/renderer").StillImageFormat | import("@remotion/renderer").VideoImageFormat | null;
115
115
  isLambda: boolean;
116
- fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
116
+ fromUi: import("@remotion/renderer").StillImageFormat | null;
117
117
  }) => {
118
- format: "png" | "jpeg" | "pdf" | "webp";
118
+ format: import("@remotion/renderer").StillImageFormat;
119
119
  source: string;
120
120
  };
121
121
  minimist: typeof minimist;
122
122
  findEntryPoint: ({ args, logLevel, remotionRoot, allowDirectory, }: {
123
123
  args: (string | number)[];
124
124
  remotionRoot: string;
125
- logLevel: "verbose" | "info" | "warn" | "error";
125
+ logLevel: import("@remotion/renderer").LogLevel;
126
126
  allowDirectory: boolean;
127
127
  }) => {
128
128
  file: string | null;
@@ -130,13 +130,13 @@ export declare const CliInternals: {
130
130
  reason: "argument passed - found in cwd" | "argument passed - found in root" | "argument passed" | "config file" | "common paths" | "none found";
131
131
  };
132
132
  getVideoImageFormat: ({ codec, uiImageFormat, }: {
133
- codec: import("@remotion/renderer").CodecOrUndefined;
134
- uiImageFormat: "png" | "jpeg" | "none" | null;
135
- }) => "png" | "jpeg" | "none";
136
- printCompositions: (compositions: import("remotion").VideoConfig[], logLevel: "verbose" | "info" | "warn" | "error") => void;
133
+ codec: ReturnType<() => import("@remotion/renderer").CodecOrUndefined>;
134
+ uiImageFormat: import("@remotion/renderer").VideoImageFormat | null;
135
+ }) => import("@remotion/renderer").VideoImageFormat;
136
+ printCompositions: (compositions: import("remotion").VideoConfig[], logLevel: import("@remotion/renderer").LogLevel) => void;
137
137
  listOfRemotionPackages: string[];
138
138
  shouldUseNonOverlayingLogger: ({ logLevel, }: {
139
- logLevel: "verbose" | "info" | "warn" | "error";
139
+ logLevel: import("@remotion/renderer").LogLevel;
140
140
  }) => boolean;
141
141
  getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, }: {
142
142
  height: number | null;
@@ -148,10 +148,10 @@ export declare const CliInternals: {
148
148
  envVariables: Record<string, string>;
149
149
  chromiumOptions: import("@remotion/renderer").ChromiumOptions;
150
150
  port: number | null;
151
- browserExecutable: import("@remotion/renderer").BrowserExecutable;
151
+ browserExecutable: import("@remotion/renderer").BrowserExecutable | null;
152
152
  serveUrlOrWebpackUrl: string;
153
153
  indent: boolean;
154
- logLevel: "verbose" | "info" | "warn" | "error";
154
+ logLevel: import("@remotion/renderer").LogLevel;
155
155
  serializedInputPropsWithCustomSchema: string;
156
156
  server: import("@remotion/renderer").RemotionServer;
157
157
  offthreadVideoCacheSizeInBytes: number | null;
@@ -165,16 +165,16 @@ export declare const CliInternals: {
165
165
  }>;
166
166
  defaultBrowserDownloadProgress: ({ indent, logLevel, quiet, }: {
167
167
  indent: boolean;
168
- logLevel: "verbose" | "info" | "warn" | "error";
168
+ logLevel: import("@remotion/renderer").LogLevel;
169
169
  quiet: boolean;
170
170
  }) => import("@remotion/renderer").OnBrowserDownload;
171
171
  LABEL_WIDTH: number;
172
- printFact: (printLevel: "verbose" | "info" | "warn" | "error") => ({ indent, logLevel, left, right, color, link, }: {
172
+ printFact: (printLevel: import("@remotion/renderer").LogLevel) => ({ indent, logLevel, left, right, color, link, }: {
173
173
  indent: boolean;
174
- logLevel: "verbose" | "info" | "warn" | "error";
174
+ logLevel: import("@remotion/renderer").LogLevel;
175
175
  left: string;
176
176
  right: string;
177
- link?: string | undefined;
177
+ link?: string;
178
178
  color: "blue" | "blueBright" | "gray" | undefined;
179
179
  }) => void;
180
180
  makeHyperlink: ({ text, url, fallback, }: {
package/dist/log.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export declare const Log: {
2
- verbose: (options: import("@remotion/renderer").LogOptions & {
3
- tag?: string | undefined;
4
- }, ...args: any[]) => void;
5
- info: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
6
- warn: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
7
- error: (options: import("@remotion/renderer").LogOptions & {
8
- tag?: string | undefined;
9
- }, ...args: any[]) => void;
2
+ verbose: (options: import("@remotion/renderer/dist/logger").LogOptions & {
3
+ tag?: string;
4
+ }, ...args: Parameters<typeof console.log>) => void;
5
+ info: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
6
+ warn: (options: import("@remotion/renderer/dist/logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
7
+ error: (options: import("@remotion/renderer/dist/logger").LogOptions & {
8
+ tag?: string;
9
+ }, ...args: Parameters<typeof console.log>) => void;
10
10
  };
@@ -20,12 +20,12 @@ declare const beepOnFinishOption: {
20
20
  description: () => import("react/jsx-runtime").JSX.Element;
21
21
  docLink: string;
22
22
  ssrName: string;
23
- type: "default" | "bt709" | "bt2020-ncl" | null;
23
+ type: import("@remotion/renderer").ColorSpace | null;
24
24
  getValue: ({ commandLine }: {
25
25
  commandLine: Record<string, unknown>;
26
26
  }) => {
27
27
  source: string;
28
- value: "default" | "bt709" | "bt2020-ncl";
28
+ value: import("@remotion/renderer/dist/options/color-space").ColorSpace;
29
29
  };
30
30
  setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
31
31
  }, offthreadVideoCacheSizeInBytesOption: {
@@ -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: import("@remotion/renderer").X264Preset | 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: import("@remotion/renderer/dist/options/x264-preset").X264Preset;
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: import("@remotion/renderer/dist/options/x264-preset").X264Preset | null) => void;
161
161
  }, enforceAudioOption: {
162
162
  name: string;
163
163
  cliFlag: "enforce-audio-track";
@@ -227,7 +227,7 @@ declare const beepOnFinishOption: {
227
227
  commandLine: Record<string, unknown>;
228
228
  }) => {
229
229
  source: string;
230
- value: "mp3" | "aac" | "pcm-16" | "opus";
230
+ value: import("@remotion/renderer/dist/options/audio-codec").AudioCodec;
231
231
  } | {
232
232
  source: string;
233
233
  value: null;
@@ -236,7 +236,7 @@ declare const beepOnFinishOption: {
236
236
  docLink: string;
237
237
  name: string;
238
238
  ssrName: "audioCodec";
239
- type: "mp3" | "aac" | "pcm-16" | "opus";
239
+ type: import("@remotion/renderer/dist/options/audio-codec").AudioCodec;
240
240
  }, publicPathOption: {
241
241
  name: string;
242
242
  cliFlag: "public-path";
@@ -32,6 +32,6 @@ export declare const printFact: (printLevel: LogLevel) => ({ indent, logLevel, l
32
32
  logLevel: LogLevel;
33
33
  left: string;
34
34
  right: string;
35
- link?: string | undefined;
36
- color: 'blue' | 'blueBright' | 'gray' | undefined;
35
+ link?: string;
36
+ color: "blue" | "blueBright" | "gray" | undefined;
37
37
  }) => void;
@@ -59,8 +59,8 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
59
59
  audioBitrate: job.type === 'video' ? job.audioBitrate : null,
60
60
  muted: job.type === 'video' ? job.muted : true,
61
61
  enforceAudioTrack: job.type === 'video' ? job.enforceAudioTrack : false,
62
- proResProfile: job.type === 'video' ? (_b = job.proResProfile) !== null && _b !== void 0 ? _b : undefined : undefined,
63
- x264Preset: job.type === 'video' ? (_c = job.x264Preset) !== null && _c !== void 0 ? _c : null : null,
62
+ proResProfile: job.type === 'video' ? ((_b = job.proResProfile) !== null && _b !== void 0 ? _b : undefined) : undefined,
63
+ x264Preset: job.type === 'video' ? ((_c = job.x264Preset) !== null && _c !== void 0 ? _c : null) : null,
64
64
  pixelFormat: job.type === 'video' ? job.pixelFormat : 'yuv420p',
65
65
  videoBitrate: job.type === 'video' ? job.videoBitrate : null,
66
66
  encodingBufferSize: job.type === 'video' ? job.encodingBufferSize : null,
package/dist/truthy.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.truthy = void 0;
3
+ exports.truthy = truthy;
4
4
  function truthy(value) {
5
5
  return Boolean(value);
6
6
  }
7
- exports.truthy = truthy;
@@ -4,5 +4,5 @@ export declare const getOutputLocation: ({ compositionId, defaultExtension, args
4
4
  outputLocationFromUi: string | null;
5
5
  defaultExtension: string;
6
6
  args: (string | number)[];
7
- type: 'asset' | 'sequence';
7
+ type: "asset" | "sequence";
8
8
  }) => string;
@@ -1,4 +1,8 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
+ export type VersionAndPath = {
3
+ version: string;
4
+ path: string;
5
+ };
2
6
  export declare const VERSIONS_COMMAND = "versions";
3
7
  export declare const validateVersionsBeforeCommand: (remotionRoot: string, logLevel: LogLevel) => Promise<void>;
4
8
  export declare const versionsCommand: (remotionRoot: string, logLevel: LogLevel) => Promise<void>;
package/dist/versions.js CHANGED
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.versionsCommand = exports.validateVersionsBeforeCommand = exports.VERSIONS_COMMAND = void 0;
7
7
  const renderer_1 = require("@remotion/renderer");
8
8
  const node_fs_1 = __importDefault(require("node:fs"));
9
+ const node_path_1 = __importDefault(require("node:path"));
10
+ const chalk_1 = require("./chalk");
9
11
  const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
10
12
  const log_1 = require("./log");
11
13
  const parse_command_line_1 = require("./parse-command-line");
@@ -15,7 +17,7 @@ const getVersion = async (remotionRoot, p) => {
15
17
  const remotionPkgJson = (0, resolve_from_1.resolveFrom)(remotionRoot, `${p}/package.json`);
16
18
  const file = await node_fs_1.default.promises.readFile(remotionPkgJson, 'utf-8');
17
19
  const packageJson = JSON.parse(file);
18
- return packageJson.version;
20
+ return { version: packageJson.version, path: remotionPkgJson };
19
21
  }
20
22
  catch (err) {
21
23
  return null;
@@ -24,10 +26,13 @@ const getVersion = async (remotionRoot, p) => {
24
26
  const groupBy = (vals) => {
25
27
  const groups = {};
26
28
  for (const [pkg, version] of vals) {
27
- if (!groups[version]) {
28
- groups[version] = [];
29
+ if (!groups[version.version]) {
30
+ groups[version.version] = [];
29
31
  }
30
- groups[version].push(pkg);
32
+ groups[version.version].push({
33
+ pkg,
34
+ versionAndPath: version,
35
+ });
31
36
  }
32
37
  return groups;
33
38
  };
@@ -54,7 +59,7 @@ const validateVersionsBeforeCommand = async (remotionRoot, logLevel) => {
54
59
  for (const version of installedVersions) {
55
60
  log_1.Log.warn(logOptions, `- On version: ${version}`);
56
61
  for (const pkg of (_a = grouped[version]) !== null && _a !== void 0 ? _a : []) {
57
- log_1.Log.warn(logOptions, ` - ${pkg}`);
62
+ log_1.Log.warn(logOptions, ` - ${pkg.pkg} ${chalk_1.chalk.gray(node_path_1.default.relative(remotionRoot, pkg.versionAndPath.path))}`);
58
63
  }
59
64
  log_1.Log.info({ indent: false, logLevel });
60
65
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
4
4
  },
5
5
  "name": "@remotion/cli",
6
- "version": "4.0.212",
6
+ "version": "4.0.214",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -32,14 +32,14 @@
32
32
  "dotenv": "9.0.2",
33
33
  "minimist": "1.2.6",
34
34
  "prompts": "2.4.2",
35
- "@remotion/media-utils": "4.0.212",
36
- "@remotion/renderer": "4.0.212",
37
- "@remotion/bundler": "4.0.212",
38
- "@remotion/player": "4.0.212",
39
- "@remotion/studio": "4.0.212",
40
- "@remotion/studio-server": "4.0.212",
41
- "@remotion/studio-shared": "4.0.212",
42
- "remotion": "4.0.212"
35
+ "@remotion/media-utils": "4.0.214",
36
+ "@remotion/studio-shared": "4.0.214",
37
+ "@remotion/studio": "4.0.214",
38
+ "remotion": "4.0.214",
39
+ "@remotion/studio-server": "4.0.214",
40
+ "@remotion/renderer": "4.0.214",
41
+ "@remotion/player": "4.0.214",
42
+ "@remotion/bundler": "4.0.214"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0",
@@ -52,10 +52,10 @@
52
52
  "react": "18.3.1",
53
53
  "react-dom": "18.3.1",
54
54
  "zod": "3.22.3",
55
- "@remotion/zod-types": "4.0.212",
56
- "@remotion/tailwind": "4.0.212",
57
- "@remotion/skia": "4.0.212",
58
- "@remotion/enable-scss": "4.0.212"
55
+ "@remotion/zod-types": "4.0.214",
56
+ "@remotion/tailwind": "4.0.214",
57
+ "@remotion/enable-scss": "4.0.214",
58
+ "@remotion/skia": "4.0.214"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",