@remotion/cloudrun 4.0.423 → 4.0.424
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/api/get-buckets.d.ts +1 -2
- package/dist/api/get-buckets.js +4 -1
- package/dist/api/get-regions.d.ts +1 -2
- package/dist/api/get-sites.d.ts +1 -1
- package/dist/api/helpers/parse-service-name.d.ts +3 -4
- package/dist/api/iam-validation/testPermissions.d.ts +1 -1
- package/dist/api/render-media-on-cloudrun.d.ts +33 -4
- package/dist/api/render-still-on-cloudrun.d.ts +6 -6
- package/dist/cli/commands/permissions.d.ts +1 -2
- package/dist/cli/commands/regions.d.ts +1 -2
- package/dist/cli/commands/render/helpers/renderArgsCheck.d.ts +2 -3
- package/dist/cli/commands/render/index.d.ts +1 -2
- package/dist/cli/commands/render/index.js +8 -4
- package/dist/cli/commands/services/deploy.d.ts +1 -2
- package/dist/cli/commands/services/index.d.ts +1 -2
- package/dist/cli/commands/services/ls.d.ts +1 -2
- package/dist/cli/commands/services/rm.d.ts +1 -2
- package/dist/cli/commands/services/rmall.d.ts +1 -2
- package/dist/cli/commands/sites/create.d.ts +1 -2
- package/dist/cli/commands/sites/index.d.ts +1 -2
- package/dist/cli/commands/sites/ls.d.ts +1 -2
- package/dist/cli/commands/sites/rm.d.ts +1 -2
- package/dist/cli/commands/sites/rmall.d.ts +1 -2
- package/dist/cli/commands/still.d.ts +1 -2
- package/dist/cli/commands/still.js +4 -3
- package/dist/cli/get-gcp-region.d.ts +1 -2
- package/dist/cli/help.d.ts +1 -2
- package/dist/cli/helpers/cloudrun-crash-logs.d.ts +8 -3
- package/dist/cli/helpers/make-console-url.d.ts +1 -2
- package/dist/cli/index.d.ts +1 -2
- package/dist/cli/index.js +2 -1
- package/dist/cli/log.js +1 -1
- package/dist/client.js +10 -10
- package/dist/functions/helpers/get-composition-from-body.d.ts +104 -2
- package/dist/functions/helpers/get-download-behavior-setting.d.ts +6 -2
- package/dist/functions/helpers/payloads.d.ts +95 -95
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/render-media-single-thread.d.ts +104 -2
- package/dist/functions/render-media-single-thread.js +9 -8
- package/dist/functions/render-still-single-thread.d.ts +104 -2
- package/dist/functions/render-still-single-thread.js +9 -8
- package/dist/index.d.ts +29 -14
- package/dist/internals.d.ts +1 -1
- package/dist/shared/random-hash.d.ts +1 -1
- package/dist/shared/read-dir.d.ts +1 -1
- package/dist/shared/validate-bucketname.d.ts +1 -2
- package/dist/shared/validate-gcp-codec.d.ts +1 -1
- package/dist/shared/validate-region.d.ts +1 -2
- package/package.json +10 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { Bucket } from '@google-cloud/storage';
|
|
2
|
-
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
3
2
|
/**
|
|
4
3
|
* @description Get a list of all buckets that were created by Remotion.
|
|
5
4
|
* @param params.region GCP region to check. If not passed, all regions will be checked.
|
|
6
5
|
* @returns {Promise<Bucket[]>} List of buckets returned by GCP.
|
|
7
6
|
*/
|
|
8
|
-
export declare const getRemotionStorageBuckets: (region:
|
|
7
|
+
export declare const getRemotionStorageBuckets: (region: "all regions" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => Promise<{
|
|
9
8
|
remotionBuckets: Bucket[];
|
|
10
9
|
}>;
|
package/dist/api/get-buckets.js
CHANGED
|
@@ -14,7 +14,10 @@ const getRemotionStorageBuckets = async (region) => {
|
|
|
14
14
|
if (!buckets) {
|
|
15
15
|
return { remotionBuckets: [] };
|
|
16
16
|
}
|
|
17
|
-
let remotionBuckets = buckets.filter((b) => {
|
|
17
|
+
let remotionBuckets = buckets.filter((b) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = b.name) === null || _a === void 0 ? void 0 : _a.startsWith(constants_1.REMOTION_BUCKET_PREFIX);
|
|
20
|
+
});
|
|
18
21
|
if (region !== 'all regions') {
|
|
19
22
|
remotionBuckets = buckets.filter((b) => {
|
|
20
23
|
var _a;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getRegions: () => readonly GcpRegion[];
|
|
1
|
+
export declare const getRegions: () => readonly ("asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4")[];
|
package/dist/api/get-sites.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export type GetSitesOutput = {
|
|
|
14
14
|
sites: Site[];
|
|
15
15
|
buckets: BucketWithLocation[];
|
|
16
16
|
};
|
|
17
|
-
export declare const getSites: (region:
|
|
17
|
+
export declare const getSites: (region: "all regions" | "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => Promise<GetSitesOutput>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const parseServiceName: (fullServiceName: string, region: GcpRegion) => {
|
|
1
|
+
export declare const getGcpParent: (region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => string;
|
|
2
|
+
export declare const parseServiceName: (fullServiceName: string, region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4") => {
|
|
4
3
|
serviceName: string;
|
|
5
4
|
remotionVersion: string;
|
|
6
|
-
region:
|
|
5
|
+
region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4";
|
|
7
6
|
consoleUrl: string;
|
|
8
7
|
};
|
|
@@ -9,5 +9,5 @@ type TestPermissionsInput = {
|
|
|
9
9
|
type TestPermissionsOutput = {
|
|
10
10
|
results: TestResult[];
|
|
11
11
|
};
|
|
12
|
-
export declare const testPermissions: (params?: TestPermissionsInput) => Promise<TestPermissionsOutput>;
|
|
12
|
+
export declare const testPermissions: (params?: TestPermissionsInput | undefined) => Promise<TestPermissionsOutput>;
|
|
13
13
|
export {};
|
|
@@ -3,7 +3,7 @@ import { BrowserSafeApis } from '@remotion/renderer/client';
|
|
|
3
3
|
import type { _InternalTypes } from 'remotion';
|
|
4
4
|
import type { z } from 'zod';
|
|
5
5
|
import type { Privacy } from '../defaults';
|
|
6
|
-
import type {
|
|
6
|
+
import type { CloudRunPayload, DownloadBehavior } from '../functions/helpers/payloads';
|
|
7
7
|
import type { GcpRegion } from '../pricing/gcp-regions';
|
|
8
8
|
import type { CloudrunCodec } from '../shared/validate-gcp-codec';
|
|
9
9
|
type InternalRenderMediaOnCloudrun = {
|
|
@@ -71,7 +71,36 @@ export type RenderMediaOnCloudrunInput = {
|
|
|
71
71
|
renderIdOverride?: z.infer<typeof CloudRunPayload>['renderIdOverride'];
|
|
72
72
|
renderStatusWebhook?: z.infer<typeof CloudRunPayload>['renderStatusWebhook'];
|
|
73
73
|
} & Partial<ToOptions<typeof BrowserSafeApis.optionsMap.renderMediaOnCloudRun>>;
|
|
74
|
-
declare const
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
export declare const internalRenderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, renderIdOverride, renderStatusWebhook, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, downloadBehavior, metadata, mediaCacheSizeInBytes, }: InternalRenderMediaOnCloudrun) => Promise<{
|
|
75
|
+
type: "success";
|
|
76
|
+
publicUrl?: string | null | undefined;
|
|
77
|
+
cloudStorageUri: string;
|
|
78
|
+
size: number;
|
|
79
|
+
bucketName: string;
|
|
80
|
+
renderId: string;
|
|
81
|
+
privacy: "project-private" | "public-read";
|
|
82
|
+
} | {
|
|
83
|
+
type: "crash";
|
|
84
|
+
cloudRunEndpoint: string;
|
|
85
|
+
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
86
|
+
requestStartTime: string;
|
|
87
|
+
requestCrashTime: string;
|
|
88
|
+
requestElapsedTimeInSeconds: number;
|
|
89
|
+
}>;
|
|
90
|
+
export declare const renderMediaOnCloudrun: ({ cloudRunUrl, serviceName, region, serveUrl, composition, inputProps, codec, forceBucketName, privacy, outName, updateRenderProgress, jpegQuality, audioCodec, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, proResProfile, x264Preset, crf, pixelFormat, imageFormat, scale, everyNthFrame, numberOfGifLoops, frameRange, envVariables, chromiumOptions, muted, forceWidth, forceHeight, logLevel, delayRenderTimeoutInMilliseconds, concurrency, enforceAudioTrack, preferLossless, offthreadVideoCacheSizeInBytes, colorSpace, downloadBehavior, metadata, renderIdOverride, renderStatusWebhook, offthreadVideoThreads, mediaCacheSizeInBytes, }: RenderMediaOnCloudrunInput) => Promise<{
|
|
91
|
+
type: "success";
|
|
92
|
+
publicUrl?: string | null | undefined;
|
|
93
|
+
cloudStorageUri: string;
|
|
94
|
+
size: number;
|
|
95
|
+
bucketName: string;
|
|
96
|
+
renderId: string;
|
|
97
|
+
privacy: "project-private" | "public-read";
|
|
98
|
+
} | {
|
|
99
|
+
type: "crash";
|
|
100
|
+
cloudRunEndpoint: string;
|
|
101
|
+
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
102
|
+
requestStartTime: string;
|
|
103
|
+
requestCrashTime: string;
|
|
104
|
+
requestElapsedTimeInSeconds: number;
|
|
105
|
+
}>;
|
|
77
106
|
export {};
|
|
@@ -29,22 +29,22 @@ type OptionalParameters = {
|
|
|
29
29
|
} & ToOptions<typeof BrowserSafeApis.optionsMap.renderStillOnCloudRun>;
|
|
30
30
|
export type RenderStillOnCloudrunInput = Partial<OptionalParameters> & MandatoryParameters;
|
|
31
31
|
export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{
|
|
32
|
-
name: string;
|
|
33
|
-
message: string;
|
|
34
32
|
type: "error";
|
|
33
|
+
message: string;
|
|
34
|
+
name: string;
|
|
35
35
|
stack: string;
|
|
36
36
|
} | {
|
|
37
|
-
bucketName: string;
|
|
38
37
|
type: "success";
|
|
39
|
-
|
|
38
|
+
publicUrl?: string | null | undefined;
|
|
40
39
|
cloudStorageUri: string;
|
|
41
40
|
size: number;
|
|
41
|
+
bucketName: string;
|
|
42
42
|
renderId: string;
|
|
43
|
-
|
|
43
|
+
privacy: "project-private" | "public-read";
|
|
44
44
|
} | {
|
|
45
|
-
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
46
45
|
type: "crash";
|
|
47
46
|
cloudRunEndpoint: string;
|
|
47
|
+
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
48
48
|
requestStartTime: string;
|
|
49
49
|
requestCrashTime: string;
|
|
50
50
|
requestElapsedTimeInSeconds: number;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const PERMISSIONS_COMMAND = "permissions";
|
|
3
|
-
export declare const permissionsCommand: (logLevel:
|
|
2
|
+
export declare const permissionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const REGIONS_COMMAND = "regions";
|
|
3
|
-
export declare const regionsCommand: (logLevel:
|
|
2
|
+
export declare const regionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: LogLevel) => Promise<{
|
|
1
|
+
export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<{
|
|
3
2
|
serveUrl: string;
|
|
4
3
|
cloudRunUrl: any;
|
|
5
4
|
outName: string | undefined;
|
|
6
5
|
forceBucketName: any;
|
|
7
|
-
privacy: import("../../../../
|
|
6
|
+
privacy: import("../../../../defaults").Privacy;
|
|
8
7
|
downloadName: string;
|
|
9
8
|
region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4";
|
|
10
9
|
}>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const RENDER_COMMAND = "render";
|
|
3
|
-
export declare const renderCommand: (args: string[], remotionRoot: string, logLevel:
|
|
2
|
+
export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -27,8 +27,12 @@ const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
|
27
27
|
uiCodec: null,
|
|
28
28
|
compositionCodec: null,
|
|
29
29
|
});
|
|
30
|
-
const imageFormat =
|
|
31
|
-
|
|
30
|
+
const imageFormat = client_1.BrowserSafeApis.options.videoImageFormatOption.getValue({
|
|
31
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
32
|
+
}).value;
|
|
33
|
+
const audioCodec = client_1.BrowserSafeApis.options.audioCodecOption.getValue({
|
|
34
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
35
|
+
}).value;
|
|
32
36
|
const { envVariables, frameRange, inputProps, pixelFormat, proResProfile, everyNthFrame, height, width, browserExecutable, disableWebSecurity, ignoreCertificateErrors, userAgent, } = cli_1.CliInternals.getCliOptions({
|
|
33
37
|
isStill: false,
|
|
34
38
|
logLevel,
|
|
@@ -219,7 +223,7 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
|
|
|
219
223
|
outName,
|
|
220
224
|
updateRenderProgress,
|
|
221
225
|
jpegQuality,
|
|
222
|
-
audioCodec,
|
|
226
|
+
audioCodec: audioCodec !== null && audioCodec !== void 0 ? audioCodec : undefined,
|
|
223
227
|
audioBitrate,
|
|
224
228
|
videoBitrate,
|
|
225
229
|
encodingMaxRate,
|
|
@@ -228,7 +232,7 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}
|
|
|
228
232
|
x264Preset,
|
|
229
233
|
crf,
|
|
230
234
|
pixelFormat,
|
|
231
|
-
imageFormat,
|
|
235
|
+
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : undefined,
|
|
232
236
|
scale,
|
|
233
237
|
everyNthFrame,
|
|
234
238
|
numberOfGifLoops,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const CLOUD_RUN_DEPLOY_SUBCOMMAND = "deploy";
|
|
3
|
-
export declare const cloudRunDeploySubcommand: (logLevel:
|
|
2
|
+
export declare const cloudRunDeploySubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
import type { ServiceInfo } from '../../../api/get-service-info';
|
|
3
2
|
export declare const SERVICES_COMMAND = "services";
|
|
4
3
|
export declare const LEFT_COL = 20;
|
|
5
4
|
export declare const displayServiceInfo: (service: ServiceInfo) => string;
|
|
6
|
-
export declare const servicesCommand: (args: string[], logLevel:
|
|
5
|
+
export declare const servicesCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void> | undefined;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SERVICES_LS_SUBCOMMAND = "ls";
|
|
3
|
-
export declare const servicesLsCommand: (logLevel:
|
|
2
|
+
export declare const servicesLsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SERVICES_RM_SUBCOMMAND = "rm";
|
|
3
|
-
export declare const servicesRmCommand: (args: string[], logLevel:
|
|
2
|
+
export declare const servicesRmCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SERVICES_RMALL_SUBCOMMAND = "rmall";
|
|
3
|
-
export declare const servicesRmallCommand: (logLevel:
|
|
2
|
+
export declare const servicesRmallCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SITES_CREATE_SUBCOMMAND = "create";
|
|
3
|
-
export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel:
|
|
2
|
+
export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
import type { Site } from '../../../api/get-sites';
|
|
3
2
|
export declare const SITES_COMMAND = "sites";
|
|
4
3
|
export declare const displaySiteInfo: (site: Site) => string;
|
|
5
|
-
export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel:
|
|
4
|
+
export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean> | undefined;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SITES_LS_SUBCOMMAND = "ls";
|
|
3
|
-
export declare const sitesLsSubcommand: (logLevel:
|
|
2
|
+
export declare const sitesLsSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SITES_RM_COMMAND = "rm";
|
|
3
|
-
export declare const sitesRmSubcommand: (args: string[], logLevel:
|
|
2
|
+
export declare const sitesRmSubcommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const SITES_RMALL_COMMAND = "rmall";
|
|
3
|
-
export declare const sitesRmallSubcommand: (logLevel:
|
|
2
|
+
export declare const sitesRmallSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
export declare const STILL_COMMAND = "still";
|
|
3
|
-
export declare const stillCommand: (args: string[], remotionRoot: string, logLevel:
|
|
2
|
+
export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -15,7 +15,6 @@ const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
|
|
|
15
15
|
exports.STILL_COMMAND = 'still';
|
|
16
16
|
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
|
|
17
17
|
const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
18
|
-
var _a, _b;
|
|
19
18
|
const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args, logLevel);
|
|
20
19
|
const { envVariables, inputProps, stillFrame, height, width, browserExecutable, userAgent, disableWebSecurity, ignoreCertificateErrors, } = cli_1.CliInternals.getCliOptions({
|
|
21
20
|
isStill: false,
|
|
@@ -106,13 +105,15 @@ const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
|
106
105
|
});
|
|
107
106
|
composition = compositionId;
|
|
108
107
|
}
|
|
108
|
+
const { stillImageFormatOption } = client_1.BrowserSafeApis.options;
|
|
109
109
|
const { format: imageFormat, source: imageFormatReason } = cli_1.CliInternals.determineFinalStillImageFormat({
|
|
110
110
|
downloadName,
|
|
111
111
|
outName: outName !== null && outName !== void 0 ? outName : null,
|
|
112
|
-
|
|
112
|
+
configuredImageFormat: stillImageFormatOption.getValue({
|
|
113
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
114
|
+
}).value,
|
|
113
115
|
isLambda: true,
|
|
114
116
|
fromUi: null,
|
|
115
|
-
configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _b !== void 0 ? _b : null,
|
|
116
117
|
});
|
|
117
118
|
log_1.Log.verbose({ indent: false, logLevel }, `Image format: (${imageFormat}), ${imageFormatReason}`);
|
|
118
119
|
// Todo: Check cloudRunUrl is valid, as the error message is obtuse
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getGcpRegion: () => GcpRegion;
|
|
1
|
+
export declare const getGcpRegion: () => "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4";
|
package/dist/cli/help.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const printHelp: (logLevel: LogLevel) => void;
|
|
1
|
+
export declare const printHelp: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const displayCrashLogs: (res: {
|
|
2
|
+
type: "crash";
|
|
3
|
+
cloudRunEndpoint: string;
|
|
4
|
+
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
5
|
+
requestStartTime: string;
|
|
6
|
+
requestCrashTime: string;
|
|
7
|
+
requestElapsedTimeInSeconds: number;
|
|
8
|
+
}, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const makeConsoleUrl: (region: GcpRegion, shortName: string) => string;
|
|
1
|
+
export declare const makeConsoleUrl: (region: "asia-east1" | "asia-east2" | "asia-northeast1" | "asia-northeast2" | "asia-northeast3" | "asia-south1" | "asia-south2" | "asia-southeast1" | "asia-southeast2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west2" | "europe-west3" | "europe-west4" | "europe-west6" | "europe-west8" | "europe-west9" | "me-west1" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "us-west2" | "us-west3" | "us-west4", shortName: string) => string;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
|
|
1
|
+
export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
package/dist/cli/index.js
CHANGED
|
@@ -45,7 +45,8 @@ const matchCommand = (args, remotionRoot, logLevel) => {
|
|
|
45
45
|
(0, quit_1.quit)(1);
|
|
46
46
|
};
|
|
47
47
|
const executeCommand = async (args, remotionRoot, logLevel) => {
|
|
48
|
-
var _a
|
|
48
|
+
var _a;
|
|
49
|
+
var _b;
|
|
49
50
|
try {
|
|
50
51
|
await matchCommand(args, remotionRoot, logLevel);
|
|
51
52
|
}
|
package/dist/cli/log.js
CHANGED
package/dist/client.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.speculateServiceName = exports.renderStillOnCloudrun = exports.renderMediaOnCloudrun = exports.getSites = exports.getServices = exports.getServiceInfo = exports.getRegions = exports.getOrCreateBucket = exports.deleteSite = exports.deleteService = void 0;
|
|
4
|
-
|
|
4
|
+
const delete_service_1 = require("./api/delete-service");
|
|
5
5
|
Object.defineProperty(exports, "deleteService", { enumerable: true, get: function () { return delete_service_1.deleteService; } });
|
|
6
|
-
|
|
6
|
+
const delete_site_1 = require("./api/delete-site");
|
|
7
7
|
Object.defineProperty(exports, "deleteSite", { enumerable: true, get: function () { return delete_site_1.deleteSite; } });
|
|
8
|
-
|
|
8
|
+
const get_or_create_bucket_1 = require("./api/get-or-create-bucket");
|
|
9
9
|
Object.defineProperty(exports, "getOrCreateBucket", { enumerable: true, get: function () { return get_or_create_bucket_1.getOrCreateBucket; } });
|
|
10
|
-
|
|
10
|
+
const get_regions_1 = require("./api/get-regions");
|
|
11
11
|
Object.defineProperty(exports, "getRegions", { enumerable: true, get: function () { return get_regions_1.getRegions; } });
|
|
12
|
-
|
|
12
|
+
const get_service_info_1 = require("./api/get-service-info");
|
|
13
13
|
Object.defineProperty(exports, "getServiceInfo", { enumerable: true, get: function () { return get_service_info_1.getServiceInfo; } });
|
|
14
|
-
|
|
14
|
+
const get_services_1 = require("./api/get-services");
|
|
15
15
|
Object.defineProperty(exports, "getServices", { enumerable: true, get: function () { return get_services_1.getServices; } });
|
|
16
|
-
|
|
16
|
+
const get_sites_1 = require("./api/get-sites");
|
|
17
17
|
Object.defineProperty(exports, "getSites", { enumerable: true, get: function () { return get_sites_1.getSites; } });
|
|
18
|
-
|
|
18
|
+
const render_media_on_cloudrun_1 = require("./api/render-media-on-cloudrun");
|
|
19
19
|
Object.defineProperty(exports, "renderMediaOnCloudrun", { enumerable: true, get: function () { return render_media_on_cloudrun_1.renderMediaOnCloudrun; } });
|
|
20
|
-
|
|
20
|
+
const render_still_on_cloudrun_1 = require("./api/render-still-on-cloudrun");
|
|
21
21
|
Object.defineProperty(exports, "renderStillOnCloudrun", { enumerable: true, get: function () { return render_still_on_cloudrun_1.renderStillOnCloudrun; } });
|
|
22
|
-
|
|
22
|
+
const speculate_service_name_1 = require("./api/speculate-service-name");
|
|
23
23
|
Object.defineProperty(exports, "speculateServiceName", { enumerable: true, get: function () { return speculate_service_name_1.speculateServiceName; } });
|
|
@@ -1,2 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const getCompositionFromBody: (body: {
|
|
2
|
+
type: "media";
|
|
3
|
+
serveUrl: string;
|
|
4
|
+
composition: string;
|
|
5
|
+
forceHeight?: number | null | undefined;
|
|
6
|
+
forceWidth?: number | null | undefined;
|
|
7
|
+
codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
8
|
+
serializedInputPropsWithCustomSchema: string;
|
|
9
|
+
jpegQuality: number | null;
|
|
10
|
+
audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
11
|
+
audioBitrate: string | null;
|
|
12
|
+
videoBitrate: string | null;
|
|
13
|
+
encodingMaxRate: string | null;
|
|
14
|
+
encodingBufferSize: string | null;
|
|
15
|
+
crf: number | null;
|
|
16
|
+
pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
|
|
17
|
+
imageFormat: "jpeg" | "none" | "png" | null;
|
|
18
|
+
scale: number;
|
|
19
|
+
proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | null;
|
|
20
|
+
x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
21
|
+
everyNthFrame: number;
|
|
22
|
+
numberOfGifLoops: number | null;
|
|
23
|
+
frameRange: ((number | [number, number | null]) & (number | [number, number | null] | undefined)) | null;
|
|
24
|
+
envVariables: Record<string, string>;
|
|
25
|
+
chromiumOptions?: {
|
|
26
|
+
ignoreCertificateErrors?: boolean | undefined;
|
|
27
|
+
disableWebSecurity?: boolean | undefined;
|
|
28
|
+
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
29
|
+
headless?: boolean | undefined;
|
|
30
|
+
userAgent?: string | null | undefined;
|
|
31
|
+
darkMode?: boolean | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
muted: boolean;
|
|
34
|
+
outputBucket: string;
|
|
35
|
+
outName?: string | undefined;
|
|
36
|
+
privacy?: "no-acl" | "private" | "public" | undefined;
|
|
37
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
38
|
+
delayRenderTimeoutInMilliseconds: number | null;
|
|
39
|
+
concurrency: string | number | null;
|
|
40
|
+
enforceAudioTrack: boolean;
|
|
41
|
+
preferLossless: boolean;
|
|
42
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
43
|
+
mediaCacheSizeInBytes: number | null;
|
|
44
|
+
offthreadVideoThreads: number | null;
|
|
45
|
+
colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
46
|
+
clientVersion: string;
|
|
47
|
+
downloadBehavior: {
|
|
48
|
+
type: "play-in-browser";
|
|
49
|
+
} | {
|
|
50
|
+
type: "download";
|
|
51
|
+
fileName: string | null;
|
|
52
|
+
};
|
|
53
|
+
metadata?: Record<string, string> | null | undefined;
|
|
54
|
+
renderIdOverride?: string | null | undefined;
|
|
55
|
+
renderStatusWebhook?: {
|
|
56
|
+
url: string;
|
|
57
|
+
headers: Record<string, string>;
|
|
58
|
+
data?: any;
|
|
59
|
+
webhookProgressInterval?: number | null | undefined;
|
|
60
|
+
} | null | undefined;
|
|
61
|
+
} | {
|
|
62
|
+
type: "still";
|
|
63
|
+
serveUrl: string;
|
|
64
|
+
composition: string;
|
|
65
|
+
forceHeight?: number | null | undefined;
|
|
66
|
+
forceWidth?: number | null | undefined;
|
|
67
|
+
serializedInputPropsWithCustomSchema: string;
|
|
68
|
+
jpegQuality?: number | undefined;
|
|
69
|
+
imageFormat: "jpeg" | "pdf" | "png" | "webp";
|
|
70
|
+
scale: number;
|
|
71
|
+
privacy: "no-acl" | "private" | "public";
|
|
72
|
+
envVariables: Record<string, string>;
|
|
73
|
+
chromiumOptions?: {
|
|
74
|
+
ignoreCertificateErrors?: boolean | undefined;
|
|
75
|
+
disableWebSecurity?: boolean | undefined;
|
|
76
|
+
gl?: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined;
|
|
77
|
+
headless?: boolean | undefined;
|
|
78
|
+
userAgent?: string | null | undefined;
|
|
79
|
+
darkMode?: boolean | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
outputBucket: string;
|
|
82
|
+
outName: string | null;
|
|
83
|
+
frame: number;
|
|
84
|
+
delayRenderTimeoutInMilliseconds: number;
|
|
85
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
86
|
+
mediaCacheSizeInBytes: number | null;
|
|
87
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
88
|
+
offthreadVideoThreads: number | null;
|
|
89
|
+
clientVersion: string;
|
|
90
|
+
downloadBehavior: {
|
|
91
|
+
type: "play-in-browser";
|
|
92
|
+
} | {
|
|
93
|
+
type: "download";
|
|
94
|
+
fileName: string | null;
|
|
95
|
+
};
|
|
96
|
+
metadata?: Record<string, string> | null | undefined;
|
|
97
|
+
renderIdOverride?: string | null | undefined;
|
|
98
|
+
renderStatusWebhook?: {
|
|
99
|
+
url: string;
|
|
100
|
+
headers: Record<string, string>;
|
|
101
|
+
data?: any;
|
|
102
|
+
webhookProgressInterval?: number | null | undefined;
|
|
103
|
+
} | null | undefined;
|
|
104
|
+
}) => Promise<import("remotion").VideoConfig>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const getDownloadBehaviorSetting: (downloadBehavior: {
|
|
2
|
+
type: "play-in-browser";
|
|
3
|
+
} | {
|
|
4
|
+
type: "download";
|
|
5
|
+
fileName: string | null;
|
|
6
|
+
}) => Record<string, string>;
|