@remotion/renderer 4.0.351 → 4.0.352

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.
@@ -1,5 +1,23 @@
1
1
  export declare const optionsMap: {
2
2
  readonly renderMedia: {
3
+ readonly mediaCacheSizeInBytes: {
4
+ name: string;
5
+ cliFlag: "media-cache-size-in-bytes";
6
+ description: () => import("react/jsx-runtime").JSX.Element;
7
+ ssrName: "mediaCacheSizeInBytes";
8
+ docLink: string;
9
+ type: number | null;
10
+ getValue: ({ commandLine }: {
11
+ commandLine: Record<string, unknown>;
12
+ }) => {
13
+ source: string;
14
+ value: number;
15
+ } | {
16
+ source: string;
17
+ value: null;
18
+ };
19
+ setConfig: (size: number | null) => void;
20
+ };
3
21
  readonly offthreadVideoCacheSizeInBytes: {
4
22
  name: string;
5
23
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -413,6 +431,24 @@ export declare const optionsMap: {
413
431
  };
414
432
  };
415
433
  readonly renderStill: {
434
+ readonly mediaCacheSizeInBytes: {
435
+ name: string;
436
+ cliFlag: "media-cache-size-in-bytes";
437
+ description: () => import("react/jsx-runtime").JSX.Element;
438
+ ssrName: "mediaCacheSizeInBytes";
439
+ docLink: string;
440
+ type: number | null;
441
+ getValue: ({ commandLine }: {
442
+ commandLine: Record<string, unknown>;
443
+ }) => {
444
+ source: string;
445
+ value: number;
446
+ } | {
447
+ source: string;
448
+ value: null;
449
+ };
450
+ setConfig: (size: number | null) => void;
451
+ };
416
452
  readonly offthreadVideoCacheSizeInBytes: {
417
453
  name: string;
418
454
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -536,6 +572,24 @@ export declare const optionsMap: {
536
572
  };
537
573
  };
538
574
  readonly getCompositions: {
575
+ readonly mediaCacheSizeInBytes: {
576
+ name: string;
577
+ cliFlag: "media-cache-size-in-bytes";
578
+ description: () => import("react/jsx-runtime").JSX.Element;
579
+ ssrName: "mediaCacheSizeInBytes";
580
+ docLink: string;
581
+ type: number | null;
582
+ getValue: ({ commandLine }: {
583
+ commandLine: Record<string, unknown>;
584
+ }) => {
585
+ source: string;
586
+ value: number;
587
+ } | {
588
+ source: string;
589
+ value: null;
590
+ };
591
+ setConfig: (size: number | null) => void;
592
+ };
539
593
  readonly offthreadVideoCacheSizeInBytes: {
540
594
  name: string;
541
595
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -644,6 +698,24 @@ export declare const optionsMap: {
644
698
  };
645
699
  };
646
700
  readonly selectComposition: {
701
+ readonly mediaCacheSizeInBytes: {
702
+ name: string;
703
+ cliFlag: "media-cache-size-in-bytes";
704
+ description: () => import("react/jsx-runtime").JSX.Element;
705
+ ssrName: "mediaCacheSizeInBytes";
706
+ docLink: string;
707
+ type: number | null;
708
+ getValue: ({ commandLine }: {
709
+ commandLine: Record<string, unknown>;
710
+ }) => {
711
+ source: string;
712
+ value: number;
713
+ } | {
714
+ source: string;
715
+ value: null;
716
+ };
717
+ setConfig: (size: number | null) => void;
718
+ };
647
719
  readonly offthreadVideoCacheSizeInBytes: {
648
720
  name: string;
649
721
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -752,6 +824,24 @@ export declare const optionsMap: {
752
824
  };
753
825
  };
754
826
  readonly renderFrames: {
827
+ readonly mediaCacheSizeInBytes: {
828
+ name: string;
829
+ cliFlag: "media-cache-size-in-bytes";
830
+ description: () => import("react/jsx-runtime").JSX.Element;
831
+ ssrName: "mediaCacheSizeInBytes";
832
+ docLink: string;
833
+ type: number | null;
834
+ getValue: ({ commandLine }: {
835
+ commandLine: Record<string, unknown>;
836
+ }) => {
837
+ source: string;
838
+ value: number;
839
+ } | {
840
+ source: string;
841
+ value: null;
842
+ };
843
+ setConfig: (size: number | null) => void;
844
+ };
755
845
  readonly forSeamlessAacConcatenation: {
756
846
  name: string;
757
847
  cliFlag: "for-seamless-aac-concatenation";
@@ -908,6 +998,24 @@ export declare const optionsMap: {
908
998
  };
909
999
  };
910
1000
  readonly renderMediaOnLambda: {
1001
+ readonly mediaCacheSizeInBytes: {
1002
+ name: string;
1003
+ cliFlag: "media-cache-size-in-bytes";
1004
+ description: () => import("react/jsx-runtime").JSX.Element;
1005
+ ssrName: "mediaCacheSizeInBytes";
1006
+ docLink: string;
1007
+ type: number | null;
1008
+ getValue: ({ commandLine }: {
1009
+ commandLine: Record<string, unknown>;
1010
+ }) => {
1011
+ source: string;
1012
+ value: number;
1013
+ } | {
1014
+ source: string;
1015
+ value: null;
1016
+ };
1017
+ setConfig: (size: number | null) => void;
1018
+ };
911
1019
  readonly offthreadVideoCacheSizeInBytes: {
912
1020
  name: string;
913
1021
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -1162,6 +1270,24 @@ export declare const optionsMap: {
1162
1270
  };
1163
1271
  };
1164
1272
  readonly renderStillOnLambda: {
1273
+ readonly mediaCacheSizeInBytes: {
1274
+ name: string;
1275
+ cliFlag: "media-cache-size-in-bytes";
1276
+ description: () => import("react/jsx-runtime").JSX.Element;
1277
+ ssrName: "mediaCacheSizeInBytes";
1278
+ docLink: string;
1279
+ type: number | null;
1280
+ getValue: ({ commandLine }: {
1281
+ commandLine: Record<string, unknown>;
1282
+ }) => {
1283
+ source: string;
1284
+ value: number;
1285
+ } | {
1286
+ source: string;
1287
+ value: null;
1288
+ };
1289
+ setConfig: (size: number | null) => void;
1290
+ };
1165
1291
  readonly offthreadVideoCacheSizeInBytes: {
1166
1292
  name: string;
1167
1293
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -1293,11 +1419,11 @@ export declare const optionsMap: {
1293
1419
  };
1294
1420
  };
1295
1421
  readonly getCompositionsOnLambda: {
1296
- readonly offthreadVideoCacheSizeInBytes: {
1422
+ readonly mediaCacheSizeInBytes: {
1297
1423
  name: string;
1298
- cliFlag: "offthreadvideo-cache-size-in-bytes";
1424
+ cliFlag: "media-cache-size-in-bytes";
1299
1425
  description: () => import("react/jsx-runtime").JSX.Element;
1300
- ssrName: "offthreadVideoCacheSizeInBytes";
1426
+ ssrName: "mediaCacheSizeInBytes";
1301
1427
  docLink: string;
1302
1428
  type: number | null;
1303
1429
  getValue: ({ commandLine }: {
@@ -1311,11 +1437,11 @@ export declare const optionsMap: {
1311
1437
  };
1312
1438
  setConfig: (size: number | null) => void;
1313
1439
  };
1314
- readonly offthreadVideoThreads: {
1440
+ readonly offthreadVideoCacheSizeInBytes: {
1315
1441
  name: string;
1316
- cliFlag: "offthreadvideo-video-threads";
1442
+ cliFlag: "offthreadvideo-cache-size-in-bytes";
1317
1443
  description: () => import("react/jsx-runtime").JSX.Element;
1318
- ssrName: "offthreadVideoThreads";
1444
+ ssrName: "offthreadVideoCacheSizeInBytes";
1319
1445
  docLink: string;
1320
1446
  type: number | null;
1321
1447
  getValue: ({ commandLine }: {
@@ -1361,6 +1487,24 @@ export declare const optionsMap: {
1361
1487
  };
1362
1488
  };
1363
1489
  readonly renderMediaOnCloudRun: {
1490
+ readonly mediaCacheSizeInBytes: {
1491
+ name: string;
1492
+ cliFlag: "media-cache-size-in-bytes";
1493
+ description: () => import("react/jsx-runtime").JSX.Element;
1494
+ ssrName: "mediaCacheSizeInBytes";
1495
+ docLink: string;
1496
+ type: number | null;
1497
+ getValue: ({ commandLine }: {
1498
+ commandLine: Record<string, unknown>;
1499
+ }) => {
1500
+ source: string;
1501
+ value: number;
1502
+ } | {
1503
+ source: string;
1504
+ value: null;
1505
+ };
1506
+ setConfig: (size: number | null) => void;
1507
+ };
1364
1508
  readonly offthreadVideoCacheSizeInBytes: {
1365
1509
  name: string;
1366
1510
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -1645,6 +1789,24 @@ export declare const optionsMap: {
1645
1789
  };
1646
1790
  };
1647
1791
  readonly renderStillOnCloudRun: {
1792
+ readonly mediaCacheSizeInBytes: {
1793
+ name: string;
1794
+ cliFlag: "media-cache-size-in-bytes";
1795
+ description: () => import("react/jsx-runtime").JSX.Element;
1796
+ ssrName: "mediaCacheSizeInBytes";
1797
+ docLink: string;
1798
+ type: number | null;
1799
+ getValue: ({ commandLine }: {
1800
+ commandLine: Record<string, unknown>;
1801
+ }) => {
1802
+ source: string;
1803
+ value: number;
1804
+ } | {
1805
+ source: string;
1806
+ value: null;
1807
+ };
1808
+ setConfig: (size: number | null) => void;
1809
+ };
1648
1810
  readonly offthreadVideoCacheSizeInBytes: {
1649
1811
  name: string;
1650
1812
  cliFlag: "offthreadvideo-cache-size-in-bytes";
@@ -30,10 +30,12 @@ const separate_audio_1 = require("./separate-audio");
30
30
  const throw_if_site_exists_1 = require("./throw-if-site-exists");
31
31
  const timeout_1 = require("./timeout");
32
32
  const video_bitrate_1 = require("./video-bitrate");
33
+ const video_cache_size_1 = require("./video-cache-size");
33
34
  const video_codec_1 = require("./video-codec");
34
35
  const x264_preset_1 = require("./x264-preset");
35
36
  exports.optionsMap = {
36
37
  renderMedia: {
38
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
37
39
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
38
40
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
39
41
  videoBitrate: video_bitrate_1.videoBitrateOption,
@@ -63,6 +65,7 @@ exports.optionsMap = {
63
65
  hardwareAcceleration: hardware_acceleration_1.hardwareAccelerationOption,
64
66
  },
65
67
  renderStill: {
68
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
66
69
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
67
70
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
68
71
  jpegQuality: jpeg_quality_1.jpegQualityOption,
@@ -73,6 +76,7 @@ exports.optionsMap = {
73
76
  chromeMode: chrome_mode_1.chromeModeOption,
74
77
  },
75
78
  getCompositions: {
79
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
76
80
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
77
81
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
78
82
  logLevel: log_level_1.logLevelOption,
@@ -82,6 +86,7 @@ exports.optionsMap = {
82
86
  chromeMode: chrome_mode_1.chromeModeOption,
83
87
  },
84
88
  selectComposition: {
89
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
85
90
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
86
91
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
87
92
  logLevel: log_level_1.logLevelOption,
@@ -91,6 +96,7 @@ exports.optionsMap = {
91
96
  chromeMode: chrome_mode_1.chromeModeOption,
92
97
  },
93
98
  renderFrames: {
99
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
94
100
  forSeamlessAacConcatenation: for_seamless_aac_concatenation_1.forSeamlessAacConcatenationOption,
95
101
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
96
102
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
@@ -103,6 +109,7 @@ exports.optionsMap = {
103
109
  imageSequencePattern: image_sequence_pattern_1.imageSequencePatternOption,
104
110
  },
105
111
  renderMediaOnLambda: {
112
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
106
113
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
107
114
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
108
115
  videoBitrate: video_bitrate_1.videoBitrateOption,
@@ -120,6 +127,7 @@ exports.optionsMap = {
120
127
  apiKey: api_key_1.apiKeyOption,
121
128
  },
122
129
  renderStillOnLambda: {
130
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
123
131
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
124
132
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
125
133
  jpegQuality: jpeg_quality_1.jpegQualityOption,
@@ -130,12 +138,13 @@ exports.optionsMap = {
130
138
  apiKey: api_key_1.apiKeyOption,
131
139
  },
132
140
  getCompositionsOnLambda: {
141
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
133
142
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
134
- offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
135
143
  logLevel: log_level_1.logLevelOption,
136
144
  timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
137
145
  },
138
146
  renderMediaOnCloudRun: {
147
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
139
148
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
140
149
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
141
150
  numberOfGifLoops: number_of_gif_loops_1.numberOfGifLoopsOption,
@@ -155,6 +164,7 @@ exports.optionsMap = {
155
164
  jpegQuality: jpeg_quality_1.jpegQualityOption,
156
165
  },
157
166
  renderStillOnCloudRun: {
167
+ mediaCacheSizeInBytes: video_cache_size_1.mediaCacheSizeInBytesOption,
158
168
  offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
159
169
  offthreadVideoThreads: offthreadvideo_threads_1.offthreadVideoThreadsOption,
160
170
  logLevel: log_level_1.logLevelOption,
@@ -0,0 +1,19 @@
1
+ export declare const getMediaCacheSizeInBytes: () => number | null;
2
+ export declare const mediaCacheSizeInBytesOption: {
3
+ name: string;
4
+ cliFlag: "media-cache-size-in-bytes";
5
+ description: () => import("react/jsx-runtime").JSX.Element;
6
+ ssrName: "mediaCacheSizeInBytes";
7
+ docLink: string;
8
+ type: number | null;
9
+ getValue: ({ commandLine }: {
10
+ commandLine: Record<string, unknown>;
11
+ }) => {
12
+ source: string;
13
+ value: number;
14
+ } | {
15
+ source: string;
16
+ value: null;
17
+ };
18
+ setConfig: (size: number | null) => void;
19
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mediaCacheSizeInBytesOption = exports.getMediaCacheSizeInBytes = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let mediaCacheSizeInBytes = null;
6
+ const getMediaCacheSizeInBytes = () => {
7
+ return mediaCacheSizeInBytes;
8
+ };
9
+ exports.getMediaCacheSizeInBytes = getMediaCacheSizeInBytes;
10
+ const cliFlag = 'media-cache-size-in-bytes';
11
+ exports.mediaCacheSizeInBytesOption = {
12
+ name: '@remotion/media cache size',
13
+ cliFlag,
14
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Specify the maximum size of the cache that ", (0, jsx_runtime_1.jsx)("code", { children: "<Video>" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "<Audio>" }), " from ", (0, jsx_runtime_1.jsx)("code", { children: "@remotion/media" }), " may use combined, in bytes. ", (0, jsx_runtime_1.jsx)("br", {}), "The default is half of the available system memory when the render starts."] })),
15
+ ssrName: 'mediaCacheSizeInBytes',
16
+ docLink: 'https://www.remotion.dev/docs/media/video#setting-the-cache-size',
17
+ type: 0,
18
+ getValue: ({ commandLine }) => {
19
+ if (commandLine[cliFlag] !== undefined) {
20
+ return {
21
+ source: 'cli',
22
+ value: commandLine[cliFlag],
23
+ };
24
+ }
25
+ if (mediaCacheSizeInBytes !== null) {
26
+ return {
27
+ source: 'config',
28
+ value: mediaCacheSizeInBytes,
29
+ };
30
+ }
31
+ return {
32
+ source: 'default',
33
+ value: null,
34
+ };
35
+ },
36
+ setConfig: (size) => {
37
+ mediaCacheSizeInBytes = size !== null && size !== void 0 ? size : null;
38
+ },
39
+ };
@@ -34,7 +34,7 @@ const validate_1 = require("./validate");
34
34
  const validate_scale_1 = require("./validate-scale");
35
35
  const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
36
36
  const MAX_RETRIES_PER_FRAME = 1;
37
- const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, jpegQuality, imageFormat, frameRange, onError, envVariables, onBrowserLog, onFrameBuffer, onDownload, pagesArray, serveUrl, composition, timeoutInMilliseconds, scale, resolvedConcurrency, everyNthFrame, proxyPort, cancelSignal, downloadMap, muted, makeBrowser, browserReplacer, sourceMapGetter, logLevel, indent, parallelEncodingEnabled, compositionStart, forSeamlessAacConcatenation, onArtifact, binariesDirectory, imageSequencePattern, }) => {
37
+ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, jpegQuality, imageFormat, frameRange, onError, envVariables, onBrowserLog, onFrameBuffer, onDownload, pagesArray, serveUrl, composition, timeoutInMilliseconds, scale, resolvedConcurrency, everyNthFrame, proxyPort, cancelSignal, downloadMap, muted, makeBrowser, browserReplacer, sourceMapGetter, logLevel, indent, parallelEncodingEnabled, compositionStart, forSeamlessAacConcatenation, onArtifact, binariesDirectory, imageSequencePattern, mediaCacheSizeInBytes, }) => {
38
38
  if (outputDir) {
39
39
  if (!node_fs_1.default.existsSync(outputDir)) {
40
40
  node_fs_1.default.mkdirSync(outputDir, {
@@ -74,6 +74,7 @@ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, serialized
74
74
  timeoutInMilliseconds,
75
75
  pageIndex,
76
76
  isMainTab: pageIndex === 0,
77
+ mediaCacheSizeInBytes,
77
78
  });
78
79
  };
79
80
  const getPool = async () => {
@@ -192,7 +193,7 @@ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, serialized
192
193
  frameCount: framesToRender.length,
193
194
  };
194
195
  };
195
- const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOptions, composition, concurrency, envVariables, everyNthFrame, frameRange, imageFormat, indent, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, onFrameUpdate, onStart, outputDir, port, puppeteerInstance, scale, server, timeoutInMilliseconds, logLevel, webpackBundleOrServeUrl, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, parallelEncodingEnabled, binariesDirectory, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, imageSequencePattern, }) => {
196
+ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOptions, composition, concurrency, envVariables, everyNthFrame, frameRange, imageFormat, indent, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, onFrameUpdate, onStart, outputDir, port, puppeteerInstance, scale, server, timeoutInMilliseconds, logLevel, webpackBundleOrServeUrl, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, parallelEncodingEnabled, binariesDirectory, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, imageSequencePattern, mediaCacheSizeInBytes, }) => {
196
197
  (0, validate_1.validateDimension)(composition.height, 'height', 'in the `config` object passed to `renderFrames()`');
197
198
  (0, validate_1.validateDimension)(composition.width, 'width', 'in the `config` object passed to `renderFrames()`');
198
199
  (0, validate_1.validateFps)(composition.fps, 'in the `config` object of `renderFrames()`', false);
@@ -295,6 +296,7 @@ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOpti
295
296
  chromeMode,
296
297
  offthreadVideoThreads,
297
298
  imageSequencePattern,
299
+ mediaCacheSizeInBytes,
298
300
  });
299
301
  }),
300
302
  ])
@@ -343,7 +345,7 @@ exports.internalRenderFrames = (0, wrap_with_error_handling_1.wrapWithErrorHandl
343
345
  * @see [Documentation](https://www.remotion.dev/docs/renderer/render-frames)
344
346
  */
345
347
  const renderFrames = (options) => {
346
- const { composition, inputProps, onFrameUpdate, onStart, outputDir, serveUrl, browserExecutable, cancelSignal, chromiumOptions, concurrency, dumpBrowserLogs, envVariables, everyNthFrame, frameRange, imageFormat, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, imageSequencePattern, } = options;
348
+ const { composition, inputProps, onFrameUpdate, onStart, outputDir, serveUrl, browserExecutable, cancelSignal, chromiumOptions, concurrency, dumpBrowserLogs, envVariables, everyNthFrame, frameRange, imageFormat, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, imageSequencePattern, mediaCacheSizeInBytes, } = options;
347
349
  if (!composition) {
348
350
  throw new Error('No `composition` option has been specified for renderFrames()');
349
351
  }
@@ -401,6 +403,7 @@ const renderFrames = (options) => {
401
403
  chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
402
404
  offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
403
405
  imageSequencePattern: imageSequencePattern !== null && imageSequencePattern !== void 0 ? imageSequencePattern : null,
406
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
404
407
  });
405
408
  };
406
409
  exports.renderFrames = renderFrames;
@@ -129,5 +129,5 @@ type RenderMediaResult = {
129
129
  slowestFrames: SlowFrame[];
130
130
  };
131
131
  export declare const internalRenderMedia: (args_0: InternalRenderMediaOptions) => Promise<RenderMediaResult>;
132
- export declare const renderMedia: ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, compositionStart, }: RenderMediaOptions) => Promise<RenderMediaResult>;
132
+ export declare const renderMedia: ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, compositionStart, mediaCacheSizeInBytes, }: RenderMediaOptions) => Promise<RenderMediaResult>;
133
133
  export {};
@@ -52,7 +52,7 @@ const validate_videobitrate_1 = require("./validate-videobitrate");
52
52
  const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
53
53
  const SLOWEST_FRAME_COUNT = 10;
54
54
  const MAX_RECENT_FRAME_TIMINGS = 50;
55
- const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition: compositionWithPossibleUnevenDimensions, serializedInputPropsWithCustomSchema, pixelFormat: userPixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, concurrency, disallowParallelEncoding, everyNthFrame, imageFormat: provisionalImageFormat, indent, jpegQuality, numberOfGifLoops, onCtrlCExit, preferLossless, serveUrl, server: reusedServer, logLevel, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, }) => {
55
+ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition: compositionWithPossibleUnevenDimensions, serializedInputPropsWithCustomSchema, pixelFormat: userPixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, concurrency, disallowParallelEncoding, everyNthFrame, imageFormat: provisionalImageFormat, indent, jpegQuality, numberOfGifLoops, onCtrlCExit, preferLossless, serveUrl, server: reusedServer, logLevel, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, mediaCacheSizeInBytes, }) => {
56
56
  var _a, _b;
57
57
  const pixelFormat = (_a = userPixelFormat !== null && userPixelFormat !== void 0 ? userPixelFormat : compositionWithPossibleUnevenDimensions.defaultPixelFormat) !== null && _a !== void 0 ? _a : pixel_format_1.DEFAULT_PIXEL_FORMAT;
58
58
  if (repro) {
@@ -393,6 +393,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition: c
393
393
  onArtifact,
394
394
  chromeMode,
395
395
  imageSequencePattern: null,
396
+ mediaCacheSizeInBytes,
396
397
  });
397
398
  return renderFramesProc;
398
399
  })
@@ -539,7 +540,7 @@ exports.internalRenderMedia = (0, wrap_with_error_handling_1.wrapWithErrorHandli
539
540
  * @description Render a video or an audio programmatically.
540
541
  * @see [Documentation](https://www.remotion.dev/docs/renderer/render-media)
541
542
  */
542
- const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, compositionStart, }) => {
543
+ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, compositionStart, mediaCacheSizeInBytes, }) => {
543
544
  var _a, _b;
544
545
  const indent = false;
545
546
  const logLevel = verbose || dumpBrowserLogs ? 'verbose' : (passedLogLevel !== null && passedLogLevel !== void 0 ? passedLogLevel : 'info');
@@ -615,6 +616,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
615
616
  compositionStart: compositionStart !== null && compositionStart !== void 0 ? compositionStart : 0,
616
617
  hardwareAcceleration: hardwareAcceleration !== null && hardwareAcceleration !== void 0 ? hardwareAcceleration : 'disable',
617
618
  chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
619
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
618
620
  });
619
621
  };
620
622
  exports.renderMedia = renderMedia;
@@ -53,6 +53,7 @@ const image_format_1 = require("./image-format");
53
53
  const jpeg_quality_1 = require("./jpeg-quality");
54
54
  const logger_1 = require("./logger");
55
55
  const make_cancel_signal_1 = require("./make-cancel-signal");
56
+ const get_available_memory_1 = require("./memory/get-available-memory");
56
57
  const open_browser_1 = require("./open-browser");
57
58
  const overwrite_1 = require("./overwrite");
58
59
  const prepare_server_1 = require("./prepare-server");
@@ -64,7 +65,7 @@ const validate_1 = require("./validate");
64
65
  const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
65
66
  const validate_scale_1 = require("./validate-scale");
66
67
  const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
67
- const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFAULT_STILL_IMAGE_FORMAT, serveUrl, puppeteerInstance, onError, serializedInputPropsWithCustomSchema, envVariables, output, frame = 0, overwrite, browserExecutable, timeoutInMilliseconds, chromiumOptions, scale, proxyPort, cancelSignal, jpegQuality, onBrowserLog, sourceMapGetter, logLevel, indent, serializedResolvedPropsWithCustomSchema, onBrowserDownload, onArtifact, chromeMode, }) => {
68
+ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFAULT_STILL_IMAGE_FORMAT, serveUrl, puppeteerInstance, onError, serializedInputPropsWithCustomSchema, envVariables, output, frame = 0, overwrite, browserExecutable, timeoutInMilliseconds, chromiumOptions, scale, proxyPort, cancelSignal, jpegQuality, onBrowserLog, sourceMapGetter, logLevel, indent, serializedResolvedPropsWithCustomSchema, onBrowserDownload, onArtifact, chromeMode, mediaCacheSizeInBytes, }) => {
68
69
  (0, validate_1.validateDimension)(composition.height, 'height', 'in the `config` object passed to `renderStill()`');
69
70
  (0, validate_1.validateDimension)(composition.width, 'width', 'in the `config` object passed to `renderStill()`');
70
71
  (0, validate_1.validateFps)(composition.fps, 'in the `config` object of `renderStill()`', false);
@@ -160,6 +161,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
160
161
  logLevel,
161
162
  onServeUrlVisited: () => undefined,
162
163
  isMainTab: true,
164
+ mediaCacheSizeInBytes,
165
+ initialMemoryAvailable: (0, get_available_memory_1.getAvailableMemory)(logLevel),
163
166
  });
164
167
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
165
168
  // eslint-disable-next-line max-params
@@ -294,7 +297,7 @@ exports.internalRenderStill = (0, wrap_with_error_handling_1.wrapWithErrorHandli
294
297
  */
295
298
  const renderStill = (options) => {
296
299
  var _a, _b;
297
- const { composition, serveUrl, browserExecutable, cancelSignal, chromiumOptions, dumpBrowserLogs, envVariables, frame, imageFormat, inputProps, jpegQuality, onBrowserLog, onDownload, output, overwrite, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, offthreadVideoCacheSizeInBytes, logLevel: passedLogLevel, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, } = options;
300
+ const { composition, serveUrl, browserExecutable, cancelSignal, chromiumOptions, dumpBrowserLogs, envVariables, frame, imageFormat, inputProps, jpegQuality, onBrowserLog, onDownload, output, overwrite, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, offthreadVideoCacheSizeInBytes, logLevel: passedLogLevel, binariesDirectory, onBrowserDownload, onArtifact, chromeMode, offthreadVideoThreads, mediaCacheSizeInBytes, } = options;
298
301
  if (typeof jpegQuality !== 'undefined' && imageFormat !== 'jpeg') {
299
302
  throw new Error("You can only pass the `quality` option if `imageFormat` is 'jpeg'.");
300
303
  }
@@ -344,6 +347,7 @@ const renderStill = (options) => {
344
347
  onArtifact: onArtifact !== null && onArtifact !== void 0 ? onArtifact : null,
345
348
  chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
346
349
  offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
350
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
347
351
  });
348
352
  };
349
353
  exports.renderStill = renderStill;
@@ -8,13 +8,14 @@ const handle_javascript_exception_1 = require("./error-handling/handle-javascrip
8
8
  const find_closest_package_json_1 = require("./find-closest-package-json");
9
9
  const get_browser_instance_1 = require("./get-browser-instance");
10
10
  const logger_1 = require("./logger");
11
+ const get_available_memory_1 = require("./memory/get-available-memory");
11
12
  const prepare_server_1 = require("./prepare-server");
12
13
  const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
13
14
  const seek_to_frame_1 = require("./seek-to-frame");
14
15
  const set_props_and_env_1 = require("./set-props-and-env");
15
16
  const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
16
17
  const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
17
- const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSchema, envVariables, serveUrl, timeoutInMilliseconds, port, id, indent, logLevel, onServeUrlVisited, }) => {
18
+ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSchema, envVariables, serveUrl, timeoutInMilliseconds, port, id, indent, logLevel, onServeUrlVisited, mediaCacheSizeInBytes, }) => {
18
19
  (0, validate_puppeteer_timeout_1.validatePuppeteerTimeout)(timeoutInMilliseconds);
19
20
  await (0, set_props_and_env_1.setPropsAndEnv)({
20
21
  serializedInputPropsWithCustomSchema,
@@ -31,6 +32,8 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
31
32
  logLevel,
32
33
  onServeUrlVisited,
33
34
  isMainTab: true,
35
+ mediaCacheSizeInBytes,
36
+ initialMemoryAvailable: (0, get_available_memory_1.getAvailableMemory)(logLevel),
34
37
  });
35
38
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
36
39
  page,
@@ -91,7 +94,7 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
91
94
  };
92
95
  const internalSelectCompositionRaw = async (options) => {
93
96
  const cleanup = [];
94
- const { puppeteerInstance, browserExecutable, chromiumOptions, serveUrl: serveUrlOrWebpackUrl, logLevel, indent, port, envVariables, id, serializedInputPropsWithCustomSchema, onBrowserLog, server, timeoutInMilliseconds, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, onServeUrlVisited, chromeMode, } = options;
97
+ const { puppeteerInstance, browserExecutable, chromiumOptions, serveUrl: serveUrlOrWebpackUrl, logLevel, indent, port, envVariables, id, serializedInputPropsWithCustomSchema, onBrowserLog, server, timeoutInMilliseconds, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, onServeUrlVisited, chromeMode, mediaCacheSizeInBytes, } = options;
95
98
  const [{ page, cleanupPage }, serverUsed] = await Promise.all([
96
99
  (0, get_browser_instance_1.getPageAndCleanupFn)({
97
100
  passedInInstance: puppeteerInstance,
@@ -150,6 +153,7 @@ const internalSelectCompositionRaw = async (options) => {
150
153
  onBrowserDownload,
151
154
  onServeUrlVisited,
152
155
  chromeMode,
156
+ mediaCacheSizeInBytes,
153
157
  })
154
158
  .then((data) => {
155
159
  return resolve(data);
@@ -175,7 +179,7 @@ exports.internalSelectComposition = (0, wrap_with_error_handling_1.wrapWithError
175
179
  * @see [Documentation](https://www.remotion.dev/docs/renderer/select-composition)
176
180
  */
177
181
  const selectComposition = async (options) => {
178
- const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, chromeMode, offthreadVideoThreads, } = options;
182
+ const { id, serveUrl, browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, verbose, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, chromeMode, offthreadVideoThreads, mediaCacheSizeInBytes, } = options;
179
183
  const indent = false;
180
184
  const logLevel = passedLogLevel !== null && passedLogLevel !== void 0 ? passedLogLevel : (verbose ? 'verbose' : 'info');
181
185
  const data = await (0, exports.internalSelectComposition)({
@@ -206,6 +210,7 @@ const selectComposition = async (options) => {
206
210
  onServeUrlVisited: () => undefined,
207
211
  chromeMode: chromeMode !== null && chromeMode !== void 0 ? chromeMode : 'headless-shell',
208
212
  offthreadVideoThreads: offthreadVideoThreads !== null && offthreadVideoThreads !== void 0 ? offthreadVideoThreads : null,
213
+ mediaCacheSizeInBytes: mediaCacheSizeInBytes !== null && mediaCacheSizeInBytes !== void 0 ? mediaCacheSizeInBytes : null,
209
214
  });
210
215
  return data.metadata;
211
216
  };
@@ -15,6 +15,8 @@ type SetPropsAndEnv = {
15
15
  logLevel: LogLevel;
16
16
  onServeUrlVisited: () => void;
17
17
  isMainTab: boolean;
18
+ mediaCacheSizeInBytes: number | null;
19
+ initialMemoryAvailable: number | null;
18
20
  };
19
21
  export declare const setPropsAndEnv: (params: SetPropsAndEnv) => Promise<unknown>;
20
22
  export {};
@@ -10,15 +10,17 @@ const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
10
10
  const redirect_status_codes_1 = require("./redirect-status-codes");
11
11
  const truthy_1 = require("./truthy");
12
12
  const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
13
- const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVariables, page, serveUrl, initialFrame, timeoutInMilliseconds, proxyPort, retriesRemaining, audioEnabled, videoEnabled, indent, logLevel, onServeUrlVisited, isMainTab, }) => {
13
+ const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVariables, page, serveUrl, initialFrame, timeoutInMilliseconds, proxyPort, retriesRemaining, audioEnabled, videoEnabled, indent, logLevel, onServeUrlVisited, isMainTab, mediaCacheSizeInBytes, initialMemoryAvailable, }) => {
14
14
  (0, validate_puppeteer_timeout_1.validatePuppeteerTimeout)(timeoutInMilliseconds);
15
15
  const actualTimeout = timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT;
16
16
  page.setDefaultTimeout(actualTimeout);
17
17
  page.setDefaultNavigationTimeout(actualTimeout);
18
18
  const urlToVisit = (0, normalize_serve_url_1.normalizeServeUrl)(serveUrl);
19
- await page.evaluateOnNewDocument((timeout, mainTab) => {
19
+ await page.evaluateOnNewDocument((timeout, mainTab, cacheSizeInBytes, initMemoryAvailable) => {
20
20
  window.remotion_puppeteerTimeout = timeout;
21
21
  window.remotion_isMainTab = mainTab;
22
+ window.remotion_mediaCacheSizeInBytes = cacheSizeInBytes;
23
+ window.remotion_initialMemoryAvailable = initMemoryAvailable;
22
24
  // To make useRemotionEnvironment() work
23
25
  if (window.process === undefined) {
24
26
  // @ts-expect-error
@@ -28,7 +30,7 @@ const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVa
28
30
  window.process.env = {};
29
31
  }
30
32
  window.process.env.NODE_ENV = 'production';
31
- }, actualTimeout, isMainTab);
33
+ }, actualTimeout, isMainTab, mediaCacheSizeInBytes, initialMemoryAvailable);
32
34
  await page.evaluateOnNewDocument('window.remotion_broadcastChannel = new BroadcastChannel("remotion-video-frame-extraction")');
33
35
  if (envVariables) {
34
36
  await page.evaluateOnNewDocument((input) => {
@@ -82,6 +84,8 @@ const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVa
82
84
  logLevel,
83
85
  onServeUrlVisited,
84
86
  isMainTab,
87
+ mediaCacheSizeInBytes,
88
+ initialMemoryAvailable,
85
89
  });
86
90
  };
87
91
  const [pageRes, error] = await (0, goto_page_or_throw_1.gotoPageOrThrow)(page, urlToVisit, actualTimeout);