@remotion/renderer 4.0.119 → 4.0.121

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.
Files changed (90) hide show
  1. package/dist/assets/get-audio-channels.d.ts +8 -2
  2. package/dist/assets/get-audio-channels.js +18 -6
  3. package/dist/browser/BrowserPage.js +29 -10
  4. package/dist/call-ffmpeg.d.ts +4 -2
  5. package/dist/call-ffmpeg.js +14 -4
  6. package/dist/can-concatenate-seamlessly.d.ts +3 -0
  7. package/dist/can-concatenate-seamlessly.js +7 -0
  8. package/dist/client.d.ts +135 -45
  9. package/dist/combine-audio.d.ts +6 -1
  10. package/dist/combine-audio.js +33 -12
  11. package/dist/combine-video-streams-seamlessly.d.ts +3 -0
  12. package/dist/combine-video-streams-seamlessly.js +8 -0
  13. package/dist/combine-video-streams.d.ts +4 -1
  14. package/dist/combine-video-streams.js +9 -3
  15. package/dist/combine-videos.d.ts +1 -0
  16. package/dist/combine-videos.js +2 -1
  17. package/dist/compositor/compose.d.ts +1 -1
  18. package/dist/compositor/compose.js +7 -2
  19. package/dist/compositor/compositor.d.ts +9 -2
  20. package/dist/compositor/compositor.js +19 -8
  21. package/dist/compositor/get-executable-path.d.ts +6 -1
  22. package/dist/compositor/get-executable-path.js +2 -2
  23. package/dist/compress-audio.d.ts +13 -0
  24. package/dist/compress-audio.js +28 -0
  25. package/dist/copy-to-clipboard.d.ts +1 -1
  26. package/dist/copy-to-clipboard.js +2 -1
  27. package/dist/create-audio.d.ts +21 -0
  28. package/dist/create-audio.js +82 -0
  29. package/dist/create-combined-video.d.ts +18 -0
  30. package/dist/create-combined-video.js +27 -0
  31. package/dist/create-silent-audio.d.ts +2 -1
  32. package/dist/create-silent-audio.js +2 -1
  33. package/dist/extract-audio.d.ts +1 -0
  34. package/dist/extract-audio.js +2 -1
  35. package/dist/get-compositions.js +5 -2
  36. package/dist/get-extension-from-audio-codec.d.ts +2 -0
  37. package/dist/get-extension-from-audio-codec.js +19 -0
  38. package/dist/get-silent-parts.d.ts +3 -2
  39. package/dist/get-silent-parts.js +2 -1
  40. package/dist/get-video-metadata.d.ts +1 -0
  41. package/dist/get-video-metadata.js +2 -1
  42. package/dist/guess-extension-for-media.d.ts +2 -1
  43. package/dist/guess-extension-for-media.js +2 -1
  44. package/dist/index.d.ts +78 -23
  45. package/dist/merge-audio-track.d.ts +1 -0
  46. package/dist/merge-audio-track.js +11 -2
  47. package/dist/mux-video-and-audio.d.ts +5 -1
  48. package/dist/mux-video-and-audio.js +12 -3
  49. package/dist/offthread-video-server.d.ts +2 -1
  50. package/dist/offthread-video-server.js +12 -6
  51. package/dist/options/binaries-directory.d.ts +15 -0
  52. package/dist/options/binaries-directory.js +35 -0
  53. package/dist/options/index.d.ts +21 -6
  54. package/dist/options/index.js +2 -0
  55. package/dist/options/log-level.d.ts +2 -2
  56. package/dist/options/option.d.ts +1 -1
  57. package/dist/options/options-map.d.ts +114 -39
  58. package/dist/options/options-map.js +6 -0
  59. package/dist/options/prefer-lossless.d.ts +12 -2
  60. package/dist/options/prefer-lossless.js +19 -4
  61. package/dist/options/x264-preset.d.ts +2 -2
  62. package/dist/prepare-server.d.ts +2 -1
  63. package/dist/prepare-server.js +3 -1
  64. package/dist/preprocess-audio-track.d.ts +1 -0
  65. package/dist/preprocess-audio-track.js +9 -3
  66. package/dist/prespawn-ffmpeg.d.ts +1 -0
  67. package/dist/prespawn-ffmpeg.js +1 -0
  68. package/dist/provide-screenshot.d.ts +2 -2
  69. package/dist/provide-screenshot.js +2 -1
  70. package/dist/puppeteer-screenshot.d.ts +1 -1
  71. package/dist/puppeteer-screenshot.js +1 -0
  72. package/dist/render-frames.js +7 -3
  73. package/dist/render-media.d.ts +3 -1
  74. package/dist/render-media.js +7 -2
  75. package/dist/render-still.js +3 -1
  76. package/dist/screenshot-dom-element.d.ts +2 -2
  77. package/dist/screenshot-dom-element.js +2 -1
  78. package/dist/screenshot-task.d.ts +2 -2
  79. package/dist/screenshot-task.js +11 -9
  80. package/dist/select-composition.d.ts +1 -1
  81. package/dist/select-composition.js +5 -2
  82. package/dist/serve-static.d.ts +1 -0
  83. package/dist/serve-static.js +1 -0
  84. package/dist/should-seamless.d.ts +3 -0
  85. package/dist/should-seamless.js +7 -0
  86. package/dist/stitch-frames-to-video.d.ts +4 -1
  87. package/dist/stitch-frames-to-video.js +9 -3
  88. package/dist/take-frame-and-compose.d.ts +0 -1
  89. package/dist/take-frame-and-compose.js +1 -0
  90. package/package.json +9 -9
