@remotion/cloudrun 4.0.56 → 4.0.57
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 +3 -3
- package/.turbo/turbo-lint.log +4 -4
- package/dist/cli/commands/render/helpers/renderArgsCheck.d.ts +2 -1
- package/dist/cli/commands/render/helpers/renderArgsCheck.js +2 -2
- package/dist/cli/commands/render/index.d.ts +2 -1
- package/dist/cli/commands/render/index.js +4 -3
- package/dist/cli/commands/sites/create.d.ts +2 -1
- package/dist/cli/commands/sites/create.js +3 -3
- package/dist/cli/commands/sites/index.d.ts +2 -1
- package/dist/cli/commands/sites/index.js +3 -3
- package/dist/cli/commands/sites/ls.d.ts +2 -1
- package/dist/cli/commands/sites/ls.js +2 -2
- package/dist/cli/commands/still.d.ts +2 -1
- package/dist/cli/commands/still.js +5 -4
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/log.d.ts +4 -18
- package/dist/functions/helpers/get-composition-from-body.js +1 -1
- package/dist/functions/helpers/payloads.d.ts +64 -64
- package/dist/functions/render-still-single-thread.js +2 -2
- package/dist/internals.d.ts +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.56 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.56 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.56 tarInstaller /Users/jonathanburger/remotion/packages/cloudrun
|
|
12
12
|
> ts-node src/admin/bundle-installer.ts
|
|
13
13
|
|
|
14
14
|
Making reproducible build with gtar
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @remotion/cloudrun@4.0.
|
|
2
|
+
> @remotion/cloudrun@4.0.56 lint /Users/jonathanburger/remotion/packages/cloudrun
|
|
3
3
|
> eslint src --ext ts,tsx
|
|
4
4
|
|
|
5
5
|
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
|
|
@@ -15,13 +15,13 @@ Warning: React version was set to "detect" in eslint-plugin-react settings, but
|
|
|
15
15
|
153:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
16
16
|
|
|
17
17
|
/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/helpers/renderArgsCheck.ts
|
|
18
|
-
|
|
18
|
+
76:4 warning Unexpected 'todo' comment: 'TODO: Log if there is an incompatible...' no-warning-comments
|
|
19
19
|
|
|
20
20
|
/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/render/index.ts
|
|
21
|
-
|
|
21
|
+
124:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
|
|
22
22
|
|
|
23
23
|
/Users/jonathanburger/remotion/packages/cloudrun/src/cli/commands/still.ts
|
|
24
|
-
|
|
24
|
+
112:2 warning Unexpected 'todo' comment: 'Todo: Check cloudRunUrl is valid, as the...' no-warning-comments
|
|
25
25
|
|
|
26
26
|
✖ 7 problems (0 errors, 7 warnings)
|
|
27
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
2
|
+
export declare const renderArgsCheck: (subcommand: string, args: string[], logLevel: LogLevel) => Promise<{
|
|
2
3
|
serveUrl: string;
|
|
3
4
|
cloudRunUrl: any;
|
|
4
5
|
outName: string | undefined;
|
|
@@ -13,7 +13,7 @@ const quit_1 = require("../../../helpers/quit");
|
|
|
13
13
|
const log_1 = require("../../../log");
|
|
14
14
|
const services_1 = require("../../services");
|
|
15
15
|
const deploy_1 = require("../../services/deploy");
|
|
16
|
-
const renderArgsCheck = async (subcommand, args) => {
|
|
16
|
+
const renderArgsCheck = async (subcommand, args, logLevel) => {
|
|
17
17
|
var _a, _b, _c, _d;
|
|
18
18
|
let region = (0, get_gcp_region_1.getGcpRegion)();
|
|
19
19
|
let remotionBucket;
|
|
@@ -27,7 +27,7 @@ const renderArgsCheck = async (subcommand, args) => {
|
|
|
27
27
|
}
|
|
28
28
|
if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {
|
|
29
29
|
const siteName = serveUrl;
|
|
30
|
-
log_1.Log.verbose('Remotion site-name passed, constructing serve url...');
|
|
30
|
+
log_1.Log.verbose({ indent: false, logLevel }, 'Remotion site-name passed, constructing serve url...');
|
|
31
31
|
region = region !== null && region !== void 0 ? region : (0, get_gcp_region_1.getGcpRegion)();
|
|
32
32
|
remotionBucket = (await (0, get_or_create_bucket_1.getOrCreateBucket)({ region })).bucketName;
|
|
33
33
|
serveUrl = (0, convert_to_serve_url_1.convertToServeUrl)({
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
export declare const RENDER_COMMAND = "render";
|
|
2
|
-
export declare const renderCommand: (args: string[], remotionRoot: string) => Promise<void>;
|
|
3
|
+
export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
|
|
@@ -13,9 +13,9 @@ const cloudrun_crash_logs_1 = require("../../helpers/cloudrun-crash-logs");
|
|
|
13
13
|
const log_1 = require("../../log");
|
|
14
14
|
const renderArgsCheck_1 = require("./helpers/renderArgsCheck");
|
|
15
15
|
exports.RENDER_COMMAND = 'render';
|
|
16
|
-
const renderCommand = async (args, remotionRoot) => {
|
|
16
|
+
const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
17
17
|
var _a, _b;
|
|
18
|
-
const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.RENDER_COMMAND, args);
|
|
18
|
+
const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.RENDER_COMMAND, args, logLevel);
|
|
19
19
|
const { codec, reason: codecReason } = cli_1.CliInternals.getFinalOutputCodec({
|
|
20
20
|
cliFlag: cli_1.CliInternals.parsedCli.codec,
|
|
21
21
|
downloadName,
|
|
@@ -26,10 +26,11 @@ const renderCommand = async (args, remotionRoot) => {
|
|
|
26
26
|
});
|
|
27
27
|
const imageFormat = args_1.parsedCloudrunCli['image-format'];
|
|
28
28
|
const audioCodec = args_1.parsedCloudrunCli['audio-codec'];
|
|
29
|
-
const { chromiumOptions, crf, envVariables, frameRange, inputProps,
|
|
29
|
+
const { chromiumOptions, crf, envVariables, frameRange, inputProps, puppeteerTimeout, pixelFormat, proResProfile, x264Preset, jpegQuality, scale, everyNthFrame, numberOfGifLoops, muted, audioBitrate, videoBitrate, height, width, browserExecutable, port, enforceAudioTrack, offthreadVideoCacheSizeInBytes, colorSpace, } = await cli_1.CliInternals.getCliOptions({
|
|
30
30
|
type: 'series',
|
|
31
31
|
isLambda: true,
|
|
32
32
|
remotionRoot,
|
|
33
|
+
logLevel,
|
|
33
34
|
});
|
|
34
35
|
let composition = args[1];
|
|
35
36
|
if (!composition) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
export declare const SITES_CREATE_SUBCOMMAND = "create";
|
|
2
|
-
export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string) => Promise<void>;
|
|
3
|
+
export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
|
|
@@ -16,9 +16,9 @@ const progress_bar_1 = require("../../helpers/progress-bar");
|
|
|
16
16
|
const quit_1 = require("../../helpers/quit");
|
|
17
17
|
const log_1 = require("../../log");
|
|
18
18
|
exports.SITES_CREATE_SUBCOMMAND = 'create';
|
|
19
|
-
const sitesCreateSubcommand = async (args, remotionRoot) => {
|
|
19
|
+
const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
20
20
|
var _a, _b;
|
|
21
|
-
const { file, reason } = cli_1.CliInternals.findEntryPoint(args, remotionRoot);
|
|
21
|
+
const { file, reason } = cli_1.CliInternals.findEntryPoint(args, remotionRoot, logLevel);
|
|
22
22
|
if (!file) {
|
|
23
23
|
log_1.Log.error('No entry file passed.');
|
|
24
24
|
log_1.Log.info('Pass an additional argument specifying the entry file of your Remotion project:');
|
|
@@ -27,7 +27,7 @@ const sitesCreateSubcommand = async (args, remotionRoot) => {
|
|
|
27
27
|
(0, quit_1.quit)(1);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
log_1.Log.verbose('Entry point:', file, 'Reason:', reason);
|
|
30
|
+
log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', file, 'Reason:', reason);
|
|
31
31
|
if (!(0, fs_1.existsSync)(file)) {
|
|
32
32
|
log_1.Log.error(`No file exists at ${file}. Make sure the path exists and try again.`);
|
|
33
33
|
(0, quit_1.quit)(1);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
import type { Site } from '../../../api/get-sites';
|
|
2
3
|
export declare const SITES_COMMAND = "sites";
|
|
3
4
|
export declare const displaySiteInfo: (site: Site) => string;
|
|
4
|
-
export declare const sitesCommand: (args: string[], remotionRoot: string) => Promise<void> | undefined;
|
|
5
|
+
export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void> | undefined;
|
|
@@ -37,9 +37,9 @@ const printSitesHelp = () => {
|
|
|
37
37
|
cli_1.CliInternals.Log.info(`${constants_1.BINARY_NAME} ${exports.SITES_COMMAND} ${rmall_1.SITES_RMALL_COMMAND}`);
|
|
38
38
|
cli_1.CliInternals.Log.info(cli_1.CliInternals.chalk.gray('Remove all sites from the Cloud Storage bucket.'));
|
|
39
39
|
};
|
|
40
|
-
const sitesCommand = (args, remotionRoot) => {
|
|
40
|
+
const sitesCommand = (args, remotionRoot, logLevel) => {
|
|
41
41
|
if (args[0] === ls_1.SITES_LS_SUBCOMMAND) {
|
|
42
|
-
return (0, ls_1.sitesLsSubcommand)();
|
|
42
|
+
return (0, ls_1.sitesLsSubcommand)(logLevel);
|
|
43
43
|
}
|
|
44
44
|
if (args[0] === rm_1.SITES_RM_COMMAND) {
|
|
45
45
|
return (0, rm_1.sitesRmSubcommand)(args.slice(1));
|
|
@@ -48,7 +48,7 @@ const sitesCommand = (args, remotionRoot) => {
|
|
|
48
48
|
return (0, rmall_1.sitesRmallSubcommand)();
|
|
49
49
|
}
|
|
50
50
|
if (args[0] === create_1.SITES_CREATE_SUBCOMMAND) {
|
|
51
|
-
return (0, create_1.sitesCreateSubcommand)(args.slice(1), remotionRoot);
|
|
51
|
+
return (0, create_1.sitesCreateSubcommand)(args.slice(1), remotionRoot, logLevel);
|
|
52
52
|
}
|
|
53
53
|
if (args[0]) {
|
|
54
54
|
log_1.Log.error(`Subcommand ${args[0]} not found.`);
|
|
@@ -8,7 +8,7 @@ const args_1 = require("../../args");
|
|
|
8
8
|
const get_gcp_region_1 = require("../../get-gcp-region");
|
|
9
9
|
const log_1 = require("../../log");
|
|
10
10
|
exports.SITES_LS_SUBCOMMAND = 'ls';
|
|
11
|
-
const sitesLsSubcommand = async () => {
|
|
11
|
+
const sitesLsSubcommand = async (logLevel) => {
|
|
12
12
|
// check if --allRegions flag is provided
|
|
13
13
|
// if so, list all sites
|
|
14
14
|
// else, list only the sites that are in the current project
|
|
@@ -16,7 +16,7 @@ const sitesLsSubcommand = async () => {
|
|
|
16
16
|
const region = allRegions ? 'all regions' : (0, get_gcp_region_1.getGcpRegion)();
|
|
17
17
|
const { sites, buckets } = await (0, get_sites_1.getSites)(region);
|
|
18
18
|
if (buckets.length > 1 && !cli_1.CliInternals.quietFlagProvided() && !allRegions) {
|
|
19
|
-
log_1.Log.warn(`Warning: You have more than one Remotion Cloud Storage bucket in ${region}, but only one is needed. This can lead to conflicts. Remove all but one of them.`);
|
|
19
|
+
log_1.Log.warn({ indent: false, logLevel }, `Warning: You have more than one Remotion Cloud Storage bucket in ${region}, but only one is needed. This can lead to conflicts. Remove all but one of them.`);
|
|
20
20
|
}
|
|
21
21
|
const sitesPluralized = sites.length === 1 ? 'site' : 'sites';
|
|
22
22
|
if (!cli_1.CliInternals.quietFlagProvided()) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
1
2
|
export declare const STILL_COMMAND = "still";
|
|
2
|
-
export declare const stillCommand: (args: string[], remotionRoot: string) => Promise<void>;
|
|
3
|
+
export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
|
|
@@ -12,13 +12,14 @@ const cloudrun_crash_logs_1 = require("../helpers/cloudrun-crash-logs");
|
|
|
12
12
|
const log_1 = require("../log");
|
|
13
13
|
const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
|
|
14
14
|
exports.STILL_COMMAND = 'still';
|
|
15
|
-
const stillCommand = async (args, remotionRoot) => {
|
|
15
|
+
const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
16
16
|
var _a, _b;
|
|
17
|
-
const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args);
|
|
18
|
-
const { chromiumOptions, envVariables, inputProps, puppeteerTimeout, jpegQuality, stillFrame, scale, height, width, browserExecutable, port,
|
|
17
|
+
const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(exports.STILL_COMMAND, args, logLevel);
|
|
18
|
+
const { chromiumOptions, envVariables, inputProps, puppeteerTimeout, jpegQuality, stillFrame, scale, height, width, browserExecutable, port, offthreadVideoCacheSizeInBytes, } = await cli_1.CliInternals.getCliOptions({
|
|
19
19
|
type: 'still',
|
|
20
20
|
isLambda: true,
|
|
21
21
|
remotionRoot,
|
|
22
|
+
logLevel,
|
|
22
23
|
});
|
|
23
24
|
let composition = args[1];
|
|
24
25
|
if (!composition) {
|
|
@@ -68,7 +69,7 @@ const stillCommand = async (args, remotionRoot) => {
|
|
|
68
69
|
fromUi: null,
|
|
69
70
|
configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _b !== void 0 ? _b : null,
|
|
70
71
|
});
|
|
71
|
-
log_1.Log.verbose(`Image format: (${imageFormat}), ${imageFormatReason}`);
|
|
72
|
+
log_1.Log.verbose({ indent: false, logLevel }, `Image format: (${imageFormat}), ${imageFormatReason}`);
|
|
72
73
|
// Todo: Check cloudRunUrl is valid, as the error message is obtuse
|
|
73
74
|
cli_1.CliInternals.Log.info(cli_1.CliInternals.chalk.gray(`
|
|
74
75
|
Cloud Run Service URL = ${cloudRunUrl}
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LogLevel } from '@remotion/renderer';
|
|
2
|
+
export declare const executeCommand: (args: string[], remotionRoot: string, logLevel: LogLevel) => Promise<void>;
|
package/dist/cli/index.js
CHANGED
|
@@ -14,22 +14,22 @@ const still_1 = require("./commands/still");
|
|
|
14
14
|
const help_1 = require("./help");
|
|
15
15
|
const quit_1 = require("./helpers/quit");
|
|
16
16
|
const log_1 = require("./log");
|
|
17
|
-
const matchCommand = (args, remotionRoot) => {
|
|
17
|
+
const matchCommand = (args, remotionRoot, logLevel) => {
|
|
18
18
|
if (args_1.parsedCloudrunCli.help || args.length === 0 || args[0] === 'help') {
|
|
19
19
|
(0, help_1.printHelp)();
|
|
20
20
|
(0, quit_1.quit)(0);
|
|
21
21
|
}
|
|
22
22
|
if (args[0] === render_1.RENDER_COMMAND) {
|
|
23
|
-
return (0, render_1.renderCommand)(args.slice(1), remotionRoot);
|
|
23
|
+
return (0, render_1.renderCommand)(args.slice(1), remotionRoot, logLevel);
|
|
24
24
|
}
|
|
25
25
|
if (args[0] === still_1.STILL_COMMAND) {
|
|
26
|
-
return (0, still_1.stillCommand)(args.slice(1), remotionRoot);
|
|
26
|
+
return (0, still_1.stillCommand)(args.slice(1), remotionRoot, logLevel);
|
|
27
27
|
}
|
|
28
28
|
if (args[0] === services_1.SERVICES_COMMAND) {
|
|
29
29
|
return (0, services_1.servicesCommand)(args.slice(1));
|
|
30
30
|
}
|
|
31
31
|
if (args[0] === sites_1.SITES_COMMAND) {
|
|
32
|
-
return (0, sites_1.sitesCommand)(args.slice(1), remotionRoot);
|
|
32
|
+
return (0, sites_1.sitesCommand)(args.slice(1), remotionRoot, logLevel);
|
|
33
33
|
}
|
|
34
34
|
if (args[0] === regions_1.REGIONS_COMMAND) {
|
|
35
35
|
return (0, regions_1.regionsCommand)();
|
|
@@ -45,10 +45,10 @@ const matchCommand = (args, remotionRoot) => {
|
|
|
45
45
|
(0, help_1.printHelp)();
|
|
46
46
|
(0, quit_1.quit)(1);
|
|
47
47
|
};
|
|
48
|
-
const executeCommand = async (args, remotionRoot) => {
|
|
48
|
+
const executeCommand = async (args, remotionRoot, logLevel) => {
|
|
49
49
|
var _a, _b;
|
|
50
50
|
try {
|
|
51
|
-
await matchCommand(args, remotionRoot);
|
|
51
|
+
await matchCommand(args, remotionRoot, logLevel);
|
|
52
52
|
}
|
|
53
53
|
catch (err) {
|
|
54
54
|
const error = err;
|
package/dist/cli/log.d.ts
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
|
-
verbose: (
|
|
3
|
-
verboseAdvanced: (options: {
|
|
4
|
-
indent: boolean;
|
|
5
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
6
|
-
} & {
|
|
2
|
+
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
7
3
|
tag?: string | undefined;
|
|
8
4
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
9
5
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
10
|
-
infoAdvanced: (options:
|
|
11
|
-
|
|
12
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
13
|
-
}, message?: any, ...optionalParams: any[]) => void;
|
|
14
|
-
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
15
|
-
warnAdvanced: (options: {
|
|
16
|
-
indent: boolean;
|
|
17
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
18
|
-
}, message?: any, ...optionalParams: any[]) => void;
|
|
6
|
+
infoAdvanced: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void;
|
|
7
|
+
warn: (options: import("@remotion/renderer").LogOptions, message?: any, ...optionalParams: any[]) => void;
|
|
19
8
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
|
-
errorAdvanced: (options: {
|
|
21
|
-
indent: boolean;
|
|
22
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
23
|
-
} & {
|
|
9
|
+
errorAdvanced: (options: import("@remotion/renderer").LogOptions & {
|
|
24
10
|
tag?: string | undefined;
|
|
25
11
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
26
12
|
};
|
|
@@ -24,7 +24,7 @@ const getCompositionFromBody = async (body) => {
|
|
|
24
24
|
offthreadVideoCacheSizeInBytes: body.offthreadVideoCacheSizeInBytes,
|
|
25
25
|
});
|
|
26
26
|
if (propsSize > 10000000) {
|
|
27
|
-
renderer_1.RenderInternals.Log.warn(`The props of your composition are large (${propsSize} bytes). This may cause slowdown.`);
|
|
27
|
+
renderer_1.RenderInternals.Log.warn({ indent: false, logLevel: body.logLevel }, `The props of your composition are large (${propsSize} bytes). This may cause slowdown.`);
|
|
28
28
|
}
|
|
29
29
|
return metadata;
|
|
30
30
|
};
|
|
@@ -53,33 +53,33 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
53
53
|
colorSpace: z.ZodEnum<["default", "bt709"]>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
serveUrl: string;
|
|
56
|
-
envVariables: Record<string, string>;
|
|
57
|
-
jpegQuality: number;
|
|
58
|
-
scale: number;
|
|
59
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
60
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
61
56
|
type: "media";
|
|
62
57
|
composition: string;
|
|
63
|
-
imageFormat: "png" | "jpeg" | "none";
|
|
64
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
65
58
|
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;
|
|
66
64
|
crf: number | null;
|
|
67
|
-
frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
|
|
68
65
|
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
66
|
+
imageFormat: "png" | "jpeg" | "none";
|
|
67
|
+
scale: number;
|
|
69
68
|
proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | null;
|
|
70
|
-
x264Preset: "
|
|
69
|
+
x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
71
70
|
everyNthFrame: number;
|
|
72
71
|
numberOfGifLoops: number | null;
|
|
72
|
+
frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
|
|
73
|
+
envVariables: Record<string, string>;
|
|
73
74
|
muted: boolean;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
colorSpace: "default" | "bt709";
|
|
78
|
-
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
75
|
+
outputBucket: string;
|
|
76
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
77
|
+
delayRenderTimeoutInMilliseconds: number;
|
|
79
78
|
concurrency: string | number | null;
|
|
79
|
+
enforceAudioTrack: boolean;
|
|
80
80
|
preferLossless: boolean;
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
82
|
+
colorSpace: "default" | "bt709";
|
|
83
83
|
forceHeight?: number | null | undefined;
|
|
84
84
|
forceWidth?: number | null | undefined;
|
|
85
85
|
chromiumOptions?: {
|
|
@@ -93,33 +93,33 @@ export declare const CloudRunPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
93
93
|
privacy?: "public" | "private" | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
serveUrl: string;
|
|
96
|
-
envVariables: Record<string, string>;
|
|
97
|
-
jpegQuality: number;
|
|
98
|
-
scale: number;
|
|
99
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
100
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
101
96
|
type: "media";
|
|
102
97
|
composition: string;
|
|
103
|
-
imageFormat: "png" | "jpeg" | "none";
|
|
104
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
105
98
|
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;
|
|
106
104
|
crf: number | null;
|
|
107
|
-
frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
|
|
108
105
|
pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
106
|
+
imageFormat: "png" | "jpeg" | "none";
|
|
107
|
+
scale: number;
|
|
109
108
|
proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | null;
|
|
110
|
-
x264Preset: "
|
|
109
|
+
x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
111
110
|
everyNthFrame: number;
|
|
112
111
|
numberOfGifLoops: number | null;
|
|
112
|
+
frameRange: ((number | [number, number]) & (number | [number, number] | undefined)) | null;
|
|
113
|
+
envVariables: Record<string, string>;
|
|
113
114
|
muted: boolean;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
colorSpace: "default" | "bt709";
|
|
118
|
-
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
115
|
+
outputBucket: string;
|
|
116
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
117
|
+
delayRenderTimeoutInMilliseconds: number;
|
|
119
118
|
concurrency: string | number | null;
|
|
119
|
+
enforceAudioTrack: boolean;
|
|
120
120
|
preferLossless: boolean;
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
122
|
+
colorSpace: "default" | "bt709";
|
|
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
|
-
privacy: "public" | "private";
|
|
173
172
|
serveUrl: string;
|
|
174
|
-
envVariables: Record<string, string>;
|
|
175
|
-
scale: number;
|
|
176
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
177
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
178
173
|
type: "still";
|
|
179
174
|
composition: string;
|
|
180
|
-
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
181
|
-
frame: number;
|
|
182
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
183
175
|
serializedInputPropsWithCustomSchema: string;
|
|
176
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
177
|
+
scale: number;
|
|
178
|
+
envVariables: Record<string, string>;
|
|
184
179
|
outputBucket: string;
|
|
180
|
+
privacy: "public" | "private";
|
|
181
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
182
|
+
delayRenderTimeoutInMilliseconds: number;
|
|
183
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
184
|
+
frame: number;
|
|
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
|
-
privacy: "public" | "private";
|
|
198
197
|
serveUrl: string;
|
|
199
|
-
envVariables: Record<string, string>;
|
|
200
|
-
scale: number;
|
|
201
|
-
logLevel: "verbose" | "info" | "warn" | "error";
|
|
202
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
203
198
|
type: "still";
|
|
204
199
|
composition: string;
|
|
205
|
-
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
206
|
-
frame: number;
|
|
207
|
-
delayRenderTimeoutInMilliseconds: number;
|
|
208
200
|
serializedInputPropsWithCustomSchema: string;
|
|
201
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
202
|
+
scale: number;
|
|
203
|
+
envVariables: Record<string, string>;
|
|
209
204
|
outputBucket: string;
|
|
205
|
+
privacy: "public" | "private";
|
|
206
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
207
|
+
delayRenderTimeoutInMilliseconds: number;
|
|
208
|
+
offthreadVideoCacheSizeInBytes: number | null;
|
|
209
|
+
frame: number;
|
|
210
210
|
forceHeight?: number | null | undefined;
|
|
211
211
|
forceWidth?: number | null | undefined;
|
|
212
212
|
jpegQuality?: number | undefined;
|
|
@@ -225,13 +225,13 @@ declare const renderFailResponsePayload: z.ZodObject<{
|
|
|
225
225
|
name: z.ZodString;
|
|
226
226
|
stack: z.ZodString;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
type: "error";
|
|
229
228
|
message: string;
|
|
229
|
+
type: "error";
|
|
230
230
|
name: string;
|
|
231
231
|
stack: string;
|
|
232
232
|
}, {
|
|
233
|
-
type: "error";
|
|
234
233
|
message: string;
|
|
234
|
+
type: "error";
|
|
235
235
|
name: string;
|
|
236
236
|
stack: string;
|
|
237
237
|
}>;
|
|
@@ -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
|
-
|
|
247
|
+
bucketName: string;
|
|
248
|
+
size: number;
|
|
248
249
|
type: "success";
|
|
250
|
+
privacy: "public-read" | "project-private";
|
|
249
251
|
cloudStorageUri: string;
|
|
250
|
-
size: number;
|
|
251
|
-
bucketName: string;
|
|
252
252
|
renderId: string;
|
|
253
253
|
publicUrl?: string | null | undefined;
|
|
254
254
|
}, {
|
|
255
|
-
|
|
255
|
+
bucketName: string;
|
|
256
|
+
size: number;
|
|
256
257
|
type: "success";
|
|
258
|
+
privacy: "public-read" | "project-private";
|
|
257
259
|
cloudStorageUri: string;
|
|
258
|
-
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
|
-
|
|
272
|
+
bucketName: string;
|
|
273
|
+
size: number;
|
|
273
274
|
type: "success";
|
|
275
|
+
privacy: "public-read" | "project-private";
|
|
274
276
|
cloudStorageUri: string;
|
|
275
|
-
size: number;
|
|
276
|
-
bucketName: string;
|
|
277
277
|
renderId: string;
|
|
278
278
|
publicUrl?: string | null | undefined;
|
|
279
279
|
}, {
|
|
280
|
-
|
|
280
|
+
bucketName: string;
|
|
281
|
+
size: number;
|
|
281
282
|
type: "success";
|
|
283
|
+
privacy: "public-read" | "project-private";
|
|
282
284
|
cloudStorageUri: string;
|
|
283
|
-
size: number;
|
|
284
|
-
bucketName: string;
|
|
285
285
|
renderId: string;
|
|
286
286
|
publicUrl?: string | null | undefined;
|
|
287
287
|
}>;
|
|
@@ -293,15 +293,15 @@ declare const cloudRunCrashResponse: z.ZodObject<{
|
|
|
293
293
|
requestCrashTime: z.ZodString;
|
|
294
294
|
requestElapsedTimeInSeconds: z.ZodNumber;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
type: "crash";
|
|
297
296
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
297
|
+
type: "crash";
|
|
298
298
|
cloudRunEndpoint: string;
|
|
299
299
|
requestStartTime: string;
|
|
300
300
|
requestCrashTime: string;
|
|
301
301
|
requestElapsedTimeInSeconds: number;
|
|
302
302
|
}, {
|
|
303
|
-
type: "crash";
|
|
304
303
|
message: "Service crashed without sending a response. Check the logs in GCP console.";
|
|
304
|
+
type: "crash";
|
|
305
305
|
cloudRunEndpoint: string;
|
|
306
306
|
requestStartTime: string;
|
|
307
307
|
requestCrashTime: string;
|
|
@@ -15,9 +15,9 @@ const renderStillSingleThread = async (body, res) => {
|
|
|
15
15
|
}
|
|
16
16
|
const renderId = (0, random_hash_1.randomHash)({ randomInTests: true });
|
|
17
17
|
try {
|
|
18
|
-
log_1.Log.verbose('Rendering still frame', body);
|
|
18
|
+
log_1.Log.verbose({ indent: false, logLevel: body.logLevel }, 'Rendering still frame', body);
|
|
19
19
|
const composition = await (0, get_composition_from_body_1.getCompositionFromBody)(body);
|
|
20
|
-
log_1.Log.verbose('Composition loaded', composition);
|
|
20
|
+
log_1.Log.verbose({ indent: false, logLevel: body.logLevel }, 'Composition loaded', composition);
|
|
21
21
|
const tempFilePath = '/tmp/still.png';
|
|
22
22
|
const actualChromiumOptions = {
|
|
23
23
|
...body.chromiumOptions,
|
package/dist/internals.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cloudrun",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.57",
|
|
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.
|
|
16
|
-
"@remotion/
|
|
17
|
-
"@remotion/
|
|
18
|
-
"remotion": "4.0.
|
|
15
|
+
"@remotion/bundler": "4.0.57",
|
|
16
|
+
"@remotion/renderer": "4.0.57",
|
|
17
|
+
"@remotion/cli": "4.0.57",
|
|
18
|
+
"remotion": "4.0.57"
|
|
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.
|
|
29
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.57"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
"./package.json": "./package.json",
|