@remotion/renderer 4.0.469 → 4.0.471

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.d.ts CHANGED
@@ -846,6 +846,25 @@ export declare const BrowserSafeApis: {
846
846
  setConfig: (val: boolean) => void;
847
847
  id: "prefer-lossless";
848
848
  };
849
+ previewSampleRateOption: {
850
+ name: string;
851
+ cliFlag: "preview-sample-rate";
852
+ description: () => import("react/jsx-runtime").JSX.Element;
853
+ ssrName: null;
854
+ docLink: string;
855
+ type: number | null;
856
+ getValue: ({ commandLine }: {
857
+ commandLine: Record<string, unknown>;
858
+ }) => {
859
+ value: number;
860
+ source: string;
861
+ } | {
862
+ value: null;
863
+ source: string;
864
+ };
865
+ setConfig: (value: number | null) => void;
866
+ id: "preview-sample-rate";
867
+ };
849
868
  proResProfileOption: {
850
869
  name: string;
851
870
  cliFlag: "prores-profile";
@@ -3755,16 +3755,50 @@ var preferLosslessAudioOption = {
3755
3755
  id: cliFlag67
3756
3756
  };
3757
3757
 
3758
- // src/options/props.tsx
3758
+ // src/options/preview-sample-rate.tsx
3759
3759
  import { jsx as jsx64, jsxs as jsxs43, Fragment as Fragment64 } from "react/jsx-runtime";
3760
- var cliFlag68 = "props";
3761
- var propsOption = {
3762
- name: "Input Props",
3760
+ var cliFlag68 = "preview-sample-rate";
3761
+ var currentPreviewSampleRate = null;
3762
+ var previewSampleRateOption = {
3763
+ name: "Preview Sample Rate",
3763
3764
  cliFlag: cliFlag68,
3764
3765
  description: () => /* @__PURE__ */ jsxs43(Fragment64, {
3766
+ children: [
3767
+ "Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
3768
+ /* @__PURE__ */ jsx64("code", {
3769
+ children: "48000"
3770
+ }),
3771
+ " Hz."
3772
+ ]
3773
+ }),
3774
+ ssrName: null,
3775
+ docLink: "https://www.remotion.dev/docs/config#setpreviewsamplerate",
3776
+ type: null,
3777
+ getValue: ({ commandLine }) => {
3778
+ if (commandLine[cliFlag68] !== undefined) {
3779
+ return { value: commandLine[cliFlag68], source: "cli" };
3780
+ }
3781
+ if (currentPreviewSampleRate !== null) {
3782
+ return { value: currentPreviewSampleRate, source: "config file" };
3783
+ }
3784
+ return { value: null, source: "default" };
3785
+ },
3786
+ setConfig: (value3) => {
3787
+ currentPreviewSampleRate = value3;
3788
+ },
3789
+ id: cliFlag68
3790
+ };
3791
+
3792
+ // src/options/props.tsx
3793
+ import { jsx as jsx65, jsxs as jsxs44, Fragment as Fragment65 } from "react/jsx-runtime";
3794
+ var cliFlag69 = "props";
3795
+ var propsOption = {
3796
+ name: "Input Props",
3797
+ cliFlag: cliFlag69,
3798
+ description: () => /* @__PURE__ */ jsxs44(Fragment65, {
3765
3799
  children: [
3766
3800
  "Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
3767
- /* @__PURE__ */ jsxs43("code", {
3801
+ /* @__PURE__ */ jsxs44("code", {
3768
3802
  children: [
3769
3803
  "--props='",
3770
3804
  "{",
@@ -3774,7 +3808,7 @@ var propsOption = {
3774
3808
  ]
3775
3809
  }),
3776
3810
  ") or a path to a JSON file (",
3777
- /* @__PURE__ */ jsx64("code", {
3811
+ /* @__PURE__ */ jsx65("code", {
3778
3812
  children: "./path/to/props.json"
3779
3813
  }),
3780
3814
  ")."
@@ -3783,10 +3817,10 @@ var propsOption = {
3783
3817
  ssrName: null,
3784
3818
  docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
3785
3819
  getValue: ({ commandLine }) => {
3786
- if (commandLine[cliFlag68] !== undefined) {
3820
+ if (commandLine[cliFlag69] !== undefined) {
3787
3821
  return {
3788
3822
  source: "cli",
3789
- value: commandLine[cliFlag68]
3823
+ value: commandLine[cliFlag69]
3790
3824
  };
3791
3825
  }
3792
3826
  return {
@@ -3798,11 +3832,11 @@ var propsOption = {
3798
3832
  throw new Error("setProps is not supported. Pass --props via the CLI instead.");
3799
3833
  },
3800
3834
  type: "",
3801
- id: cliFlag68
3835
+ id: cliFlag69
3802
3836
  };
3803
3837
 
3804
3838
  // src/options/prores-profile.tsx
3805
- import { jsx as jsx65, jsxs as jsxs44, Fragment as Fragment65 } from "react/jsx-runtime";
3839
+ import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
3806
3840
  var validProResProfiles = [
3807
3841
  "4444-xq",
3808
3842
  "4444",
@@ -3812,14 +3846,14 @@ var validProResProfiles = [
3812
3846
  "proxy"
3813
3847
  ];
3814
3848
  var proResProfile;
3815
- var cliFlag69 = "prores-profile";
3849
+ var cliFlag70 = "prores-profile";
3816
3850
  var proResProfileOption = {
3817
3851
  name: "ProRes profile",
3818
- cliFlag: cliFlag69,
3819
- description: () => /* @__PURE__ */ jsxs44(Fragment65, {
3852
+ cliFlag: cliFlag70,
3853
+ description: () => /* @__PURE__ */ jsxs45(Fragment66, {
3820
3854
  children: [
3821
3855
  "Set the ProRes profile. This option is only valid if the codec has been set to ",
3822
- /* @__PURE__ */ jsx65("code", {
3856
+ /* @__PURE__ */ jsx66("code", {
3823
3857
  children: "prores"
3824
3858
  }),
3825
3859
  ". Possible values:",
@@ -3827,12 +3861,12 @@ var proResProfileOption = {
3827
3861
  validProResProfiles.map((p) => `"${p}"`).join(", "),
3828
3862
  ". Default:",
3829
3863
  " ",
3830
- /* @__PURE__ */ jsx65("code", {
3864
+ /* @__PURE__ */ jsx66("code", {
3831
3865
  children: '"hq"'
3832
3866
  }),
3833
3867
  ". See",
3834
3868
  " ",
3835
- /* @__PURE__ */ jsx65("a", {
3869
+ /* @__PURE__ */ jsx66("a", {
3836
3870
  href: "https://video.stackexchange.com/a/14715",
3837
3871
  children: "here"
3838
3872
  }),
@@ -3843,10 +3877,10 @@ var proResProfileOption = {
3843
3877
  docLink: "https://www.remotion.dev/docs/config#setproresprofile",
3844
3878
  type: undefined,
3845
3879
  getValue: ({ commandLine }) => {
3846
- if (commandLine[cliFlag69] !== undefined) {
3880
+ if (commandLine[cliFlag70] !== undefined) {
3847
3881
  return {
3848
3882
  source: "cli",
3849
- value: String(commandLine[cliFlag69])
3883
+ value: String(commandLine[cliFlag70])
3850
3884
  };
3851
3885
  }
3852
3886
  if (proResProfile !== undefined) {
@@ -3863,24 +3897,24 @@ var proResProfileOption = {
3863
3897
  setConfig: (value3) => {
3864
3898
  proResProfile = value3;
3865
3899
  },
3866
- id: cliFlag69
3900
+ id: cliFlag70
3867
3901
  };
3868
3902
 
3869
3903
  // src/options/public-dir.tsx
3870
- import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
3871
- var cliFlag70 = "public-dir";
3904
+ import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
3905
+ var cliFlag71 = "public-dir";
3872
3906
  var currentPublicDir = null;
3873
3907
  var publicDirOption = {
3874
3908
  name: "Public Directory",
3875
- cliFlag: cliFlag70,
3909
+ cliFlag: cliFlag71,
3876
3910
  description: () => {
3877
- return /* @__PURE__ */ jsxs45(Fragment66, {
3911
+ return /* @__PURE__ */ jsxs46(Fragment67, {
3878
3912
  children: [
3879
3913
  "Define the location of the",
3880
3914
  " ",
3881
- /* @__PURE__ */ jsx66("a", {
3915
+ /* @__PURE__ */ jsx67("a", {
3882
3916
  href: "/docs/terminology/public-dir",
3883
- children: /* @__PURE__ */ jsx66("code", {
3917
+ children: /* @__PURE__ */ jsx67("code", {
3884
3918
  children: "public/ directory"
3885
3919
  })
3886
3920
  }),
@@ -3891,10 +3925,10 @@ var publicDirOption = {
3891
3925
  ssrName: "publicDir",
3892
3926
  docLink: "https://www.remotion.dev/docs/terminology/public-dir",
3893
3927
  getValue: ({ commandLine }) => {
3894
- if (commandLine[cliFlag70] !== undefined) {
3928
+ if (commandLine[cliFlag71] !== undefined) {
3895
3929
  return {
3896
3930
  source: "cli",
3897
- value: commandLine[cliFlag70]
3931
+ value: commandLine[cliFlag71]
3898
3932
  };
3899
3933
  }
3900
3934
  if (currentPublicDir !== null) {
@@ -3912,20 +3946,20 @@ var publicDirOption = {
3912
3946
  currentPublicDir = value3;
3913
3947
  },
3914
3948
  type: "",
3915
- id: cliFlag70
3949
+ id: cliFlag71
3916
3950
  };
3917
3951
 
3918
3952
  // src/options/public-license-key.tsx
3919
- import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
3920
- var cliFlag71 = "public-license-key";
3953
+ import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
3954
+ var cliFlag72 = "public-license-key";
3921
3955
  var currentPublicLicenseKey = null;
3922
3956
  var publicLicenseKeyOption = {
3923
3957
  name: "Public License Key",
3924
- cliFlag: cliFlag71,
3925
- description: () => /* @__PURE__ */ jsxs46(Fragment67, {
3958
+ cliFlag: cliFlag72,
3959
+ description: () => /* @__PURE__ */ jsxs47(Fragment68, {
3926
3960
  children: [
3927
3961
  "The public license key for your company license, obtained from the License keys page on ",
3928
- /* @__PURE__ */ jsx67("a", {
3962
+ /* @__PURE__ */ jsx68("a", {
3929
3963
  href: "https://remotion.pro/dashboard",
3930
3964
  children: "remotion.pro"
3931
3965
  }),
@@ -3935,10 +3969,10 @@ var publicLicenseKeyOption = {
3935
3969
  ssrName: "publicLicenseKey",
3936
3970
  docLink: "https://www.remotion.dev/docs/licensing",
3937
3971
  getValue: ({ commandLine }) => {
3938
- if (commandLine[cliFlag71] !== undefined) {
3972
+ if (commandLine[cliFlag72] !== undefined) {
3939
3973
  return {
3940
3974
  source: "cli",
3941
- value: commandLine[cliFlag71]
3975
+ value: commandLine[cliFlag72]
3942
3976
  };
3943
3977
  }
3944
3978
  if (currentPublicLicenseKey !== null) {
@@ -3959,29 +3993,29 @@ var publicLicenseKeyOption = {
3959
3993
  currentPublicLicenseKey = value3;
3960
3994
  },
3961
3995
  type: null,
3962
- id: cliFlag71
3996
+ id: cliFlag72
3963
3997
  };
3964
3998
 
3965
3999
  // src/options/public-path.tsx
3966
- import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
3967
- var cliFlag72 = "public-path";
4000
+ import { jsx as jsx69, jsxs as jsxs48, Fragment as Fragment69 } from "react/jsx-runtime";
4001
+ var cliFlag73 = "public-path";
3968
4002
  var currentPublicPath = null;
3969
4003
  var publicPathOption = {
3970
4004
  name: "Public Path",
3971
- cliFlag: cliFlag72,
4005
+ cliFlag: cliFlag73,
3972
4006
  description: () => {
3973
- return /* @__PURE__ */ jsxs47(Fragment68, {
4007
+ return /* @__PURE__ */ jsxs48(Fragment69, {
3974
4008
  children: [
3975
4009
  "The path of the URL where the bundle is going to be hosted. By default it is ",
3976
- /* @__PURE__ */ jsx68("code", {
4010
+ /* @__PURE__ */ jsx69("code", {
3977
4011
  children: "/"
3978
4012
  }),
3979
4013
  ", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
3980
- /* @__PURE__ */ jsx68("code", {
4014
+ /* @__PURE__ */ jsx69("code", {
3981
4015
  children: "https://localhost:3000/"
3982
4016
  }),
3983
4017
  "). If you are deploying to a subdirectory (e.g. ",
3984
- /* @__PURE__ */ jsx68("code", {
4018
+ /* @__PURE__ */ jsx69("code", {
3985
4019
  children: "/sites/my-site/"
3986
4020
  }),
3987
4021
  "), you should set this to the subdirectory."
@@ -3991,10 +4025,10 @@ var publicPathOption = {
3991
4025
  ssrName: "publicPath",
3992
4026
  docLink: "https://www.remotion.dev/docs/renderer",
3993
4027
  getValue: ({ commandLine }) => {
3994
- if (commandLine[cliFlag72] !== undefined) {
4028
+ if (commandLine[cliFlag73] !== undefined) {
3995
4029
  return {
3996
4030
  source: "cli",
3997
- value: commandLine[cliFlag72]
4031
+ value: commandLine[cliFlag73]
3998
4032
  };
3999
4033
  }
4000
4034
  if (currentPublicPath !== null) {
@@ -4012,29 +4046,29 @@ var publicPathOption = {
4012
4046
  currentPublicPath = value3;
4013
4047
  },
4014
4048
  type: "",
4015
- id: cliFlag72
4049
+ id: cliFlag73
4016
4050
  };
4017
4051
 
4018
4052
  // src/options/repro.tsx
4019
- import { jsx as jsx69, Fragment as Fragment69 } from "react/jsx-runtime";
4053
+ import { jsx as jsx70, Fragment as Fragment70 } from "react/jsx-runtime";
4020
4054
  var enableRepro = false;
4021
4055
  var setRepro = (should) => {
4022
4056
  enableRepro = should;
4023
4057
  };
4024
- var cliFlag73 = "repro";
4058
+ var cliFlag74 = "repro";
4025
4059
  var reproOption = {
4026
4060
  name: "Create reproduction",
4027
- cliFlag: cliFlag73,
4028
- description: () => /* @__PURE__ */ jsx69(Fragment69, {
4061
+ cliFlag: cliFlag74,
4062
+ description: () => /* @__PURE__ */ jsx70(Fragment70, {
4029
4063
  children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
4030
4064
  }),
4031
4065
  ssrName: "repro",
4032
4066
  docLink: "https://www.remotion.dev/docs/render-media#repro",
4033
4067
  type: false,
4034
4068
  getValue: ({ commandLine }) => {
4035
- if (commandLine[cliFlag73] !== undefined && commandLine[cliFlag73] !== null) {
4069
+ if (commandLine[cliFlag74] !== undefined && commandLine[cliFlag74] !== null) {
4036
4070
  return {
4037
- value: commandLine[cliFlag73],
4071
+ value: commandLine[cliFlag74],
4038
4072
  source: "cli"
4039
4073
  };
4040
4074
  }
@@ -4050,27 +4084,27 @@ var reproOption = {
4050
4084
  };
4051
4085
  },
4052
4086
  setConfig: setRepro,
4053
- id: cliFlag73
4087
+ id: cliFlag74
4054
4088
  };
4055
4089
 
4056
4090
  // src/options/rspack.tsx
4057
- import { jsx as jsx70, Fragment as Fragment70 } from "react/jsx-runtime";
4091
+ import { jsx as jsx71, Fragment as Fragment71 } from "react/jsx-runtime";
4058
4092
  var rspackEnabled = false;
4059
- var cliFlag74 = "experimental-rspack";
4093
+ var cliFlag75 = "experimental-rspack";
4060
4094
  var rspackOption = {
4061
4095
  name: "Experimental Rspack",
4062
- cliFlag: cliFlag74,
4063
- description: () => /* @__PURE__ */ jsx70(Fragment70, {
4096
+ cliFlag: cliFlag75,
4097
+ description: () => /* @__PURE__ */ jsx71(Fragment71, {
4064
4098
  children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
4065
4099
  }),
4066
4100
  ssrName: null,
4067
4101
  docLink: null,
4068
4102
  type: false,
4069
4103
  getValue: ({ commandLine }) => {
4070
- if (commandLine[cliFlag74] !== undefined) {
4104
+ if (commandLine[cliFlag75] !== undefined) {
4071
4105
  rspackEnabled = true;
4072
4106
  return {
4073
- value: commandLine[cliFlag74],
4107
+ value: commandLine[cliFlag75],
4074
4108
  source: "cli"
4075
4109
  };
4076
4110
  }
@@ -4082,21 +4116,21 @@ var rspackOption = {
4082
4116
  setConfig(value3) {
4083
4117
  rspackEnabled = value3;
4084
4118
  },
4085
- id: cliFlag74
4119
+ id: cliFlag75
4086
4120
  };
4087
4121
 
4088
4122
  // src/options/runs.tsx
4089
- import { jsx as jsx71, jsxs as jsxs48, Fragment as Fragment71 } from "react/jsx-runtime";
4123
+ import { jsx as jsx72, jsxs as jsxs49, Fragment as Fragment72 } from "react/jsx-runtime";
4090
4124
  var DEFAULT_RUNS = 3;
4091
4125
  var currentRuns = DEFAULT_RUNS;
4092
- var cliFlag75 = "runs";
4126
+ var cliFlag76 = "runs";
4093
4127
  var runsOption = {
4094
4128
  name: "Benchmark runs",
4095
- cliFlag: cliFlag75,
4096
- description: () => /* @__PURE__ */ jsxs48(Fragment71, {
4129
+ cliFlag: cliFlag76,
4130
+ description: () => /* @__PURE__ */ jsxs49(Fragment72, {
4097
4131
  children: [
4098
4132
  "Specify how many times the video should be rendered during a benchmark. Default ",
4099
- /* @__PURE__ */ jsx71("code", {
4133
+ /* @__PURE__ */ jsx72("code", {
4100
4134
  children: DEFAULT_RUNS
4101
4135
  }),
4102
4136
  "."
@@ -4106,10 +4140,10 @@ var runsOption = {
4106
4140
  docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
4107
4141
  type: DEFAULT_RUNS,
4108
4142
  getValue: ({ commandLine }) => {
4109
- if (commandLine[cliFlag75] !== undefined) {
4110
- const value3 = Number(commandLine[cliFlag75]);
4143
+ if (commandLine[cliFlag76] !== undefined) {
4144
+ const value3 = Number(commandLine[cliFlag76]);
4111
4145
  if (isNaN(value3) || value3 < 1) {
4112
- throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag75]}`);
4146
+ throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag76]}`);
4113
4147
  }
4114
4148
  return { value: value3, source: "cli" };
4115
4149
  }
@@ -4124,21 +4158,21 @@ var runsOption = {
4124
4158
  }
4125
4159
  currentRuns = value3;
4126
4160
  },
4127
- id: cliFlag75
4161
+ id: cliFlag76
4128
4162
  };
4129
4163
 
4130
4164
  // src/options/sample-rate.tsx
4131
- import { jsx as jsx72, jsxs as jsxs49, Fragment as Fragment72 } from "react/jsx-runtime";
4132
- var cliFlag76 = "sample-rate";
4165
+ import { jsx as jsx73, jsxs as jsxs50, Fragment as Fragment73 } from "react/jsx-runtime";
4166
+ var cliFlag77 = "sample-rate";
4133
4167
  var currentSampleRate = 48000;
4134
4168
  var sampleRateOption = {
4135
4169
  name: "Sample Rate",
4136
- cliFlag: cliFlag76,
4137
- description: () => /* @__PURE__ */ jsxs49(Fragment72, {
4170
+ cliFlag: cliFlag77,
4171
+ description: () => /* @__PURE__ */ jsxs50(Fragment73, {
4138
4172
  children: [
4139
4173
  "Controls the sample rate of the output audio. The default is",
4140
4174
  " ",
4141
- /* @__PURE__ */ jsx72("code", {
4175
+ /* @__PURE__ */ jsx73("code", {
4142
4176
  children: "48000"
4143
4177
  }),
4144
4178
  " Hz. Match this to your source audio to avoid resampling artifacts."
@@ -4148,8 +4182,8 @@ var sampleRateOption = {
4148
4182
  docLink: "https://www.remotion.dev/docs/sample-rate",
4149
4183
  type: 48000,
4150
4184
  getValue: ({ commandLine }, compositionSampleRate) => {
4151
- if (commandLine[cliFlag76] !== undefined) {
4152
- return { value: commandLine[cliFlag76], source: "cli" };
4185
+ if (commandLine[cliFlag77] !== undefined) {
4186
+ return { value: commandLine[cliFlag77], source: "cli" };
4153
4187
  }
4154
4188
  if (currentSampleRate !== 48000) {
4155
4189
  return { value: currentSampleRate, source: "config file" };
@@ -4165,13 +4199,13 @@ var sampleRateOption = {
4165
4199
  setConfig: (value3) => {
4166
4200
  currentSampleRate = value3;
4167
4201
  },
4168
- id: cliFlag76
4202
+ id: cliFlag77
4169
4203
  };
4170
4204
 
4171
4205
  // src/options/scale.tsx
4172
- import { jsx as jsx73, jsxs as jsxs50, Fragment as Fragment73 } from "react/jsx-runtime";
4206
+ import { jsx as jsx74, jsxs as jsxs51, Fragment as Fragment74 } from "react/jsx-runtime";
4173
4207
  var currentScale = 1;
4174
- var cliFlag77 = "scale";
4208
+ var cliFlag78 = "scale";
4175
4209
  var validateScale = (value3) => {
4176
4210
  if (typeof value3 !== "number") {
4177
4211
  throw new Error("scale must be a number.");
@@ -4179,15 +4213,15 @@ var validateScale = (value3) => {
4179
4213
  };
4180
4214
  var scaleOption = {
4181
4215
  name: "Scale",
4182
- cliFlag: cliFlag77,
4183
- description: () => /* @__PURE__ */ jsxs50(Fragment73, {
4216
+ cliFlag: cliFlag78,
4217
+ description: () => /* @__PURE__ */ jsxs51(Fragment74, {
4184
4218
  children: [
4185
4219
  "Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
4186
- /* @__PURE__ */ jsx73("code", {
4220
+ /* @__PURE__ */ jsx74("code", {
4187
4221
  children: "1.5"
4188
4222
  }),
4189
4223
  ". See ",
4190
- /* @__PURE__ */ jsx73("a", {
4224
+ /* @__PURE__ */ jsx74("a", {
4191
4225
  href: "https://www.remotion.dev/docs/scaling",
4192
4226
  children: "Scaling"
4193
4227
  }),
@@ -4198,11 +4232,11 @@ var scaleOption = {
4198
4232
  docLink: "https://www.remotion.dev/docs/scaling",
4199
4233
  type: 0,
4200
4234
  getValue: ({ commandLine }) => {
4201
- if (commandLine[cliFlag77] !== undefined) {
4202
- validateScale(commandLine[cliFlag77]);
4235
+ if (commandLine[cliFlag78] !== undefined) {
4236
+ validateScale(commandLine[cliFlag78]);
4203
4237
  return {
4204
4238
  source: "cli",
4205
- value: commandLine[cliFlag77]
4239
+ value: commandLine[cliFlag78]
4206
4240
  };
4207
4241
  }
4208
4242
  if (currentScale !== null) {
@@ -4219,13 +4253,13 @@ var scaleOption = {
4219
4253
  setConfig: (scale) => {
4220
4254
  currentScale = scale;
4221
4255
  },
4222
- id: cliFlag77
4256
+ id: cliFlag78
4223
4257
  };
4224
4258
 
4225
4259
  // src/options/still-frame.tsx
4226
4260
  import { NoReactInternals as NoReactInternals3 } from "remotion/no-react";
4227
- import { jsx as jsx74, jsxs as jsxs51, Fragment as Fragment74 } from "react/jsx-runtime";
4228
- var cliFlag78 = "frame";
4261
+ import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
4262
+ var cliFlag79 = "frame";
4229
4263
  var currentFrame = null;
4230
4264
  var validate3 = (frame) => {
4231
4265
  NoReactInternals3.validateFrame({
@@ -4236,17 +4270,17 @@ var validate3 = (frame) => {
4236
4270
  };
4237
4271
  var stillFrameOption = {
4238
4272
  name: "Frame",
4239
- cliFlag: cliFlag78,
4240
- description: () => /* @__PURE__ */ jsxs51(Fragment74, {
4273
+ cliFlag: cliFlag79,
4274
+ description: () => /* @__PURE__ */ jsxs52(Fragment75, {
4241
4275
  children: [
4242
4276
  "Which frame should be rendered when rendering a still. Default",
4243
4277
  " ",
4244
- /* @__PURE__ */ jsx74("code", {
4278
+ /* @__PURE__ */ jsx75("code", {
4245
4279
  children: "0"
4246
4280
  }),
4247
4281
  ". From v3.2.27, negative values are allowed, with",
4248
4282
  " ",
4249
- /* @__PURE__ */ jsx74("code", {
4283
+ /* @__PURE__ */ jsx75("code", {
4250
4284
  children: "-1"
4251
4285
  }),
4252
4286
  " being the last frame."
@@ -4255,8 +4289,8 @@ var stillFrameOption = {
4255
4289
  ssrName: "frame",
4256
4290
  docLink: "https://www.remotion.dev/docs/cli/still#--frame",
4257
4291
  getValue: ({ commandLine }) => {
4258
- if (commandLine[cliFlag78] !== undefined) {
4259
- const frame = Number(commandLine[cliFlag78]);
4292
+ if (commandLine[cliFlag79] !== undefined) {
4293
+ const frame = Number(commandLine[cliFlag79]);
4260
4294
  validate3(frame);
4261
4295
  return {
4262
4296
  source: "cli",
@@ -4281,24 +4315,24 @@ var stillFrameOption = {
4281
4315
  currentFrame = value3;
4282
4316
  },
4283
4317
  type: 0,
4284
- id: cliFlag78
4318
+ id: cliFlag79
4285
4319
  };
4286
4320
 
4287
4321
  // src/options/still-image-format.tsx
4288
- import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
4322
+ import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
4289
4323
  var currentStillImageFormat = null;
4290
- var cliFlag79 = "image-format";
4324
+ var cliFlag80 = "image-format";
4291
4325
  var stillImageFormatOption = {
4292
4326
  name: "Still Image Format",
4293
- cliFlag: cliFlag79,
4294
- description: () => /* @__PURE__ */ jsxs52(Fragment75, {
4327
+ cliFlag: cliFlag80,
4328
+ description: () => /* @__PURE__ */ jsxs53(Fragment76, {
4295
4329
  children: [
4296
4330
  "The image format to use when rendering a still. Must be one of",
4297
4331
  " ",
4298
4332
  validStillImageFormats.map((f) => `"${f}"`).join(", "),
4299
4333
  ". Default:",
4300
4334
  " ",
4301
- /* @__PURE__ */ jsx75("code", {
4335
+ /* @__PURE__ */ jsx76("code", {
4302
4336
  children: '"png"'
4303
4337
  }),
4304
4338
  "."
@@ -4308,8 +4342,8 @@ var stillImageFormatOption = {
4308
4342
  docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
4309
4343
  type: null,
4310
4344
  getValue: ({ commandLine }) => {
4311
- if (commandLine[cliFlag79] !== undefined) {
4312
- const value3 = commandLine[cliFlag79];
4345
+ if (commandLine[cliFlag80] !== undefined) {
4346
+ const value3 = commandLine[cliFlag80];
4313
4347
  if (!validStillImageFormats.includes(value3)) {
4314
4348
  throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
4315
4349
  }
@@ -4347,16 +4381,16 @@ var stillImageFormatOption = {
4347
4381
 
4348
4382
  // src/options/throw-if-site-exists.tsx
4349
4383
  var DEFAULT5 = false;
4350
- var cliFlag80 = "throw-if-site-exists";
4384
+ var cliFlag81 = "throw-if-site-exists";
4351
4385
  var throwIfSiteExistsOption = {
4352
- cliFlag: cliFlag80,
4386
+ cliFlag: cliFlag81,
4353
4387
  description: () => `Prevents accidential update of an existing site. If there are any files in the subfolder where the site should be placed, the function will throw.`,
4354
4388
  docLink: "https://remotion.dev/docs/lambda/deploy-site",
4355
4389
  getValue: ({ commandLine }) => {
4356
- if (commandLine[cliFlag80]) {
4390
+ if (commandLine[cliFlag81]) {
4357
4391
  return {
4358
4392
  source: "cli",
4359
- value: commandLine[cliFlag80]
4393
+ value: commandLine[cliFlag81]
4360
4394
  };
4361
4395
  }
4362
4396
  return {
@@ -4370,41 +4404,41 @@ var throwIfSiteExistsOption = {
4370
4404
  },
4371
4405
  ssrName: "throwIfSiteExists",
4372
4406
  type: false,
4373
- id: cliFlag80
4407
+ id: cliFlag81
4374
4408
  };
4375
4409
 
4376
4410
  // src/options/timeout.tsx
4377
- import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
4411
+ import { jsx as jsx77, jsxs as jsxs54, Fragment as Fragment77 } from "react/jsx-runtime";
4378
4412
  var currentTimeout = DEFAULT_TIMEOUT;
4379
4413
  var validate4 = (value3) => {
4380
4414
  if (typeof value3 !== "number") {
4381
4415
  throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
4382
4416
  }
4383
4417
  };
4384
- var cliFlag81 = "timeout";
4418
+ var cliFlag82 = "timeout";
4385
4419
  var delayRenderTimeoutInMillisecondsOption = {
4386
4420
  name: "delayRender() timeout",
4387
- cliFlag: cliFlag81,
4388
- description: () => /* @__PURE__ */ jsxs53(Fragment76, {
4421
+ cliFlag: cliFlag82,
4422
+ description: () => /* @__PURE__ */ jsxs54(Fragment77, {
4389
4423
  children: [
4390
4424
  "A number describing how long the render may take to resolve all",
4391
4425
  " ",
4392
- /* @__PURE__ */ jsx76("a", {
4426
+ /* @__PURE__ */ jsx77("a", {
4393
4427
  href: "https://remotion.dev/docs/delay-render",
4394
- children: /* @__PURE__ */ jsx76("code", {
4428
+ children: /* @__PURE__ */ jsx77("code", {
4395
4429
  children: "delayRender()"
4396
4430
  })
4397
4431
  }),
4398
4432
  " ",
4399
4433
  "calls",
4400
4434
  " ",
4401
- /* @__PURE__ */ jsx76("a", {
4435
+ /* @__PURE__ */ jsx77("a", {
4402
4436
  style: { fontSize: "inherit" },
4403
4437
  href: "https://remotion.dev/docs/timeout",
4404
4438
  children: "before it times out"
4405
4439
  }),
4406
4440
  ". Default: ",
4407
- /* @__PURE__ */ jsx76("code", {
4441
+ /* @__PURE__ */ jsx77("code", {
4408
4442
  children: "30000"
4409
4443
  })
4410
4444
  ]
@@ -4413,10 +4447,10 @@ var delayRenderTimeoutInMillisecondsOption = {
4413
4447
  docLink: "https://www.remotion.dev/docs/timeout",
4414
4448
  type: 0,
4415
4449
  getValue: ({ commandLine }) => {
4416
- if (commandLine[cliFlag81] !== undefined) {
4450
+ if (commandLine[cliFlag82] !== undefined) {
4417
4451
  return {
4418
4452
  source: "cli",
4419
- value: commandLine[cliFlag81]
4453
+ value: commandLine[cliFlag82]
4420
4454
  };
4421
4455
  }
4422
4456
  if (currentTimeout !== null) {
@@ -4435,27 +4469,27 @@ var delayRenderTimeoutInMillisecondsOption = {
4435
4469
  validate4(value3);
4436
4470
  currentTimeout = value3;
4437
4471
  },
4438
- id: cliFlag81
4472
+ id: cliFlag82
4439
4473
  };
4440
4474
 
4441
4475
  // src/options/user-agent.tsx
4442
- import { jsx as jsx77, Fragment as Fragment77 } from "react/jsx-runtime";
4476
+ import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
4443
4477
  var userAgent = null;
4444
- var cliFlag82 = "user-agent";
4478
+ var cliFlag83 = "user-agent";
4445
4479
  var userAgentOption = {
4446
4480
  name: "User agent",
4447
- cliFlag: cliFlag82,
4448
- description: () => /* @__PURE__ */ jsx77(Fragment77, {
4481
+ cliFlag: cliFlag83,
4482
+ description: () => /* @__PURE__ */ jsx78(Fragment78, {
4449
4483
  children: "Lets you set a custom user agent that the headless Chrome browser assumes."
4450
4484
  }),
4451
4485
  ssrName: "userAgent",
4452
4486
  docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
4453
4487
  type: null,
4454
4488
  getValue: ({ commandLine }) => {
4455
- if (commandLine[cliFlag82] !== undefined) {
4489
+ if (commandLine[cliFlag83] !== undefined) {
4456
4490
  return {
4457
4491
  source: "cli",
4458
- value: commandLine[cliFlag82]
4492
+ value: commandLine[cliFlag83]
4459
4493
  };
4460
4494
  }
4461
4495
  if (userAgent !== null) {
@@ -4472,25 +4506,25 @@ var userAgentOption = {
4472
4506
  setConfig: (value3) => {
4473
4507
  userAgent = value3;
4474
4508
  },
4475
- id: cliFlag82
4509
+ id: cliFlag83
4476
4510
  };
4477
4511
 
4478
4512
  // src/options/version-flag.tsx
4479
- import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
4480
- var cliFlag83 = "version";
4513
+ import { jsx as jsx79, Fragment as Fragment79 } from "react/jsx-runtime";
4514
+ var cliFlag84 = "version";
4481
4515
  var versionFlagOption = {
4482
4516
  name: "Version",
4483
- cliFlag: cliFlag83,
4484
- description: () => /* @__PURE__ */ jsx78(Fragment78, {
4517
+ cliFlag: cliFlag84,
4518
+ description: () => /* @__PURE__ */ jsx79(Fragment79, {
4485
4519
  children: "Install a specific version. Also enables downgrading to an older version."
4486
4520
  }),
4487
4521
  ssrName: null,
4488
4522
  docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
4489
4523
  getValue: ({ commandLine }) => {
4490
- if (commandLine[cliFlag83] !== undefined) {
4524
+ if (commandLine[cliFlag84] !== undefined) {
4491
4525
  return {
4492
4526
  source: "cli",
4493
- value: String(commandLine[cliFlag83])
4527
+ value: String(commandLine[cliFlag84])
4494
4528
  };
4495
4529
  }
4496
4530
  return {
@@ -4502,30 +4536,30 @@ var versionFlagOption = {
4502
4536
  throw new Error("Cannot set version via config file");
4503
4537
  },
4504
4538
  type: "",
4505
- id: cliFlag83
4539
+ id: cliFlag84
4506
4540
  };
4507
4541
 
4508
4542
  // src/options/video-bitrate.tsx
4509
- import { jsx as jsx79, jsxs as jsxs54, Fragment as Fragment79 } from "react/jsx-runtime";
4543
+ import { jsx as jsx80, jsxs as jsxs55, Fragment as Fragment80 } from "react/jsx-runtime";
4510
4544
  var videoBitrate = null;
4511
- var cliFlag84 = "video-bitrate";
4545
+ var cliFlag85 = "video-bitrate";
4512
4546
  var videoBitrateOption = {
4513
4547
  name: "Video Bitrate",
4514
- cliFlag: cliFlag84,
4515
- description: () => /* @__PURE__ */ jsxs54(Fragment79, {
4548
+ cliFlag: cliFlag85,
4549
+ description: () => /* @__PURE__ */ jsxs55(Fragment80, {
4516
4550
  children: [
4517
4551
  "Specify the target bitrate for the generated video. The syntax for FFmpeg",
4518
4552
  "'",
4519
4553
  "s",
4520
- /* @__PURE__ */ jsx79("code", {
4554
+ /* @__PURE__ */ jsx80("code", {
4521
4555
  children: "-b:v"
4522
4556
  }),
4523
4557
  " parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
4524
- /* @__PURE__ */ jsx79("code", {
4558
+ /* @__PURE__ */ jsx80("code", {
4525
4559
  children: "512K"
4526
4560
  }),
4527
4561
  " for 512 kbps, ",
4528
- /* @__PURE__ */ jsx79("code", {
4562
+ /* @__PURE__ */ jsx80("code", {
4529
4563
  children: "1M"
4530
4564
  }),
4531
4565
  " for 1 Mbps."
@@ -4535,10 +4569,10 @@ var videoBitrateOption = {
4535
4569
  docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
4536
4570
  type: "",
4537
4571
  getValue: ({ commandLine }) => {
4538
- if (commandLine[cliFlag84] !== undefined) {
4572
+ if (commandLine[cliFlag85] !== undefined) {
4539
4573
  return {
4540
4574
  source: "cli",
4541
- value: commandLine[cliFlag84]
4575
+ value: commandLine[cliFlag85]
4542
4576
  };
4543
4577
  }
4544
4578
  if (videoBitrate !== null) {
@@ -4555,33 +4589,33 @@ var videoBitrateOption = {
4555
4589
  setConfig: (bitrate) => {
4556
4590
  videoBitrate = bitrate;
4557
4591
  },
4558
- id: cliFlag84
4592
+ id: cliFlag85
4559
4593
  };
4560
4594
 
4561
4595
  // src/options/video-cache-size.tsx
4562
- import { jsx as jsx80, jsxs as jsxs55, Fragment as Fragment80 } from "react/jsx-runtime";
4596
+ import { jsx as jsx81, jsxs as jsxs56, Fragment as Fragment81 } from "react/jsx-runtime";
4563
4597
  var mediaCacheSizeInBytes = null;
4564
- var cliFlag85 = "media-cache-size-in-bytes";
4598
+ var cliFlag86 = "media-cache-size-in-bytes";
4565
4599
  var mediaCacheSizeInBytesOption = {
4566
4600
  name: "@remotion/media cache size",
4567
- cliFlag: cliFlag85,
4568
- description: () => /* @__PURE__ */ jsxs55(Fragment80, {
4601
+ cliFlag: cliFlag86,
4602
+ description: () => /* @__PURE__ */ jsxs56(Fragment81, {
4569
4603
  children: [
4570
4604
  "Specify the maximum size of the cache that ",
4571
- /* @__PURE__ */ jsx80("code", {
4605
+ /* @__PURE__ */ jsx81("code", {
4572
4606
  children: "<Video>"
4573
4607
  }),
4574
4608
  " and",
4575
4609
  " ",
4576
- /* @__PURE__ */ jsx80("code", {
4610
+ /* @__PURE__ */ jsx81("code", {
4577
4611
  children: "<Audio>"
4578
4612
  }),
4579
4613
  " from ",
4580
- /* @__PURE__ */ jsx80("code", {
4614
+ /* @__PURE__ */ jsx81("code", {
4581
4615
  children: "@remotion/media"
4582
4616
  }),
4583
4617
  " may use combined, in bytes. ",
4584
- /* @__PURE__ */ jsx80("br", {}),
4618
+ /* @__PURE__ */ jsx81("br", {}),
4585
4619
  "The default is half of the available system memory when the render starts."
4586
4620
  ]
4587
4621
  }),
@@ -4589,10 +4623,10 @@ var mediaCacheSizeInBytesOption = {
4589
4623
  docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
4590
4624
  type: 0,
4591
4625
  getValue: ({ commandLine }) => {
4592
- if (commandLine[cliFlag85] !== undefined) {
4626
+ if (commandLine[cliFlag86] !== undefined) {
4593
4627
  return {
4594
4628
  source: "cli",
4595
- value: commandLine[cliFlag85]
4629
+ value: commandLine[cliFlag86]
4596
4630
  };
4597
4631
  }
4598
4632
  if (mediaCacheSizeInBytes !== null) {
@@ -4609,7 +4643,7 @@ var mediaCacheSizeInBytesOption = {
4609
4643
  setConfig: (size) => {
4610
4644
  mediaCacheSizeInBytes = size ?? null;
4611
4645
  },
4612
- id: cliFlag85
4646
+ id: cliFlag86
4613
4647
  };
4614
4648
 
4615
4649
  // src/path-normalize.ts
@@ -4728,7 +4762,7 @@ var getExtensionOfFilename = (filename) => {
4728
4762
  };
4729
4763
 
4730
4764
  // src/options/video-codec.tsx
4731
- import { jsx as jsx81, Fragment as Fragment81 } from "react/jsx-runtime";
4765
+ import { jsx as jsx82, Fragment as Fragment82 } from "react/jsx-runtime";
4732
4766
  var codec;
4733
4767
  var setCodec = (newCodec) => {
4734
4768
  if (newCodec === undefined) {
@@ -4752,11 +4786,11 @@ var deriveCodecsFromFilename = (extension) => {
4752
4786
  possible: makeFileExtensionMap()[extension] ?? []
4753
4787
  };
4754
4788
  };
4755
- var cliFlag86 = "codec";
4789
+ var cliFlag87 = "codec";
4756
4790
  var videoCodecOption = {
4757
4791
  name: "Codec",
4758
- cliFlag: cliFlag86,
4759
- description: () => /* @__PURE__ */ jsx81(Fragment81, {
4792
+ cliFlag: cliFlag87,
4793
+ description: () => /* @__PURE__ */ jsx82(Fragment82, {
4760
4794
  children: "H264 works well in most cases, but sometimes it's worth going for a different codec. WebM achieves higher compression but is slower to render. WebM, GIF and ProRes support transparency."
4761
4795
  }),
4762
4796
  ssrName: "codec",
@@ -4779,7 +4813,7 @@ var videoCodecOption = {
4779
4813
  if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
4780
4814
  throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
4781
4815
  }
4782
- const cliArgument = commandLine[cliFlag86];
4816
+ const cliArgument = commandLine[cliFlag87];
4783
4817
  if (cliArgument) {
4784
4818
  if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
4785
4819
  throw new TypeError(`The download name is ${downloadName} but --codec=${cliArgument} was passed. The download name implies a codec of ${derivedDownloadCodecs.possible.join(" or ")} which does not align with the --codec flag.`);
@@ -4825,24 +4859,24 @@ var videoCodecOption = {
4825
4859
  return { value: DEFAULT_CODEC, source: "default" };
4826
4860
  },
4827
4861
  setConfig: setCodec,
4828
- id: cliFlag86
4862
+ id: cliFlag87
4829
4863
  };
4830
4864
 
4831
4865
  // src/options/video-image-format.tsx
4832
- import { jsx as jsx82, jsxs as jsxs56, Fragment as Fragment82 } from "react/jsx-runtime";
4866
+ import { jsx as jsx83, jsxs as jsxs57, Fragment as Fragment83 } from "react/jsx-runtime";
4833
4867
  var currentVideoImageFormat = null;
4834
- var cliFlag87 = "image-format";
4868
+ var cliFlag88 = "image-format";
4835
4869
  var videoImageFormatOption = {
4836
4870
  name: "Video Image Format",
4837
- cliFlag: cliFlag87,
4838
- description: () => /* @__PURE__ */ jsxs56(Fragment82, {
4871
+ cliFlag: cliFlag88,
4872
+ description: () => /* @__PURE__ */ jsxs57(Fragment83, {
4839
4873
  children: [
4840
4874
  "The image format to use when rendering frames for a video. Must be one of",
4841
4875
  " ",
4842
4876
  validVideoImageFormats.map((f) => `"${f}"`).join(", "),
4843
4877
  ". Default:",
4844
4878
  " ",
4845
- /* @__PURE__ */ jsx82("code", {
4879
+ /* @__PURE__ */ jsx83("code", {
4846
4880
  children: '"jpeg"'
4847
4881
  }),
4848
4882
  ". JPEG is faster, but does not support transparency."
@@ -4852,8 +4886,8 @@ var videoImageFormatOption = {
4852
4886
  docLink: "https://www.remotion.dev/docs/renderer/render-media#imageformat",
4853
4887
  type: null,
4854
4888
  getValue: ({ commandLine }) => {
4855
- if (commandLine[cliFlag87] !== undefined) {
4856
- const value3 = commandLine[cliFlag87];
4889
+ if (commandLine[cliFlag88] !== undefined) {
4890
+ const value3 = commandLine[cliFlag88];
4857
4891
  if (!validVideoImageFormats.includes(value3)) {
4858
4892
  throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
4859
4893
  }
@@ -4890,12 +4924,12 @@ var videoImageFormatOption = {
4890
4924
  };
4891
4925
 
4892
4926
  // src/options/webhook-custom-data.tsx
4893
- import { jsxs as jsxs57, Fragment as Fragment83 } from "react/jsx-runtime";
4894
- var cliFlag88 = "webhook-custom-data";
4927
+ import { jsxs as jsxs58, Fragment as Fragment84 } from "react/jsx-runtime";
4928
+ var cliFlag89 = "webhook-custom-data";
4895
4929
  var webhookCustomDataOption = {
4896
4930
  name: "Webhook custom data",
4897
- cliFlag: cliFlag88,
4898
- description: (type) => /* @__PURE__ */ jsxs57(Fragment83, {
4931
+ cliFlag: cliFlag89,
4932
+ description: (type) => /* @__PURE__ */ jsxs58(Fragment84, {
4899
4933
  children: [
4900
4934
  "Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
4901
4935
  " ",
@@ -4911,24 +4945,24 @@ var webhookCustomDataOption = {
4911
4945
  setConfig: () => {
4912
4946
  throw new Error("Not implemented");
4913
4947
  },
4914
- id: cliFlag88
4948
+ id: cliFlag89
4915
4949
  };
4916
4950
 
4917
4951
  // src/options/webpack-poll.tsx
4918
- import { jsx as jsx83, Fragment as Fragment84 } from "react/jsx-runtime";
4919
- var cliFlag89 = "webpack-poll";
4952
+ import { jsx as jsx84, Fragment as Fragment85 } from "react/jsx-runtime";
4953
+ var cliFlag90 = "webpack-poll";
4920
4954
  var webpackPolling = null;
4921
4955
  var webpackPollOption = {
4922
4956
  name: "Webpack Polling",
4923
- cliFlag: cliFlag89,
4924
- description: () => /* @__PURE__ */ jsx83(Fragment84, {
4957
+ cliFlag: cliFlag90,
4958
+ description: () => /* @__PURE__ */ jsx84(Fragment85, {
4925
4959
  children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds."
4926
4960
  }),
4927
4961
  ssrName: null,
4928
4962
  docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
4929
4963
  getValue: ({ commandLine }) => {
4930
- if (commandLine[cliFlag89] !== undefined) {
4931
- const val = commandLine[cliFlag89];
4964
+ if (commandLine[cliFlag90] !== undefined) {
4965
+ const val = commandLine[cliFlag90];
4932
4966
  if (typeof val !== "number") {
4933
4967
  throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
4934
4968
  }
@@ -4955,11 +4989,11 @@ var webpackPollOption = {
4955
4989
  webpackPolling = value3;
4956
4990
  },
4957
4991
  type: 0,
4958
- id: cliFlag89
4992
+ id: cliFlag90
4959
4993
  };
4960
4994
 
4961
4995
  // src/options/x264-preset.tsx
4962
- import { jsx as jsx84, jsxs as jsxs58, Fragment as Fragment85 } from "react/jsx-runtime";
4996
+ import { jsx as jsx85, jsxs as jsxs59, Fragment as Fragment86 } from "react/jsx-runtime";
4963
4997
  var x264PresetOptions = [
4964
4998
  "ultrafast",
4965
4999
  "superfast",
@@ -4973,63 +5007,63 @@ var x264PresetOptions = [
4973
5007
  "placebo"
4974
5008
  ];
4975
5009
  var preset = null;
4976
- var cliFlag90 = "x264-preset";
5010
+ var cliFlag91 = "x264-preset";
4977
5011
  var DEFAULT_PRESET = "medium";
4978
5012
  var x264Option = {
4979
5013
  name: "x264 Preset",
4980
- cliFlag: cliFlag90,
4981
- description: () => /* @__PURE__ */ jsxs58(Fragment85, {
5014
+ cliFlag: cliFlag91,
5015
+ description: () => /* @__PURE__ */ jsxs59(Fragment86, {
4982
5016
  children: [
4983
5017
  "Sets a x264 preset profile. Only applies to videos rendered with",
4984
5018
  " ",
4985
- /* @__PURE__ */ jsx84("code", {
5019
+ /* @__PURE__ */ jsx85("code", {
4986
5020
  children: "h264"
4987
5021
  }),
4988
5022
  " codec.",
4989
- /* @__PURE__ */ jsx84("br", {}),
5023
+ /* @__PURE__ */ jsx85("br", {}),
4990
5024
  "Possible values: ",
4991
- /* @__PURE__ */ jsx84("code", {
5025
+ /* @__PURE__ */ jsx85("code", {
4992
5026
  children: "superfast"
4993
5027
  }),
4994
5028
  ", ",
4995
- /* @__PURE__ */ jsx84("code", {
5029
+ /* @__PURE__ */ jsx85("code", {
4996
5030
  children: "veryfast"
4997
5031
  }),
4998
5032
  ",",
4999
5033
  " ",
5000
- /* @__PURE__ */ jsx84("code", {
5034
+ /* @__PURE__ */ jsx85("code", {
5001
5035
  children: "faster"
5002
5036
  }),
5003
5037
  ", ",
5004
- /* @__PURE__ */ jsx84("code", {
5038
+ /* @__PURE__ */ jsx85("code", {
5005
5039
  children: "fast"
5006
5040
  }),
5007
5041
  ", ",
5008
- /* @__PURE__ */ jsx84("code", {
5042
+ /* @__PURE__ */ jsx85("code", {
5009
5043
  children: "medium"
5010
5044
  }),
5011
5045
  ",",
5012
5046
  " ",
5013
- /* @__PURE__ */ jsx84("code", {
5047
+ /* @__PURE__ */ jsx85("code", {
5014
5048
  children: "slow"
5015
5049
  }),
5016
5050
  ", ",
5017
- /* @__PURE__ */ jsx84("code", {
5051
+ /* @__PURE__ */ jsx85("code", {
5018
5052
  children: "slower"
5019
5053
  }),
5020
5054
  ", ",
5021
- /* @__PURE__ */ jsx84("code", {
5055
+ /* @__PURE__ */ jsx85("code", {
5022
5056
  children: "veryslow"
5023
5057
  }),
5024
5058
  ",",
5025
5059
  " ",
5026
- /* @__PURE__ */ jsx84("code", {
5060
+ /* @__PURE__ */ jsx85("code", {
5027
5061
  children: "placebo"
5028
5062
  }),
5029
5063
  ".",
5030
- /* @__PURE__ */ jsx84("br", {}),
5064
+ /* @__PURE__ */ jsx85("br", {}),
5031
5065
  "Default: ",
5032
- /* @__PURE__ */ jsx84("code", {
5066
+ /* @__PURE__ */ jsx85("code", {
5033
5067
  children: DEFAULT_PRESET
5034
5068
  })
5035
5069
  ]
@@ -5038,7 +5072,7 @@ var x264Option = {
5038
5072
  docLink: "https://www.remotion.dev/docs/renderer/render-media",
5039
5073
  type: "fast",
5040
5074
  getValue: ({ commandLine }) => {
5041
- const value3 = commandLine[cliFlag90];
5075
+ const value3 = commandLine[cliFlag91];
5042
5076
  if (typeof value3 !== "undefined") {
5043
5077
  return { value: value3, source: "cli" };
5044
5078
  }
@@ -5050,7 +5084,7 @@ var x264Option = {
5050
5084
  setConfig: (profile) => {
5051
5085
  preset = profile;
5052
5086
  },
5053
- id: cliFlag90
5087
+ id: cliFlag91
5054
5088
  };
5055
5089
 
5056
5090
  // src/options/index.tsx
@@ -5090,6 +5124,7 @@ var allOptions = {
5090
5124
  noOpenOption,
5091
5125
  pixelFormatOption,
5092
5126
  preferLosslessOption: preferLosslessAudioOption,
5127
+ previewSampleRateOption,
5093
5128
  proResProfileOption,
5094
5129
  x264Option,
5095
5130
  logLevelOption,
@@ -600,6 +600,25 @@ export declare const allOptions: {
600
600
  setConfig: (val: boolean) => void;
601
601
  id: "prefer-lossless";
602
602
  };
603
+ previewSampleRateOption: {
604
+ name: string;
605
+ cliFlag: "preview-sample-rate";
606
+ description: () => import("react/jsx-runtime").JSX.Element;
607
+ ssrName: null;
608
+ docLink: string;
609
+ type: number | null;
610
+ getValue: ({ commandLine }: {
611
+ commandLine: Record<string, unknown>;
612
+ }) => {
613
+ value: number;
614
+ source: string;
615
+ } | {
616
+ value: null;
617
+ source: string;
618
+ };
619
+ setConfig: (value: number | null) => void;
620
+ id: "preview-sample-rate";
621
+ };
603
622
  proResProfileOption: {
604
623
  name: string;
605
624
  cliFlag: "prores-profile";
@@ -67,6 +67,7 @@ const package_manager_1 = require("./package-manager");
67
67
  const pixel_format_1 = require("./pixel-format");
68
68
  const port_1 = require("./port");
69
69
  const prefer_lossless_1 = require("./prefer-lossless");
70
+ const preview_sample_rate_1 = require("./preview-sample-rate");
70
71
  const props_1 = require("./props");
71
72
  const prores_profile_1 = require("./prores-profile");
72
73
  const public_dir_1 = require("./public-dir");
@@ -127,6 +128,7 @@ exports.allOptions = {
127
128
  noOpenOption: no_open_1.noOpenOption,
128
129
  pixelFormatOption: pixel_format_1.pixelFormatOption,
129
130
  preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
131
+ previewSampleRateOption: preview_sample_rate_1.previewSampleRateOption,
130
132
  proResProfileOption: prores_profile_1.proResProfileOption,
131
133
  x264Option: x264_preset_1.x264Option,
132
134
  logLevelOption: log_level_1.logLevelOption,
@@ -0,0 +1,19 @@
1
+ export declare const previewSampleRateOption: {
2
+ name: string;
3
+ cliFlag: "preview-sample-rate";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: number;
12
+ source: string;
13
+ } | {
14
+ value: null;
15
+ source: string;
16
+ };
17
+ setConfig: (value: number | null) => void;
18
+ id: "preview-sample-rate";
19
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.previewSampleRateOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'preview-sample-rate';
6
+ let currentPreviewSampleRate = null;
7
+ exports.previewSampleRateOption = {
8
+ name: 'Preview Sample Rate',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
11
+ jsx_runtime_1.jsx("code", { children: "48000" }),
12
+ " Hz."] })),
13
+ ssrName: null,
14
+ docLink: 'https://www.remotion.dev/docs/config#setpreviewsamplerate',
15
+ type: null,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined) {
18
+ return { value: commandLine[cliFlag], source: 'cli' };
19
+ }
20
+ if (currentPreviewSampleRate !== null) {
21
+ return { value: currentPreviewSampleRate, source: 'config file' };
22
+ }
23
+ return { value: null, source: 'default' };
24
+ },
25
+ setConfig: (value) => {
26
+ currentPreviewSampleRate = value;
27
+ },
28
+ id: cliFlag,
29
+ };
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.469",
6
+ "version": "4.0.471",
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,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "execa": "5.1.1",
25
- "remotion": "4.0.469",
26
- "@remotion/streaming": "4.0.469",
25
+ "remotion": "4.0.471",
26
+ "@remotion/streaming": "4.0.471",
27
27
  "source-map": "0.8.0-beta.0",
28
28
  "ws": "8.20.1",
29
- "@remotion/licensing": "4.0.469"
29
+ "@remotion/licensing": "4.0.471"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=16.8.0",
@@ -40,19 +40,19 @@
40
40
  "react-dom": "19.2.3",
41
41
  "@typescript/native-preview": "7.0.0-dev.20260217.1",
42
42
  "@types/ws": "8.5.10",
43
- "@remotion/example-videos": "4.0.469",
44
- "@remotion/eslint-config-internal": "4.0.469",
43
+ "@remotion/example-videos": "4.0.471",
44
+ "@remotion/eslint-config-internal": "4.0.471",
45
45
  "eslint": "9.19.0",
46
46
  "@types/node": "20.12.14"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@remotion/compositor-darwin-arm64": "4.0.469",
50
- "@remotion/compositor-darwin-x64": "4.0.469",
51
- "@remotion/compositor-linux-arm64-gnu": "4.0.469",
52
- "@remotion/compositor-linux-arm64-musl": "4.0.469",
53
- "@remotion/compositor-linux-x64-gnu": "4.0.469",
54
- "@remotion/compositor-linux-x64-musl": "4.0.469",
55
- "@remotion/compositor-win32-x64-msvc": "4.0.469"
49
+ "@remotion/compositor-darwin-arm64": "4.0.471",
50
+ "@remotion/compositor-darwin-x64": "4.0.471",
51
+ "@remotion/compositor-linux-arm64-gnu": "4.0.471",
52
+ "@remotion/compositor-linux-arm64-musl": "4.0.471",
53
+ "@remotion/compositor-linux-x64-gnu": "4.0.471",
54
+ "@remotion/compositor-linux-x64-musl": "4.0.471",
55
+ "@remotion/compositor-win32-x64-msvc": "4.0.471"
56
56
  },
57
57
  "keywords": [
58
58
  "remotion",