@@ -1,4 +1,10 @@
1
1
  import type { LogLevel } from '../log-level';
2
2
  import type { AudioChannelsAndDurationResultCache, DownloadMap } from './download-map';
3
- export declare const getAudioChannelsAndDurationWithoutCache: (src: string, indent: boolean, logLevel: LogLevel) => Promise<AudioChannelsAndDurationResultCache>;
4
- export declare const getAudioChannelsAndDuration: (downloadMap: DownloadMap, src: string, indent: boolean, logLevel: LogLevel) => Promise<AudioChannelsAndDurationResultCache>;
3
+ export declare const getAudioChannelsAndDurationWithoutCache: (src: string, indent: boolean, logLevel: LogLevel, binariesDirectory: string | null) => Promise<AudioChannelsAndDurationResultCache>;
4
+ export declare const getAudioChannelsAndDuration: ({ downloadMap, src, indent, logLevel, binariesDirectory, }: {
5
+ downloadMap: DownloadMap;
6
+ src: string;
7
+ indent: boolean;
8
+ logLevel: LogLevel;
9
+ binariesDirectory: string | null;
10
+ }) => Promise<AudioChannelsAndDurationResultCache>;
@@ -4,7 +4,7 @@ exports.getAudioChannelsAndDuration = exports.getAudioChannelsAndDurationWithout
4
4
  const call_ffmpeg_1 = require("../call-ffmpeg");
5
5
  const p_limit_1 = require("../p-limit");
6
6
  const limit = (0, p_limit_1.pLimit)(1);
