@remotion/cloudrun 4.0.71 → 4.0.73

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,14 +1,14 @@
1
1
 
2
- > @remotion/cloudrun@4.0.70 build /Users/jonathanburger/remotion/packages/cloudrun
2
+ > @remotion/cloudrun@4.0.72 build /Users/jonathanburger/remotion/packages/cloudrun
3
3
  > tsc -d && cp src/shared/sa-permissions.json dist/shared/sa-permissions.json && pnpm run buildContainer && pnpm run tarInstaller
4
4
 
5
5
 
6
- > @remotion/cloudrun@4.0.70 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
6
+ > @remotion/cloudrun@4.0.72 buildContainer /Users/jonathanburger/remotion/packages/cloudrun
7
7
  > ts-node src/admin/bundle-renderLogic.ts
8
8
 
9
9
  distribution bundled.
10
10
 
11
- > @remotion/cloudrun@4.0.70 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
11
+ > @remotion/cloudrun@4.0.72 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
12
12
  > ts-node src/admin/bundle-installer.ts
13
13
 
14
14
  Making reproducible build with gtar
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderMediaOnCloudrun = exports.internalRenderMediaOnCloudrun = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const pure_1 = require("@remotion/renderer/pure");
6
- const remotion_1 = require("remotion");
6
+ const no_react_1 = require("remotion/no-react");
7
7
  const validate_gcp_codec_1 = require("../shared/validate-gcp-codec");
8
8
  const validate_privacy_1 = require("../shared/validate-privacy");
9
9
  const validate_serveurl_1 = require("../shared/validate-serveurl");
