@remotion/renderer 4.0.212 → 4.0.214
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/FrameManager.d.ts +1 -1
- package/dist/browser/FrameManager.js +3 -3
- package/dist/browser/JSHandle.js +2 -2
- package/dist/browser/flaky-errors.d.ts +2 -0
- package/dist/browser/flaky-errors.js +20 -0
- 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 +84 -86
- 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 +3 -3
- 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 +6 -5
- 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/screenshot-task.js +3 -1
- 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/client.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { AvailableOptions, TypeOfOption } from './options';
|
|
2
2
|
export declare const BrowserSafeApis: {
|
|
3
|
-
getFileExtensionFromCodec: <T extends "
|
|
3
|
+
getFileExtensionFromCodec: <T extends import("./codec").Codec>(codec: T, audioCodec: import("./options/audio-codec").AudioCodec | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "
|
|
7
|
-
getValidCrfRanges: (codec: "
|
|
8
|
-
isAudioCodec: (codec: "
|
|
6
|
+
getDefaultCrfForCodec: (codec: import("./codec").Codec) => number;
|
|
7
|
+
getValidCrfRanges: (codec: import("./codec").Codec) => [number, number];
|
|
8
|
+
isAudioCodec: (codec: import("./codec").Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
9
9
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
10
10
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
11
11
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
12
12
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
13
|
-
validPixelFormatsForCodec: (codec: "
|
|
13
|
+
validPixelFormatsForCodec: (codec: import("./codec").Codec) => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
|
|
14
14
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
15
15
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
16
16
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -214,9 +214,9 @@ export declare const BrowserSafeApis: {
|
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
217
|
-
validateOutputFilename: <
|
|
218
|
-
codec:
|
|
219
|
-
audioCodecSetting: "
|
|
217
|
+
validateOutputFilename: <T extends import("./codec").Codec>({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
|
|
218
|
+
codec: T;
|
|
219
|
+
audioCodecSetting: import("./options/audio-codec").AudioCodec | null;
|
|
220
220
|
extension: string;
|
|
221
221
|
preferLossless: boolean;
|
|
222
222
|
separateAudioTo: string | null;
|
|
@@ -229,7 +229,7 @@ export declare const BrowserSafeApis: {
|
|
|
229
229
|
commandLine: Record<string, unknown>;
|
|
230
230
|
}) => {
|
|
231
231
|
source: string;
|
|
232
|
-
value: "
|
|
232
|
+
value: import("./options/audio-codec").AudioCodec;
|
|
233
233
|
} | {
|
|
234
234
|
source: string;
|
|
235
235
|
value: null;
|
|
@@ -238,7 +238,7 @@ export declare const BrowserSafeApis: {
|
|
|
238
238
|
docLink: string;
|
|
239
239
|
name: string;
|
|
240
240
|
ssrName: "audioCodec";
|
|
241
|
-
type: "
|
|
241
|
+
type: import("./options/audio-codec").AudioCodec;
|
|
242
242
|
};
|
|
243
243
|
scaleOption: {
|
|
244
244
|
name: string;
|
|
@@ -357,17 +357,17 @@ export declare const BrowserSafeApis: {
|
|
|
357
357
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
358
358
|
ssrName: string;
|
|
359
359
|
docLink: string;
|
|
360
|
-
type: "
|
|
360
|
+
type: import("./codec").Codec;
|
|
361
361
|
getValue: ({ commandLine }: {
|
|
362
362
|
commandLine: Record<string, unknown>;
|
|
363
363
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
364
364
|
outName: string | null;
|
|
365
365
|
downloadName: string | null;
|
|
366
|
-
configFile: "
|
|
367
|
-
uiCodec: "
|
|
368
|
-
compositionCodec: "
|
|
366
|
+
configFile: import("./codec").Codec | null;
|
|
367
|
+
uiCodec: import("./codec").Codec | null;
|
|
368
|
+
compositionCodec: import("./codec").Codec | null;
|
|
369
369
|
}) => {
|
|
370
|
-
value: "
|
|
370
|
+
value: import("./codec").Codec;
|
|
371
371
|
source: string;
|
|
372
372
|
};
|
|
373
373
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -406,12 +406,12 @@ export declare const BrowserSafeApis: {
|
|
|
406
406
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
407
407
|
docLink: string;
|
|
408
408
|
ssrName: string;
|
|
409
|
-
type: "
|
|
409
|
+
type: import("./options/color-space").ColorSpace | null;
|
|
410
410
|
getValue: ({ commandLine }: {
|
|
411
411
|
commandLine: Record<string, unknown>;
|
|
412
412
|
}) => {
|
|
413
413
|
source: string;
|
|
414
|
-
value: "
|
|
414
|
+
value: import("./options/color-space").ColorSpace;
|
|
415
415
|
};
|
|
416
416
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
417
417
|
};
|
|
@@ -467,19 +467,19 @@ export declare const BrowserSafeApis: {
|
|
|
467
467
|
cliFlag: "gl";
|
|
468
468
|
docLink: string;
|
|
469
469
|
name: string;
|
|
470
|
-
type: "
|
|
470
|
+
type: import("./options/gl").OpenGlRenderer | null;
|
|
471
471
|
ssrName: string;
|
|
472
472
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
473
473
|
getValue: ({ commandLine }: {
|
|
474
474
|
commandLine: Record<string, unknown>;
|
|
475
475
|
}) => {
|
|
476
|
-
value: "
|
|
476
|
+
value: import("./options/gl").OpenGlRenderer;
|
|
477
477
|
source: string;
|
|
478
478
|
} | {
|
|
479
479
|
value: null;
|
|
480
480
|
source: string;
|
|
481
481
|
};
|
|
482
|
-
setConfig: (value: "
|
|
482
|
+
setConfig: (value: import("./options/gl").OpenGlRenderer | null) => void;
|
|
483
483
|
};
|
|
484
484
|
enableLambdaInsights: {
|
|
485
485
|
name: string;
|
|
@@ -604,17 +604,17 @@ export declare const BrowserSafeApis: {
|
|
|
604
604
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
605
605
|
ssrName: "x264Preset";
|
|
606
606
|
docLink: string;
|
|
607
|
-
type: "
|
|
607
|
+
type: import("./options/x264-preset").X264Preset | null;
|
|
608
608
|
getValue: ({ commandLine }: {
|
|
609
609
|
commandLine: Record<string, unknown>;
|
|
610
610
|
}) => {
|
|
611
|
-
value: "
|
|
611
|
+
value: import("./options/x264-preset").X264Preset;
|
|
612
612
|
source: string;
|
|
613
613
|
} | {
|
|
614
614
|
value: null;
|
|
615
615
|
source: string;
|
|
616
616
|
};
|
|
617
|
-
setConfig: (profile: "
|
|
617
|
+
setConfig: (profile: import("./options/x264-preset").X264Preset | null) => void;
|
|
618
618
|
};
|
|
619
619
|
logLevelOption: {
|
|
620
620
|
cliFlag: "log";
|
|
@@ -625,11 +625,11 @@ export declare const BrowserSafeApis: {
|
|
|
625
625
|
getValue: ({ commandLine }: {
|
|
626
626
|
commandLine: Record<string, unknown>;
|
|
627
627
|
}) => {
|
|
628
|
-
value: "
|
|
628
|
+
value: import("./log-level").LogLevel;
|
|
629
629
|
source: string;
|
|
630
630
|
};
|
|
631
|
-
setConfig: (newLogLevel: "
|
|
632
|
-
type: "
|
|
631
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
632
|
+
type: import("./log-level").LogLevel;
|
|
633
633
|
};
|
|
634
634
|
delayRenderTimeoutInMillisecondsOption: {
|
|
635
635
|
name: string;
|
|
@@ -879,17 +879,17 @@ export declare const BrowserSafeApis: {
|
|
|
879
879
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
880
880
|
ssrName: "x264Preset";
|
|
881
881
|
docLink: string;
|
|
882
|
-
type: "
|
|
882
|
+
type: import("./options/x264-preset").X264Preset | null;
|
|
883
883
|
getValue: ({ commandLine }: {
|
|
884
884
|
commandLine: Record<string, unknown>;
|
|
885
885
|
}) => {
|
|
886
|
-
value: "
|
|
886
|
+
value: import("./options/x264-preset").X264Preset;
|
|
887
887
|
source: string;
|
|
888
888
|
} | {
|
|
889
889
|
value: null;
|
|
890
890
|
source: string;
|
|
891
891
|
};
|
|
892
|
-
setConfig: (profile: "
|
|
892
|
+
setConfig: (profile: import("./options/x264-preset").X264Preset | null) => void;
|
|
893
893
|
};
|
|
894
894
|
readonly audioBitrate: {
|
|
895
895
|
name: string;
|
|
@@ -915,12 +915,12 @@ export declare const BrowserSafeApis: {
|
|
|
915
915
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
916
916
|
docLink: string;
|
|
917
917
|
ssrName: string;
|
|
918
|
-
type: "
|
|
918
|
+
type: import("./options/color-space").ColorSpace | null;
|
|
919
919
|
getValue: ({ commandLine }: {
|
|
920
920
|
commandLine: Record<string, unknown>;
|
|
921
921
|
}) => {
|
|
922
922
|
source: string;
|
|
923
|
-
value: "
|
|
923
|
+
value: import("./options/color-space").ColorSpace;
|
|
924
924
|
};
|
|
925
925
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
926
926
|
};
|
|
@@ -930,17 +930,17 @@ export declare const BrowserSafeApis: {
|
|
|
930
930
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
931
931
|
ssrName: string;
|
|
932
932
|
docLink: string;
|
|
933
|
-
type: "
|
|
933
|
+
type: import("./codec").Codec;
|
|
934
934
|
getValue: ({ commandLine }: {
|
|
935
935
|
commandLine: Record<string, unknown>;
|
|
936
936
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
937
937
|
outName: string | null;
|
|
938
938
|
downloadName: string | null;
|
|
939
|
-
configFile: "
|
|
940
|
-
uiCodec: "
|
|
941
|
-
compositionCodec: "
|
|
939
|
+
configFile: import("./codec").Codec | null;
|
|
940
|
+
uiCodec: import("./codec").Codec | null;
|
|
941
|
+
compositionCodec: import("./codec").Codec | null;
|
|
942
942
|
}) => {
|
|
943
|
-
value: "
|
|
943
|
+
value: import("./codec").Codec;
|
|
944
944
|
source: string;
|
|
945
945
|
};
|
|
946
946
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -1020,11 +1020,11 @@ export declare const BrowserSafeApis: {
|
|
|
1020
1020
|
getValue: ({ commandLine }: {
|
|
1021
1021
|
commandLine: Record<string, unknown>;
|
|
1022
1022
|
}) => {
|
|
1023
|
-
value: "
|
|
1023
|
+
value: import("./log-level").LogLevel;
|
|
1024
1024
|
source: string;
|
|
1025
1025
|
};
|
|
1026
|
-
setConfig: (newLogLevel: "
|
|
1027
|
-
type: "
|
|
1026
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1027
|
+
type: import("./log-level").LogLevel;
|
|
1028
1028
|
};
|
|
1029
1029
|
readonly timeoutInMilliseconds: {
|
|
1030
1030
|
name: string;
|
|
@@ -1099,7 +1099,7 @@ export declare const BrowserSafeApis: {
|
|
|
1099
1099
|
commandLine: Record<string, unknown>;
|
|
1100
1100
|
}) => {
|
|
1101
1101
|
source: string;
|
|
1102
|
-
value: "
|
|
1102
|
+
value: import("./options/audio-codec").AudioCodec;
|
|
1103
1103
|
} | {
|
|
1104
1104
|
source: string;
|
|
1105
1105
|
value: null;
|
|
@@ -1108,7 +1108,7 @@ export declare const BrowserSafeApis: {
|
|
|
1108
1108
|
docLink: string;
|
|
1109
1109
|
name: string;
|
|
1110
1110
|
ssrName: "audioCodec";
|
|
1111
|
-
type: "
|
|
1111
|
+
type: import("./options/audio-codec").AudioCodec;
|
|
1112
1112
|
};
|
|
1113
1113
|
readonly onBrowserDownload: {
|
|
1114
1114
|
name: string;
|
|
@@ -1184,11 +1184,11 @@ export declare const BrowserSafeApis: {
|
|
|
1184
1184
|
getValue: ({ commandLine }: {
|
|
1185
1185
|
commandLine: Record<string, unknown>;
|
|
1186
1186
|
}) => {
|
|
1187
|
-
value: "
|
|
1187
|
+
value: import("./log-level").LogLevel;
|
|
1188
1188
|
source: string;
|
|
1189
1189
|
};
|
|
1190
|
-
setConfig: (newLogLevel: "
|
|
1191
|
-
type: "
|
|
1190
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1191
|
+
type: import("./log-level").LogLevel;
|
|
1192
1192
|
};
|
|
1193
1193
|
readonly timeoutInMilliseconds: {
|
|
1194
1194
|
name: string;
|
|
@@ -1259,11 +1259,11 @@ export declare const BrowserSafeApis: {
|
|
|
1259
1259
|
getValue: ({ commandLine }: {
|
|
1260
1260
|
commandLine: Record<string, unknown>;
|
|
1261
1261
|
}) => {
|
|
1262
|
-
value: "
|
|
1262
|
+
value: import("./log-level").LogLevel;
|
|
1263
1263
|
source: string;
|
|
1264
1264
|
};
|
|
1265
|
-
setConfig: (newLogLevel: "
|
|
1266
|
-
type: "
|
|
1265
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1266
|
+
type: import("./log-level").LogLevel;
|
|
1267
1267
|
};
|
|
1268
1268
|
readonly timeoutInMilliseconds: {
|
|
1269
1269
|
name: string;
|
|
@@ -1334,11 +1334,11 @@ export declare const BrowserSafeApis: {
|
|
|
1334
1334
|
getValue: ({ commandLine }: {
|
|
1335
1335
|
commandLine: Record<string, unknown>;
|
|
1336
1336
|
}) => {
|
|
1337
|
-
value: "
|
|
1337
|
+
value: import("./log-level").LogLevel;
|
|
1338
1338
|
source: string;
|
|
1339
1339
|
};
|
|
1340
|
-
setConfig: (newLogLevel: "
|
|
1341
|
-
type: "
|
|
1340
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1341
|
+
type: import("./log-level").LogLevel;
|
|
1342
1342
|
};
|
|
1343
1343
|
readonly timeoutInMilliseconds: {
|
|
1344
1344
|
name: string;
|
|
@@ -1442,11 +1442,11 @@ export declare const BrowserSafeApis: {
|
|
|
1442
1442
|
getValue: ({ commandLine }: {
|
|
1443
1443
|
commandLine: Record<string, unknown>;
|
|
1444
1444
|
}) => {
|
|
1445
|
-
value: "
|
|
1445
|
+
value: import("./log-level").LogLevel;
|
|
1446
1446
|
source: string;
|
|
1447
1447
|
};
|
|
1448
|
-
setConfig: (newLogLevel: "
|
|
1449
|
-
type: "
|
|
1448
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1449
|
+
type: import("./log-level").LogLevel;
|
|
1450
1450
|
};
|
|
1451
1451
|
readonly timeoutInMilliseconds: {
|
|
1452
1452
|
name: string;
|
|
@@ -1601,17 +1601,17 @@ export declare const BrowserSafeApis: {
|
|
|
1601
1601
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1602
1602
|
ssrName: "x264Preset";
|
|
1603
1603
|
docLink: string;
|
|
1604
|
-
type: "
|
|
1604
|
+
type: import("./options/x264-preset").X264Preset | null;
|
|
1605
1605
|
getValue: ({ commandLine }: {
|
|
1606
1606
|
commandLine: Record<string, unknown>;
|
|
1607
1607
|
}) => {
|
|
1608
|
-
value: "
|
|
1608
|
+
value: import("./options/x264-preset").X264Preset;
|
|
1609
1609
|
source: string;
|
|
1610
1610
|
} | {
|
|
1611
1611
|
value: null;
|
|
1612
1612
|
source: string;
|
|
1613
1613
|
};
|
|
1614
|
-
setConfig: (profile: "
|
|
1614
|
+
setConfig: (profile: import("./options/x264-preset").X264Preset | null) => void;
|
|
1615
1615
|
};
|
|
1616
1616
|
readonly encodingMaxRate: {
|
|
1617
1617
|
name: string;
|
|
@@ -1655,12 +1655,12 @@ export declare const BrowserSafeApis: {
|
|
|
1655
1655
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1656
1656
|
docLink: string;
|
|
1657
1657
|
ssrName: string;
|
|
1658
|
-
type: "
|
|
1658
|
+
type: import("./options/color-space").ColorSpace | null;
|
|
1659
1659
|
getValue: ({ commandLine }: {
|
|
1660
1660
|
commandLine: Record<string, unknown>;
|
|
1661
1661
|
}) => {
|
|
1662
1662
|
source: string;
|
|
1663
|
-
value: "
|
|
1663
|
+
value: import("./options/color-space").ColorSpace;
|
|
1664
1664
|
};
|
|
1665
1665
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
1666
1666
|
};
|
|
@@ -1688,11 +1688,11 @@ export declare const BrowserSafeApis: {
|
|
|
1688
1688
|
getValue: ({ commandLine }: {
|
|
1689
1689
|
commandLine: Record<string, unknown>;
|
|
1690
1690
|
}) => {
|
|
1691
|
-
value: "
|
|
1691
|
+
value: import("./log-level").LogLevel;
|
|
1692
1692
|
source: string;
|
|
1693
1693
|
};
|
|
1694
|
-
setConfig: (newLogLevel: "
|
|
1695
|
-
type: "
|
|
1694
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1695
|
+
type: import("./log-level").LogLevel;
|
|
1696
1696
|
};
|
|
1697
1697
|
readonly timeoutInMilliseconds: {
|
|
1698
1698
|
name: string;
|
|
@@ -1753,11 +1753,11 @@ export declare const BrowserSafeApis: {
|
|
|
1753
1753
|
getValue: ({ commandLine }: {
|
|
1754
1754
|
commandLine: Record<string, unknown>;
|
|
1755
1755
|
}) => {
|
|
1756
|
-
value: "
|
|
1756
|
+
value: import("./log-level").LogLevel;
|
|
1757
1757
|
source: string;
|
|
1758
1758
|
};
|
|
1759
|
-
setConfig: (newLogLevel: "
|
|
1760
|
-
type: "
|
|
1759
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1760
|
+
type: import("./log-level").LogLevel;
|
|
1761
1761
|
};
|
|
1762
1762
|
readonly deleteAfter: {
|
|
1763
1763
|
name: string;
|
|
@@ -1836,11 +1836,11 @@ export declare const BrowserSafeApis: {
|
|
|
1836
1836
|
getValue: ({ commandLine }: {
|
|
1837
1837
|
commandLine: Record<string, unknown>;
|
|
1838
1838
|
}) => {
|
|
1839
|
-
value: "
|
|
1839
|
+
value: import("./log-level").LogLevel;
|
|
1840
1840
|
source: string;
|
|
1841
1841
|
};
|
|
1842
|
-
setConfig: (newLogLevel: "
|
|
1843
|
-
type: "
|
|
1842
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1843
|
+
type: import("./log-level").LogLevel;
|
|
1844
1844
|
};
|
|
1845
1845
|
readonly timeoutInMilliseconds: {
|
|
1846
1846
|
name: string;
|
|
@@ -1919,12 +1919,12 @@ export declare const BrowserSafeApis: {
|
|
|
1919
1919
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1920
1920
|
docLink: string;
|
|
1921
1921
|
ssrName: string;
|
|
1922
|
-
type: "
|
|
1922
|
+
type: import("./options/color-space").ColorSpace | null;
|
|
1923
1923
|
getValue: ({ commandLine }: {
|
|
1924
1924
|
commandLine: Record<string, unknown>;
|
|
1925
1925
|
}) => {
|
|
1926
1926
|
source: string;
|
|
1927
|
-
value: "
|
|
1927
|
+
value: import("./options/color-space").ColorSpace;
|
|
1928
1928
|
};
|
|
1929
1929
|
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
1930
1930
|
};
|
|
@@ -1967,17 +1967,17 @@ export declare const BrowserSafeApis: {
|
|
|
1967
1967
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1968
1968
|
ssrName: "x264Preset";
|
|
1969
1969
|
docLink: string;
|
|
1970
|
-
type: "
|
|
1970
|
+
type: import("./options/x264-preset").X264Preset | null;
|
|
1971
1971
|
getValue: ({ commandLine }: {
|
|
1972
1972
|
commandLine: Record<string, unknown>;
|
|
1973
1973
|
}) => {
|
|
1974
|
-
value: "
|
|
1974
|
+
value: import("./options/x264-preset").X264Preset;
|
|
1975
1975
|
source: string;
|
|
1976
1976
|
} | {
|
|
1977
1977
|
value: null;
|
|
1978
1978
|
source: string;
|
|
1979
1979
|
};
|
|
1980
|
-
setConfig: (profile: "
|
|
1980
|
+
setConfig: (profile: import("./options/x264-preset").X264Preset | null) => void;
|
|
1981
1981
|
};
|
|
1982
1982
|
readonly encodingMaxRate: {
|
|
1983
1983
|
name: string;
|
|
@@ -2039,11 +2039,11 @@ export declare const BrowserSafeApis: {
|
|
|
2039
2039
|
getValue: ({ commandLine }: {
|
|
2040
2040
|
commandLine: Record<string, unknown>;
|
|
2041
2041
|
}) => {
|
|
2042
|
-
value: "
|
|
2042
|
+
value: import("./log-level").LogLevel;
|
|
2043
2043
|
source: string;
|
|
2044
2044
|
};
|
|
2045
|
-
setConfig: (newLogLevel: "
|
|
2046
|
-
type: "
|
|
2045
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
2046
|
+
type: import("./log-level").LogLevel;
|
|
2047
2047
|
};
|
|
2048
2048
|
readonly delayRenderTimeoutInMilliseconds: {
|
|
2049
2049
|
name: string;
|
|
@@ -2152,11 +2152,11 @@ export declare const BrowserSafeApis: {
|
|
|
2152
2152
|
getValue: ({ commandLine }: {
|
|
2153
2153
|
commandLine: Record<string, unknown>;
|
|
2154
2154
|
}) => {
|
|
2155
|
-
value: "
|
|
2155
|
+
value: import("./log-level").LogLevel;
|
|
2156
2156
|
source: string;
|
|
2157
2157
|
};
|
|
2158
|
-
setConfig: (newLogLevel: "
|
|
2159
|
-
type: "
|
|
2158
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
2159
|
+
type: import("./log-level").LogLevel;
|
|
2160
2160
|
};
|
|
2161
2161
|
readonly scale: {
|
|
2162
2162
|
name: string;
|
|
@@ -2214,11 +2214,11 @@ export declare const BrowserSafeApis: {
|
|
|
2214
2214
|
getValue: ({ commandLine }: {
|
|
2215
2215
|
commandLine: Record<string, unknown>;
|
|
2216
2216
|
}) => {
|
|
2217
|
-
value: "
|
|
2217
|
+
value: import("./log-level").LogLevel;
|
|
2218
2218
|
source: string;
|
|
2219
2219
|
};
|
|
2220
|
-
setConfig: (newLogLevel: "
|
|
2221
|
-
type: "
|
|
2220
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
2221
|
+
type: import("./log-level").LogLevel;
|
|
2222
2222
|
};
|
|
2223
2223
|
readonly onBrowserDownload: {
|
|
2224
2224
|
name: string;
|
|
@@ -2241,11 +2241,11 @@ export declare const BrowserSafeApis: {
|
|
|
2241
2241
|
getValue: ({ commandLine }: {
|
|
2242
2242
|
commandLine: Record<string, unknown>;
|
|
2243
2243
|
}) => {
|
|
2244
|
-
value: "
|
|
2244
|
+
value: import("./log-level").LogLevel;
|
|
2245
2245
|
source: string;
|
|
2246
2246
|
};
|
|
2247
|
-
setConfig: (newLogLevel: "
|
|
2248
|
-
type: "
|
|
2247
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
2248
|
+
type: import("./log-level").LogLevel;
|
|
2249
2249
|
};
|
|
2250
2250
|
readonly throwIfSiteExists: {
|
|
2251
2251
|
cliFlag: string;
|
|
@@ -2273,17 +2273,17 @@ export declare const BrowserSafeApis: {
|
|
|
2273
2273
|
getValue: ({ commandLine }: {
|
|
2274
2274
|
commandLine: Record<string, unknown>;
|
|
2275
2275
|
}) => {
|
|
2276
|
-
value: "
|
|
2276
|
+
value: import("./log-level").LogLevel;
|
|
2277
2277
|
source: string;
|
|
2278
2278
|
};
|
|
2279
|
-
setConfig: (newLogLevel: "
|
|
2280
|
-
type: "
|
|
2279
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
2280
|
+
type: import("./log-level").LogLevel;
|
|
2281
2281
|
};
|
|
2282
2282
|
};
|
|
2283
2283
|
};
|
|
2284
|
-
codecSupportsCrf: (codec: "
|
|
2285
|
-
codecSupportsVideoBitrate: (codec: "
|
|
2284
|
+
codecSupportsCrf: (codec: import("./codec").Codec) => boolean;
|
|
2285
|
+
codecSupportsVideoBitrate: (codec: import("./codec").Codec) => boolean;
|
|
2286
2286
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2287
2287
|
getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
|
|
2288
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
2288
|
+
getExtensionFromAudioCodec: (audioCodec: import("./options/audio-codec").AudioCodec) => "mp3" | "aac" | "wav" | "opus";
|
|
2289
2289
|
};
|
|
@@ -17,10 +17,7 @@ export declare const composeWithoutCache: ({ height, width, layers, output, imag
|
|
|
17
17
|
output: string;
|
|
18
18
|
compositor: Compositor;
|
|
19
19
|
}) => Promise<void>;
|
|
20
|
-
export declare const compose: ({ height, width, layers, output, downloadMap, imageFormat, compositor, }:
|
|
21
|
-
output: string;
|
|
22
|
-
compositor: Compositor;
|
|
23
|
-
} & {
|
|
20
|
+
export declare const compose: ({ height, width, layers, output, downloadMap, imageFormat, compositor, }: ComposeInput & {
|
|
24
21
|
downloadMap: DownloadMap;
|
|
25
22
|
}) => Promise<void>;
|
|
26
23
|
export declare const callCompositor: (payload: string, indent: boolean, logLevel: LogLevel, binariesDirectory: string | null) => Promise<void>;
|
|
@@ -4,7 +4,7 @@ export declare function isMusl({ indent, logLevel, }: {
|
|
|
4
4
|
logLevel: LogLevel;
|
|
5
5
|
}): boolean;
|
|
6
6
|
export declare const getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
7
|
-
type:
|
|
7
|
+
type: "compositor" | "ffmpeg" | "ffprobe";
|
|
8
8
|
indent: boolean;
|
|
9
9
|
logLevel: LogLevel;
|
|
10
10
|
binariesDirectory: string | null;
|
|
@@ -4,7 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.getExecutableDir = exports.getExecutablePath =
|
|
7
|
+
exports.getExecutableDir = exports.getExecutablePath = void 0;
|
|
8
|
+
exports.isMusl = isMusl;
|
|
8
9
|
const path_1 = __importDefault(require("path"));
|
|
9
10
|
const logger_1 = require("../logger");
|
|
10
11
|
let warned = false;
|
|
@@ -29,7 +30,6 @@ function isMusl({ indent, logLevel, }) {
|
|
|
29
30
|
const { glibcVersionRuntime } = report.header;
|
|
30
31
|
return !glibcVersionRuntime;
|
|
31
32
|
}
|
|
32
|
-
exports.isMusl = isMusl;
|
|
33
33
|
const getExecutablePath = ({ indent, logLevel, type, binariesDirectory, }) => {
|
|
34
34
|
const base = binariesDirectory !== null && binariesDirectory !== void 0 ? binariesDirectory : (0, exports.getExecutableDir)(indent, logLevel);
|
|
35
35
|
switch (type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
2
|
import type { FileExtension } from './file-extensions';
|
|
3
3
|
import type { AudioCodec } from './options/audio-codec';
|
|
4
|
-
export declare const getFileExtensionFromCodec: <T extends
|
|
4
|
+
export declare const getFileExtensionFromCodec: <T extends Codec>(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
5
|
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
6
6
|
export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
|
|
@@ -15,8 +15,8 @@ export type { SilentPart };
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const getSilentParts: ({ src, noiseThresholdInDecibels: passedNoiseThresholdInDecibels, minDurationInSeconds: passedMinDuration, logLevel, binariesDirectory, }: {
|
|
17
17
|
src: string;
|
|
18
|
-
minDurationInSeconds?: number
|
|
19
|
-
logLevel?:
|
|
20
|
-
noiseThresholdInDecibels?: number
|
|
21
|
-
binariesDirectory?: string | null
|
|
18
|
+
minDurationInSeconds?: number;
|
|
19
|
+
logLevel?: LogLevel;
|
|
20
|
+
noiseThresholdInDecibels?: number;
|
|
21
|
+
binariesDirectory?: string | null;
|
|
22
22
|
}) => Promise<GetSilentPartsResponse>;
|
package/dist/image-format.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export type StillImageFormat = (typeof validStillImageFormats)[number];
|
|
|
9
9
|
export type ImageFormat = 'This type is deprecated, use VideoImageFormat or StillImageFormat instead';
|
|
10
10
|
export declare const DEFAULT_VIDEO_IMAGE_FORMAT: VideoImageFormat;
|
|
11
11
|
export declare const DEFAULT_STILL_IMAGE_FORMAT: StillImageFormat;
|
|
12
|
-
export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat | undefined, videoImageFormat: VideoImageFormat) =>
|
|
12
|
+
export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat | undefined, videoImageFormat: VideoImageFormat) => "none" | "valid";
|
|
13
13
|
export declare const validateStillImageFormat: (imageFormat: StillImageFormat) => void;
|