@remotion/cli 4.0.3 → 4.0.4
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/cloudrun-command.d.ts +1 -0
- package/dist/cloudrun-command.js +27 -0
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/editor/components/NewComposition/RemInput.d.ts +1 -1
- 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/render-modal-sections.d.ts +0 -1
- package/dist/get-cli-options.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/routes.d.ts +0 -1
- package/dist/render-flows/render.js +3 -3
- package/dist/render-flows/still.js +3 -3
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cloudrunCommand: (remotionRoot: string, args: string[]) => Promise<never>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cloudrunCommand = void 0;
|
|
4
|
+
const log_1 = require("./log");
|
|
5
|
+
const get_package_manager_1 = require("./preview-server/get-package-manager");
|
|
6
|
+
const update_available_1 = require("./preview-server/update-available");
|
|
7
|
+
const cloudrunCommand = async (remotionRoot, args) => {
|
|
8
|
+
try {
|
|
9
|
+
const path = require.resolve('@remotion/cloudrun', {
|
|
10
|
+
paths: [remotionRoot],
|
|
11
|
+
});
|
|
12
|
+
const { CloudrunInternals } = require(path);
|
|
13
|
+
await CloudrunInternals.executeCommand(args, remotionRoot);
|
|
14
|
+
process.exit(0);
|
|
15
|
+
}
|
|
16
|
+
catch (err) {
|
|
17
|
+
const manager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
18
|
+
const installCommand = manager === 'unknown' ? 'npm i' : manager.installCommand;
|
|
19
|
+
log_1.Log.error(err);
|
|
20
|
+
log_1.Log.error('Remotion CloudRun is not installed.');
|
|
21
|
+
log_1.Log.info('');
|
|
22
|
+
log_1.Log.info('You can install it using:');
|
|
23
|
+
log_1.Log.info(`${installCommand} @remotion/cloudrun@${(0, update_available_1.getRemotionVersion)()}`);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.cloudrunCommand = cloudrunCommand;
|
|
@@ -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: () => "none" | "png" | "jpeg" | undefined;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -297,7 +297,7 @@ export declare const ConfigInternals: {
|
|
|
297
297
|
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
298
298
|
getDotEnvLocation: () => string | null;
|
|
299
299
|
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
300
|
-
getUserPreferredVideoImageFormat: () => "
|
|
300
|
+
getUserPreferredVideoImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
301
301
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
302
302
|
getWebpackCaching: () => boolean;
|
|
303
303
|
getOutputLocation: () => string | null;
|
|
@@ -13,5 +13,5 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
|
|
|
13
13
|
isFocused: boolean;
|
|
14
14
|
isHovered: boolean;
|
|
15
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, "
|
|
16
|
+
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status" | "rightAlign"> & 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, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "status"> & 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, "key" | "status" | 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) => "AAC" | "MP3" | "GIF" | "H.264" | "H.264 Matroska" | "H.265" | "ProRes" | "WebM VP8" | "WebM VP9" | "Waveform" | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export declare const CliInternals: {
|
|
|
112
112
|
videoBitrate: string | null;
|
|
113
113
|
height: number | null;
|
|
114
114
|
width: number | null;
|
|
115
|
-
configFileImageFormat: "
|
|
115
|
+
configFileImageFormat: "none" | "png" | "jpeg" | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
118
118
|
initializeCli: (remotionRoot: string) => Promise<void>;
|
|
@@ -121,7 +121,7 @@ export declare const CliInternals: {
|
|
|
121
121
|
parsedCli: {
|
|
122
122
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
123
123
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
124
|
-
"image-format": "
|
|
124
|
+
"image-format": "none" | "png" | "jpeg" | "pdf" | "webp";
|
|
125
125
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
126
126
|
"bundle-cache": string;
|
|
127
127
|
"env-file": string;
|
|
@@ -185,7 +185,7 @@ export declare const CliInternals: {
|
|
|
185
185
|
downloadName: string | null;
|
|
186
186
|
outName: string | null;
|
|
187
187
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
188
|
-
cliFlag: "
|
|
188
|
+
cliFlag: "none" | "png" | "jpeg" | "pdf" | "webp" | null;
|
|
189
189
|
isLambda: boolean;
|
|
190
190
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
191
191
|
}) => {
|
|
@@ -200,8 +200,8 @@ export declare const CliInternals: {
|
|
|
200
200
|
};
|
|
201
201
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
202
202
|
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
203
|
-
uiImageFormat: "
|
|
204
|
-
}) => "
|
|
203
|
+
uiImageFormat: "none" | "png" | "jpeg" | null;
|
|
204
|
+
}) => "none" | "png" | "jpeg";
|
|
205
205
|
printCompositions: (compositions: import("remotion").VideoConfig[]) => void;
|
|
206
206
|
getFinalOutputCodec: ({ cliFlag, configFile, downloadName, outName, uiCodec, }: {
|
|
207
207
|
cliFlag: import("@remotion/renderer").CodecOrUndefined;
|
|
@@ -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 | -2 | Ranges;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
3
2
|
import type { LiveEventsServer } from './live-events';
|
|
4
3
|
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, entryPoint, publicDir, }: {
|
|
@@ -139,7 +139,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
139
139
|
const puppeteerInstance = await browserInstance;
|
|
140
140
|
addCleanupCallback(() => puppeteerInstance.close(false, logLevel, indent));
|
|
141
141
|
const actualConcurrency = renderer_1.RenderInternals.getActualConcurrency(concurrency);
|
|
142
|
-
const server = renderer_1.RenderInternals.prepareServer({
|
|
142
|
+
const server = await renderer_1.RenderInternals.prepareServer({
|
|
143
143
|
concurrency: actualConcurrency,
|
|
144
144
|
indent,
|
|
145
145
|
port,
|
|
@@ -147,7 +147,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
147
147
|
logLevel,
|
|
148
148
|
webpackConfigOrServeUrl: urlOrBundle,
|
|
149
149
|
});
|
|
150
|
-
addCleanupCallback(() => server.
|
|
150
|
+
addCleanupCallback(() => server.closeServer(false));
|
|
151
151
|
const { compositionId, config, reason, argsAfterComposition } = await (0, get_composition_with_dimension_override_1.getCompositionWithDimensionOverride)({
|
|
152
152
|
height,
|
|
153
153
|
width,
|
|
@@ -163,7 +163,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
163
163
|
serveUrlOrWebpackUrl: urlOrBundle,
|
|
164
164
|
timeoutInMilliseconds: puppeteerTimeout,
|
|
165
165
|
logLevel,
|
|
166
|
-
server
|
|
166
|
+
server,
|
|
167
167
|
});
|
|
168
168
|
const { codec, reason: codecReason } = (0, get_final_output_codec_1.getFinalOutputCodec)({
|
|
169
169
|
cliFlag: parse_command_line_1.parsedCli.codec,
|
|
@@ -76,7 +76,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
76
76
|
},
|
|
77
77
|
quietProgress: updatesDontOverwrite,
|
|
78
78
|
});
|
|
79
|
-
const server = renderer_1.RenderInternals.prepareServer({
|
|
79
|
+
const server = await renderer_1.RenderInternals.prepareServer({
|
|
80
80
|
concurrency: 1,
|
|
81
81
|
indent: indentOutput,
|
|
82
82
|
port,
|
|
@@ -84,7 +84,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
84
84
|
logLevel,
|
|
85
85
|
webpackConfigOrServeUrl: urlOrBundle,
|
|
86
86
|
});
|
|
87
|
-
addCleanupCallback(() => server.
|
|
87
|
+
addCleanupCallback(() => server.closeServer(false));
|
|
88
88
|
addCleanupCallback(() => cleanupBundle());
|
|
89
89
|
const puppeteerInstance = await browserInstance;
|
|
90
90
|
addCleanupCallback(() => puppeteerInstance.close(false, logLevel, indentOutput));
|
|
@@ -103,7 +103,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
103
103
|
serveUrlOrWebpackUrl: urlOrBundle,
|
|
104
104
|
timeoutInMilliseconds: puppeteerTimeout,
|
|
105
105
|
logLevel,
|
|
106
|
-
server
|
|
106
|
+
server,
|
|
107
107
|
});
|
|
108
108
|
const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalStillImageFormat)({
|
|
109
109
|
cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
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/
|
|
39
|
-
"remotion": "4.0.
|
|
40
|
-
"
|
|
41
|
-
"@remotion/
|
|
42
|
-
"@remotion/
|
|
38
|
+
"@remotion/renderer": "4.0.4",
|
|
39
|
+
"@remotion/bundler": "4.0.4",
|
|
40
|
+
"remotion": "4.0.4",
|
|
41
|
+
"@remotion/player": "4.0.4",
|
|
42
|
+
"@remotion/media-utils": "4.0.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"typescript": "4.9.5",
|
|
66
66
|
"vitest": "0.31.1",
|
|
67
67
|
"zod": "^3.21.4",
|
|
68
|
-
"@remotion/
|
|
69
|
-
"@remotion/
|
|
68
|
+
"@remotion/zod-types": "4.0.4",
|
|
69
|
+
"@remotion/tailwind": "4.0.4"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"remotion",
|