@remotion/renderer 4.0.213 → 4.0.215
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/assets/read-file.d.ts +0 -1
- package/dist/assets/truncate-utf8-bytes.js +1 -2
- package/dist/browser/BrowserRunner.d.ts +0 -1
- package/dist/browser/ExecutionContext.js +1 -1
- package/dist/browser/JSHandle.js +2 -2
- package/dist/browser/mitt/index.js +1 -1
- package/dist/browser/util.d.ts +0 -1
- package/dist/browser/util.js +13 -13
- package/dist/call-ffmpeg.d.ts +4 -5
- package/dist/client.d.ts +90 -90
- package/dist/compositor/compose.d.ts +1 -4
- package/dist/compositor/get-executable-path.d.ts +1 -1
- package/dist/compositor/get-executable-path.js +2 -2
- package/dist/get-extension-from-codec.d.ts +1 -1
- package/dist/get-silent-parts.d.ts +4 -4
- package/dist/image-format.d.ts +1 -1
- package/dist/index.d.ts +83 -85
- package/dist/mime-types.js +3 -3
- package/dist/offthread-video-server.d.ts +0 -1
- package/dist/options/audio-codec.d.ts +3 -3
- package/dist/options/color-space.d.ts +8 -4
- package/dist/options/gl.d.ts +2 -2
- package/dist/options/index.d.ts +18 -18
- package/dist/options/log-level.d.ts +2 -2
- package/dist/options/option.d.ts +0 -1
- package/dist/options/options-map.d.ts +61 -61
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/options/x264-preset.d.ts +2 -2
- package/dist/p-limit.d.ts +1 -1
- package/dist/pixel-format.d.ts +1 -1
- package/dist/port-config.d.ts +0 -9
- package/dist/provide-screenshot.d.ts +0 -1
- package/dist/puppeteer-evaluate.js +2 -3
- package/dist/puppeteer-screenshot.d.ts +0 -1
- package/dist/pure.d.ts +4 -4
- package/dist/render-frames.d.ts +0 -1
- package/dist/render-frames.js +1 -1
- package/dist/render-has-audio.d.ts +1 -1
- package/dist/render-media.d.ts +0 -1
- package/dist/render-media.js +1 -1
- package/dist/render-still.d.ts +0 -1
- package/dist/screenshot-dom-element.d.ts +0 -1
- package/dist/screenshot-task.d.ts +2 -3
- package/dist/serve-handler/index.d.ts +0 -1
- package/dist/serve-handler/range-parser.d.ts +2 -2
- package/dist/stitch-frames-to-video.d.ts +0 -1
- package/dist/take-frame-and-compose.d.ts +0 -1
- package/dist/take-frame-and-compose.js +1 -1
- package/dist/to-megabytes.js +1 -2
- package/dist/truthy.js +1 -2
- package/dist/validate-output-filename.d.ts +2 -1
- package/dist/ws/ws-types.d.ts +0 -1
- package/package.json +11 -11
- package/dist/browser/is-target-closed-err.d.ts +0 -1
- package/dist/browser/is-target-closed-err.js +0 -9
- package/dist/is-delay-render-error-with.retry.d.ts +0 -2
- package/dist/is-delay-render-error-with.retry.js +0 -37
- package/dist/streaming.d.ts +0 -11
- package/dist/streaming.js +0 -140
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import execa from 'execa';
|
|
4
2
|
import { HeadlessBrowser } from './browser/Browser';
|
|
5
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -50,13 +48,13 @@ export type { AudioCodec };
|
|
|
50
48
|
import type { AudioCodec } from './options/audio-codec';
|
|
51
49
|
import { toMegabytes } from './to-megabytes';
|
|
52
50
|
export declare const RenderInternals: {
|
|
53
|
-
resolveConcurrency: (userPreference:
|
|
51
|
+
resolveConcurrency: (userPreference: number | string | null) => number;
|
|
54
52
|
serveStatic: (path: string | null, options: {
|
|
55
53
|
port: number | null;
|
|
56
54
|
downloadMap: import("./assets/download-map").DownloadMap;
|
|
57
55
|
remotionRoot: string;
|
|
58
56
|
concurrency: number;
|
|
59
|
-
logLevel: "
|
|
57
|
+
logLevel: import("./log-level").LogLevel;
|
|
60
58
|
indent: boolean;
|
|
61
59
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
62
60
|
binariesDirectory: string | null;
|
|
@@ -70,10 +68,10 @@ export declare const RenderInternals: {
|
|
|
70
68
|
width: number;
|
|
71
69
|
height: number;
|
|
72
70
|
scale: number;
|
|
73
|
-
codec: "
|
|
71
|
+
codec: import("./codec").Codec;
|
|
74
72
|
wantsImageSequence: boolean;
|
|
75
73
|
}) => void;
|
|
76
|
-
getFileExtensionFromCodec: <T extends "
|
|
74
|
+
getFileExtensionFromCodec: <T extends import("./codec").Codec>(codec: T, audioCodec: AudioCodec | null) => import("./file-extensions").FileExtension;
|
|
77
75
|
tmpDir: (str: string) => string;
|
|
78
76
|
deleteDirectory: (directory: string) => void;
|
|
79
77
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -88,7 +86,7 @@ export declare const RenderInternals: {
|
|
|
88
86
|
downloaded: number;
|
|
89
87
|
totalSize: number | null;
|
|
90
88
|
}) => void) | undefined;
|
|
91
|
-
logLevel: "
|
|
89
|
+
logLevel: import("./log-level").LogLevel;
|
|
92
90
|
indent: boolean;
|
|
93
91
|
}, retries?: number, attempt?: number) => Promise<{
|
|
94
92
|
sizeInBytes: number;
|
|
@@ -111,26 +109,26 @@ export declare const RenderInternals: {
|
|
|
111
109
|
}>;
|
|
112
110
|
isPathInside: (thePath: string, potentialParent: string) => boolean;
|
|
113
111
|
execa: {
|
|
114
|
-
(file: string, arguments?: readonly string[]
|
|
115
|
-
(file: string, arguments?: readonly string[]
|
|
116
|
-
(file: string, options?: execa.Options
|
|
117
|
-
(file: string, options?: execa.Options<null>
|
|
118
|
-
sync(file: string, arguments?: readonly string[]
|
|
119
|
-
sync(file: string, arguments?: readonly string[]
|
|
120
|
-
sync(file: string, options?: execa.SyncOptions
|
|
121
|
-
sync(file: string, options?: execa.SyncOptions<null>
|
|
122
|
-
command(command: string, options?: execa.Options
|
|
123
|
-
command(command: string, options?: execa.Options<null>
|
|
124
|
-
commandSync(command: string, options?: execa.SyncOptions
|
|
125
|
-
commandSync(command: string, options?: execa.SyncOptions<null>
|
|
126
|
-
node(scriptPath: string, arguments?: readonly string[]
|
|
127
|
-
node(scriptPath: string, arguments?: readonly string[]
|
|
128
|
-
node(scriptPath: string, options?: execa.Options
|
|
129
|
-
node(scriptPath: string, options?: execa.Options<null>
|
|
112
|
+
(file: string, arguments?: readonly string[], options?: execa.Options): execa.ExecaChildProcess;
|
|
113
|
+
(file: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
114
|
+
(file: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
115
|
+
(file: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
116
|
+
sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
117
|
+
sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
118
|
+
sync(file: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
119
|
+
sync(file: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
120
|
+
command(command: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
121
|
+
command(command: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
122
|
+
commandSync(command: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
123
|
+
commandSync(command: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
124
|
+
node(scriptPath: string, arguments?: readonly string[], options?: execa.NodeOptions): execa.ExecaChildProcess;
|
|
125
|
+
node(scriptPath: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
126
|
+
node(scriptPath: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
127
|
+
node(scriptPath: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
130
128
|
};
|
|
131
129
|
registerErrorSymbolicationLock: () => number;
|
|
132
130
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
133
|
-
canUseParallelEncoding: (codec: "
|
|
131
|
+
canUseParallelEncoding: (codec: import("./codec").Codec) => boolean;
|
|
134
132
|
mimeContentType: typeof mimeContentType;
|
|
135
133
|
mimeLookup: typeof mimeLookup;
|
|
136
134
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -142,15 +140,15 @@ export declare const RenderInternals: {
|
|
|
142
140
|
DEFAULT_BROWSER: "chrome";
|
|
143
141
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
144
142
|
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
145
|
-
validateOpenGlRenderer: (option: unknown) => "
|
|
143
|
+
validateOpenGlRenderer: (option: unknown) => import("./options/gl").OpenGlRenderer | null;
|
|
146
144
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
147
145
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
148
146
|
validateJpegQuality: (q: unknown) => void;
|
|
149
147
|
DEFAULT_TIMEOUT: number;
|
|
150
148
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
151
|
-
isAudioCodec: (codec: "
|
|
149
|
+
isAudioCodec: (codec: import("./codec").Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
152
150
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
153
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
151
|
+
isEqualOrBelowLogLevel: (currentLevel: import("./log-level").LogLevel, level: import("./log-level").LogLevel) => boolean;
|
|
154
152
|
isValidLogLevel: (level: string) => boolean;
|
|
155
153
|
perf: typeof perf;
|
|
156
154
|
convertToPositiveFrameIndex: ({ frame, durationInFrames, }: {
|
|
@@ -165,13 +163,13 @@ export declare const RenderInternals: {
|
|
|
165
163
|
output: string;
|
|
166
164
|
onProgress: (p: number) => void;
|
|
167
165
|
numberOfFrames: number;
|
|
168
|
-
codec: "
|
|
166
|
+
codec: import("./codec").Codec;
|
|
169
167
|
fps: number;
|
|
170
168
|
numberOfGifLoops: number | null;
|
|
171
|
-
resolvedAudioCodec:
|
|
169
|
+
resolvedAudioCodec: AudioCodec | null;
|
|
172
170
|
audioBitrate: string | null;
|
|
173
171
|
indent: boolean;
|
|
174
|
-
logLevel: "
|
|
172
|
+
logLevel: import("./log-level").LogLevel;
|
|
175
173
|
chunkDurationInSeconds: number;
|
|
176
174
|
binariesDirectory: string | null;
|
|
177
175
|
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
@@ -182,9 +180,9 @@ export declare const RenderInternals: {
|
|
|
182
180
|
getMinConcurrency: () => number;
|
|
183
181
|
getMaxConcurrency: () => number;
|
|
184
182
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
185
|
-
codec: "
|
|
183
|
+
codec: import("./codec").Codec;
|
|
186
184
|
preferLossless: boolean;
|
|
187
|
-
}) =>
|
|
185
|
+
}) => AudioCodec | null;
|
|
188
186
|
defaultFileExtensionMap: {
|
|
189
187
|
h264: {
|
|
190
188
|
default: import("./file-extensions").FileExtension;
|
|
@@ -338,19 +336,19 @@ export declare const RenderInternals: {
|
|
|
338
336
|
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
339
337
|
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
340
338
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
341
|
-
type: "
|
|
339
|
+
type: "compositor" | "ffmpeg" | "ffprobe";
|
|
342
340
|
indent: boolean;
|
|
343
|
-
logLevel: "
|
|
341
|
+
logLevel: import("./log-level").LogLevel;
|
|
344
342
|
binariesDirectory: string | null;
|
|
345
343
|
}) => string;
|
|
346
344
|
callFf: ({ args, bin, indent, logLevel, options, binariesDirectory, cancelSignal, }: {
|
|
347
345
|
bin: "ffmpeg" | "ffprobe";
|
|
348
346
|
args: (string | null)[];
|
|
349
347
|
indent: boolean;
|
|
350
|
-
logLevel: "
|
|
348
|
+
logLevel: import("./log-level").LogLevel;
|
|
351
349
|
binariesDirectory: string | null;
|
|
352
350
|
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
353
|
-
options?: execa.Options<string
|
|
351
|
+
options?: execa.Options<string>;
|
|
354
352
|
}) => execa.ExecaChildProcess<string>;
|
|
355
353
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
356
354
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
@@ -363,10 +361,10 @@ export declare const RenderInternals: {
|
|
|
363
361
|
styles: Record<string, {
|
|
364
362
|
codes: [number, number];
|
|
365
363
|
name: string;
|
|
366
|
-
wrap?: (
|
|
364
|
+
wrap?: (input: string, newline: boolean) => string;
|
|
367
365
|
}>;
|
|
368
366
|
keys: Record<string, string[]>;
|
|
369
|
-
alias?: (
|
|
367
|
+
alias?: (name: string, col: string) => void;
|
|
370
368
|
} & {
|
|
371
369
|
reset: (str: string) => string;
|
|
372
370
|
bold: (str: string) => string;
|
|
@@ -409,13 +407,13 @@ export declare const RenderInternals: {
|
|
|
409
407
|
};
|
|
410
408
|
Log: {
|
|
411
409
|
verbose: (options: import("./logger").LogOptions & {
|
|
412
|
-
tag?: string
|
|
413
|
-
}, ...args:
|
|
414
|
-
info: (options: import("./logger").LogOptions, ...args:
|
|
415
|
-
warn: (options: import("./logger").LogOptions, ...args:
|
|
410
|
+
tag?: string;
|
|
411
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
412
|
+
info: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
413
|
+
warn: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => void;
|
|
416
414
|
error: (options: import("./logger").LogOptions & {
|
|
417
|
-
tag?: string
|
|
418
|
-
}, ...args:
|
|
415
|
+
tag?: string;
|
|
416
|
+
}, ...args: Parameters<typeof console.log>) => void;
|
|
419
417
|
};
|
|
420
418
|
INDENT_TOKEN: string;
|
|
421
419
|
isColorSupported: () => boolean;
|
|
@@ -425,7 +423,7 @@ export declare const RenderInternals: {
|
|
|
425
423
|
port: number | null;
|
|
426
424
|
remotionRoot: string;
|
|
427
425
|
concurrency: number;
|
|
428
|
-
logLevel: "
|
|
426
|
+
logLevel: import("./log-level").LogLevel;
|
|
429
427
|
indent: boolean;
|
|
430
428
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
431
429
|
binariesDirectory: string | null;
|
|
@@ -436,7 +434,7 @@ export declare const RenderInternals: {
|
|
|
436
434
|
port: number | null;
|
|
437
435
|
remotionRoot: string;
|
|
438
436
|
concurrency: number;
|
|
439
|
-
logLevel: "
|
|
437
|
+
logLevel: import("./log-level").LogLevel;
|
|
440
438
|
indent: boolean;
|
|
441
439
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
442
440
|
binariesDirectory: string | null;
|
|
@@ -453,13 +451,13 @@ export declare const RenderInternals: {
|
|
|
453
451
|
frame: number;
|
|
454
452
|
serializedInputPropsWithCustomSchema: string;
|
|
455
453
|
serializedResolvedPropsWithCustomSchema: string;
|
|
456
|
-
imageFormat: "
|
|
454
|
+
imageFormat: import("./image-format").StillImageFormat;
|
|
457
455
|
jpegQuality: number;
|
|
458
456
|
puppeteerInstance: HeadlessBrowser | null;
|
|
459
457
|
envVariables: Record<string, string>;
|
|
460
458
|
overwrite: boolean;
|
|
461
459
|
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
462
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
460
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
463
461
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
464
462
|
scale: number;
|
|
465
463
|
onDownload: import("./assets/download-and-map-assets-to-file").RenderMediaOnDownload | null;
|
|
@@ -513,11 +511,11 @@ export declare const RenderInternals: {
|
|
|
513
511
|
getValue: ({ commandLine }: {
|
|
514
512
|
commandLine: Record<string, unknown>;
|
|
515
513
|
}) => {
|
|
516
|
-
value: "
|
|
514
|
+
value: import("./log-level").LogLevel;
|
|
517
515
|
source: string;
|
|
518
516
|
};
|
|
519
|
-
setConfig: (newLogLevel: "
|
|
520
|
-
type: "
|
|
517
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
518
|
+
type: import("./log-level").LogLevel;
|
|
521
519
|
};
|
|
522
520
|
readonly timeoutInMilliseconds: {
|
|
523
521
|
name: string;
|
|
@@ -568,16 +566,16 @@ export declare const RenderInternals: {
|
|
|
568
566
|
forceDeviceScaleFactor: number | undefined;
|
|
569
567
|
viewport: import("./browser/PuppeteerViewport").Viewport | null;
|
|
570
568
|
indent: boolean;
|
|
571
|
-
browser: "
|
|
572
|
-
logLevel: "
|
|
569
|
+
browser: import("./browser").Browser;
|
|
570
|
+
logLevel: import("./log-level").LogLevel;
|
|
573
571
|
onBrowserDownload: import("./options/on-browser-download").OnBrowserDownload;
|
|
574
572
|
}) => Promise<HeadlessBrowser>;
|
|
575
573
|
internalSelectComposition: (options: {
|
|
576
574
|
serializedInputPropsWithCustomSchema: string;
|
|
577
575
|
envVariables: Record<string, string>;
|
|
578
576
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
579
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
580
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
577
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
578
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
581
579
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
582
580
|
port: number | null;
|
|
583
581
|
indent: boolean;
|
|
@@ -613,11 +611,11 @@ export declare const RenderInternals: {
|
|
|
613
611
|
getValue: ({ commandLine }: {
|
|
614
612
|
commandLine: Record<string, unknown>;
|
|
615
613
|
}) => {
|
|
616
|
-
value: "
|
|
614
|
+
value: import("./log-level").LogLevel;
|
|
617
615
|
source: string;
|
|
618
616
|
};
|
|
619
|
-
setConfig: (newLogLevel: "
|
|
620
|
-
type: "
|
|
617
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
618
|
+
type: import("./log-level").LogLevel;
|
|
621
619
|
};
|
|
622
620
|
readonly timeoutInMilliseconds: {
|
|
623
621
|
name: string;
|
|
@@ -667,8 +665,8 @@ export declare const RenderInternals: {
|
|
|
667
665
|
serializedInputPropsWithCustomSchema: string;
|
|
668
666
|
envVariables: Record<string, string>;
|
|
669
667
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
670
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
671
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
668
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
669
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
672
670
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
673
671
|
port: number | null;
|
|
674
672
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
@@ -702,11 +700,11 @@ export declare const RenderInternals: {
|
|
|
702
700
|
getValue: ({ commandLine }: {
|
|
703
701
|
commandLine: Record<string, unknown>;
|
|
704
702
|
}) => {
|
|
705
|
-
value: "
|
|
703
|
+
value: import("./log-level").LogLevel;
|
|
706
704
|
source: string;
|
|
707
705
|
};
|
|
708
|
-
setConfig: (newLogLevel: "
|
|
709
|
-
type: "
|
|
706
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
707
|
+
type: import("./log-level").LogLevel;
|
|
710
708
|
};
|
|
711
709
|
readonly timeoutInMilliseconds: {
|
|
712
710
|
name: string;
|
|
@@ -750,28 +748,28 @@ export declare const RenderInternals: {
|
|
|
750
748
|
};
|
|
751
749
|
}>) => Promise<import("remotion").VideoConfig[]>;
|
|
752
750
|
internalRenderFrames: (args_0: {
|
|
753
|
-
onStart: ((data: import("./types").OnStartData) => void)
|
|
754
|
-
onFrameUpdate: ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void)
|
|
751
|
+
onStart: null | ((data: import("./types").OnStartData) => void);
|
|
752
|
+
onFrameUpdate: null | ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void);
|
|
755
753
|
outputDir: string | null;
|
|
756
754
|
envVariables: Record<string, string>;
|
|
757
|
-
imageFormat: "
|
|
755
|
+
imageFormat: import("./image-format").VideoImageFormat;
|
|
758
756
|
jpegQuality: number;
|
|
759
757
|
frameRange: import("./frame-range").FrameRange | null;
|
|
760
758
|
everyNthFrame: number;
|
|
761
759
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
762
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
763
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
764
|
-
onFrameBuffer: ((buffer: Buffer, frame: number) => void)
|
|
760
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
761
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
762
|
+
onFrameBuffer: null | ((buffer: Buffer, frame: number) => void);
|
|
765
763
|
onDownload: import("./assets/download-and-map-assets-to-file").RenderMediaOnDownload | null;
|
|
766
764
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
767
765
|
scale: number;
|
|
768
766
|
port: number | null;
|
|
769
767
|
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
770
|
-
composition: Omit<import("remotion").VideoConfig, "
|
|
768
|
+
composition: Omit<import("remotion").VideoConfig, "props" | "defaultProps">;
|
|
771
769
|
indent: boolean;
|
|
772
770
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
773
771
|
muted: boolean;
|
|
774
|
-
concurrency:
|
|
772
|
+
concurrency: number | string | null;
|
|
775
773
|
webpackBundleOrServeUrl: string;
|
|
776
774
|
serializedInputPropsWithCustomSchema: string;
|
|
777
775
|
serializedResolvedPropsWithCustomSchema: string;
|
|
@@ -839,11 +837,11 @@ export declare const RenderInternals: {
|
|
|
839
837
|
getValue: ({ commandLine }: {
|
|
840
838
|
commandLine: Record<string, unknown>;
|
|
841
839
|
}) => {
|
|
842
|
-
value: "
|
|
840
|
+
value: import("./log-level").LogLevel;
|
|
843
841
|
source: string;
|
|
844
842
|
};
|
|
845
|
-
setConfig: (newLogLevel: "
|
|
846
|
-
type: "
|
|
843
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
844
|
+
type: import("./log-level").LogLevel;
|
|
847
845
|
};
|
|
848
846
|
readonly timeoutInMilliseconds: {
|
|
849
847
|
name: string;
|
|
@@ -891,12 +889,12 @@ export declare const RenderInternals: {
|
|
|
891
889
|
slowestFrames: import("./render-media").SlowFrame[];
|
|
892
890
|
}>;
|
|
893
891
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
894
|
-
copyImageToClipboard: (src: string, logLevel: "
|
|
892
|
+
copyImageToClipboard: (src: string, logLevel: import("./log-level").LogLevel, binariesDirectory: string | null) => Promise<void>;
|
|
895
893
|
isIpV6Supported: (flattened: import("os").NetworkInterfaceInfo[]) => boolean;
|
|
896
894
|
getChromiumGpuInformation: ({ browserExecutable, indent, logLevel, chromiumOptions, timeoutInMilliseconds, onBrowserDownload, }: {
|
|
897
895
|
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
898
896
|
indent: boolean;
|
|
899
|
-
logLevel: "
|
|
897
|
+
logLevel: import("./log-level").LogLevel;
|
|
900
898
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
901
899
|
timeoutInMilliseconds: number;
|
|
902
900
|
onBrowserDownload: import("./options/on-browser-download").OnBrowserDownload;
|
|
@@ -909,21 +907,21 @@ export declare const RenderInternals: {
|
|
|
909
907
|
hostsToTry: string[];
|
|
910
908
|
};
|
|
911
909
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
912
|
-
getExtensionFromAudioCodec: (audioCodec:
|
|
910
|
+
getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "mp3" | "aac" | "wav" | "opus";
|
|
913
911
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
914
912
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
915
|
-
setting:
|
|
916
|
-
codec: "
|
|
913
|
+
setting: AudioCodec | null;
|
|
914
|
+
codec: import("./codec").Codec;
|
|
917
915
|
preferLossless: boolean;
|
|
918
916
|
separateAudioTo: string | null;
|
|
919
917
|
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
920
918
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
921
|
-
codec: "
|
|
919
|
+
codec: import("./codec").Codec;
|
|
922
920
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
923
921
|
enforceAudioTrack: boolean;
|
|
924
922
|
muted: boolean;
|
|
925
923
|
}) => "yes" | "maybe" | "no";
|
|
926
|
-
codecSupportsMedia: (codec: "
|
|
924
|
+
codecSupportsMedia: (codec: import("./codec").Codec) => {
|
|
927
925
|
video: boolean;
|
|
928
926
|
audio: boolean;
|
|
929
927
|
};
|
|
@@ -941,11 +939,11 @@ export declare const RenderInternals: {
|
|
|
941
939
|
getValue: ({ commandLine }: {
|
|
942
940
|
commandLine: Record<string, unknown>;
|
|
943
941
|
}) => {
|
|
944
|
-
value: "
|
|
942
|
+
value: import("./log-level").LogLevel;
|
|
945
943
|
source: string;
|
|
946
944
|
};
|
|
947
|
-
setConfig: (newLogLevel: "
|
|
948
|
-
type: "
|
|
945
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
946
|
+
type: import("./log-level").LogLevel;
|
|
949
947
|
};
|
|
950
948
|
readonly onBrowserDownload: {
|
|
951
949
|
name: string;
|
|
@@ -992,5 +990,5 @@ export declare const RenderInternals: {
|
|
|
992
990
|
avi: string;
|
|
993
991
|
opus51Webm: string;
|
|
994
992
|
};
|
|
995
|
-
printUsefulErrorMessage: (err: Error, logLevel: "
|
|
993
|
+
printUsefulErrorMessage: (err: Error, logLevel: import("./log-level").LogLevel, indent: boolean) => void;
|
|
996
994
|
};
|
package/dist/mime-types.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getExt = void 0;
|
|
4
|
+
exports.mimeLookup = mimeLookup;
|
|
5
|
+
exports.mimeContentType = mimeContentType;
|
|
4
6
|
const node_path_1 = require("node:path");
|
|
5
7
|
const mime_db_1 = require("./mime-db");
|
|
6
8
|
const extensions = {};
|
|
@@ -25,7 +27,6 @@ function mimeLookup(path) {
|
|
|
25
27
|
}
|
|
26
28
|
return types[ext] || false;
|
|
27
29
|
}
|
|
28
|
-
exports.mimeLookup = mimeLookup;
|
|
29
30
|
/**
|
|
30
31
|
* Populate the extensions and types maps.
|
|
31
32
|
* @private
|
|
@@ -74,7 +75,6 @@ function mimeContentType(str) {
|
|
|
74
75
|
}
|
|
75
76
|
return mime;
|
|
76
77
|
}
|
|
77
|
-
exports.mimeContentType = mimeContentType;
|
|
78
78
|
const EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
79
79
|
const TEXT_TYPE_REGEXP = /^text\//i;
|
|
80
80
|
function charset(type) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Codec } from '../codec';
|
|
2
2
|
export declare const validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
3
3
|
export type AudioCodec = (typeof validAudioCodecs)[number];
|
|
4
|
-
export declare const isAudioCodec: (codec: Codec | undefined | null) =>
|
|
4
|
+
export declare const isAudioCodec: (codec: Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
5
5
|
export declare const supportedAudioCodecs: {
|
|
6
6
|
readonly h264: readonly ["aac", "pcm-16", "mp3"];
|
|
7
7
|
readonly 'h264-mkv': readonly ["pcm-16", "mp3"];
|
|
@@ -42,7 +42,7 @@ export declare const audioCodecOption: {
|
|
|
42
42
|
commandLine: Record<string, unknown>;
|
|
43
43
|
}) => {
|
|
44
44
|
source: string;
|
|
45
|
-
value:
|
|
45
|
+
value: AudioCodec;
|
|
46
46
|
} | {
|
|
47
47
|
source: string;
|
|
48
48
|
value: null;
|
|
@@ -51,6 +51,6 @@ export declare const audioCodecOption: {
|
|
|
51
51
|
docLink: string;
|
|
52
52
|
name: string;
|
|
53
53
|
ssrName: "audioCodec";
|
|
54
|
-
type:
|
|
54
|
+
type: AudioCodec;
|
|
55
55
|
};
|
|
56
56
|
export {};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { NoReactInternals } from 'remotion/no-react';
|
|
2
|
+
declare const validV4ColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
3
|
+
declare const validV5ColorSpaces: readonly ["bt601", "bt709", "bt2020-ncl"];
|
|
4
|
+
export declare const validColorSpaces: true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? typeof validV5ColorSpaces : typeof validV4ColorSpaces;
|
|
2
5
|
export type ColorSpace = (typeof validColorSpaces)[number];
|
|
3
|
-
export declare const DEFAULT_COLOR_SPACE: "default";
|
|
6
|
+
export declare const DEFAULT_COLOR_SPACE: true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? "bt709" : "default";
|
|
4
7
|
export declare const colorSpaceOption: {
|
|
5
8
|
name: string;
|
|
6
9
|
cliFlag: "color-space";
|
|
7
10
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
docLink: string;
|
|
9
12
|
ssrName: string;
|
|
10
|
-
type:
|
|
13
|
+
type: ColorSpace | null;
|
|
11
14
|
getValue: ({ commandLine }: {
|
|
12
15
|
commandLine: Record<string, unknown>;
|
|
13
16
|
}) => {
|
|
14
17
|
source: string;
|
|
15
|
-
value:
|
|
18
|
+
value: ColorSpace;
|
|
16
19
|
};
|
|
17
20
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
18
21
|
};
|
|
19
22
|
export declare const validateColorSpace: (option: unknown) => void;
|
|
23
|
+
export {};
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ export declare const glOption: {
|
|
|
7
7
|
cliFlag: "gl";
|
|
8
8
|
docLink: string;
|
|
9
9
|
name: string;
|
|
10
|
-
type:
|
|
10
|
+
type: OpenGlRenderer | null;
|
|
11
11
|
ssrName: string;
|
|
12
12
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
getValue: ({ commandLine }: {
|
|
14
14
|
commandLine: Record<string, unknown>;
|
|
15
15
|
}) => {
|
|
16
|
-
value:
|
|
16
|
+
value: OpenGlRenderer;
|
|
17
17
|
source: string;
|
|
18
18
|
} | {
|
|
19
19
|
value: null;
|