@remotion/cloudrun 4.1.0-alpha11 → 4.1.0-alpha12
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.17 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.
|
|
6
|
+
> @remotion/cloudrun@4.0.17 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.
|
|
11
|
+
> @remotion/cloudrun@4.0.17 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
|
|
12
12
|
> ts-node src/admin/bundle-installer.ts
|
|
13
13
|
|
|
@@ -108,7 +108,7 @@ const renderMediaOnCloudrun = async ({ cloudRunUrl, serviceName, region, serveUr
|
|
|
108
108
|
const formattedStartTime = new Date().toISOString();
|
|
109
109
|
const stream = postResponse.data;
|
|
110
110
|
stream.on('data', (chunk) => {
|
|
111
|
-
const chunkResponse = JSON.parse(chunk.toString());
|
|
111
|
+
const chunkResponse = JSON.parse(chunk.toString().trim());
|
|
112
112
|
if (chunkResponse.response) {
|
|
113
113
|
response = chunkResponse.response;
|
|
114
114
|
}
|
|
@@ -49,8 +49,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
49
49
|
enforceAudioTrack: z.ZodBoolean;
|
|
50
50
|
preferLossless: z.ZodBoolean;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
serveUrl: string;
|
|
53
52
|
type: "media";
|
|
53
|
+
serveUrl: string;
|
|
54
54
|
composition: string;
|
|
55
55
|
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
56
56
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -86,8 +86,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
86
86
|
outName?: string | undefined;
|
|
87
87
|
privacy?: "public" | "private" | undefined;
|
|
88
88
|
}, {
|
|
89
|
-
serveUrl: string;
|
|
90
89
|
type: "media";
|
|
90
|
+
serveUrl: string;
|
|
91
91
|
composition: string;
|
|
92
92
|
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
93
93
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -159,8 +159,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
159
159
|
delayRenderTimeoutInMilliseconds: z.ZodNumber;
|
|
160
160
|
logLevel: z.ZodEnum<["verbose", "info", "warn", "error"]>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
serveUrl: string;
|
|
163
162
|
type: "still";
|
|
163
|
+
serveUrl: string;
|
|
164
164
|
composition: string;
|
|
165
165
|
serializedInputPropsWithCustomSchema: string;
|
|
166
166
|
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
@@ -183,8 +183,8 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
183
183
|
} | undefined;
|
|
184
184
|
outName?: string | undefined;
|
|
185
185
|
}, {
|
|
186
|
-
serveUrl: string;
|
|
187
186
|
type: "still";
|
|
187
|
+
serveUrl: string;
|
|
188
188
|
composition: string;
|
|
189
189
|
serializedInputPropsWithCustomSchema: string;
|
|
190
190
|
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
@@ -212,12 +212,12 @@ declare const renderFailResponsePayload: z.ZodObject<{
|
|
|
212
212
|
error: z.ZodString;
|
|
213
213
|
stack: z.ZodString;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
error: string;
|
|
216
215
|
status: "error";
|
|
216
|
+
error: string;
|
|
217
217
|
stack: string;
|
|
218
218
|
}, {
|
|
219
|
-
error: string;
|
|
220
219
|
status: "error";
|
|
220
|
+
error: string;
|
|
221
221
|
stack: string;
|
|
222
222
|
}>;
|
|
223
223
|
declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
@@ -229,19 +229,19 @@ declare const renderStillOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
229
229
|
renderId: z.ZodString;
|
|
230
230
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
bucketName: string;
|
|
233
|
-
size: number;
|
|
234
232
|
status: "success";
|
|
235
233
|
privacy: "public-read" | "project-private";
|
|
236
234
|
cloudStorageUri: string;
|
|
235
|
+
size: number;
|
|
236
|
+
bucketName: string;
|
|
237
237
|
renderId: string;
|
|
238
238
|
publicUrl?: string | null | undefined;
|
|
239
239
|
}, {
|
|
240
|
-
bucketName: string;
|
|
241
|
-
size: number;
|
|
242
240
|
status: "success";
|
|
243
241
|
privacy: "public-read" | "project-private";
|
|
244
242
|
cloudStorageUri: string;
|
|
243
|
+
size: number;
|
|
244
|
+
bucketName: string;
|
|
245
245
|
renderId: string;
|
|
246
246
|
publicUrl?: string | null | undefined;
|
|
247
247
|
}>;
|
|
@@ -254,19 +254,19 @@ declare const renderMediaOnCloudrunResponsePayload: z.ZodObject<{
|
|
|
254
254
|
renderId: z.ZodString;
|
|
255
255
|
privacy: z.ZodEnum<["public-read", "project-private"]>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
bucketName: string;
|
|
258
|
-
size: number;
|
|
259
257
|
status: "success";
|
|
260
258
|
privacy: "public-read" | "project-private";
|
|
261
259
|
cloudStorageUri: string;
|
|
260
|
+
size: number;
|
|
261
|
+
bucketName: string;
|
|
262
262
|
renderId: string;
|
|
263
263
|
publicUrl?: string | null | undefined;
|
|
264
264
|
}, {
|
|
265
|
-
bucketName: string;
|
|
266
|
-
size: number;
|
|
267
265
|
status: "success";
|
|
268
266
|
privacy: "public-read" | "project-private";
|
|
269
267
|
cloudStorageUri: string;
|
|
268
|
+
size: number;
|
|
269
|
+
bucketName: string;
|
|
270
270
|
renderId: string;
|
|
271
271
|
publicUrl?: string | null | undefined;
|
|
272
272
|
}>;
|
|
@@ -18,7 +18,7 @@ const renderMediaSingleThread = async (body, res) => {
|
|
|
18
18
|
let previousProgress = 2;
|
|
19
19
|
const onProgress = ({ progress }) => {
|
|
20
20
|
if (previousProgress !== progress) {
|
|
21
|
-
res.write(JSON.stringify({ onProgress: progress }));
|
|
21
|
+
res.write(JSON.stringify({ onProgress: progress }) + '\n');
|
|
22
22
|
previousProgress = progress;
|
|
23
23
|
}
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cloudrun",
|
|
3
|
-
"version": "4.1.0-
|
|
3
|
+
"version": "4.1.0-alpha12",
|
|
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.21.4",
|
|
15
|
-
"
|
|
16
|
-
"@remotion/
|
|
17
|
-
"@remotion/
|
|
18
|
-
"remotion": "4.1.0-
|
|
15
|
+
"remotion": "4.1.0-alpha12",
|
|
16
|
+
"@remotion/cli": "4.1.0-alpha12",
|
|
17
|
+
"@remotion/bundler": "4.1.0-alpha12",
|
|
18
|
+
"@remotion/renderer": "4.1.0-alpha12"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@jonny/eslint-config": "3.0.266",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ts-node": "^10.8.0",
|
|
28
28
|
"typescript": "4.7.2",
|
|
29
29
|
"vitest": "0.24.3",
|
|
30
|
-
"@remotion/compositor-linux-x64-gnu": "4.1.0-
|
|
30
|
+
"@remotion/compositor-linux-x64-gnu": "4.1.0-alpha12"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
"./package.json": "./package.json",
|