@remotion/cloudrun 4.0.500 → 4.0.502
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AudioCodec, type ChromiumOptions, type
|
|
1
|
+
import { type AudioCodec, type ChromiumOptions, type LogLevel, type PixelFormat, type SingleFrameRange, type ToOptions, type VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import { BrowserSafeApis } from '@remotion/renderer/client';
|
|
3
3
|
import type { _InternalTypes } from 'remotion';
|
|
4
4
|
import type { z } from 'zod';
|
|
@@ -24,7 +24,7 @@ type InternalRenderMediaOnCloudrun = {
|
|
|
24
24
|
pixelFormat: PixelFormat | undefined;
|
|
25
25
|
imageFormat: VideoImageFormat | undefined;
|
|
26
26
|
everyNthFrame: number | undefined;
|
|
27
|
-
frameRange:
|
|
27
|
+
frameRange: SingleFrameRange | undefined;
|
|
28
28
|
envVariables: Record<string, string> | undefined;
|
|
29
29
|
chromiumOptions: ChromiumOptions | undefined;
|
|
30
30
|
forceWidth: number | null;
|
|
@@ -61,7 +61,7 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
61
61
|
pixelFormat?: PixelFormat;
|
|
62
62
|
imageFormat?: VideoImageFormat;
|
|
63
63
|
everyNthFrame?: number;
|
|
64
|
-
frameRange?:
|
|
64
|
+
frameRange?: SingleFrameRange;
|
|
65
65
|
envVariables?: Record<string, string>;
|
|
66
66
|
chromiumOptions?: ChromiumOptions;
|
|
67
67
|
forceWidth?: number | null;
|
|
@@ -142,6 +142,9 @@ exports.internalRenderMediaOnCloudrun = (0, error_handling_1.wrapWithErrorHandli
|
|
|
142
142
|
* @see [Documentation](https://remotion.dev/docs/cloudrun/rendermediaoncloudrun)
|
|
143
143
|
*/
|
|
144
144
|
const renderMediaOnCloudrun = ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, gopSize, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, forceFps, forceDurationInFrames, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, metadata, renderIdOverride, renderStatusWebhook, offthreadVideoThreads, mediaCacheSizeInBytes, sampleRate, }) => {
|
|
145
|
+
if (Array.isArray(frameRange) && Array.isArray(frameRange[0])) {
|
|
146
|
+
throw new Error('Multiple frame ranges are not supported on Cloud Run. Use renderMedia() locally to render multiple ranges.');
|
|
147
|
+
}
|
|
145
148
|
return (0, exports.internalRenderMediaOnCloudrun)({
|
|
146
149
|
cloudRunUrl: cloudRunUrl !== null && cloudRunUrl !== void 0 ? cloudRunUrl : undefined,
|
|
147
150
|
serviceName: serviceName !== null && serviceName !== void 0 ? serviceName : undefined,
|
|
@@ -33,11 +33,16 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
|
33
33
|
const audioCodec = client_1.BrowserSafeApis.options.audioCodecOption.getValue({
|
|
34
34
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
35
35
|
}).value;
|
|
36
|
-
const { envVariables, frameRange, inputProps } = cli_1.CliInternals.getCliOptions({
|
|
36
|
+
const { envVariables, frameRange, inputProps, selectedFrames } = cli_1.CliInternals.getCliOptions({
|
|
37
37
|
isStill: false,
|
|
38
38
|
logLevel,
|
|
39
39
|
indent: false,
|
|
40
40
|
});
|
|
41
|
+
if (selectedFrames !== null ||
|
|
42
|
+
(Array.isArray(frameRange) && Array.isArray(frameRange[0]))) {
|
|
43
|
+
throw new Error('Comma-separated frame selections are only supported by the local `remotion render` command. Pass one frame range to render a video on Cloud Run.');
|
|
44
|
+
}
|
|
45
|
+
const singleFrameRange = frameRange;
|
|
41
46
|
const height = overrideHeightOption.getValue({
|
|
42
47
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
43
48
|
}).value;
|
|
@@ -283,7 +288,7 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
|
|
|
283
288
|
scale,
|
|
284
289
|
everyNthFrame,
|
|
285
290
|
numberOfGifLoops,
|
|
286
|
-
frameRange:
|
|
291
|
+
frameRange: singleFrameRange !== null && singleFrameRange !== void 0 ? singleFrameRange : undefined,
|
|
287
292
|
envVariables,
|
|
288
293
|
chromiumOptions,
|
|
289
294
|
muted,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cloudrun",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.502",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"@google-cloud/storage": "7.15.2",
|
|
21
21
|
"@google-cloud/resource-manager": "5.3.1",
|
|
22
22
|
"@google-cloud/logging": "11.2.0",
|
|
23
|
-
"@remotion/bundler": "4.0.
|
|
24
|
-
"@remotion/cli": "4.0.
|
|
25
|
-
"@remotion/renderer": "4.0.
|
|
23
|
+
"@remotion/bundler": "4.0.502",
|
|
24
|
+
"@remotion/cli": "4.0.502",
|
|
25
|
+
"@remotion/renderer": "4.0.502",
|
|
26
26
|
"google-auth-library": "8.7.0",
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.502",
|
|
28
28
|
"zod": "4.4.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
31
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.502",
|
|
32
32
|
"@types/minimist": "1.2.2",
|
|
33
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
33
|
+
"@remotion/eslint-config-internal": "4.0.502",
|
|
34
34
|
"eslint": "9.19.0",
|
|
35
35
|
"@types/node": "20.12.14",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|