@remotion/renderer 4.0.31 → 4.0.32
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/client.d.ts +39 -24
- package/dist/client.js +4 -0
- package/dist/index.d.ts +20 -22
- package/dist/options/delete-after.d.ts +8 -0
- package/dist/options/delete-after.js +14 -0
- package/dist/options/folder-expiry.d.ts +8 -0
- package/dist/options/folder-expiry.js +14 -0
- package/dist/options/render-expiry-days.d.ts +8 -0
- package/dist/options/render-expiry-days.js +14 -0
- package/dist/select-composition.d.ts +4 -0
- package/dist/select-composition.js +3 -4
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BrowserSafeApis: {
|
|
3
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
2
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
3
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
5
4
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
7
|
-
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
8
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
5
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
6
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
|
|
7
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
9
8
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
10
9
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
11
10
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
@@ -79,10 +78,10 @@ export declare const BrowserSafeApis: {
|
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
|
-
|
|
81
|
+
mp3: {
|
|
83
82
|
default: import("./file-extensions").FileExtension;
|
|
84
83
|
forAudioCodec: {
|
|
85
|
-
|
|
84
|
+
mp3: {
|
|
86
85
|
possible: import("./file-extensions").FileExtension[];
|
|
87
86
|
default: import("./file-extensions").FileExtension;
|
|
88
87
|
};
|
|
@@ -92,10 +91,10 @@ export declare const BrowserSafeApis: {
|
|
|
92
91
|
};
|
|
93
92
|
};
|
|
94
93
|
};
|
|
95
|
-
|
|
94
|
+
aac: {
|
|
96
95
|
default: import("./file-extensions").FileExtension;
|
|
97
96
|
forAudioCodec: {
|
|
98
|
-
|
|
97
|
+
aac: {
|
|
99
98
|
possible: import("./file-extensions").FileExtension[];
|
|
100
99
|
default: import("./file-extensions").FileExtension;
|
|
101
100
|
};
|
|
@@ -105,22 +104,22 @@ export declare const BrowserSafeApis: {
|
|
|
105
104
|
};
|
|
106
105
|
};
|
|
107
106
|
};
|
|
108
|
-
|
|
107
|
+
wav: {
|
|
109
108
|
default: import("./file-extensions").FileExtension;
|
|
110
109
|
forAudioCodec: {
|
|
111
|
-
aac: {
|
|
112
|
-
possible: import("./file-extensions").FileExtension[];
|
|
113
|
-
default: import("./file-extensions").FileExtension;
|
|
114
|
-
};
|
|
115
110
|
"pcm-16": {
|
|
116
111
|
possible: import("./file-extensions").FileExtension[];
|
|
117
112
|
default: import("./file-extensions").FileExtension;
|
|
118
113
|
};
|
|
119
114
|
};
|
|
120
115
|
};
|
|
121
|
-
|
|
116
|
+
prores: {
|
|
122
117
|
default: import("./file-extensions").FileExtension;
|
|
123
118
|
forAudioCodec: {
|
|
119
|
+
aac: {
|
|
120
|
+
possible: import("./file-extensions").FileExtension[];
|
|
121
|
+
default: import("./file-extensions").FileExtension;
|
|
122
|
+
};
|
|
124
123
|
"pcm-16": {
|
|
125
124
|
possible: import("./file-extensions").FileExtension[];
|
|
126
125
|
default: import("./file-extensions").FileExtension;
|
|
@@ -162,10 +161,6 @@ export declare const BrowserSafeApis: {
|
|
|
162
161
|
compressed: "pcm-16" | "opus" | null;
|
|
163
162
|
lossless: "pcm-16" | "opus" | null;
|
|
164
163
|
};
|
|
165
|
-
prores: {
|
|
166
|
-
compressed: "aac" | "pcm-16" | null;
|
|
167
|
-
lossless: "aac" | "pcm-16" | null;
|
|
168
|
-
};
|
|
169
164
|
mp3: {
|
|
170
165
|
compressed: "mp3" | "pcm-16" | null;
|
|
171
166
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -178,6 +173,10 @@ export declare const BrowserSafeApis: {
|
|
|
178
173
|
compressed: "pcm-16" | null;
|
|
179
174
|
lossless: "pcm-16" | null;
|
|
180
175
|
};
|
|
176
|
+
prores: {
|
|
177
|
+
compressed: "aac" | "pcm-16" | null;
|
|
178
|
+
lossless: "aac" | "pcm-16" | null;
|
|
179
|
+
};
|
|
181
180
|
"h264-mkv": {
|
|
182
181
|
compressed: "mp3" | "pcm-16" | null;
|
|
183
182
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -187,8 +186,8 @@ export declare const BrowserSafeApis: {
|
|
|
187
186
|
lossless: null;
|
|
188
187
|
};
|
|
189
188
|
};
|
|
190
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
191
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
189
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
|
|
190
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
192
191
|
codec: T_1;
|
|
193
192
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
194
193
|
extension: string;
|
|
@@ -281,7 +280,23 @@ export declare const BrowserSafeApis: {
|
|
|
281
280
|
description: () => JSX.Element;
|
|
282
281
|
docLink: string;
|
|
283
282
|
ssrName: string;
|
|
284
|
-
type: "
|
|
283
|
+
type: "default" | "bt709";
|
|
284
|
+
};
|
|
285
|
+
deleteAfterOption: {
|
|
286
|
+
name: string;
|
|
287
|
+
cliFlag: "delete-after";
|
|
288
|
+
description: () => JSX.Element;
|
|
289
|
+
ssrName: "deleteAfter";
|
|
290
|
+
docLink: string;
|
|
291
|
+
type: string | null;
|
|
292
|
+
};
|
|
293
|
+
folderExpiryOption: {
|
|
294
|
+
name: string;
|
|
295
|
+
cliFlag: "enable-folder-expiry";
|
|
296
|
+
description: () => JSX.Element;
|
|
297
|
+
ssrName: "enableFolderExpiry";
|
|
298
|
+
docLink: string;
|
|
299
|
+
type: boolean | null;
|
|
285
300
|
};
|
|
286
301
|
};
|
|
287
302
|
validColorSpaces: readonly ["default", "bt709"];
|
|
@@ -367,6 +382,6 @@ export declare const BrowserSafeApis: {
|
|
|
367
382
|
type: number | null;
|
|
368
383
|
}];
|
|
369
384
|
};
|
|
370
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
371
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
385
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
386
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
372
387
|
};
|
package/dist/client.js
CHANGED
|
@@ -11,7 +11,9 @@ const is_audio_codec_1 = require("./is-audio-codec");
|
|
|
11
11
|
const audio_bitrate_1 = require("./options/audio-bitrate");
|
|
12
12
|
const color_space_1 = require("./options/color-space");
|
|
13
13
|
const crf_2 = require("./options/crf");
|
|
14
|
+
const delete_after_1 = require("./options/delete-after");
|
|
14
15
|
const enforce_audio_1 = require("./options/enforce-audio");
|
|
16
|
+
const folder_expiry_1 = require("./options/folder-expiry");
|
|
15
17
|
const jpeg_quality_1 = require("./options/jpeg-quality");
|
|
16
18
|
const mute_1 = require("./options/mute");
|
|
17
19
|
const offthreadvideo_cache_size_1 = require("./options/offthreadvideo-cache-size");
|
|
@@ -52,6 +54,8 @@ exports.BrowserSafeApis = {
|
|
|
52
54
|
offthreadVideoCacheSizeInBytesOption: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
53
55
|
webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
|
|
54
56
|
colorSpaceOption: color_space_1.colorSpaceOption,
|
|
57
|
+
deleteAfterOption: delete_after_1.deleteAfterOption,
|
|
58
|
+
folderExpiryOption: folder_expiry_1.folderExpiryOption,
|
|
55
59
|
},
|
|
56
60
|
validColorSpaces: color_space_1.validColorSpaces,
|
|
57
61
|
optionsMap: options_map_1.optionsMap,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import execa from 'execa';
|
|
4
2
|
import { HeadlessBrowser } from './browser/Browser';
|
|
5
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -60,9 +58,9 @@ export declare const RenderInternals: {
|
|
|
60
58
|
width: number;
|
|
61
59
|
height: number;
|
|
62
60
|
scale: number;
|
|
63
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
61
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
64
62
|
}) => void;
|
|
65
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
63
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
66
64
|
tmpDir: (str: string) => string;
|
|
67
65
|
deleteDirectory: (directory: string) => void;
|
|
68
66
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -112,7 +110,7 @@ export declare const RenderInternals: {
|
|
|
112
110
|
};
|
|
113
111
|
registerErrorSymbolicationLock: () => number;
|
|
114
112
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
115
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
113
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
116
114
|
mimeContentType: typeof mimeContentType;
|
|
117
115
|
mimeLookup: typeof mimeLookup;
|
|
118
116
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -129,8 +127,8 @@ export declare const RenderInternals: {
|
|
|
129
127
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
130
128
|
validateJpegQuality: (q: number | undefined) => void;
|
|
131
129
|
DEFAULT_TIMEOUT: number;
|
|
132
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
133
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
130
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
131
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
134
132
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
135
133
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
136
134
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -147,7 +145,7 @@ export declare const RenderInternals: {
|
|
|
147
145
|
output: string;
|
|
148
146
|
onProgress: (p: number) => void;
|
|
149
147
|
numberOfFrames: number;
|
|
150
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
151
149
|
fps: number;
|
|
152
150
|
numberOfGifLoops: number | null;
|
|
153
151
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
@@ -155,7 +153,7 @@ export declare const RenderInternals: {
|
|
|
155
153
|
getMinConcurrency: () => number;
|
|
156
154
|
getMaxConcurrency: () => any;
|
|
157
155
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
158
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
156
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
159
157
|
preferLossless: boolean;
|
|
160
158
|
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
161
159
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
@@ -216,10 +214,10 @@ export declare const RenderInternals: {
|
|
|
216
214
|
};
|
|
217
215
|
};
|
|
218
216
|
};
|
|
219
|
-
|
|
217
|
+
mp3: {
|
|
220
218
|
default: import("./file-extensions").FileExtension;
|
|
221
219
|
forAudioCodec: {
|
|
222
|
-
|
|
220
|
+
mp3: {
|
|
223
221
|
possible: import("./file-extensions").FileExtension[];
|
|
224
222
|
default: import("./file-extensions").FileExtension;
|
|
225
223
|
};
|
|
@@ -229,10 +227,10 @@ export declare const RenderInternals: {
|
|
|
229
227
|
};
|
|
230
228
|
};
|
|
231
229
|
};
|
|
232
|
-
|
|
230
|
+
aac: {
|
|
233
231
|
default: import("./file-extensions").FileExtension;
|
|
234
232
|
forAudioCodec: {
|
|
235
|
-
|
|
233
|
+
aac: {
|
|
236
234
|
possible: import("./file-extensions").FileExtension[];
|
|
237
235
|
default: import("./file-extensions").FileExtension;
|
|
238
236
|
};
|
|
@@ -242,22 +240,22 @@ export declare const RenderInternals: {
|
|
|
242
240
|
};
|
|
243
241
|
};
|
|
244
242
|
};
|
|
245
|
-
|
|
243
|
+
wav: {
|
|
246
244
|
default: import("./file-extensions").FileExtension;
|
|
247
245
|
forAudioCodec: {
|
|
248
|
-
aac: {
|
|
249
|
-
possible: import("./file-extensions").FileExtension[];
|
|
250
|
-
default: import("./file-extensions").FileExtension;
|
|
251
|
-
};
|
|
252
246
|
"pcm-16": {
|
|
253
247
|
possible: import("./file-extensions").FileExtension[];
|
|
254
248
|
default: import("./file-extensions").FileExtension;
|
|
255
249
|
};
|
|
256
250
|
};
|
|
257
251
|
};
|
|
258
|
-
|
|
252
|
+
prores: {
|
|
259
253
|
default: import("./file-extensions").FileExtension;
|
|
260
254
|
forAudioCodec: {
|
|
255
|
+
aac: {
|
|
256
|
+
possible: import("./file-extensions").FileExtension[];
|
|
257
|
+
default: import("./file-extensions").FileExtension;
|
|
258
|
+
};
|
|
261
259
|
"pcm-16": {
|
|
262
260
|
possible: import("./file-extensions").FileExtension[];
|
|
263
261
|
default: import("./file-extensions").FileExtension;
|
|
@@ -294,8 +292,8 @@ export declare const RenderInternals: {
|
|
|
294
292
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
295
293
|
readonly wav: readonly ["pcm-16"];
|
|
296
294
|
};
|
|
297
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
298
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
295
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
|
|
296
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
|
|
299
297
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
|
|
300
298
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
301
299
|
dynamicLibraryPathOptions: () => {
|
|
@@ -313,7 +311,7 @@ export declare const RenderInternals: {
|
|
|
313
311
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
314
312
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
315
313
|
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
316
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
314
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
317
315
|
DEFAULT_JPEG_QUALITY: number;
|
|
318
316
|
chalk: {
|
|
319
317
|
enabled: () => boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAfterOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.deleteAfterOption = {
|
|
6
|
+
name: 'Lambda render expiration',
|
|
7
|
+
cliFlag: 'delete-after',
|
|
8
|
+
description: () => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Automatically delete the render after a certain period. Accepted values are ", (0, jsx_runtime_1.jsx)("code", { children: "1-day" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "3-days" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "7-days" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "30-days" }), ".", (0, jsx_runtime_1.jsx)("br", {}), " For this to work, your bucket needs to have", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "lifecycles enabled" }), "."] }));
|
|
10
|
+
},
|
|
11
|
+
ssrName: 'deleteAfter',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
|
|
13
|
+
type: '',
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.folderExpiryOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.folderExpiryOption = {
|
|
6
|
+
name: 'Lambda render expiration',
|
|
7
|
+
cliFlag: 'enable-folder-expiry',
|
|
8
|
+
description: () => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is", ' ', (0, jsx_runtime_1.jsx)("code", { children: "null" }), ", which does not change any lifecycle policies of the S3 bucket. See: ", (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "Lambda autodelete" }), "."] }));
|
|
10
|
+
},
|
|
11
|
+
ssrName: 'enableFolderExpiry',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
|
|
13
|
+
type: false,
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAfterOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.deleteAfterOption = {
|
|
6
|
+
name: 'Render expiry days',
|
|
7
|
+
cliFlag: 'delete-after',
|
|
8
|
+
description: () => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Automatically delete the render after a certain period. Accepted values are ", (0, jsx_runtime_1.jsx)("code", { children: "1-day" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "3-days" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "7-days" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "30-days" }), ".", (0, jsx_runtime_1.jsx)("br", {}), " For this to work, your bucket needs to have", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "lifecycles enabled" }), "."] }));
|
|
10
|
+
},
|
|
11
|
+
ssrName: 'deleteAfter',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/autodelete',
|
|
13
|
+
type: 0,
|
|
14
|
+
};
|
|
@@ -31,7 +31,11 @@ export type SelectCompositionOptions = {
|
|
|
31
31
|
timeoutInMilliseconds?: number;
|
|
32
32
|
chromiumOptions?: ChromiumOptions;
|
|
33
33
|
port?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `logLevel` instead.
|
|
36
|
+
*/
|
|
34
37
|
verbose?: boolean;
|
|
38
|
+
logLevel?: LogLevel;
|
|
35
39
|
offthreadVideoCacheSizeInBytes?: number | null;
|
|
36
40
|
serveUrl: string;
|
|
37
41
|
id: string;
|
|
@@ -156,8 +156,7 @@ exports.internalSelectComposition = (0, wrap_with_error_handling_1.wrapWithError
|
|
|
156
156
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/select-composition)
|
|
157
157
|
*/
|
|
158
158
|
const selectComposition = async (options) => {
|
|
159
|
-
|
|
160
|
-
const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, } = options;
|
|
159
|
+
const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, logLevel, offthreadVideoCacheSizeInBytes, } = options;
|
|
161
160
|
const data = await (0, exports.internalSelectComposition)({
|
|
162
161
|
id,
|
|
163
162
|
serveUrl,
|
|
@@ -173,10 +172,10 @@ const selectComposition = async (options) => {
|
|
|
173
172
|
port: port !== null && port !== void 0 ? port : null,
|
|
174
173
|
puppeteerInstance,
|
|
175
174
|
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT,
|
|
176
|
-
logLevel: verbose ? 'verbose' : 'info',
|
|
175
|
+
logLevel: (logLevel !== null && logLevel !== void 0 ? logLevel : verbose) ? 'verbose' : 'info',
|
|
177
176
|
indent: false,
|
|
178
177
|
server: undefined,
|
|
179
|
-
offthreadVideoCacheSizeInBytes:
|
|
178
|
+
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytes !== null && offthreadVideoCacheSizeInBytes !== void 0 ? offthreadVideoCacheSizeInBytes : null,
|
|
180
179
|
});
|
|
181
180
|
return data.metadata;
|
|
182
181
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.32"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"vitest": "0.31.1"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
44
|
-
"@remotion/compositor-
|
|
45
|
-
"@remotion/compositor-linux-arm64-
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-linux-
|
|
48
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
49
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.32",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.32",
|
|
45
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.32",
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.0.32",
|
|
47
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.32",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.32",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.32"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|