@remotion/renderer 4.0.314 → 4.0.316

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.
@@ -4712,8 +4712,8 @@ var getDownloadsCacheDir = () => {
4712
4712
  };
4713
4713
 
4714
4714
  // src/browser/BrowserFetcher.ts
4715
- var TESTED_VERSION = "133.0.6943.0";
4716
- var PLAYWRIGHT_VERSION = "1155";
4715
+ var TESTED_VERSION = "134.0.6998.35";
4716
+ var PLAYWRIGHT_VERSION = "1161";
4717
4717
  function getChromeDownloadUrl({
4718
4718
  platform: platform2,
4719
4719
  version,
@@ -16322,7 +16322,7 @@ var setPropsAndEnv = async (params) => {
16322
16322
  new Promise((_, reject) => {
16323
16323
  timeout = setTimeout(() => {
16324
16324
  reject(new Error([
16325
- `Timed out after ${params.timeoutInMilliseconds} while setting up the headless browser.`,
16325
+ `Timed out after ${params.timeoutInMilliseconds}ms while setting up the headless browser.`,
16326
16326
  "This could be because the you specified takes a long time to load (or network resources that it includes like fonts) or because the browser is not responding.",
16327
16327
  process.platform === "linux" ? "Make sure you have installed the Linux depdendencies: https://www.remotion.dev/docs/miscellaneous/linux-dependencies" : null
16328
16328
  ].filter(truthy).join(`
@@ -16512,7 +16512,9 @@ var innerGetCompositions = async ({
16512
16512
  height,
16513
16513
  id,
16514
16514
  defaultCodec,
16515
- defaultOutName
16515
+ defaultOutName,
16516
+ defaultVideoImageFormat,
16517
+ defaultPixelFormat
16516
16518
  } = r;
16517
16519
  return {
16518
16520
  id,
@@ -16523,7 +16525,9 @@ var innerGetCompositions = async ({
16523
16525
  props: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedResolvedPropsWithCustomSchema),
16524
16526
  defaultProps: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
16525
16527
  defaultCodec,
16526
- defaultOutName
16528
+ defaultOutName,
16529
+ defaultVideoImageFormat,
16530
+ defaultPixelFormat
16527
16531
  };
16528
16532
  });
16529
16533
  };
@@ -17653,7 +17657,7 @@ var makePage = async ({
17653
17657
  }
17654
17658
  });
17655
17659
  await puppeteerEvaluateWithCatch({
17656
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
17660
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
17657
17661
  window.remotion_setBundleMode({
17658
17662
  type: "composition",
17659
17663
  compositionName: id,
@@ -17663,7 +17667,9 @@ var makePage = async ({
17663
17667
  compositionHeight: height,
17664
17668
  compositionWidth: width,
17665
17669
  compositionDefaultCodec: defaultCodec,
17666
- compositionDefaultOutName: defaultOutName
17670
+ compositionDefaultOutName: defaultOutName,
17671
+ compositionDefaultVideoImageFormat: defaultVideoImageFormat,
17672
+ compositionDefaultPixelFormat: defaultPixelFormat
17667
17673
  });
17668
17674
  },
17669
17675
  args: [
@@ -17674,7 +17680,9 @@ var makePage = async ({
17674
17680
  composition.height,
17675
17681
  composition.width,
17676
17682
  composition.defaultCodec,
17677
- composition.defaultOutName
17683
+ composition.defaultOutName,
17684
+ composition.defaultVideoImageFormat,
17685
+ composition.defaultPixelFormat
17678
17686
  ],
17679
17687
  frame: null,
17680
17688
  page,
@@ -21018,7 +21026,7 @@ var internalRenderMediaRaw = ({
21018
21026
  crf,
21019
21027
  composition,
21020
21028
  serializedInputPropsWithCustomSchema,
21021
- pixelFormat,
21029
+ pixelFormat: userPixelFormat,
21022
21030
  codec,
21023
21031
  envVariables,
21024
21032
  frameRange,
@@ -21070,6 +21078,7 @@ var internalRenderMediaRaw = ({
21070
21078
  chromeMode,
21071
21079
  offthreadVideoThreads
21072
21080
  }) => {
21081
+ const pixelFormat = userPixelFormat ?? composition.defaultPixelFormat ?? DEFAULT_PIXEL_FORMAT;
21073
21082
  if (repro) {
21074
21083
  enableRepro({
21075
21084
  serveUrl,
@@ -21173,7 +21182,7 @@ var internalRenderMediaRaw = ({
21173
21182
  tag: "renderMedia()"
21174
21183
  }, "Parallel encoding is disabled.");
21175
21184
  }
21176
- const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat;
21185
+ const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat ?? composition.defaultVideoImageFormat ?? DEFAULT_VIDEO_IMAGE_FORMAT;
21177
21186
  validateSelectedPixelFormatAndImageFormatCombination(pixelFormat, imageFormat);
21178
21187
  const workingDir = fs15.mkdtempSync(path25.join(os6.tmpdir(), "react-motion-render"));
21179
21188
  const preEncodedFileLocation = parallelEncoding ? path25.join(workingDir, "pre-encode." + getFileExtensionFromCodec(codec, audioCodec)) : null;
@@ -21560,7 +21569,7 @@ var renderMedia = ({
21560
21569
  everyNthFrame: everyNthFrame ?? 1,
21561
21570
  ffmpegOverride: ffmpegOverride ?? undefined,
21562
21571
  frameRange: frameRange ?? null,
21563
- imageFormat: imageFormat ?? DEFAULT_VIDEO_IMAGE_FORMAT,
21572
+ imageFormat: imageFormat ?? null,
21564
21573
  serializedInputPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
21565
21574
  indent: undefined,
21566
21575
  staticBase: null,
@@ -21581,7 +21590,7 @@ var renderMedia = ({
21581
21590
  }),
21582
21591
  outputLocation: outputLocation ?? null,
21583
21592
  overwrite: overwrite ?? DEFAULT_OVERWRITE,
21584
- pixelFormat: pixelFormat ?? DEFAULT_PIXEL_FORMAT,
21593
+ pixelFormat: pixelFormat ?? null,
21585
21594
  port: port ?? null,
21586
21595
  puppeteerInstance: puppeteerInstance ?? undefined,
21587
21596
  scale: scale ?? 1,
@@ -21748,7 +21757,7 @@ var innerRenderStill = async ({
21748
21757
  }
21749
21758
  });
21750
21759
  await puppeteerEvaluateWithCatch({
21751
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
21760
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
21752
21761
  window.remotion_setBundleMode({
21753
21762
  type: "composition",
21754
21763
  compositionName: id,
@@ -21758,7 +21767,9 @@ var innerRenderStill = async ({
21758
21767
  compositionHeight: height,
21759
21768
  compositionWidth: width,
21760
21769
  compositionDefaultCodec: defaultCodec,
21761
- compositionDefaultOutName: defaultOutName
21770
+ compositionDefaultOutName: defaultOutName,
21771
+ compositionDefaultVideoImageFormat: defaultVideoImageFormat,
21772
+ compositionDefaultPixelFormat: defaultPixelFormat
21762
21773
  });
21763
21774
  },
21764
21775
  args: [
@@ -21769,7 +21780,9 @@ var innerRenderStill = async ({
21769
21780
  composition.height,
21770
21781
  composition.width,
21771
21782
  composition.defaultCodec,
21772
- composition.defaultOutName
21783
+ composition.defaultOutName,
21784
+ composition.defaultVideoImageFormat,
21785
+ composition.defaultPixelFormat
21773
21786
  ],
21774
21787
  frame: null,
21775
21788
  page,
@@ -22009,7 +22022,16 @@ var innerSelectComposition = async ({
22009
22022
  logLevel
22010
22023
  }, `calculateMetadata() took ${Date.now() - time}ms`);
22011
22024
  const res = result;
22012
- const { width, durationInFrames, fps, height, defaultCodec, defaultOutName } = res;
22025
+ const {
22026
+ width,
22027
+ durationInFrames,
22028
+ fps,
22029
+ height,
22030
+ defaultCodec,
22031
+ defaultOutName,
22032
+ defaultVideoImageFormat,
22033
+ defaultPixelFormat
22034
+ } = res;
22013
22035
  return {
22014
22036
  metadata: {
22015
22037
  id,
@@ -22020,7 +22042,9 @@ var innerSelectComposition = async ({
22020
22042
  props: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
22021
22043
  defaultProps: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
22022
22044
  defaultCodec,
22023
- defaultOutName
22045
+ defaultOutName,
22046
+ defaultVideoImageFormat,
22047
+ defaultPixelFormat
22024
22048
  },
22025
22049
  propsSize: size
22026
22050
  };
@@ -60,7 +60,7 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
60
60
  });
61
61
  const res = result;
62
62
  return res.map((r) => {
63
- const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, } = r;
63
+ const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = r;
64
64
  return {
65
65
  id,
66
66
  width,
@@ -71,6 +71,8 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
71
71
  defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
72
72
  defaultCodec,
73
73
  defaultOutName,
74
+ defaultVideoImageFormat,
75
+ defaultPixelFormat,
74
76
  };
75
77
  });
76
78
  };
package/dist/make-page.js CHANGED
@@ -30,7 +30,7 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
30
30
  });
31
31
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
32
32
  // eslint-disable-next-line max-params
33
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
33
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
34
34
  window.remotion_setBundleMode({
35
35
  type: 'composition',
36
36
  compositionName: id,
@@ -41,6 +41,8 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
41
41
  compositionWidth: width,
42
42
  compositionDefaultCodec: defaultCodec,
43
43
  compositionDefaultOutName: defaultOutName,
44
+ compositionDefaultVideoImageFormat: defaultVideoImageFormat,
45
+ compositionDefaultPixelFormat: defaultPixelFormat,
44
46
  });
45
47
  },
46
48
  args: [
@@ -52,6 +54,8 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
52
54
  composition.width,
53
55
  composition.defaultCodec,
54
56
  composition.defaultOutName,
57
+ composition.defaultVideoImageFormat,
58
+ composition.defaultPixelFormat,
55
59
  ],
56
60
  frame: null,
57
61
  page,
@@ -0,0 +1,15 @@
1
+ export declare const disallowParallelEncodingOption: {
2
+ name: string;
3
+ cliFlag: "disallow-parallel-encoding";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: string;
6
+ docLink: string;
7
+ type: boolean;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: boolean;
12
+ source: string;
13
+ };
14
+ setConfig(value: boolean): void;
15
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.disallowParallelEncodingOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let disallowParallelEncoding = false;
6
+ const cliFlag = 'disallow-parallel-encoding';
7
+ exports.disallowParallelEncodingOption = {
8
+ name: 'Disallow parallel encoding',
9
+ cliFlag,
10
+ description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Disallows the renderer from doing rendering frames and encoding at the same time. This makes the rendering process more memory-efficient, but possibly slower." })),
11
+ ssrName: 'disallowParallelEncoding',
12
+ docLink: 'https://www.remotion.dev/docs/config#setdisallowparallelencoding',
13
+ type: false,
14
+ getValue: ({ commandLine }) => {
15
+ if (commandLine[cliFlag] !== undefined) {
16
+ return {
17
+ value: commandLine[cliFlag],
18
+ source: 'cli',
19
+ };
20
+ }
21
+ if (disallowParallelEncoding !== false) {
22
+ return {
23
+ value: disallowParallelEncoding,
24
+ source: 'config',
25
+ };
26
+ }
27
+ return {
28
+ value: false,
29
+ source: 'default',
30
+ };
31
+ },
32
+ setConfig(value) {
33
+ disallowParallelEncoding = value;
34
+ },
35
+ };
@@ -229,6 +229,21 @@ export declare const allOptions: {
229
229
  };
230
230
  setConfig: (value: import("./delete-after").DeleteAfter | null) => void;
231
231
  };
232
+ disallowParallelEncodingOption: {
233
+ name: string;
234
+ cliFlag: "disallow-parallel-encoding";
235
+ description: () => import("react/jsx-runtime").JSX.Element;
236
+ ssrName: string;
237
+ docLink: string;
238
+ type: boolean;
239
+ getValue: ({ commandLine }: {
240
+ commandLine: Record<string, unknown>;
241
+ }) => {
242
+ value: boolean;
243
+ source: string;
244
+ };
245
+ setConfig(value: boolean): void;
246
+ };
232
247
  folderExpiryOption: {
233
248
  name: string;
234
249
  cliFlag: "enable-folder-expiry";
@@ -12,6 +12,7 @@ const crf_1 = require("./crf");
12
12
  const cross_site_isolation_1 = require("./cross-site-isolation");
13
13
  const delete_after_1 = require("./delete-after");
14
14
  const disable_git_source_1 = require("./disable-git-source");
15
+ const disallow_parallel_encoding_1 = require("./disallow-parallel-encoding");
15
16
  const enable_lambda_insights_1 = require("./enable-lambda-insights");
16
17
  const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux");
17
18
  const encoding_buffer_size_1 = require("./encoding-buffer-size");
@@ -60,6 +61,7 @@ exports.allOptions = {
60
61
  webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
61
62
  colorSpaceOption: color_space_1.colorSpaceOption,
62
63
  deleteAfterOption: delete_after_1.deleteAfterOption,
64
+ disallowParallelEncodingOption: disallow_parallel_encoding_1.disallowParallelEncodingOption,
63
65
  folderExpiryOption: folder_expiry_1.folderExpiryOption,
64
66
  enableMultiprocessOnLinuxOption: enable_multiprocess_on_linux_1.enableMultiprocessOnLinuxOption,
65
67
  glOption: gl_1.glOption,
@@ -156,6 +156,21 @@ export declare const optionsMap: {
156
156
  };
157
157
  setConfig: (newCodec: import("..").CodecOrUndefined) => void;
158
158
  };
159
+ readonly disallowParallelEncoding: {
160
+ name: string;
161
+ cliFlag: "disallow-parallel-encoding";
162
+ description: () => import("react/jsx-runtime").JSX.Element;
163
+ ssrName: string;
164
+ docLink: string;
165
+ type: boolean;
166
+ getValue: ({ commandLine }: {
167
+ commandLine: Record<string, unknown>;
168
+ }) => {
169
+ value: boolean;
170
+ source: string;
171
+ };
172
+ setConfig(value: boolean): void;
173
+ };
159
174
  readonly jpegQuality: {
160
175
  name: string;
161
176
  cliFlag: "jpeg-quality";
@@ -9,6 +9,7 @@ const chrome_mode_1 = require("./chrome-mode");
9
9
  const color_space_1 = require("./color-space");
10
10
  const crf_1 = require("./crf");
11
11
  const delete_after_1 = require("./delete-after");
12
+ const disallow_parallel_encoding_1 = require("./disallow-parallel-encoding");
12
13
  const encoding_buffer_size_1 = require("./encoding-buffer-size");
13
14
  const encoding_max_rate_1 = require("./encoding-max-rate");
14
15
  const enforce_audio_1 = require("./enforce-audio");
@@ -42,6 +43,7 @@ exports.optionsMap = {
42
43
  audioBitrate: audio_bitrate_1.audioBitrateOption,
43
44
  colorSpace: color_space_1.colorSpaceOption,
44
45
  codec: video_codec_1.videoCodecOption,
46
+ disallowParallelEncoding: disallow_parallel_encoding_1.disallowParallelEncodingOption,
45
47
  jpegQuality: jpeg_quality_1.jpegQualityOption,
46
48
  encodingMaxRate: encoding_max_rate_1.encodingMaxRateOption,
47
49
  encodingBufferSize: encoding_buffer_size_1.encodingBufferSizeOption,
@@ -38,8 +38,8 @@ export type InternalRenderMediaOptions = {
38
38
  serializedInputPropsWithCustomSchema: string;
39
39
  serializedResolvedPropsWithCustomSchema: string;
40
40
  crf: number | null;
41
- imageFormat: VideoImageFormat;
42
- pixelFormat: PixelFormat;
41
+ imageFormat: VideoImageFormat | null;
42
+ pixelFormat: PixelFormat | null;
43
43
  envVariables: Record<string, string>;
44
44
  frameRange: FrameRange | null;
45
45
  everyNthFrame: number;
@@ -51,7 +51,9 @@ const validate_scale_1 = require("./validate-scale");
51
51
  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
- const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, serializedInputPropsWithCustomSchema, 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, 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, }) => {
54
+ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, 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
+ var _a, _b;
56
+ const pixelFormat = (_a = userPixelFormat !== null && userPixelFormat !== void 0 ? userPixelFormat : composition.defaultPixelFormat) !== null && _a !== void 0 ? _a : pixel_format_1.DEFAULT_PIXEL_FORMAT;
55
57
  if (repro) {
56
58
  (0, repro_1.enableRepro)({
57
59
  serveUrl,
@@ -163,7 +165,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
163
165
  }
164
166
  const imageFormat = (0, is_audio_codec_1.isAudioCodec)(codec)
165
167
  ? 'none'
166
- : provisionalImageFormat;
168
+ : ((_b = provisionalImageFormat !== null && provisionalImageFormat !== void 0 ? provisionalImageFormat : composition.defaultVideoImageFormat) !== null && _b !== void 0 ? _b : image_format_1.DEFAULT_VIDEO_IMAGE_FORMAT);
167
169
  (0, image_format_1.validateSelectedPixelFormatAndImageFormatCombination)(pixelFormat, imageFormat);
168
170
  const workingDir = node_fs_1.default.mkdtempSync(node_path_1.default.join(node_os_1.default.tmpdir(), 'react-motion-render'));
169
171
  const preEncodedFileLocation = parallelEncoding
@@ -539,7 +541,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
539
541
  everyNthFrame: everyNthFrame !== null && everyNthFrame !== void 0 ? everyNthFrame : 1,
540
542
  ffmpegOverride: ffmpegOverride !== null && ffmpegOverride !== void 0 ? ffmpegOverride : undefined,
541
543
  frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
542
- imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : image_format_1.DEFAULT_VIDEO_IMAGE_FORMAT,
544
+ imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : null,
543
545
  serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
544
546
  indent: undefined,
545
547
  staticBase: null,
@@ -554,7 +556,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
554
556
  onStart: onStart !== null && onStart !== void 0 ? onStart : (() => undefined),
555
557
  outputLocation: outputLocation !== null && outputLocation !== void 0 ? outputLocation : null,
556
558
  overwrite: overwrite !== null && overwrite !== void 0 ? overwrite : overwrite_1.DEFAULT_OVERWRITE,
557
- pixelFormat: pixelFormat !== null && pixelFormat !== void 0 ? pixelFormat : pixel_format_1.DEFAULT_PIXEL_FORMAT,
559
+ pixelFormat: pixelFormat !== null && pixelFormat !== void 0 ? pixelFormat : null,
558
560
  port: port !== null && port !== void 0 ? port : null,
559
561
  puppeteerInstance: puppeteerInstance !== null && puppeteerInstance !== void 0 ? puppeteerInstance : undefined,
560
562
  scale: scale !== null && scale !== void 0 ? scale : 1,
@@ -161,7 +161,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
161
161
  });
162
162
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
163
163
  // eslint-disable-next-line max-params
164
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
164
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
165
165
  window.remotion_setBundleMode({
166
166
  type: 'composition',
167
167
  compositionName: id,
@@ -172,6 +172,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
172
172
  compositionWidth: width,
173
173
  compositionDefaultCodec: defaultCodec,
174
174
  compositionDefaultOutName: defaultOutName,
175
+ compositionDefaultVideoImageFormat: defaultVideoImageFormat,
176
+ compositionDefaultPixelFormat: defaultPixelFormat,
175
177
  });
176
178
  },
177
179
  args: [
@@ -183,6 +185,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
183
185
  composition.width,
184
186
  composition.defaultCodec,
185
187
  composition.defaultOutName,
188
+ composition.defaultVideoImageFormat,
189
+ composition.defaultPixelFormat,
186
190
  ],
187
191
  frame: null,
188
192
  page,
@@ -70,7 +70,7 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
70
70
  logLevel,
71
71
  }, `calculateMetadata() took ${Date.now() - time}ms`);
72
72
  const res = result;
73
- const { width, durationInFrames, fps, height, defaultCodec, defaultOutName } = res;
73
+ const { width, durationInFrames, fps, height, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = res;
74
74
  return {
75
75
  metadata: {
76
76
  id,
@@ -82,6 +82,8 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
82
82
  defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
83
83
  defaultCodec,
84
84
  defaultOutName,
85
+ defaultVideoImageFormat,
86
+ defaultPixelFormat,
85
87
  },
86
88
  propsSize: size,
87
89
  };
@@ -190,7 +190,7 @@ const setPropsAndEnv = async (params) => {
190
190
  new Promise((_, reject) => {
191
191
  timeout = setTimeout(() => {
192
192
  reject(new Error([
193
- `Timed out after ${params.timeoutInMilliseconds} while setting up the headless browser.`,
193
+ `Timed out after ${params.timeoutInMilliseconds}ms while setting up the headless browser.`,
194
194
  'This could be because the you specified takes a long time to load (or network resources that it includes like fonts) or because the browser is not responding.',
195
195
  process.platform === 'linux'
196
196
  ? 'Make sure you have installed the Linux depdendencies: https://www.remotion.dev/docs/miscellaneous/linux-dependencies'
@@ -3071,8 +3071,8 @@ var getDownloadsCacheDir = () => {
3071
3071
  };
3072
3072
 
3073
3073
  // src/browser/BrowserFetcher.ts
3074
- var TESTED_VERSION = "133.0.6943.0";
3075
- var PLAYWRIGHT_VERSION = "1155";
3074
+ var TESTED_VERSION = "134.0.6998.35";
3075
+ var PLAYWRIGHT_VERSION = "1161";
3076
3076
  function getChromeDownloadUrl({
3077
3077
  platform: platform2,
3078
3078
  version,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.314",
6
+ "version": "4.0.316",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.17.1",
21
- "remotion": "4.0.314",
22
- "@remotion/streaming": "4.0.314"
21
+ "@remotion/streaming": "4.0.316",
22
+ "remotion": "4.0.316"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0",
@@ -33,17 +33,17 @@
33
33
  "react-dom": "19.0.0",
34
34
  "@types/ws": "8.5.10",
35
35
  "eslint": "9.19.0",
36
- "@remotion/example-videos": "4.0.314",
37
- "@remotion/eslint-config-internal": "4.0.314"
36
+ "@remotion/example-videos": "4.0.316",
37
+ "@remotion/eslint-config-internal": "4.0.316"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.314",
41
- "@remotion/compositor-linux-arm64-gnu": "4.0.314",
42
- "@remotion/compositor-darwin-x64": "4.0.314",
43
- "@remotion/compositor-linux-arm64-musl": "4.0.314",
44
- "@remotion/compositor-linux-x64-gnu": "4.0.314",
45
- "@remotion/compositor-linux-x64-musl": "4.0.314",
46
- "@remotion/compositor-win32-x64-msvc": "4.0.314"
40
+ "@remotion/compositor-darwin-arm64": "4.0.316",
41
+ "@remotion/compositor-darwin-x64": "4.0.316",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.316",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.316",
44
+ "@remotion/compositor-win32-x64-msvc": "4.0.316",
45
+ "@remotion/compositor-linux-arm64-musl": "4.0.316",
46
+ "@remotion/compositor-linux-x64-musl": "4.0.316"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",