@@ -25,7 +25,7 @@ const internalRenderMediaOnCloudrunRaw = async ({ cloudRunUrl, serviceName, regi
25
25
  composition,
26
26
  serveUrl,
27
27
  codec: actualCodec,
28
- serializedInputPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
28
+ serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
29
29
  indent: undefined,
30
30
  staticBase: null,
31
31
  data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderStillOnCloudrun = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const pure_1 = require("@remotion/renderer/pure");
6
- const remotion_1 = require("remotion");
6
+ const no_react_1 = require("remotion/no-react");
7
7
  const validate_privacy_1 = require("../shared/validate-privacy");
8
8
  const validate_serveurl_1 = require("../shared/validate-serveurl");
9
9
  const get_or_create_bucket_1 = require("./get-or-create-bucket");
@@ -46,7 +46,7 @@ const renderStillOnCloudrunRaw = async ({ cloudRunUrl, serviceName, region, serv
46
46
  const data = {
47
47
  composition,
48
48
  serveUrl,
49
- serializedInputPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
49
+ serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
50
50
  indent: undefined,
51
51
  staticBase: null,
52
52
  data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
@@ -4,7 +4,7 @@ exports.renderCommand = exports.RENDER_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const config_1 = require("@remotion/cli/config");
6
6
  const renderer_1 = require("@remotion/renderer");
7
- const remotion_1 = require("remotion");
7
+ const no_react_1 = require("remotion/no-react");
8
8
  const download_file_1 = require("../../../api/download-file");
9
9
  const render_media_on_cloudrun_1 = require("../../../api/render-media-on-cloudrun");
10
10
  const validate_serveurl_1 = require("../../../shared/validate-serveurl");
@@ -63,7 +63,7 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
63
63
  logLevel,
64
64
  width,
65
65
  server: await server,
66
- serializedInputPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
66
+ serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
67
67
  data: inputProps,
68
68
  indent: undefined,
69
69
  staticBase: null,
@@ -4,7 +4,7 @@ exports.stillCommand = exports.STILL_COMMAND = void 0;
4
4
  const cli_1 = require("@remotion/cli");
5
5
  const config_1 = require("@remotion/cli/config");
6
6
  const renderer_1 = require("@remotion/renderer");
7
- const remotion_1 = require("remotion");
7
+ const no_react_1 = require("remotion/no-react");
8
8
  const download_file_1 = require("../../api/download-file");
9
9
  const render_still_on_cloudrun_1 = require("../../api/render-still-on-cloudrun");
10
10
  const validate_serveurl_1 = require("../../shared/validate-serveurl");
@@ -46,7 +46,7 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
46
46
  browserExecutable,
47
47
  chromiumOptions,
48
48
  envVariables,
49
- serializedInputPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
49
+ serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
50
50
  data: inputProps,
51
51
  indent: undefined,
52
52
  staticBase: null,
@@ -52,34 +52,34 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
52
52
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
53
53
  colorSpace: z.ZodEnum<["default", "bt709"]>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- type: "media";
56
55
  serveUrl: string;
56
+ envVariables: Record<string, string>;
57
+ jpegQuality: number;
58
+ scale: number;
59
+ offthreadVideoCacheSizeInBytes: number | null;
60
+ type: "media";
57
61
  composition: string;
62
+ imageFormat: "png" | "jpeg" | "none";
63
+ logLevel: "verbose" | "info" | "warn" | "error";
64
+ delayRenderTimeoutInMilliseconds: number;
58
65
  codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
59
- serializedInputPropsWithCustomSchema: string;
60
- jpegQuality: number;
61
- audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
62
- audioBitrate: string | null;
63
- videoBitrate: string | null;
64
66
  crf: number | null;
67
+ frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
65
68
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
66
- imageFormat: "png" | "jpeg" | "none";
67
- scale: number;
68
69
  proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | null;
69
- x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
70
+ x264Preset: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
70
71
  everyNthFrame: number;
71
72
  numberOfGifLoops: number | null;
72
- frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
73
- envVariables: Record<string, string>;
74
73
  muted: boolean;
75
- outputBucket: string;
76
- logLevel: "error" | "verbose" | "info" | "warn";
77
- delayRenderTimeoutInMilliseconds: number;
78
- concurrency: string | number | null;
74
+ audioBitrate: string | null;
75
+ videoBitrate: string | null;
79
76
  enforceAudioTrack: boolean;
80
- preferLossless: boolean;
81
- offthreadVideoCacheSizeInBytes: number | null;
82
77
  colorSpace: "default" | "bt709";
78
+ audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
79
+ concurrency: string | number | null;
80
+ preferLossless: boolean;
81
+ serializedInputPropsWithCustomSchema: string;
82
+ outputBucket: string;
83
83
  forceHeight?: number | null | undefined;
84
84
  forceWidth?: number | null | undefined;
85
85
  chromiumOptions?: {
@@ -92,34 +92,34 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
92
92
  outName?: string | undefined;
93
93
  privacy?: "public" | "private" | undefined;
94
94
  }, {
95
- type: "media";
96
95
  serveUrl: string;
96
+ envVariables: Record<string, string>;
97
+ jpegQuality: number;
98
+ scale: number;
99
+ offthreadVideoCacheSizeInBytes: number | null;
100
+ type: "media";
97
101
  composition: string;
102
+ imageFormat: "png" | "jpeg" | "none";
103
+ logLevel: "verbose" | "info" | "warn" | "error";
104
+ delayRenderTimeoutInMilliseconds: number;
98
105
  codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
99
- serializedInputPropsWithCustomSchema: string;
100
- jpegQuality: number;
101
- audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
102
- audioBitrate: string | null;
103
- videoBitrate: string | null;
104
106
  crf: number | null;
107
+ frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
105
108
  pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
106
- imageFormat: "png" | "jpeg" | "none";
107
- scale: number;
108
109
  proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | null;
109
- x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
110
+ x264Preset: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
110
111
  everyNthFrame: number;
111
112
  numberOfGifLoops: number | null;
112
- frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
113
- envVariables: Record<string, string>;
114
113
  muted: boolean;
115
- outputBucket: string;
116
- logLevel: "error" | "verbose" | "info" | "warn";
117
- delayRenderTimeoutInMilliseconds: number;
118
- concurrency: string | number | null;
114
+ audioBitrate: string | null;
115
+ videoBitrate: string | null;
119
116
  enforceAudioTrack: boolean;
120
- preferLossless: boolean;
121
- offthreadVideoCacheSizeInBytes: number | null;
122
117
  colorSpace: "default" | "bt709";
118
+ audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
119
+ concurrency: string | number | null;
120
+ preferLossless: boolean;
121
+ serializedInputPropsWithCustomSchema: string;
122
+ outputBucket: string;
123
123
  forceHeight?: number | null | undefined;
124
124
  forceWidth?: number | null | undefined;
125
125
  chromiumOptions?: {
@@ -169,19 +169,19 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
169
169
  logLevel: z.ZodEnum<["verbose", "info", "warn", "error"]>;
170
170
  offthreadVideoCacheSizeInBytes: z.ZodNullable<z.ZodNumber>;
171
171
  }, "strip", z.ZodTypeAny, {
172
- type: "still";
173
172
  serveUrl: string;
174
- composition: string;
175
- serializedInputPropsWithCustomSchema: string;
176
- imageFormat: "png" | "jpeg" | "pdf" | "webp";
177
- scale: number;
178
- envVariables: Record<string, string>;
179
- outputBucket: string;
180
173
  privacy: "public" | "private";
181
- logLevel: "error" | "verbose" | "info" | "warn";
182
- delayRenderTimeoutInMilliseconds: number;
174
+ envVariables: Record<string, string>;
175
+ scale: number;
183
176
  offthreadVideoCacheSizeInBytes: number | null;
177
+ type: "still";
178
+ composition: string;
179
+ imageFormat: "png" | "jpeg" | "pdf" | "webp";
184
180
  frame: number;
181
+ logLevel: "verbose" | "info" | "warn" | "error";
182
+ delayRenderTimeoutInMilliseconds: number;
183
+ serializedInputPropsWithCustomSchema: string;
184
+ outputBucket: string;
185
185
  forceHeight?: number | null | undefined;
186
186
  forceWidth?: number | null | undefined;
187
187
  jpegQuality?: number | undefined;
@@ -194,19 +194,19 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
194
194
  } | undefined;
195
195
  outName?: string | undefined;
196
196
  }, {
197
- type: "still";
198
197
  serveUrl: string;
199
- composition: string;
200
- serializedInputPropsWithCustomSchema: string;
201
- imageFormat: "png" | "jpeg" | "pdf" | "webp";
202
- scale: number;
203
- envVariables: Record<string, string>;
204
- outputBucket: string;
205
198
  privacy: "public" | "private";
206
- logLevel: "error" | "verbose" | "info" | "warn";
207
- delayRenderTimeoutInMilliseconds: number;
199
+ envVariables: Record<string, string>;
200
+ scale: number;
208
201
  offthreadVideoCacheSizeInBytes: number | null;
202
+ type: "still";
203
+ composition: string;
204
+ imageFormat: "png" | "jpeg" | "pdf" | "webp";
209
205
  frame: number;
206
+ logLevel: "verbose" | "info" | "warn" | "error";
207
+ delayRenderTimeoutInMilliseconds: number;
208
+ serializedInputPropsWithCustomSchema: string;
209
+ outputBucket: string;
210
210
  forceHeight?: number | null | undefined;
211
211
  forceWidth?: number | null | undefined;
212
212
  jpegQuality?: number | undefined;
@@ -244,19 +244,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
244
244
  renderId: z.ZodString;
245
245
  privacy: z.ZodEnum<["public-read", "project-private"]>;
246
246
  }, "strip", z.ZodTypeAny, {
247
- type: "success";
247
+ bucketName: string;
248
248
  privacy: "public-read" | "project-private";
249
+ type: "success";
249
250
  cloudStorageUri: string;
250
251
  size: number;
251
- bucketName: string;
252
252
  renderId: string;
253
253
  publicUrl?: string | null | undefined;
254
254
  }, {
255
- type: "success";
255
+ bucketName: string;
256
256
  privacy: "public-read" | "project-private";
257
+ type: "success";
257
258
  cloudStorageUri: string;
258
259
  size: number;
259
- bucketName: string;
260
260
  renderId: string;
261
261
  publicUrl?: string | null | undefined;
262
262
  }>;
@@ -269,19 +269,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
269
269
  renderId: z.ZodString;
270
270
  privacy: z.ZodEnum<["public-read", "project-private"]>;
271
271
  }, "strip", z.ZodTypeAny, {
272
- type: "success";
272
+ bucketName: string;
273
273
  privacy: "public-read" | "project-private";
274
+ type: "success";
274
275
  cloudStorageUri: string;
275
276
  size: number;
276
- bucketName: string;
277
277
  renderId: string;
278
278
  publicUrl?: string | null | undefined;
279
279
  }, {
280
- type: "success";
280
+ bucketName: string;
281
281
  privacy: "public-read" | "project-private";
282
+ type: "success";
282
283
  cloudStorageUri: string;
283
284
  size: number;
284
- bucketName: string;
285
285
  renderId: string;
286
286
  publicUrl?: string | null | undefined;
287
287
  }>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderMediaSingleThread = void 0;
4
4
  const storage_1 = require("@google-cloud/storage");
5
5
  const renderer_1 = require("@remotion/renderer");
6
- const remotion_1 = require("remotion");
6
+ const no_react_1 = require("remotion/no-react");
7
7
  const random_hash_1 = require("../shared/random-hash");
8
8
  const get_composition_from_body_1 = require("./helpers/get-composition-from-body");
9
9
  const write_cloudrun_error_1 = require("./helpers/write-cloudrun-error");
@@ -41,7 +41,7 @@ const renderMediaSingleThread = async (body, res) => {
41
41
  codec: body.codec,
42
42
  outputLocation: tempFilePath,
43
43
  serializedInputPropsWithCustomSchema: body.serializedInputPropsWithCustomSchema,
44
- serializedResolvedPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
44
+ serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
45
45
  data: composition.props,
46
46
  indent: undefined,
47
47
  staticBase: null,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderStillSingleThread = void 0;
4
4
  const storage_1 = require("@google-cloud/storage");
5
5
  const renderer_1 = require("@remotion/renderer");
6
- const remotion_1 = require("remotion");
6
+ const no_react_1 = require("remotion/no-react");
7
7
  const log_1 = require("../cli/log");
8
8
  const random_hash_1 = require("../shared/random-hash");
9
9
  const get_composition_from_body_1 = require("./helpers/get-composition-from-body");
@@ -34,7 +34,7 @@ const renderStillSingleThread = async (body, res) => {
34
34
  serveUrl: body.serveUrl,
35
35
  output: tempFilePath,
36
36
  serializedInputPropsWithCustomSchema: body.serializedInputPropsWithCustomSchema,
37
- serializedResolvedPropsWithCustomSchema: remotion_1.Internals.serializeJSONWithDate({
37
+ serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
38
38
  data: composition.props,
39
39
  indent: undefined,
40
40
  staticBase: null,
@@ -1,3 +1,3 @@
1
1
  export declare const CloudrunInternals: {
2
- executeCommand: (args: string[], remotionRoot: string, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
2
+ executeCommand: (args: string[], remotionRoot: string, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cloudrun",
3
- "version": "4.0.71",
3
+ "version": "4.0.73",
4
4
  "description": "GCP Cloud Run alternative to lambda rendering",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -12,10 +12,10 @@
12
12
  "@google-cloud/logging": "^10.5.0",
13
13
  "google-auth-library": "^8.7.0",
14
14
  "zod": "^3.22.3",
15
- "@remotion/bundler": "4.0.71",
16
- "@remotion/cli": "4.0.71",
17
- "@remotion/renderer": "4.0.71",
18
- "remotion": "4.0.71"
15
+ "@remotion/bundler": "4.0.73",
16
+ "@remotion/cli": "4.0.73",
17
+ "remotion": "4.0.73",
18
+ "@remotion/renderer": "4.0.73"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@jonny/eslint-config": "3.0.276",
@@ -26,7 +26,7 @@
26
26
  "prettier-plugin-organize-imports": "^3.2.2",
27
27
  "ts-node": "^10.8.0",
28
28
  "vitest": "0.31.1",
29
- "@remotion/compositor-linux-x64-gnu": "4.0.71"
29
+ "@remotion/compositor-linux-x64-gnu": "4.0.73"
30
30
  },
31
31
  "exports": {
32
32
  "./package.json": "./package.json",