7
- const getAudioChannelsAndDurationWithoutCache = async (src, indent, logLevel) => {
7
+ const getAudioChannelsAndDurationWithoutCache = async (src, indent, logLevel, binariesDirectory) => {
8
8
  const args = [
9
9
  ['-v', 'error'],
10
10
  ['-show_entries', 'stream=channels:format=duration'],
@@ -13,7 +13,13 @@ const getAudioChannelsAndDurationWithoutCache = async (src, indent, logLevel) =>
13
13
  ]
14
14
  .reduce((acc, val) => acc.concat(val), [])
15
15
  .filter(Boolean);
16
- const task = await (0, call_ffmpeg_1.callFf)({ bin: 'ffprobe', args, indent, logLevel });
16
+ const task = await (0, call_ffmpeg_1.callFf)({
17
+ bin: 'ffprobe',
18
+ args,
19
+ indent,
20
+ logLevel,
21
+ binariesDirectory,
22
+ });
17
23
  const channels = task.stdout.match(/channels=([0-9]+)/);
18
24
  const duration = task.stdout.match(/duration=([0-9.]+)/);
19
25
  const result = {
@@ -23,15 +29,21 @@ const getAudioChannelsAndDurationWithoutCache = async (src, indent, logLevel) =>
23
29
  return result;
24
30
  };
25
31
  exports.getAudioChannelsAndDurationWithoutCache = getAudioChannelsAndDurationWithoutCache;
26
- async function getAudioChannelsAndDurationUnlimited(downloadMap, src, indent, logLevel) {
32
+ async function getAudioChannelsAndDurationUnlimited({ downloadMap, src, indent, logLevel, binariesDirectory, }) {
27
33
  if (downloadMap.durationOfAssetCache[src]) {
28
34
  return downloadMap.durationOfAssetCache[src];
29
35
  }
30
- const result = await (0, exports.getAudioChannelsAndDurationWithoutCache)(src, indent, logLevel);
36
+ const result = await (0, exports.getAudioChannelsAndDurationWithoutCache)(src, indent, logLevel, binariesDirectory);
31
37
  downloadMap.durationOfAssetCache[src] = result;
32
38
  return result;
33
39
  }
34
- const getAudioChannelsAndDuration = (downloadMap, src, indent, logLevel) => {
35
- return limit(() => getAudioChannelsAndDurationUnlimited(downloadMap, src, indent, logLevel));
40
+ const getAudioChannelsAndDuration = ({ downloadMap, src, indent, logLevel, binariesDirectory, }) => {
41
+ return limit(() => getAudioChannelsAndDurationUnlimited({
42
+ downloadMap,
43
+ src,
44
+ indent,
45
+ logLevel,
46
+ binariesDirectory,
47
+ }));
36
48
  };
37
49
  exports.getAudioChannelsAndDuration = getAudioChannelsAndDuration;
@@ -195,16 +195,35 @@ class Page extends EventEmitter_1.EventEmitter {
195
195
  return __classPrivateFieldGet(this, _Page_frameManager, "f").mainFrame();
196
196
  }
197
197
  async setViewport(viewport) {
198
- const { value } = await __classPrivateFieldGet(this, _Page_client, "f").send('Emulation.setDeviceMetricsOverride', {
199
- mobile: false,
200
- width: viewport.width,
201
- height: viewport.height,
202
- deviceScaleFactor: viewport.deviceScaleFactor,
203
- screenOrientation: {
204
- angle: 0,
205
- type: 'portraitPrimary',
206
- },
207
- });
198
+ const fromSurface = !process.env.DISABLE_FROM_SURFACE;
199
+ const request = fromSurface
200
+ ? {
201
+ mobile: false,
202
+ width: viewport.width,
203
+ height: viewport.height,
204
+ deviceScaleFactor: viewport.deviceScaleFactor,
205
+ screenOrientation: {
206
+ angle: 0,
207
+ type: 'portraitPrimary',
208
+ },
209
+ }
210
+ : {
211
+ mobile: false,
212
+ width: viewport.width,
213
+ height: viewport.height,
214
+ deviceScaleFactor: 1,
215
+ screenHeight: viewport.height,
216
+ screenWidth: viewport.width,
217
+ scale: viewport.deviceScaleFactor,
218
+ viewport: {
219
+ height: viewport.height * viewport.deviceScaleFactor,
220
+ width: viewport.width * viewport.deviceScaleFactor,
221
+ scale: 1,
222
+ x: 0,
223
+ y: 0,
224
+ },
225
+ };
226
+ const { value } = await __classPrivateFieldGet(this, _Page_client, "f").send('Emulation.setDeviceMetricsOverride', request);
208
227
  return value;
209
228
  }
210
229
  setDefaultNavigationTimeout(timeout) {
@@ -2,17 +2,19 @@
2
2
  import execa from 'execa';
3
3
  import type { SpawnOptionsWithoutStdio } from 'node:child_process';
4
4
  import type { LogLevel } from './log-level';
5
- export declare const callFf: ({ args, bin, indent, logLevel, options, }: {
5
+ export declare const callFf: ({ args, bin, indent, logLevel, options, binariesDirectory, }: {
6
6
  bin: 'ffmpeg' | 'ffprobe';
7
7
  args: (string | null)[];
8
8
  indent: boolean;
9
9
  logLevel: LogLevel;
10
+ binariesDirectory: string | null;
10
11
  options?: execa.Options<string> | undefined;
11
12
  }) => execa.ExecaChildProcess<string>;
12
- export declare const callFfNative: ({ args, bin, indent, logLevel, options, }: {
13
+ export declare const callFfNative: ({ args, bin, indent, logLevel, options, binariesDirectory, }: {
13
14
  bin: 'ffmpeg' | 'ffprobe';
14
15
  args: (string | null)[];
15
16
  indent: boolean;
16
17
  logLevel: LogLevel;
18
+ binariesDirectory: string | null;
17
19
  options?: SpawnOptionsWithoutStdio | undefined;
18
20
  }) => import("child_process").ChildProcessWithoutNullStreams;
@@ -10,8 +10,13 @@ const node_fs_1 = require("node:fs");
10
10
  const path_1 = __importDefault(require("path"));
11
11
  const get_executable_path_1 = require("./compositor/get-executable-path");
12
12
  const truthy_1 = require("./truthy");
13
- const callFf = ({ args, bin, indent, logLevel, options, }) => {
14
- const executablePath = (0, get_executable_path_1.getExecutablePath)(bin, indent, logLevel);
13
+ const callFf = ({ args, bin, indent, logLevel, options, binariesDirectory, }) => {
14
+ const executablePath = (0, get_executable_path_1.getExecutablePath)({
15
+ type: bin,
16
+ indent,
17
+ logLevel,
18
+ binariesDirectory,
19
+ });
15
20
  if (!process.env.READ_ONLY_FS) {
16
21
  (0, node_fs_1.chmodSync)(executablePath, 0o755);
17
22
  }
@@ -21,8 +26,13 @@ const callFf = ({ args, bin, indent, logLevel, options, }) => {
21
26
  });
22
27
  };
23
28
  exports.callFf = callFf;
24
- const callFfNative = ({ args, bin, indent, logLevel, options, }) => {
25
- const executablePath = (0, get_executable_path_1.getExecutablePath)(bin, indent, logLevel);
29
+ const callFfNative = ({ args, bin, indent, logLevel, options, binariesDirectory, }) => {
30
+ const executablePath = (0, get_executable_path_1.getExecutablePath)({
31
+ type: bin,
32
+ indent,
33
+ logLevel,
34
+ binariesDirectory,
35
+ });
26
36
  if (!process.env.READ_ONLY_FS) {
27
37
  (0, node_fs_1.chmodSync)(executablePath, 0o755);
28
38
  }
@@ -0,0 +1,3 @@
1
+ import type { AudioCodec } from './audio-codec';
2
+ import type { Codec } from './codec';
3
+ export declare const canConcatSeamlessly: (audioCodec: AudioCodec | null, codec: Codec) => boolean;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.canConcatSeamlessly = void 0;
4
+ const canConcatSeamlessly = (audioCodec, codec) => {
5
+ return audioCodec === 'aac' && codec === 'h264';
6
+ };
7
+ exports.canConcatSeamlessly = canConcatSeamlessly;
package/dist/client.d.ts CHANGED
@@ -543,17 +543,17 @@ export declare const BrowserSafeApis: {
543
543
  description: () => import("react/jsx-runtime").JSX.Element;
544
544
  ssrName: "x264Preset";
545
545
  docLink: string;
546
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
546
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
547
547
  getValue: ({ commandLine }: {
548
548
  commandLine: Record<string, unknown>;
549
549
  }) => {
550
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
550
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
551
551
  source: string;
552
552
  } | {
553
553
  value: null;
554
554
  source: string;
555
555
  };
556
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
556
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
557
557
  };
558
558
  logLevelOption: {
559
559
  cliFlag: "log";
@@ -564,11 +564,11 @@ export declare const BrowserSafeApis: {
564
564
  getValue: ({ commandLine }: {
565
565
  commandLine: Record<string, unknown>;
566
566
  }) => {
567
- value: "verbose" | "info" | "warn" | "error";
567
+ value: "error" | "verbose" | "info" | "warn";
568
568
  source: string;
569
569
  };
570
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
571
- type: "verbose" | "info" | "warn" | "error";
570
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
571
+ type: "error" | "verbose" | "info" | "warn";
572
572
  };
573
573
  delayRenderTimeoutInMillisecondsOption: {
574
574
  name: string;
@@ -615,6 +615,21 @@ export declare const BrowserSafeApis: {
615
615
  };
616
616
  setConfig: (value: boolean) => void;
617
617
  };
618
+ binariesDirectoryOption: {
619
+ name: string;
620
+ cliFlag: "binaries-directory";
621
+ description: () => import("react/jsx-runtime").JSX.Element;
622
+ ssrName: "binariesDirectory";
623
+ docLink: string;
624
+ type: string | null;
625
+ getValue: ({ commandLine }: {
626
+ commandLine: Record<string, unknown>;
627
+ }) => {
628
+ source: string;
629
+ value: string | null;
630
+ };
631
+ setConfig: (value: string | null) => void;
632
+ };
618
633
  };
619
634
  validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
620
635
  optionsMap: {
@@ -691,17 +706,17 @@ export declare const BrowserSafeApis: {
691
706
  description: () => import("react/jsx-runtime").JSX.Element;
692
707
  ssrName: "x264Preset";
693
708
  docLink: string;
694
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
709
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
695
710
  getValue: ({ commandLine }: {
696
711
  commandLine: Record<string, unknown>;
697
712
  }) => {
698
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
713
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
699
714
  source: string;
700
715
  } | {
701
716
  value: null;
702
717
  source: string;
703
718
  };
704
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
719
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
705
720
  };
706
721
  readonly audioBitrate: {
707
722
  name: string;
@@ -832,11 +847,11 @@ export declare const BrowserSafeApis: {
832
847
  getValue: ({ commandLine }: {
833
848
  commandLine: Record<string, unknown>;
834
849
  }) => {
835
- value: "verbose" | "info" | "warn" | "error";
850
+ value: "error" | "verbose" | "info" | "warn";
836
851
  source: string;
837
852
  };
838
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
839
- type: "verbose" | "info" | "warn" | "error";
853
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
854
+ type: "error" | "verbose" | "info" | "warn";
840
855
  };
841
856
  readonly timeoutInMilliseconds: {
842
857
  name: string;
@@ -853,6 +868,21 @@ export declare const BrowserSafeApis: {
853
868
  };
854
869
  setConfig: (value: number) => void;
855
870
  };
871
+ readonly binariesDirectory: {
872
+ name: string;
873
+ cliFlag: "binaries-directory";
874
+ description: () => import("react/jsx-runtime").JSX.Element;
875
+ ssrName: "binariesDirectory";
876
+ docLink: string;
877
+ type: string | null;
878
+ getValue: ({ commandLine }: {
879
+ commandLine: Record<string, unknown>;
880
+ }) => {
881
+ source: string;
882
+ value: string | null;
883
+ };
884
+ setConfig: (value: string | null) => void;
885
+ };
856
886
  };
857
887
  readonly renderStill: {
858
888
  readonly offthreadVideoCacheSizeInBytes: {
@@ -897,11 +927,11 @@ export declare const BrowserSafeApis: {
897
927
  getValue: ({ commandLine }: {
898
928
  commandLine: Record<string, unknown>;
899
929
  }) => {
900
- value: "verbose" | "info" | "warn" | "error";
930
+ value: "error" | "verbose" | "info" | "warn";
901
931
  source: string;
902
932
  };
903
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
904
- type: "verbose" | "info" | "warn" | "error";
933
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
934
+ type: "error" | "verbose" | "info" | "warn";
905
935
  };
906
936
  readonly timeoutInMilliseconds: {
907
937
  name: string;
@@ -918,6 +948,21 @@ export declare const BrowserSafeApis: {
918
948
  };
919
949
  setConfig: (value: number) => void;
920
950
  };
951
+ readonly binariesDirectory: {
952
+ name: string;
953
+ cliFlag: "binaries-directory";
954
+ description: () => import("react/jsx-runtime").JSX.Element;
955
+ ssrName: "binariesDirectory";
956
+ docLink: string;
957
+ type: string | null;
958
+ getValue: ({ commandLine }: {
959
+ commandLine: Record<string, unknown>;
960
+ }) => {
961
+ source: string;
962
+ value: string | null;
963
+ };
964
+ setConfig: (value: string | null) => void;
965
+ };
921
966
  };
922
967
  readonly getCompositions: {
923
968
  readonly offthreadVideoCacheSizeInBytes: {
@@ -947,11 +992,11 @@ export declare const BrowserSafeApis: {
947
992
  getValue: ({ commandLine }: {
948
993
  commandLine: Record<string, unknown>;
949
994
  }) => {
950
- value: "verbose" | "info" | "warn" | "error";
995
+ value: "error" | "verbose" | "info" | "warn";
951
996
  source: string;
952
997
  };
953
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
954
- type: "verbose" | "info" | "warn" | "error";
998
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
999
+ type: "error" | "verbose" | "info" | "warn";
955
1000
  };
956
1001
  readonly timeoutInMilliseconds: {
957
1002
  name: string;
@@ -968,6 +1013,21 @@ export declare const BrowserSafeApis: {
968
1013
  };
969
1014
  setConfig: (value: number) => void;
970
1015
  };
1016
+ readonly binariesDirectory: {
1017
+ name: string;
1018
+ cliFlag: "binaries-directory";
1019
+ description: () => import("react/jsx-runtime").JSX.Element;
1020
+ ssrName: "binariesDirectory";
1021
+ docLink: string;
1022
+ type: string | null;
1023
+ getValue: ({ commandLine }: {
1024
+ commandLine: Record<string, unknown>;
1025
+ }) => {
1026
+ source: string;
1027
+ value: string | null;
1028
+ };
1029
+ setConfig: (value: string | null) => void;
1030
+ };
971
1031
  };
972
1032
  readonly selectComposition: {
973
1033
  readonly offthreadVideoCacheSizeInBytes: {
@@ -997,11 +1057,11 @@ export declare const BrowserSafeApis: {
997
1057
  getValue: ({ commandLine }: {
998
1058
  commandLine: Record<string, unknown>;
999
1059
  }) => {
1000
- value: "verbose" | "info" | "warn" | "error";
1060
+ value: "error" | "verbose" | "info" | "warn";
1001
1061
  source: string;
1002
1062
  };
1003
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1004
- type: "verbose" | "info" | "warn" | "error";
1063
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1064
+ type: "error" | "verbose" | "info" | "warn";
1005
1065
  };
1006
1066
  readonly timeoutInMilliseconds: {
1007
1067
  name: string;
@@ -1018,6 +1078,21 @@ export declare const BrowserSafeApis: {
1018
1078
  };
1019
1079
  setConfig: (value: number) => void;
1020
1080
  };
1081
+ readonly binariesDirectory: {
1082
+ name: string;
1083
+ cliFlag: "binaries-directory";
1084
+ description: () => import("react/jsx-runtime").JSX.Element;
1085
+ ssrName: "binariesDirectory";
1086
+ docLink: string;
1087
+ type: string | null;
1088
+ getValue: ({ commandLine }: {
1089
+ commandLine: Record<string, unknown>;
1090
+ }) => {
1091
+ source: string;
1092
+ value: string | null;
1093
+ };
1094
+ setConfig: (value: string | null) => void;
1095
+ };
1021
1096
  };
1022
1097
  readonly renderFrames: {
1023
1098
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1062,11 +1137,11 @@ export declare const BrowserSafeApis: {
1062
1137
  getValue: ({ commandLine }: {
1063
1138
  commandLine: Record<string, unknown>;
1064
1139
  }) => {
1065
- value: "verbose" | "info" | "warn" | "error";
1140
+ value: "error" | "verbose" | "info" | "warn";
1066
1141
  source: string;
1067
1142
  };
1068
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1069
- type: "verbose" | "info" | "warn" | "error";
1143
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1144
+ type: "error" | "verbose" | "info" | "warn";
1070
1145
  };
1071
1146
  readonly timeoutInMilliseconds: {
1072
1147
  name: string;
@@ -1083,6 +1158,21 @@ export declare const BrowserSafeApis: {
1083
1158
  };
1084
1159
  setConfig: (value: number) => void;
1085
1160
  };
1161
+ readonly binariesDirectory: {
1162
+ name: string;
1163
+ cliFlag: "binaries-directory";
1164
+ description: () => import("react/jsx-runtime").JSX.Element;
1165
+ ssrName: "binariesDirectory";
1166
+ docLink: string;
1167
+ type: string | null;
1168
+ getValue: ({ commandLine }: {
1169
+ commandLine: Record<string, unknown>;
1170
+ }) => {
1171
+ source: string;
1172
+ value: string | null;
1173
+ };
1174
+ setConfig: (value: string | null) => void;
1175
+ };
1086
1176
  };
1087
1177
  readonly renderMediaOnLambda: {
1088
1178
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1178,17 +1268,17 @@ export declare const BrowserSafeApis: {
1178
1268
  description: () => import("react/jsx-runtime").JSX.Element;
1179
1269
  ssrName: "x264Preset";
1180
1270
  docLink: string;
1181
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
1271
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
1182
1272
  getValue: ({ commandLine }: {
1183
1273
  commandLine: Record<string, unknown>;
1184
1274
  }) => {
1185
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
1275
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
1186
1276
  source: string;
1187
1277
  } | {
1188
1278
  value: null;
1189
1279
  source: string;
1190
1280
  };
1191
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
1281
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
1192
1282
  };
1193
1283
  readonly encodingMaxRate: {
1194
1284
  name: string;
@@ -1265,11 +1355,11 @@ export declare const BrowserSafeApis: {
1265
1355
  getValue: ({ commandLine }: {
1266
1356
  commandLine: Record<string, unknown>;
1267
1357
  }) => {
1268
- value: "verbose" | "info" | "warn" | "error";
1358
+ value: "error" | "verbose" | "info" | "warn";
1269
1359
  source: string;
1270
1360
  };
1271
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1272
- type: "verbose" | "info" | "warn" | "error";
1361
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1362
+ type: "error" | "verbose" | "info" | "warn";
1273
1363
  };
1274
1364
  readonly timeoutInMilliseconds: {
1275
1365
  name: string;
@@ -1330,11 +1420,11 @@ export declare const BrowserSafeApis: {
1330
1420
  getValue: ({ commandLine }: {
1331
1421
  commandLine: Record<string, unknown>;
1332
1422
  }) => {
1333
- value: "verbose" | "info" | "warn" | "error";
1423
+ value: "error" | "verbose" | "info" | "warn";
1334
1424
  source: string;
1335
1425
  };
1336
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1337
- type: "verbose" | "info" | "warn" | "error";
1426
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1427
+ type: "error" | "verbose" | "info" | "warn";
1338
1428
  };
1339
1429
  readonly deleteAfter: {
1340
1430
  name: string;
@@ -1413,11 +1503,11 @@ export declare const BrowserSafeApis: {
1413
1503
  getValue: ({ commandLine }: {
1414
1504
  commandLine: Record<string, unknown>;
1415
1505
  }) => {
1416
- value: "verbose" | "info" | "warn" | "error";
1506
+ value: "error" | "verbose" | "info" | "warn";
1417
1507
  source: string;
1418
1508
  };
1419
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1420
- type: "verbose" | "info" | "warn" | "error";
1509
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1510
+ type: "error" | "verbose" | "info" | "warn";
1421
1511
  };
1422
1512
  readonly timeoutInMilliseconds: {
1423
1513
  name: string;
@@ -1526,17 +1616,17 @@ export declare const BrowserSafeApis: {
1526
1616
  description: () => import("react/jsx-runtime").JSX.Element;
1527
1617
  ssrName: "x264Preset";
1528
1618
  docLink: string;
1529
- type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
1619
+ type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
1530
1620
  getValue: ({ commandLine }: {
1531
1621
  commandLine: Record<string, unknown>;
1532
1622
  }) => {
1533
- value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
1623
+ value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
1534
1624
  source: string;
1535
1625
  } | {
1536
1626
  value: null;
1537
1627
  source: string;
1538
1628
  };
1539
- setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
1629
+ setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
1540
1630
  };
1541
1631
  readonly encodingMaxRate: {
1542
1632
  name: string;
@@ -1598,11 +1688,11 @@ export declare const BrowserSafeApis: {
1598
1688
  getValue: ({ commandLine }: {
1599
1689
  commandLine: Record<string, unknown>;
1600
1690
  }) => {
1601
- value: "verbose" | "info" | "warn" | "error";
1691
+ value: "error" | "verbose" | "info" | "warn";
1602
1692
  source: string;
1603
1693
  };
1604
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1605
- type: "verbose" | "info" | "warn" | "error";
1694
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1695
+ type: "error" | "verbose" | "info" | "warn";
1606
1696
  };
1607
1697
  readonly delayRenderTimeoutInMilliseconds: {
1608
1698
  name: string;
@@ -1708,11 +1798,11 @@ export declare const BrowserSafeApis: {
1708
1798
  getValue: ({ commandLine }: {
1709
1799
  commandLine: Record<string, unknown>;
1710
1800
  }) => {
1711
- value: "verbose" | "info" | "warn" | "error";
1801
+ value: "error" | "verbose" | "info" | "warn";
1712
1802
  source: string;
1713
1803
  };
1714
- setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1715
- type: "verbose" | "info" | "warn" | "error";
1804
+ setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
1805
+ type: "error" | "verbose" | "info" | "warn";
1716
1806
  };
1717
1807
  readonly scale: {
1718
1808
  name: string;
@@ -1,8 +1,9 @@
1
1
  import type { AudioCodec } from './audio-codec';
2
2
  import type { LogLevel } from './log-level';
3
+ import type { CancelSignal } from './make-cancel-signal';
3
4
  export declare const durationOf1Frame: number;
4
5
  export declare const getClosestAlignedTime: (targetTime: number) => number;
5
- export declare const createCombinedAudio: ({ seamless, filelistDir, files, indent, logLevel, audioBitrate, resolvedAudioCodec, output, chunkDurationInSeconds, addRemotionMetadata, }: {
6
+ export declare const createCombinedAudio: ({ seamless, filelistDir, files, indent, logLevel, audioBitrate, resolvedAudioCodec, output, chunkDurationInSeconds, addRemotionMetadata, binariesDirectory, fps, cancelSignal, onProgress, }: {
6
7
  seamless: boolean;
7
8
  filelistDir: string;
8
9
  files: string[];
@@ -13,4 +14,8 @@ export declare const createCombinedAudio: ({ seamless, filelistDir, files, inden
13
14
  output: string;
14
15
  chunkDurationInSeconds: number;
15
16
  addRemotionMetadata: boolean;
17
+ binariesDirectory: string | null;
18
+ fps: number;
19
+ cancelSignal: CancelSignal | undefined;
20
+ onProgress: (frames: number) => void;
16
21
  }) => Promise<string>;