@remotion/renderer 4.0.365 → 4.0.367

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BrowserSafeApis = void 0;
4
+ const no_react_1 = require("remotion/no-react");
4
5
  const TimeoutSettings_1 = require("./browser/TimeoutSettings");
5
6
  const codec_1 = require("./codec");
6
7
  const codec_supports_media_1 = require("./codec-supports-media");
@@ -20,7 +21,6 @@ const options_map_1 = require("./options/options-map");
20
21
  const video_codec_1 = require("./options/video-codec");
21
22
  const x264_preset_1 = require("./options/x264-preset");
22
23
  const pixel_format_1 = require("./pixel-format");
23
- const prores_profile_1 = require("./prores-profile");
24
24
  const validate_output_filename_1 = require("./validate-output-filename");
25
25
  exports.BrowserSafeApis = {
26
26
  getFileExtensionFromCodec: get_extension_from_codec_1.getFileExtensionFromCodec,
@@ -28,7 +28,7 @@ exports.BrowserSafeApis = {
28
28
  validAudioCodecs: audio_codec_1.validAudioCodecs,
29
29
  getDefaultCrfForCodec: crf_1.getDefaultCrfForCodec,
30
30
  getValidCrfRanges: crf_1.getValidCrfRanges,
31
- proResProfileOptions: prores_profile_1.proResProfileOptions,
31
+ proResProfileOptions: no_react_1.NoReactInternals.proResProfileOptions,
32
32
  x264PresetOptions: x264_preset_1.x264PresetOptions,
33
33
  hardwareAccelerationOptions: hardware_acceleration_1.hardwareAccelerationOptions,
34
34
  validPixelFormats: pixel_format_1.validPixelFormats,
@@ -1,3 +1,6 @@
1
+ // src/client.ts
2
+ import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
3
+
1
4
  // src/browser/TimeoutSettings.ts
2
5
  var DEFAULT_TIMEOUT = 30000;
3
6
 
@@ -3188,16 +3191,6 @@ var validPixelFormatsForCodec = (codec2) => {
3188
3191
  return validPixelFormats.filter((format) => format !== "yuva420p");
3189
3192
  };
3190
3193
 
3191
- // src/prores-profile.ts
3192
- var proResProfileOptions = [
3193
- "4444-xq",
3194
- "4444",
3195
- "hq",
3196
- "standard",
3197
- "light",
3198
- "proxy"
3199
- ];
3200
-
3201
3194
  // src/validate-output-filename.ts
3202
3195
  var validateOutputFilename = ({
3203
3196
  codec: codec2,
@@ -3238,7 +3231,7 @@ var BrowserSafeApis = {
3238
3231
  validAudioCodecs,
3239
3232
  getDefaultCrfForCodec,
3240
3233
  getValidCrfRanges,
3241
- proResProfileOptions,
3234
+ proResProfileOptions: NoReactInternals2.proResProfileOptions,
3242
3235
  x264PresetOptions,
3243
3236
  hardwareAccelerationOptions,
3244
3237
  validPixelFormats,
@@ -16776,7 +16776,8 @@ var innerGetCompositions = async ({
16776
16776
  defaultCodec,
16777
16777
  defaultOutName,
16778
16778
  defaultVideoImageFormat,
16779
- defaultPixelFormat
16779
+ defaultPixelFormat,
16780
+ defaultProResProfile
16780
16781
  } = r;
16781
16782
  return {
16782
16783
  id,
@@ -16789,7 +16790,8 @@ var innerGetCompositions = async ({
16789
16790
  defaultCodec,
16790
16791
  defaultOutName,
16791
16792
  defaultVideoImageFormat,
16792
- defaultPixelFormat
16793
+ defaultPixelFormat,
16794
+ defaultProResProfile
16793
16795
  };
16794
16796
  });
16795
16797
  };
@@ -17929,7 +17931,7 @@ var makePage = async ({
17929
17931
  initialMemoryAvailable: getAvailableMemory(logLevel)
17930
17932
  });
17931
17933
  await puppeteerEvaluateWithCatch({
17932
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
17934
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile) => {
17933
17935
  window.remotion_setBundleMode({
17934
17936
  type: "composition",
17935
17937
  compositionName: id,
@@ -17941,7 +17943,8 @@ var makePage = async ({
17941
17943
  compositionDefaultCodec: defaultCodec,
17942
17944
  compositionDefaultOutName: defaultOutName,
17943
17945
  compositionDefaultVideoImageFormat: defaultVideoImageFormat,
17944
- compositionDefaultPixelFormat: defaultPixelFormat
17946
+ compositionDefaultPixelFormat: defaultPixelFormat,
17947
+ compositionDefaultProResProfile: defaultProResProfile
17945
17948
  });
17946
17949
  },
17947
17950
  args: [
@@ -17954,7 +17957,8 @@ var makePage = async ({
17954
17957
  composition.defaultCodec,
17955
17958
  composition.defaultOutName,
17956
17959
  composition.defaultVideoImageFormat,
17957
- composition.defaultPixelFormat
17960
+ composition.defaultPixelFormat,
17961
+ composition.defaultProResProfile
17958
17962
  ],
17959
17963
  frame: null,
17960
17964
  page,
@@ -19317,7 +19321,7 @@ var renderFrames = (options) => {
19317
19321
  import fs16 from "node:fs";
19318
19322
  import os6 from "node:os";
19319
19323
  import path26 from "node:path";
19320
- import { NoReactInternals as NoReactInternals14 } from "remotion/no-react";
19324
+ import { NoReactInternals as NoReactInternals15 } from "remotion/no-react";
19321
19325
 
19322
19326
  // src/crf.ts
19323
19327
  var defaultCrfMap = {
@@ -19922,14 +19926,7 @@ var shouldUseParallelEncoding = ({
19922
19926
  };
19923
19927
 
19924
19928
  // src/prores-profile.ts
19925
- var proResProfileOptions = [
19926
- "4444-xq",
19927
- "4444",
19928
- "hq",
19929
- "standard",
19930
- "light",
19931
- "proxy"
19932
- ];
19929
+ import { NoReactInternals as NoReactInternals14 } from "remotion/no-react";
19933
19930
  var validateSelectedCodecAndProResCombination = ({
19934
19931
  codec,
19935
19932
  proResProfile
@@ -19937,8 +19934,8 @@ var validateSelectedCodecAndProResCombination = ({
19937
19934
  if (typeof proResProfile !== "undefined" && codec !== "prores") {
19938
19935
  throw new TypeError(`You have set a ProRes profile but the codec is "${codec}". Set the codec to "prores" or remove the ProRes profile.`);
19939
19936
  }
19940
- if (proResProfile !== undefined && !proResProfileOptions.includes(proResProfile)) {
19941
- throw new TypeError(`The ProRes profile "${proResProfile}" is not valid. Valid options are ${proResProfileOptions.map((p) => `"${p}"`).join(", ")}`);
19937
+ if (proResProfile !== undefined && !NoReactInternals14.proResProfileOptions.includes(proResProfile)) {
19938
+ throw new TypeError(`The ProRes profile "${proResProfile}" is not valid. Valid options are ${NoReactInternals14.proResProfileOptions.map((p) => `"${p}"`).join(", ")}`);
19942
19939
  }
19943
19940
  };
19944
19941
 
@@ -21945,7 +21942,7 @@ var renderMedia = ({
21945
21942
  ffmpegOverride: ffmpegOverride ?? undefined,
21946
21943
  frameRange: frameRange ?? null,
21947
21944
  imageFormat: imageFormat ?? null,
21948
- serializedInputPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
21945
+ serializedInputPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
21949
21946
  indent: undefined,
21950
21947
  staticBase: null,
21951
21948
  data: inputProps ?? {}
@@ -21980,7 +21977,7 @@ var renderMedia = ({
21980
21977
  return;
21981
21978
  },
21982
21979
  server: undefined,
21983
- serializedResolvedPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
21980
+ serializedResolvedPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
21984
21981
  indent: undefined,
21985
21982
  staticBase: null,
21986
21983
  data: composition.props ?? {}
@@ -22010,7 +22007,7 @@ var renderMedia = ({
22010
22007
  // src/render-still.ts
22011
22008
  import fs17, { statSync as statSync2 } from "node:fs";
22012
22009
  import path27 from "node:path";
22013
- import { NoReactInternals as NoReactInternals15 } from "remotion/no-react";
22010
+ import { NoReactInternals as NoReactInternals16 } from "remotion/no-react";
22014
22011
  var innerRenderStill = async ({
22015
22012
  composition,
22016
22013
  imageFormat = DEFAULT_STILL_IMAGE_FORMAT,
@@ -22048,7 +22045,7 @@ var innerRenderStill = async ({
22048
22045
  allowFloats: false
22049
22046
  });
22050
22047
  validateStillImageFormat(imageFormat);
22051
- NoReactInternals15.validateFrame({
22048
+ NoReactInternals16.validateFrame({
22052
22049
  frame,
22053
22050
  durationInFrames: composition.durationInFrames,
22054
22051
  allowFloats: false
@@ -22140,7 +22137,7 @@ var innerRenderStill = async ({
22140
22137
  initialMemoryAvailable: getAvailableMemory(logLevel)
22141
22138
  });
22142
22139
  await puppeteerEvaluateWithCatch({
22143
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
22140
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile) => {
22144
22141
  window.remotion_setBundleMode({
22145
22142
  type: "composition",
22146
22143
  compositionName: id,
@@ -22152,7 +22149,8 @@ var innerRenderStill = async ({
22152
22149
  compositionDefaultCodec: defaultCodec,
22153
22150
  compositionDefaultOutName: defaultOutName,
22154
22151
  compositionDefaultVideoImageFormat: defaultVideoImageFormat,
22155
- compositionDefaultPixelFormat: defaultPixelFormat
22152
+ compositionDefaultPixelFormat: defaultPixelFormat,
22153
+ compositionDefaultProResProfile: defaultProResProfile
22156
22154
  });
22157
22155
  },
22158
22156
  args: [
@@ -22165,7 +22163,8 @@ var innerRenderStill = async ({
22165
22163
  composition.defaultCodec,
22166
22164
  composition.defaultOutName,
22167
22165
  composition.defaultVideoImageFormat,
22168
- composition.defaultPixelFormat
22166
+ composition.defaultPixelFormat,
22167
+ composition.defaultProResProfile
22169
22168
  ],
22170
22169
  frame: null,
22171
22170
  page,
@@ -22308,7 +22307,7 @@ var renderStill = (options) => {
22308
22307
  frame: frame ?? 0,
22309
22308
  imageFormat: imageFormat ?? DEFAULT_STILL_IMAGE_FORMAT,
22310
22309
  indent,
22311
- serializedInputPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
22310
+ serializedInputPropsWithCustomSchema: NoReactInternals16.serializeJSONWithSpecialTypes({
22312
22311
  staticBase: null,
22313
22312
  indent: undefined,
22314
22313
  data: inputProps ?? {}
@@ -22325,7 +22324,7 @@ var renderStill = (options) => {
22325
22324
  serveUrl,
22326
22325
  timeoutInMilliseconds: timeoutInMilliseconds ?? DEFAULT_TIMEOUT,
22327
22326
  logLevel,
22328
- serializedResolvedPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
22327
+ serializedResolvedPropsWithCustomSchema: NoReactInternals16.serializeJSONWithSpecialTypes({
22329
22328
  indent: undefined,
22330
22329
  staticBase: null,
22331
22330
  data: composition.props ?? {}
@@ -22346,7 +22345,7 @@ var renderStill = (options) => {
22346
22345
  };
22347
22346
 
22348
22347
  // src/select-composition.ts
22349
- import { NoReactInternals as NoReactInternals16 } from "remotion/no-react";
22348
+ import { NoReactInternals as NoReactInternals17 } from "remotion/no-react";
22350
22349
  var innerSelectComposition = async ({
22351
22350
  page,
22352
22351
  serializedInputPropsWithCustomSchema,
@@ -22426,7 +22425,8 @@ var innerSelectComposition = async ({
22426
22425
  defaultCodec,
22427
22426
  defaultOutName,
22428
22427
  defaultVideoImageFormat,
22429
- defaultPixelFormat
22428
+ defaultPixelFormat,
22429
+ defaultProResProfile
22430
22430
  } = res;
22431
22431
  return {
22432
22432
  metadata: {
@@ -22435,12 +22435,13 @@ var innerSelectComposition = async ({
22435
22435
  height,
22436
22436
  fps,
22437
22437
  durationInFrames,
22438
- props: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
22439
- defaultProps: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
22438
+ props: NoReactInternals17.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
22439
+ defaultProps: NoReactInternals17.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
22440
22440
  defaultCodec,
22441
22441
  defaultOutName,
22442
22442
  defaultVideoImageFormat,
22443
- defaultPixelFormat
22443
+ defaultPixelFormat,
22444
+ defaultProResProfile
22444
22445
  },
22445
22446
  propsSize: size
22446
22447
  };
@@ -22573,7 +22574,7 @@ var selectComposition = async (options) => {
22573
22574
  browserExecutable: browserExecutable ?? null,
22574
22575
  chromiumOptions: chromiumOptions ?? {},
22575
22576
  envVariables: envVariables ?? {},
22576
- serializedInputPropsWithCustomSchema: NoReactInternals16.serializeJSONWithSpecialTypes({
22577
+ serializedInputPropsWithCustomSchema: NoReactInternals17.serializeJSONWithSpecialTypes({
22577
22578
  indent: undefined,
22578
22579
  staticBase: null,
22579
22580
  data: inputProps ?? {}
@@ -65,7 +65,7 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
65
65
  });
66
66
  const res = result;
67
67
  return res.map((r) => {
68
- const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = r;
68
+ const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile, } = r;
69
69
  return {
70
70
  id,
71
71
  width,
@@ -78,6 +78,7 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
78
78
  defaultOutName,
79
79
  defaultVideoImageFormat,
80
80
  defaultPixelFormat,
81
+ defaultProResProfile,
81
82
  };
82
83
  });
83
84
  };
@@ -1,3 +1,3 @@
1
+ import type { _InternalTypes } from 'remotion';
1
2
  import type { Codec } from './codec';
2
- import type { ProResProfile } from './prores-profile';
3
- export declare const getProResProfileName: (codec: Codec, proResProfile: ProResProfile | undefined) => string | null;
3
+ export declare const getProResProfileName: (codec: Codec, proResProfile: _InternalTypes["ProResProfile"] | undefined) => string | null;
package/dist/index.d.ts CHANGED
@@ -37,7 +37,6 @@ export { AnyRemotionOption, RemotionOption, ToOptions } from './options/option';
37
37
  export { X264Preset } from './options/x264-preset';
38
38
  export { PixelFormat } from './pixel-format';
39
39
  export { RemotionServer } from './prepare-server';
40
- export { ProResProfile } from './prores-profile';
41
40
  export { OnArtifact, RenderFramesOptions, renderFrames } from './render-frames';
42
41
  export { InternalRenderMediaOptions, RenderMediaOnProgress, RenderMediaOptions, SlowFrame, StitchingState, renderMedia, } from './render-media';
43
42
  export { RenderStillOptions, renderStill } from './render-still';
package/dist/make-page.js CHANGED
@@ -34,7 +34,7 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
34
34
  });
35
35
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
36
36
  // eslint-disable-next-line max-params
37
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
37
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile) => {
38
38
  window.remotion_setBundleMode({
39
39
  type: 'composition',
40
40
  compositionName: id,
@@ -47,6 +47,7 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
47
47
  compositionDefaultOutName: defaultOutName,
48
48
  compositionDefaultVideoImageFormat: defaultVideoImageFormat,
49
49
  compositionDefaultPixelFormat: defaultPixelFormat,
50
+ compositionDefaultProResProfile: defaultProResProfile,
50
51
  });
51
52
  },
52
53
  args: [
@@ -60,6 +61,7 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
60
61
  composition.defaultOutName,
61
62
  composition.defaultVideoImageFormat,
62
63
  composition.defaultPixelFormat,
64
+ composition.defaultProResProfile,
63
65
  ],
64
66
  frame: null,
65
67
  page,
@@ -1,3 +1,4 @@
1
+ import type { _InternalTypes } from 'remotion';
1
2
  import type { HardwareAccelerationOption } from './client';
2
3
  import type { Codec } from './codec';
3
4
  import type { FfmpegOverrideFn } from './ffmpeg-override';
@@ -7,7 +8,6 @@ import type { CancelSignal } from './make-cancel-signal';
7
8
  import type { ColorSpace } from './options/color-space';
8
9
  import type { X264Preset } from './options/x264-preset';
9
10
  import type { PixelFormat } from './pixel-format';
10
- import type { ProResProfile } from './prores-profile';
11
11
  type RunningStatus = {
12
12
  type: 'running';
13
13
  } | {
@@ -28,7 +28,7 @@ type PreStitcherOptions = {
28
28
  crf: number | null | undefined;
29
29
  x264Preset: X264Preset | null;
30
30
  onProgress: (progress: number) => void;
31
- proResProfile: ProResProfile | undefined;
31
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
32
32
  logLevel: LogLevel;
33
33
  imageFormat: VideoImageFormat;
34
34
  ffmpegOverride: FfmpegOverrideFn;
@@ -1,7 +1,6 @@
1
+ import { type _InternalTypes } from 'remotion';
1
2
  import type { Codec } from './codec';
2
- export declare const proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
3
- export type ProResProfile = (typeof proResProfileOptions)[number];
4
3
  export declare const validateSelectedCodecAndProResCombination: ({ codec, proResProfile, }: {
5
4
  codec: Codec;
6
- proResProfile: ProResProfile | undefined;
5
+ proResProfile: _InternalTypes["ProResProfile"] | undefined;
7
6
  }) => void;
@@ -1,21 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateSelectedCodecAndProResCombination = exports.proResProfileOptions = void 0;
4
- exports.proResProfileOptions = [
5
- '4444-xq',
6
- '4444',
7
- 'hq',
8
- 'standard',
9
- 'light',
10
- 'proxy',
11
- ];
3
+ exports.validateSelectedCodecAndProResCombination = void 0;
4
+ const no_react_1 = require("remotion/no-react");
12
5
  const validateSelectedCodecAndProResCombination = ({ codec, proResProfile, }) => {
13
6
  if (typeof proResProfile !== 'undefined' && codec !== 'prores') {
14
7
  throw new TypeError(`You have set a ProRes profile but the codec is "${codec}". Set the codec to "prores" or remove the ProRes profile.`);
15
8
  }
16
9
  if (proResProfile !== undefined &&
17
- !exports.proResProfileOptions.includes(proResProfile)) {
18
- throw new TypeError(`The ProRes profile "${proResProfile}" is not valid. Valid options are ${exports.proResProfileOptions
10
+ !no_react_1.NoReactInternals.proResProfileOptions.includes(proResProfile)) {
11
+ throw new TypeError(`The ProRes profile "${proResProfile}" is not valid. Valid options are ${no_react_1.NoReactInternals.proResProfileOptions
19
12
  .map((p) => `"${p}"`)
20
13
  .join(', ')}`);
21
14
  }
@@ -1,3 +1,4 @@
1
+ import type { _InternalTypes } from 'remotion';
1
2
  import type { VideoConfig } from 'remotion/no-react';
2
3
  import { type RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
3
4
  import type { BrowserExecutable } from './browser-executable';
@@ -15,7 +16,6 @@ import type { ToOptions } from './options/option';
15
16
  import type { optionsMap } from './options/options-map';
16
17
  import type { PixelFormat } from './pixel-format';
17
18
  import type { RemotionServer } from './prepare-server';
18
- import type { ProResProfile } from './prores-profile';
19
19
  import type { OnArtifact } from './render-frames';
20
20
  import type { OnStartData } from './types';
21
21
  export type StitchingState = 'encoding' | 'muxing';
@@ -48,7 +48,7 @@ export type InternalRenderMediaOptions = {
48
48
  overwrite: boolean;
49
49
  onProgress: RenderMediaOnProgress;
50
50
  onDownload: RenderMediaOnDownload;
51
- proResProfile: ProResProfile | undefined;
51
+ proResProfile: _InternalTypes['ProResProfile'] | undefined;
52
52
  onBrowserLog: ((log: BrowserLog) => void) | null;
53
53
  onStart: (data: OnStartData) => void;
54
54
  chromiumOptions: ChromiumOptions;
@@ -94,7 +94,7 @@ export type RenderMediaOptions = Prettify<{
94
94
  overwrite?: boolean;
95
95
  onProgress?: RenderMediaOnProgress;
96
96
  onDownload?: RenderMediaOnDownload;
97
- proResProfile?: ProResProfile;
97
+ proResProfile?: _InternalTypes['ProResProfile'];
98
98
  /**
99
99
  * @deprecated Use "logLevel": "verbose" instead
100
100
  */
@@ -168,7 +168,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
168
168
  });
169
169
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
170
170
  // eslint-disable-next-line max-params
171
- pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
171
+ pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile) => {
172
172
  window.remotion_setBundleMode({
173
173
  type: 'composition',
174
174
  compositionName: id,
@@ -181,6 +181,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
181
181
  compositionDefaultOutName: defaultOutName,
182
182
  compositionDefaultVideoImageFormat: defaultVideoImageFormat,
183
183
  compositionDefaultPixelFormat: defaultPixelFormat,
184
+ compositionDefaultProResProfile: defaultProResProfile,
184
185
  });
185
186
  },
186
187
  args: [
@@ -194,6 +195,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
194
195
  composition.defaultOutName,
195
196
  composition.defaultVideoImageFormat,
196
197
  composition.defaultPixelFormat,
198
+ composition.defaultProResProfile,
197
199
  ],
198
200
  frame: null,
199
201
  page,
@@ -75,7 +75,7 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
75
75
  logLevel,
76
76
  }, `calculateMetadata() took ${Date.now() - time}ms`);
77
77
  const res = result;
78
- const { width, durationInFrames, fps, height, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = res;
78
+ const { width, durationInFrames, fps, height, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile, } = res;
79
79
  return {
80
80
  metadata: {
81
81
  id,
@@ -89,6 +89,7 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
89
89
  defaultOutName,
90
90
  defaultVideoImageFormat,
91
91
  defaultPixelFormat,
92
+ defaultProResProfile,
92
93
  },
93
94
  propsSize: size,
94
95
  };
@@ -1,3 +1,4 @@
1
+ import type { _InternalTypes } from 'remotion';
1
2
  import type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
2
3
  import type { RenderAssetInfo } from './assets/download-map';
3
4
  import type { Codec } from './codec';
@@ -10,7 +11,6 @@ import type { ToOptions } from './options/option';
10
11
  import type { optionsMap } from './options/options-map';
11
12
  import type { X264Preset } from './options/x264-preset';
12
13
  import type { PixelFormat } from './pixel-format';
13
- import type { ProResProfile } from './prores-profile';
14
14
  type InternalStitchFramesToVideoOptions = {
15
15
  audioBitrate: string | null;
16
16
  videoBitrate: string | null;
@@ -29,7 +29,7 @@ type InternalStitchFramesToVideoOptions = {
29
29
  crf: number | null;
30
30
  onProgress?: null | ((progress: number) => void);
31
31
  onDownload: undefined | RenderMediaOnDownload;
32
- proResProfile: undefined | ProResProfile;
32
+ proResProfile: undefined | _InternalTypes['ProResProfile'];
33
33
  logLevel: LogLevel;
34
34
  cancelSignal: CancelSignal | null;
35
35
  preEncodedFileLocation: string | null;
@@ -61,7 +61,7 @@ export type StitchFramesToVideoOptions = {
61
61
  crf?: number | null;
62
62
  onProgress?: (progress: number) => void;
63
63
  onDownload?: RenderMediaOnDownload;
64
- proResProfile?: ProResProfile;
64
+ proResProfile?: _InternalTypes['ProResProfile'];
65
65
  verbose?: boolean;
66
66
  cancelSignal?: CancelSignal;
67
67
  muted?: boolean;
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.365",
6
+ "version": "4.0.367",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "execa": "5.1.1",
24
24
  "extract-zip": "2.0.1",
25
- "remotion": "4.0.365",
26
- "@remotion/streaming": "4.0.365",
25
+ "remotion": "4.0.367",
26
+ "@remotion/streaming": "4.0.367",
27
27
  "source-map": "^0.8.0-beta.0",
28
28
  "ws": "8.17.1"
29
29
  },
@@ -38,19 +38,19 @@
38
38
  "react": "19.0.0",
39
39
  "react-dom": "19.0.0",
40
40
  "@types/ws": "8.5.10",
41
- "@remotion/example-videos": "4.0.365",
42
- "@remotion/eslint-config-internal": "4.0.365",
41
+ "@remotion/example-videos": "4.0.367",
42
+ "@remotion/eslint-config-internal": "4.0.367",
43
43
  "eslint": "9.19.0",
44
44
  "@types/node": "20.12.14"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@remotion/compositor-darwin-arm64": "4.0.365",
48
- "@remotion/compositor-darwin-x64": "4.0.365",
49
- "@remotion/compositor-linux-arm64-gnu": "4.0.365",
50
- "@remotion/compositor-linux-arm64-musl": "4.0.365",
51
- "@remotion/compositor-linux-x64-gnu": "4.0.365",
52
- "@remotion/compositor-linux-x64-musl": "4.0.365",
53
- "@remotion/compositor-win32-x64-msvc": "4.0.365"
47
+ "@remotion/compositor-darwin-arm64": "4.0.367",
48
+ "@remotion/compositor-darwin-x64": "4.0.367",
49
+ "@remotion/compositor-linux-arm64-gnu": "4.0.367",
50
+ "@remotion/compositor-linux-arm64-musl": "4.0.367",
51
+ "@remotion/compositor-linux-x64-gnu": "4.0.367",
52
+ "@remotion/compositor-linux-x64-musl": "4.0.367",
53
+ "@remotion/compositor-win32-x64-msvc": "4.0.367"
54
54
  },
55
55
  "keywords": [
56
56
  "remotion",