@remotion/cli 4.0.58 → 4.0.60
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/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/log.d.ts +1 -1
- package/dist/config/presets-profile.d.ts +3 -0
- package/dist/config/presets-profile.js +12 -0
- package/dist/editor/components/DownloadButton.d.ts +0 -0
- package/dist/editor/components/DownloadButton.js +1 -0
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -2
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +1 -1
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +1 -1
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +1 -1
- package/dist/editor/helpers/colors.d.ts +1 -1
- package/dist/get-cli-options.d.ts +2 -2
- package/dist/handle-common-errors.d.ts +2 -0
- package/dist/handle-common-errors.js +60 -0
- package/dist/index.d.ts +12 -12
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/routes.d.ts +1 -0
- package/dist/preview-server/start-server.js +3 -6
- package/package.json +8 -8
|
@@ -2,4 +2,4 @@ import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
|
2
2
|
export declare const setStillImageFormat: (format: StillImageFormat) => void;
|
|
3
3
|
export declare const setVideoImageFormat: (format: VideoImageFormat) => void;
|
|
4
4
|
export declare const getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
5
|
-
export declare const getUserPreferredVideoImageFormat: () => "
|
|
5
|
+
export declare const getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ export declare const ConfigInternals: {
|
|
|
316
316
|
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
317
317
|
getDotEnvLocation: () => string | null;
|
|
318
318
|
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
319
|
-
getUserPreferredVideoImageFormat: () => "
|
|
319
|
+
getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
320
320
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
321
321
|
getWebpackCaching: () => boolean;
|
|
322
322
|
getOutputLocation: () => string | null;
|
package/dist/config/log.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLogLevel: () => "
|
|
1
|
+
export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error", setLogLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setPresetProfile = exports.getPresetProfile = void 0;
|
|
4
|
+
let preset;
|
|
5
|
+
const getPresetProfile = () => {
|
|
6
|
+
return preset;
|
|
7
|
+
};
|
|
8
|
+
exports.getPresetProfile = getPresetProfile;
|
|
9
|
+
const setPresetProfile = (profile) => {
|
|
10
|
+
preset = profile;
|
|
11
|
+
};
|
|
12
|
+
exports.setPresetProfile = setPresetProfile;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
|
|
|
12
12
|
status: 'error' | 'warning' | 'ok';
|
|
13
13
|
isFocused: boolean;
|
|
14
14
|
isHovered: boolean;
|
|
15
|
-
}) => "hsla(0, 0%, 100%, 0.15)" | "
|
|
16
|
-
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | "
|
|
15
|
+
}) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
|
|
16
|
+
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "status" | "key" | "rightAlign" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
export {};
|
|
@@ -4,5 +4,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
4
4
|
status: RemInputStatus;
|
|
5
5
|
name: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "
|
|
7
|
+
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "status" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
8
8
|
export {};
|
|
@@ -3,5 +3,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaEleme
|
|
|
3
3
|
status: 'error' | 'warning' | 'ok';
|
|
4
4
|
};
|
|
5
5
|
export declare const inputBaseStyle: React.CSSProperties;
|
|
6
|
-
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "
|
|
6
|
+
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "status" | "key" | keyof React.InputHTMLAttributes<HTMLTextAreaElement>> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Codec } from '@remotion/renderer';
|
|
2
|
-
export declare const humanReadableCodec: (codec: Codec) => "
|
|
2
|
+
export declare const humanReadableCodec: (codec: Codec) => "GIF" | "AAC" | "MP3" | "H.264" | "H.264 Matroska" | "H.265" | "ProRes" | "WebM VP8" | "WebM VP9" | "Waveform" | undefined;
|
|
@@ -16,4 +16,4 @@ export declare const BLUE_DISABLED = "#284f73";
|
|
|
16
16
|
export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
|
|
17
17
|
selected: boolean;
|
|
18
18
|
hovered: boolean;
|
|
19
|
-
}) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "
|
|
19
|
+
}) => "transparent" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)" | "rgba(255, 255, 255, 0.06)";
|
|
@@ -22,7 +22,7 @@ export declare const getCliOptions: (options: {
|
|
|
22
22
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
23
23
|
stillFrame: number;
|
|
24
24
|
browserExecutable: BrowserExecutable;
|
|
25
|
-
logLevel: "
|
|
25
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
26
26
|
scale: number;
|
|
27
27
|
chromiumOptions: ChromiumOptions;
|
|
28
28
|
overwrite: boolean;
|
|
@@ -35,7 +35,7 @@ export declare const getCliOptions: (options: {
|
|
|
35
35
|
videoBitrate: string | null;
|
|
36
36
|
height: number | null;
|
|
37
37
|
width: number | null;
|
|
38
|
-
configFileImageFormat: "
|
|
38
|
+
configFileImageFormat: "png" | "jpeg" | "none" | undefined;
|
|
39
39
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
40
40
|
deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
|
|
41
41
|
colorSpace: "default" | "bt709";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleCommonError = void 0;
|
|
4
|
+
const chalk_1 = require("./chalk");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
const print_error_1 = require("./print-error");
|
|
7
|
+
const truthy_1 = require("./truthy");
|
|
8
|
+
const handleCommonError = async (err, logLevel) => {
|
|
9
|
+
var _a;
|
|
10
|
+
await (0, print_error_1.printError)(err, logLevel);
|
|
11
|
+
if (err.message.includes('Could not play video with')) {
|
|
12
|
+
log_1.Log.info();
|
|
13
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/media-playback-error');
|
|
14
|
+
}
|
|
15
|
+
if (err.message.includes('A delayRender()') &&
|
|
16
|
+
err.message.includes('was called but not cleared after')) {
|
|
17
|
+
log_1.Log.info();
|
|
18
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/timeout');
|
|
19
|
+
}
|
|
20
|
+
if (err.message.includes('Target closed')) {
|
|
21
|
+
log_1.Log.info();
|
|
22
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/target-closed');
|
|
23
|
+
}
|
|
24
|
+
if (err.message.includes('ENAMETOOLONG')) {
|
|
25
|
+
log_1.Log.info();
|
|
26
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/enametoolong');
|
|
27
|
+
}
|
|
28
|
+
if (err.message.includes('Error creating WebGL context')) {
|
|
29
|
+
log_1.Log.info();
|
|
30
|
+
log_1.Log.warn('💡 You might need to set the OpenGL renderer to "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three');
|
|
31
|
+
log_1.Log.warn("💡 Check how it's done at https://www.remotion.dev/docs/chromium-flags#--gl");
|
|
32
|
+
}
|
|
33
|
+
if (err.message.includes('The bucket does not allow ACLs')) {
|
|
34
|
+
log_1.Log.info();
|
|
35
|
+
log_1.Log.info(chalk_1.chalk.green('💡 Fix this issue https://remotion.dev/docs/lambda/troubleshooting/bucket-disallows-acl'));
|
|
36
|
+
}
|
|
37
|
+
if (err.message.includes('Minified React error #306')) {
|
|
38
|
+
const componentName = (_a = err.message.match(/<\w+>/)) === null || _a === void 0 ? void 0 : _a[0];
|
|
39
|
+
log_1.Log.info([
|
|
40
|
+
'💡 This error indicates that the component',
|
|
41
|
+
componentName ? `(${componentName})` : null,
|
|
42
|
+
'you are trying to render is not imported correctly.',
|
|
43
|
+
]
|
|
44
|
+
.filter(truthy_1.truthy)
|
|
45
|
+
.join(' '));
|
|
46
|
+
log_1.Log.info();
|
|
47
|
+
log_1.Log.info(' Check the root file and ensure that the component is not undefined.');
|
|
48
|
+
log_1.Log.info(' Oftentimes, this happens if the component is missing the `export` keyword');
|
|
49
|
+
log_1.Log.info(' or if the component was renamed and the import statement not properly adjusted.');
|
|
50
|
+
}
|
|
51
|
+
if (err.message.includes('GLIBC_')) {
|
|
52
|
+
log_1.Log.info('💡 Remotion requires at least Libc 2.35.');
|
|
53
|
+
log_1.Log.info('💡 Get help for this issue: https://github.com/remotion-dev/remotion/issues/2439');
|
|
54
|
+
}
|
|
55
|
+
if (err.message.includes('EBADF')) {
|
|
56
|
+
log_1.Log.info('💡 This error might be fixed by changing your Node version:');
|
|
57
|
+
log_1.Log.info(' https://github.com/remotion-dev/remotion/issues/2452');
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.handleCommonError = handleCommonError;
|
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare const CliInternals: {
|
|
|
74
74
|
isLambda: boolean;
|
|
75
75
|
type: "still" | "series" | "get-compositions";
|
|
76
76
|
remotionRoot: string;
|
|
77
|
-
logLevel: "
|
|
77
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
78
78
|
}) => Promise<{
|
|
79
79
|
puppeteerTimeout: number;
|
|
80
80
|
concurrency: string | number | null;
|
|
@@ -92,7 +92,7 @@ export declare const CliInternals: {
|
|
|
92
92
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
93
93
|
stillFrame: number;
|
|
94
94
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
95
|
-
logLevel: "
|
|
95
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
96
96
|
scale: number;
|
|
97
97
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
98
98
|
overwrite: boolean;
|
|
@@ -105,19 +105,19 @@ export declare const CliInternals: {
|
|
|
105
105
|
videoBitrate: string | null;
|
|
106
106
|
height: number | null;
|
|
107
107
|
width: number | null;
|
|
108
|
-
configFileImageFormat: "
|
|
108
|
+
configFileImageFormat: "png" | "jpeg" | "none" | undefined;
|
|
109
109
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
110
110
|
deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
|
|
111
111
|
colorSpace: "default" | "bt709";
|
|
112
112
|
}>;
|
|
113
113
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
114
|
-
initializeCli: (remotionRoot: string) => Promise<"
|
|
114
|
+
initializeCli: (remotionRoot: string) => Promise<"verbose" | "info" | "warn" | "error">;
|
|
115
115
|
BooleanFlags: string[];
|
|
116
116
|
quietFlagProvided: () => boolean;
|
|
117
117
|
parsedCli: {
|
|
118
118
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
119
119
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
120
|
-
"image-format": "
|
|
120
|
+
"image-format": "png" | "jpeg" | "pdf" | "webp" | "none";
|
|
121
121
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
122
122
|
"x264-preset": "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
123
123
|
"bundle-cache": string;
|
|
@@ -176,7 +176,7 @@ export declare const CliInternals: {
|
|
|
176
176
|
} & {
|
|
177
177
|
_: string[];
|
|
178
178
|
};
|
|
179
|
-
printError: (err: Error, logLevel: "
|
|
179
|
+
printError: (err: Error, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
|
|
180
180
|
formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
|
|
181
181
|
locale: string;
|
|
182
182
|
bits?: boolean | undefined;
|
|
@@ -188,7 +188,7 @@ export declare const CliInternals: {
|
|
|
188
188
|
downloadName: string | null;
|
|
189
189
|
outName: string | null;
|
|
190
190
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
191
|
-
cliFlag: "
|
|
191
|
+
cliFlag: "png" | "jpeg" | "pdf" | "webp" | "none" | null;
|
|
192
192
|
isLambda: boolean;
|
|
193
193
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
194
194
|
}) => {
|
|
@@ -196,15 +196,15 @@ export declare const CliInternals: {
|
|
|
196
196
|
source: string;
|
|
197
197
|
};
|
|
198
198
|
minimist: typeof minimist;
|
|
199
|
-
findEntryPoint: (args: string[], remotionRoot: string, logLevel: "
|
|
199
|
+
findEntryPoint: (args: string[], remotionRoot: string, logLevel: "verbose" | "info" | "warn" | "error") => {
|
|
200
200
|
file: string | null;
|
|
201
201
|
remainingArgs: string[];
|
|
202
202
|
reason: string;
|
|
203
203
|
};
|
|
204
204
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
205
205
|
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
206
|
-
uiImageFormat: "
|
|
207
|
-
}) => "
|
|
206
|
+
uiImageFormat: "png" | "jpeg" | "none" | null;
|
|
207
|
+
}) => "png" | "jpeg" | "none";
|
|
208
208
|
printCompositions: (compositions: import("remotion").VideoConfig[]) => void;
|
|
209
209
|
getFinalOutputCodec: ({ cliFlag, configFile, downloadName, outName, uiCodec, compositionCodec, }: {
|
|
210
210
|
cliFlag: import("@remotion/renderer").CodecOrUndefined;
|
|
@@ -219,7 +219,7 @@ export declare const CliInternals: {
|
|
|
219
219
|
};
|
|
220
220
|
listOfRemotionPackages: string[];
|
|
221
221
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
222
|
-
logLevel: "
|
|
222
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
223
223
|
}) => boolean;
|
|
224
224
|
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, }: {
|
|
225
225
|
height: number | null;
|
|
@@ -234,7 +234,7 @@ export declare const CliInternals: {
|
|
|
234
234
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
235
235
|
serveUrlOrWebpackUrl: string;
|
|
236
236
|
indent: boolean;
|
|
237
|
-
logLevel: "
|
|
237
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
238
238
|
serializedInputPropsWithCustomSchema: string;
|
|
239
239
|
server: import("@remotion/renderer").RemotionServer;
|
|
240
240
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
@@ -11,5 +11,5 @@ type Range = {
|
|
|
11
11
|
type Ranges = Range[] & {
|
|
12
12
|
type?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function parseRange(size: number, str: string | string[]): -1 |
|
|
14
|
+
export declare function parseRange(size: number, str: string | string[]): -1 | Ranges | -2;
|
|
15
15
|
export {};
|
|
@@ -80,10 +80,7 @@ const startServer = async (options) => {
|
|
|
80
80
|
});
|
|
81
81
|
const desiredPort = (_d = (_c = options === null || options === void 0 ? void 0 : options.port) !== null && _c !== void 0 ? _c : (process.env.PORT ? Number(process.env.PORT) : undefined)) !== null && _d !== void 0 ? _d : undefined;
|
|
82
82
|
const maxTries = 5;
|
|
83
|
-
const
|
|
84
|
-
const hostsToTry = renderer_1.RenderInternals.isIpV6Supported()
|
|
85
|
-
? ['::', '::1']
|
|
86
|
-
: ['0.0.0.0', '127.0.0.1'];
|
|
83
|
+
const portConfig = renderer_1.RenderInternals.getPortConfig();
|
|
87
84
|
for (let i = 0; i < maxTries; i++) {
|
|
88
85
|
try {
|
|
89
86
|
const selectedPort = await new Promise((resolve, reject) => {
|
|
@@ -91,12 +88,12 @@ const startServer = async (options) => {
|
|
|
91
88
|
desiredPort,
|
|
92
89
|
from: 3000,
|
|
93
90
|
to: 3100,
|
|
94
|
-
hostsToTry,
|
|
91
|
+
hostsToTry: portConfig.hostsToTry,
|
|
95
92
|
})
|
|
96
93
|
.then(({ port, didUsePort }) => {
|
|
97
94
|
server.listen({
|
|
98
95
|
port,
|
|
99
|
-
host,
|
|
96
|
+
host: portConfig.host,
|
|
100
97
|
});
|
|
101
98
|
server.on('listening', () => {
|
|
102
99
|
resolve(port);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.60",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"prompts": "2.4.1",
|
|
36
36
|
"semver": "7.5.3",
|
|
37
37
|
"source-map": "0.6.1",
|
|
38
|
-
"@remotion/bundler": "4.0.
|
|
39
|
-
"@remotion/
|
|
40
|
-
"
|
|
41
|
-
"@remotion/
|
|
42
|
-
"remotion": "4.0.
|
|
38
|
+
"@remotion/bundler": "4.0.60",
|
|
39
|
+
"@remotion/renderer": "4.0.60",
|
|
40
|
+
"remotion": "4.0.60",
|
|
41
|
+
"@remotion/player": "4.0.60",
|
|
42
|
+
"@remotion/media-utils": "4.0.60"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react-dom": "18.2.0",
|
|
66
66
|
"vitest": "0.31.1",
|
|
67
67
|
"zod": "^3.22.3",
|
|
68
|
-
"@remotion/zod-types": "4.0.
|
|
69
|
-
"@remotion/tailwind": "4.0.
|
|
68
|
+
"@remotion/zod-types": "4.0.60",
|
|
69
|
+
"@remotion/tailwind": "4.0.60"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"remotion",
|