@remotion/renderer 4.0.380 → 4.0.381

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.
@@ -918,38 +918,82 @@ var enableCrossSiteIsolationOption = {
918
918
  }
919
919
  };
920
920
 
921
- // src/options/delete-after.tsx
921
+ // src/options/dark-mode.tsx
922
922
  import { jsx as jsx9, jsxs as jsxs7, Fragment as Fragment9 } from "react/jsx-runtime";
923
- var cliFlag11 = "delete-after";
923
+ var DEFAULT_VALUE = false;
924
+ var darkMode = DEFAULT_VALUE;
925
+ var cliFlag11 = "dark-mode";
926
+ var darkModeOption = {
927
+ name: "Dark Mode",
928
+ cliFlag: cliFlag11,
929
+ description: () => /* @__PURE__ */ jsxs7(Fragment9, {
930
+ children: [
931
+ "Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is",
932
+ " ",
933
+ /* @__PURE__ */ jsx9("code", {
934
+ children: String(DEFAULT_VALUE)
935
+ }),
936
+ "."
937
+ ]
938
+ }),
939
+ ssrName: "darkMode",
940
+ docLink: "https://www.remotion.dev/docs/chromium-flags#--dark-mode",
941
+ type: false,
942
+ getValue: ({ commandLine }) => {
943
+ if (commandLine[cliFlag11] !== undefined) {
944
+ return {
945
+ source: "cli",
946
+ value: commandLine[cliFlag11]
947
+ };
948
+ }
949
+ if (darkMode !== DEFAULT_VALUE) {
950
+ return {
951
+ source: "config",
952
+ value: darkMode
953
+ };
954
+ }
955
+ return {
956
+ source: "default",
957
+ value: DEFAULT_VALUE
958
+ };
959
+ },
960
+ setConfig: (value) => {
961
+ darkMode = value;
962
+ }
963
+ };
964
+
965
+ // src/options/delete-after.tsx
966
+ import { jsx as jsx10, jsxs as jsxs8, Fragment as Fragment10 } from "react/jsx-runtime";
967
+ var cliFlag12 = "delete-after";
924
968
  var deleteAfter = null;
925
969
  var deleteAfterOption = {
926
970
  name: "Lambda render expiration",
927
- cliFlag: cliFlag11,
971
+ cliFlag: cliFlag12,
928
972
  description: () => {
929
- return /* @__PURE__ */ jsxs7(Fragment9, {
973
+ return /* @__PURE__ */ jsxs8(Fragment10, {
930
974
  children: [
931
975
  "Automatically delete the render after a certain period. Accepted values are ",
932
- /* @__PURE__ */ jsx9("code", {
976
+ /* @__PURE__ */ jsx10("code", {
933
977
  children: "1-day"
934
978
  }),
935
979
  ", ",
936
- /* @__PURE__ */ jsx9("code", {
980
+ /* @__PURE__ */ jsx10("code", {
937
981
  children: "3-days"
938
982
  }),
939
983
  ", ",
940
- /* @__PURE__ */ jsx9("code", {
984
+ /* @__PURE__ */ jsx10("code", {
941
985
  children: "7-days"
942
986
  }),
943
987
  " and",
944
988
  " ",
945
- /* @__PURE__ */ jsx9("code", {
989
+ /* @__PURE__ */ jsx10("code", {
946
990
  children: "30-days"
947
991
  }),
948
992
  ".",
949
- /* @__PURE__ */ jsx9("br", {}),
993
+ /* @__PURE__ */ jsx10("br", {}),
950
994
  " For this to work, your bucket needs to have",
951
995
  " ",
952
- /* @__PURE__ */ jsx9("a", {
996
+ /* @__PURE__ */ jsx10("a", {
953
997
  href: "/docs/lambda/autodelete",
954
998
  children: "lifecycles enabled"
955
999
  }),
@@ -961,10 +1005,10 @@ var deleteAfterOption = {
961
1005
  docLink: "https://www.remotion.dev/docs/lambda/autodelete",
962
1006
  type: "1-day",
963
1007
  getValue: ({ commandLine }) => {
964
- if (commandLine[cliFlag11] !== undefined) {
1008
+ if (commandLine[cliFlag12] !== undefined) {
965
1009
  return {
966
1010
  source: "cli",
967
- value: commandLine[cliFlag11]
1011
+ value: commandLine[cliFlag12]
968
1012
  };
969
1013
  }
970
1014
  if (deleteAfter !== null) {
@@ -985,16 +1029,16 @@ var deleteAfterOption = {
985
1029
 
986
1030
  // src/options/disable-git-source.tsx
987
1031
  var DEFAULT2 = false;
988
- var cliFlag12 = "disable-git-source";
1032
+ var cliFlag13 = "disable-git-source";
989
1033
  var disableGitSourceOption = {
990
- cliFlag: cliFlag12,
1034
+ cliFlag: cliFlag13,
991
1035
  description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
992
1036
  docLink: "https://remotion.dev/docs/bundle",
993
1037
  getValue: ({ commandLine }) => {
994
- if (commandLine[cliFlag12]) {
1038
+ if (commandLine[cliFlag13]) {
995
1039
  return {
996
1040
  source: "cli",
997
- value: commandLine[cliFlag12]
1041
+ value: commandLine[cliFlag13]
998
1042
  };
999
1043
  }
1000
1044
  return {
@@ -1011,22 +1055,22 @@ var disableGitSourceOption = {
1011
1055
  };
1012
1056
 
1013
1057
  // src/options/disallow-parallel-encoding.tsx
1014
- import { jsx as jsx10, Fragment as Fragment10 } from "react/jsx-runtime";
1058
+ import { jsx as jsx11, Fragment as Fragment11 } from "react/jsx-runtime";
1015
1059
  var disallowParallelEncoding = false;
1016
- var cliFlag13 = "disallow-parallel-encoding";
1060
+ var cliFlag14 = "disallow-parallel-encoding";
1017
1061
  var disallowParallelEncodingOption = {
1018
1062
  name: "Disallow parallel encoding",
1019
- cliFlag: cliFlag13,
1020
- description: () => /* @__PURE__ */ jsx10(Fragment10, {
1063
+ cliFlag: cliFlag14,
1064
+ description: () => /* @__PURE__ */ jsx11(Fragment11, {
1021
1065
  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."
1022
1066
  }),
1023
1067
  ssrName: "disallowParallelEncoding",
1024
1068
  docLink: "https://www.remotion.dev/docs/config#setdisallowparallelencoding",
1025
1069
  type: false,
1026
1070
  getValue: ({ commandLine }) => {
1027
- if (commandLine[cliFlag13] !== undefined) {
1071
+ if (commandLine[cliFlag14] !== undefined) {
1028
1072
  return {
1029
- value: commandLine[cliFlag13],
1073
+ value: commandLine[cliFlag14],
1030
1074
  source: "cli"
1031
1075
  };
1032
1076
  }
@@ -1047,17 +1091,17 @@ var disallowParallelEncodingOption = {
1047
1091
  };
1048
1092
 
1049
1093
  // src/options/enable-lambda-insights.tsx
1050
- import { jsx as jsx11, jsxs as jsxs8, Fragment as Fragment11 } from "react/jsx-runtime";
1051
- var cliFlag14 = "enable-lambda-insights";
1094
+ import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
1095
+ var cliFlag15 = "enable-lambda-insights";
1052
1096
  var option = false;
1053
1097
  var enableLambdaInsights = {
1054
1098
  name: "Enable Lambda Insights",
1055
- cliFlag: cliFlag14,
1056
- description: () => /* @__PURE__ */ jsxs8(Fragment11, {
1099
+ cliFlag: cliFlag15,
1100
+ description: () => /* @__PURE__ */ jsxs9(Fragment12, {
1057
1101
  children: [
1058
1102
  "Enable",
1059
1103
  " ",
1060
- /* @__PURE__ */ jsx11("a", {
1104
+ /* @__PURE__ */ jsx12("a", {
1061
1105
  href: "https://remotion.dev/docs/lambda/insights",
1062
1106
  children: "Lambda Insights in AWS CloudWatch"
1063
1107
  }),
@@ -1071,9 +1115,9 @@ var enableLambdaInsights = {
1071
1115
  option = value;
1072
1116
  },
1073
1117
  getValue: ({ commandLine }) => {
1074
- if (commandLine[cliFlag14] !== undefined) {
1118
+ if (commandLine[cliFlag15] !== undefined) {
1075
1119
  return {
1076
- value: commandLine[cliFlag14],
1120
+ value: commandLine[cliFlag15],
1077
1121
  source: "cli"
1078
1122
  };
1079
1123
  }
@@ -1091,37 +1135,37 @@ var enableLambdaInsights = {
1091
1135
  };
1092
1136
 
1093
1137
  // src/options/enable-multiprocess-on-linux.tsx
1094
- import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
1095
- var DEFAULT_VALUE = true;
1096
- var multiProcessOnLinux = DEFAULT_VALUE;
1097
- var cliFlag15 = "enable-multiprocess-on-linux";
1138
+ import { jsx as jsx13, jsxs as jsxs10, Fragment as Fragment13 } from "react/jsx-runtime";
1139
+ var DEFAULT_VALUE2 = true;
1140
+ var multiProcessOnLinux = DEFAULT_VALUE2;
1141
+ var cliFlag16 = "enable-multiprocess-on-linux";
1098
1142
  var enableMultiprocessOnLinuxOption = {
1099
1143
  name: "Enable Multiprocess on Linux",
1100
- cliFlag: cliFlag15,
1101
- description: () => /* @__PURE__ */ jsxs9(Fragment12, {
1144
+ cliFlag: cliFlag16,
1145
+ description: () => /* @__PURE__ */ jsxs10(Fragment13, {
1102
1146
  children: [
1103
1147
  "Removes the ",
1104
- /* @__PURE__ */ jsx12("code", {
1148
+ /* @__PURE__ */ jsx13("code", {
1105
1149
  children: "--single-process"
1106
1150
  }),
1107
1151
  " flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing.",
1108
- /* @__PURE__ */ jsx12("br", {}),
1152
+ /* @__PURE__ */ jsx13("br", {}),
1109
1153
  "Default: ",
1110
- /* @__PURE__ */ jsx12("code", {
1154
+ /* @__PURE__ */ jsx13("code", {
1111
1155
  children: "false"
1112
1156
  }),
1113
1157
  " until v4.0.136, then ",
1114
- /* @__PURE__ */ jsx12("code", {
1158
+ /* @__PURE__ */ jsx13("code", {
1115
1159
  children: "true"
1116
1160
  }),
1117
1161
  " from v4.0.137 on because newer Chrome versions ",
1118
1162
  "don't",
1119
1163
  " allow rendering with the ",
1120
- /* @__PURE__ */ jsx12("code", {
1164
+ /* @__PURE__ */ jsx13("code", {
1121
1165
  children: "--single-process"
1122
1166
  }),
1123
1167
  " flag. ",
1124
- /* @__PURE__ */ jsx12("br", {}),
1168
+ /* @__PURE__ */ jsx13("br", {}),
1125
1169
  "This flag will be removed in Remotion v5.0."
1126
1170
  ]
1127
1171
  }),
@@ -1129,10 +1173,10 @@ var enableMultiprocessOnLinuxOption = {
1129
1173
  docLink: "https://www.remotion.dev/docs/chromium-flags",
1130
1174
  type: false,
1131
1175
  getValue: ({ commandLine }) => {
1132
- if (commandLine[cliFlag15] !== undefined) {
1176
+ if (commandLine[cliFlag16] !== undefined) {
1133
1177
  return {
1134
1178
  source: "cli",
1135
- value: commandLine[cliFlag15]
1179
+ value: commandLine[cliFlag16]
1136
1180
  };
1137
1181
  }
1138
1182
  if (multiProcessOnLinux !== false) {
@@ -1143,7 +1187,7 @@ var enableMultiprocessOnLinuxOption = {
1143
1187
  }
1144
1188
  return {
1145
1189
  source: "default",
1146
- value: DEFAULT_VALUE
1190
+ value: DEFAULT_VALUE2
1147
1191
  };
1148
1192
  },
1149
1193
  setConfig: (value) => {
@@ -1152,19 +1196,19 @@ var enableMultiprocessOnLinuxOption = {
1152
1196
  };
1153
1197
 
1154
1198
  // src/options/encoding-buffer-size.tsx
1155
- import { jsx as jsx13, jsxs as jsxs10, Fragment as Fragment13 } from "react/jsx-runtime";
1199
+ import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment14 } from "react/jsx-runtime";
1156
1200
  var encodingBufferSize = null;
1157
1201
  var setEncodingBufferSize = (bitrate) => {
1158
1202
  encodingBufferSize = bitrate;
1159
1203
  };
1160
- var cliFlag16 = "buffer-size";
1204
+ var cliFlag17 = "buffer-size";
1161
1205
  var encodingBufferSizeOption = {
1162
1206
  name: "FFmpeg -bufsize flag",
1163
- cliFlag: cliFlag16,
1164
- description: () => /* @__PURE__ */ jsxs10(Fragment13, {
1207
+ cliFlag: cliFlag17,
1208
+ description: () => /* @__PURE__ */ jsxs11(Fragment14, {
1165
1209
  children: [
1166
1210
  "The value for the ",
1167
- /* @__PURE__ */ jsx13("code", {
1211
+ /* @__PURE__ */ jsx14("code", {
1168
1212
  children: "-bufsize"
1169
1213
  }),
1170
1214
  " flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
@@ -1174,9 +1218,9 @@ var encodingBufferSizeOption = {
1174
1218
  docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
1175
1219
  type: "",
1176
1220
  getValue: ({ commandLine }) => {
1177
- if (commandLine[cliFlag16] !== undefined) {
1221
+ if (commandLine[cliFlag17] !== undefined) {
1178
1222
  return {
1179
- value: commandLine[cliFlag16],
1223
+ value: commandLine[cliFlag17],
1180
1224
  source: "cli"
1181
1225
  };
1182
1226
  }
@@ -1195,16 +1239,16 @@ var encodingBufferSizeOption = {
1195
1239
  };
1196
1240
 
1197
1241
  // src/options/encoding-max-rate.tsx
1198
- import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment14 } from "react/jsx-runtime";
1242
+ import { jsx as jsx15, jsxs as jsxs12, Fragment as Fragment15 } from "react/jsx-runtime";
1199
1243
  var encodingMaxRate = null;
1200
- var cliFlag17 = "max-rate";
1244
+ var cliFlag18 = "max-rate";
1201
1245
  var encodingMaxRateOption = {
1202
1246
  name: "FFmpeg -maxrate flag",
1203
- cliFlag: cliFlag17,
1204
- description: () => /* @__PURE__ */ jsxs11(Fragment14, {
1247
+ cliFlag: cliFlag18,
1248
+ description: () => /* @__PURE__ */ jsxs12(Fragment15, {
1205
1249
  children: [
1206
1250
  "The value for the ",
1207
- /* @__PURE__ */ jsx14("code", {
1251
+ /* @__PURE__ */ jsx15("code", {
1208
1252
  children: "-maxrate"
1209
1253
  }),
1210
1254
  " flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
@@ -1214,9 +1258,9 @@ var encodingMaxRateOption = {
1214
1258
  docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
1215
1259
  type: "",
1216
1260
  getValue: ({ commandLine }) => {
1217
- if (commandLine[cliFlag17] !== undefined) {
1261
+ if (commandLine[cliFlag18] !== undefined) {
1218
1262
  return {
1219
- value: commandLine[cliFlag17],
1263
+ value: commandLine[cliFlag18],
1220
1264
  source: "cli"
1221
1265
  };
1222
1266
  }
@@ -1237,21 +1281,21 @@ var encodingMaxRateOption = {
1237
1281
  };
1238
1282
 
1239
1283
  // src/options/enforce-audio.tsx
1240
- import { jsx as jsx15, Fragment as Fragment15 } from "react/jsx-runtime";
1284
+ import { jsx as jsx16, Fragment as Fragment16 } from "react/jsx-runtime";
1241
1285
  var DEFAULT_ENFORCE_AUDIO_TRACK = false;
1242
1286
  var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
1243
- var cliFlag18 = "enforce-audio-track";
1287
+ var cliFlag19 = "enforce-audio-track";
1244
1288
  var enforceAudioOption = {
1245
1289
  name: "Enforce Audio Track",
1246
- cliFlag: cliFlag18,
1247
- description: () => /* @__PURE__ */ jsx15(Fragment15, {
1290
+ cliFlag: cliFlag19,
1291
+ description: () => /* @__PURE__ */ jsx16(Fragment16, {
1248
1292
  children: "Render a silent audio track if there would be none otherwise."
1249
1293
  }),
1250
1294
  ssrName: "enforceAudioTrack",
1251
1295
  docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
1252
1296
  type: false,
1253
1297
  getValue: ({ commandLine }) => {
1254
- if (commandLine[cliFlag18]) {
1298
+ if (commandLine[cliFlag19]) {
1255
1299
  return {
1256
1300
  source: "cli",
1257
1301
  value: true
@@ -1274,22 +1318,22 @@ var enforceAudioOption = {
1274
1318
  };
1275
1319
 
1276
1320
  // src/options/folder-expiry.tsx
1277
- import { jsx as jsx16, jsxs as jsxs12, Fragment as Fragment16 } from "react/jsx-runtime";
1321
+ import { jsx as jsx17, jsxs as jsxs13, Fragment as Fragment17 } from "react/jsx-runtime";
1278
1322
  var enableFolderExpiry = null;
1279
- var cliFlag19 = "enable-folder-expiry";
1323
+ var cliFlag20 = "enable-folder-expiry";
1280
1324
  var folderExpiryOption = {
1281
1325
  name: "Lambda render expiration",
1282
- cliFlag: cliFlag19,
1326
+ cliFlag: cliFlag20,
1283
1327
  description: () => {
1284
- return /* @__PURE__ */ jsxs12(Fragment16, {
1328
+ return /* @__PURE__ */ jsxs13(Fragment17, {
1285
1329
  children: [
1286
1330
  "When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
1287
1331
  " ",
1288
- /* @__PURE__ */ jsx16("code", {
1332
+ /* @__PURE__ */ jsx17("code", {
1289
1333
  children: "null"
1290
1334
  }),
1291
1335
  ", which does not change any lifecycle policies of the S3 bucket. See: ",
1292
- /* @__PURE__ */ jsx16("a", {
1336
+ /* @__PURE__ */ jsx17("a", {
1293
1337
  href: "/docs/lambda/autodelete",
1294
1338
  children: "Lambda autodelete"
1295
1339
  }),
@@ -1301,10 +1345,10 @@ var folderExpiryOption = {
1301
1345
  docLink: "https://www.remotion.dev/docs/lambda/autodelete",
1302
1346
  type: false,
1303
1347
  getValue: ({ commandLine }) => {
1304
- if (commandLine[cliFlag19] !== undefined) {
1348
+ if (commandLine[cliFlag20] !== undefined) {
1305
1349
  return {
1306
1350
  source: "cli",
1307
- value: commandLine[cliFlag19]
1351
+ value: commandLine[cliFlag20]
1308
1352
  };
1309
1353
  }
1310
1354
  if (enableFolderExpiry !== null) {
@@ -1324,24 +1368,24 @@ var folderExpiryOption = {
1324
1368
  };
1325
1369
 
1326
1370
  // src/options/for-seamless-aac-concatenation.tsx
1327
- import { jsx as jsx17, jsxs as jsxs13, Fragment as Fragment17 } from "react/jsx-runtime";
1371
+ import { jsx as jsx18, jsxs as jsxs14, Fragment as Fragment18 } from "react/jsx-runtime";
1328
1372
  var DEFAULT3 = false;
1329
1373
  var forSeamlessAacConcatenation = DEFAULT3;
1330
- var cliFlag20 = "for-seamless-aac-concatenation";
1374
+ var cliFlag21 = "for-seamless-aac-concatenation";
1331
1375
  var forSeamlessAacConcatenationOption = {
1332
1376
  name: "For seamless AAC concatenation",
1333
- cliFlag: cliFlag20,
1334
- description: () => /* @__PURE__ */ jsxs13(Fragment17, {
1377
+ cliFlag: cliFlag21,
1378
+ description: () => /* @__PURE__ */ jsxs14(Fragment18, {
1335
1379
  children: [
1336
1380
  "If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
1337
- /* @__PURE__ */ jsx17("br", {}),
1338
- /* @__PURE__ */ jsx17("br", {}),
1381
+ /* @__PURE__ */ jsx18("br", {}),
1382
+ /* @__PURE__ */ jsx18("br", {}),
1339
1383
  " This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
1340
1384
  ]
1341
1385
  }),
1342
1386
  docLink: "https://remotion.dev/docs/renderer",
1343
1387
  getValue: ({ commandLine }) => {
1344
- if (commandLine[cliFlag20]) {
1388
+ if (commandLine[cliFlag21]) {
1345
1389
  return {
1346
1390
  source: "cli",
1347
1391
  value: true
@@ -1366,7 +1410,7 @@ var forSeamlessAacConcatenationOption = {
1366
1410
  };
1367
1411
 
1368
1412
  // src/options/gl.tsx
1369
- import { jsx as jsx18, jsxs as jsxs14, Fragment as Fragment18 } from "react/jsx-runtime";
1413
+ import { jsx as jsx19, jsxs as jsxs15, Fragment as Fragment19 } from "react/jsx-runtime";
1370
1414
  var validOpenGlRenderers = [
1371
1415
  "swangle",
1372
1416
  "angle",
@@ -1378,33 +1422,33 @@ var validOpenGlRenderers = [
1378
1422
  var DEFAULT_OPENGL_RENDERER = null;
1379
1423
  var openGlRenderer = DEFAULT_OPENGL_RENDERER;
1380
1424
  var AngleChangelog = () => {
1381
- return /* @__PURE__ */ jsxs14("details", {
1425
+ return /* @__PURE__ */ jsxs15("details", {
1382
1426
  style: { fontSize: "0.9em", marginBottom: "1em" },
1383
1427
  children: [
1384
- /* @__PURE__ */ jsx18("summary", {
1428
+ /* @__PURE__ */ jsx19("summary", {
1385
1429
  children: "Changelog"
1386
1430
  }),
1387
- /* @__PURE__ */ jsxs14("ul", {
1431
+ /* @__PURE__ */ jsxs15("ul", {
1388
1432
  children: [
1389
- /* @__PURE__ */ jsxs14("li", {
1433
+ /* @__PURE__ */ jsxs15("li", {
1390
1434
  children: [
1391
1435
  "From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
1392
1436
  " ",
1393
- /* @__PURE__ */ jsx18("code", {
1437
+ /* @__PURE__ */ jsx19("code", {
1394
1438
  children: "swiftshader"
1395
1439
  }),
1396
1440
  ", but from v3.0.8 the default is",
1397
1441
  " ",
1398
- /* @__PURE__ */ jsx18("code", {
1442
+ /* @__PURE__ */ jsx19("code", {
1399
1443
  children: "swangle"
1400
1444
  }),
1401
1445
  " (Swiftshader on Angle) since Chrome 101 added support for it."
1402
1446
  ]
1403
1447
  }),
1404
- /* @__PURE__ */ jsxs14("li", {
1448
+ /* @__PURE__ */ jsxs15("li", {
1405
1449
  children: [
1406
1450
  "From Remotion v2.4.3 until v2.6.6, the default was ",
1407
- /* @__PURE__ */ jsx18("code", {
1451
+ /* @__PURE__ */ jsx19("code", {
1408
1452
  children: "angle"
1409
1453
  }),
1410
1454
  ", however it turns out to have a small memory leak that could crash long Remotion renders."
@@ -1415,65 +1459,65 @@ var AngleChangelog = () => {
1415
1459
  ]
1416
1460
  });
1417
1461
  };
1418
- var cliFlag21 = "gl";
1462
+ var cliFlag22 = "gl";
1419
1463
  var glOption = {
1420
- cliFlag: cliFlag21,
1464
+ cliFlag: cliFlag22,
1421
1465
  docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
1422
1466
  name: "OpenGL renderer",
1423
1467
  type: "angle",
1424
1468
  ssrName: "gl",
1425
1469
  description: () => {
1426
- return /* @__PURE__ */ jsxs14(Fragment18, {
1470
+ return /* @__PURE__ */ jsxs15(Fragment19, {
1427
1471
  children: [
1428
- /* @__PURE__ */ jsx18(AngleChangelog, {}),
1429
- /* @__PURE__ */ jsxs14("p", {
1472
+ /* @__PURE__ */ jsx19(AngleChangelog, {}),
1473
+ /* @__PURE__ */ jsxs15("p", {
1430
1474
  children: [
1431
1475
  "Select the OpenGL renderer backend for Chromium. ",
1432
- /* @__PURE__ */ jsx18("br", {}),
1476
+ /* @__PURE__ */ jsx19("br", {}),
1433
1477
  "Accepted values:"
1434
1478
  ]
1435
1479
  }),
1436
- /* @__PURE__ */ jsxs14("ul", {
1480
+ /* @__PURE__ */ jsxs15("ul", {
1437
1481
  children: [
1438
- /* @__PURE__ */ jsx18("li", {
1439
- children: /* @__PURE__ */ jsx18("code", {
1482
+ /* @__PURE__ */ jsx19("li", {
1483
+ children: /* @__PURE__ */ jsx19("code", {
1440
1484
  children: '"angle"'
1441
1485
  })
1442
1486
  }),
1443
- /* @__PURE__ */ jsx18("li", {
1444
- children: /* @__PURE__ */ jsx18("code", {
1487
+ /* @__PURE__ */ jsx19("li", {
1488
+ children: /* @__PURE__ */ jsx19("code", {
1445
1489
  children: '"egl"'
1446
1490
  })
1447
1491
  }),
1448
- /* @__PURE__ */ jsx18("li", {
1449
- children: /* @__PURE__ */ jsx18("code", {
1492
+ /* @__PURE__ */ jsx19("li", {
1493
+ children: /* @__PURE__ */ jsx19("code", {
1450
1494
  children: '"swiftshader"'
1451
1495
  })
1452
1496
  }),
1453
- /* @__PURE__ */ jsx18("li", {
1454
- children: /* @__PURE__ */ jsx18("code", {
1497
+ /* @__PURE__ */ jsx19("li", {
1498
+ children: /* @__PURE__ */ jsx19("code", {
1455
1499
  children: '"swangle"'
1456
1500
  })
1457
1501
  }),
1458
- /* @__PURE__ */ jsxs14("li", {
1502
+ /* @__PURE__ */ jsxs15("li", {
1459
1503
  children: [
1460
- /* @__PURE__ */ jsx18("code", {
1504
+ /* @__PURE__ */ jsx19("code", {
1461
1505
  children: '"vulkan"'
1462
1506
  }),
1463
1507
  " (",
1464
- /* @__PURE__ */ jsx18("em", {
1508
+ /* @__PURE__ */ jsx19("em", {
1465
1509
  children: "from Remotion v4.0.41"
1466
1510
  }),
1467
1511
  ")"
1468
1512
  ]
1469
1513
  }),
1470
- /* @__PURE__ */ jsxs14("li", {
1514
+ /* @__PURE__ */ jsxs15("li", {
1471
1515
  children: [
1472
- /* @__PURE__ */ jsx18("code", {
1516
+ /* @__PURE__ */ jsx19("code", {
1473
1517
  children: '"angle-egl"'
1474
1518
  }),
1475
1519
  " (",
1476
- /* @__PURE__ */ jsx18("em", {
1520
+ /* @__PURE__ */ jsx19("em", {
1477
1521
  children: "from Remotion v4.0.51"
1478
1522
  }),
1479
1523
  ")"
@@ -1481,14 +1525,14 @@ var glOption = {
1481
1525
  })
1482
1526
  ]
1483
1527
  }),
1484
- /* @__PURE__ */ jsxs14("p", {
1528
+ /* @__PURE__ */ jsxs15("p", {
1485
1529
  children: [
1486
1530
  "The default is ",
1487
- /* @__PURE__ */ jsx18("code", {
1531
+ /* @__PURE__ */ jsx19("code", {
1488
1532
  children: "null"
1489
1533
  }),
1490
1534
  ", letting Chrome decide, except on Lambda where the default is ",
1491
- /* @__PURE__ */ jsx18("code", {
1535
+ /* @__PURE__ */ jsx19("code", {
1492
1536
  children: '"swangle"'
1493
1537
  })
1494
1538
  ]
@@ -1497,10 +1541,10 @@ var glOption = {
1497
1541
  });
1498
1542
  },
1499
1543
  getValue: ({ commandLine }) => {
1500
- if (commandLine[cliFlag21]) {
1501
- validateOpenGlRenderer(commandLine[cliFlag21]);
1544
+ if (commandLine[cliFlag22]) {
1545
+ validateOpenGlRenderer(commandLine[cliFlag22]);
1502
1546
  return {
1503
- value: commandLine[cliFlag21],
1547
+ value: commandLine[cliFlag22],
1504
1548
  source: "cli"
1505
1549
  };
1506
1550
  }
@@ -1536,11 +1580,11 @@ var hardwareAccelerationOptions = [
1536
1580
  "if-possible",
1537
1581
  "required"
1538
1582
  ];
1539
- var cliFlag22 = "hardware-acceleration";
1583
+ var cliFlag23 = "hardware-acceleration";
1540
1584
  var currentValue = null;
1541
1585
  var hardwareAccelerationOption = {
1542
1586
  name: "Hardware Acceleration",
1543
- cliFlag: cliFlag22,
1587
+ cliFlag: cliFlag23,
1544
1588
  description: () => `
1545
1589
  One of
1546
1590
  ${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
@@ -1552,10 +1596,10 @@ var hardwareAccelerationOption = {
1552
1596
  docLink: "https://www.remotion.dev/docs/encoding",
1553
1597
  type: "disable",
1554
1598
  getValue: ({ commandLine }) => {
1555
- if (commandLine[cliFlag22] !== undefined) {
1556
- const value = commandLine[cliFlag22];
1599
+ if (commandLine[cliFlag23] !== undefined) {
1600
+ const value = commandLine[cliFlag23];
1557
1601
  if (!hardwareAccelerationOptions.includes(value)) {
1558
- throw new Error(`Invalid value for --${cliFlag22}: ${value}`);
1602
+ throw new Error(`Invalid value for --${cliFlag23}: ${value}`);
1559
1603
  }
1560
1604
  return {
1561
1605
  source: "cli",
@@ -1575,31 +1619,31 @@ var hardwareAccelerationOption = {
1575
1619
  },
1576
1620
  setConfig: (value) => {
1577
1621
  if (!hardwareAccelerationOptions.includes(value)) {
1578
- throw new Error(`Invalid value for --${cliFlag22}: ${value}`);
1622
+ throw new Error(`Invalid value for --${cliFlag23}: ${value}`);
1579
1623
  }
1580
1624
  currentValue = value;
1581
1625
  }
1582
1626
  };
1583
1627
 
1584
1628
  // src/options/headless.tsx
1585
- import { jsx as jsx19, jsxs as jsxs15, Fragment as Fragment19 } from "react/jsx-runtime";
1629
+ import { jsx as jsx20, jsxs as jsxs16, Fragment as Fragment20 } from "react/jsx-runtime";
1586
1630
  var DEFAULT4 = true;
1587
1631
  var headlessMode = DEFAULT4;
1588
- var cliFlag23 = "disable-headless";
1632
+ var cliFlag24 = "disable-headless";
1589
1633
  var headlessOption = {
1590
1634
  name: "Disable Headless Mode",
1591
- cliFlag: cliFlag23,
1592
- description: () => /* @__PURE__ */ jsxs15(Fragment19, {
1635
+ cliFlag: cliFlag24,
1636
+ description: () => /* @__PURE__ */ jsxs16(Fragment20, {
1593
1637
  children: [
1594
1638
  "Deprecated - will be removed in 5.0.0. With the migration to",
1595
1639
  " ",
1596
- /* @__PURE__ */ jsx19("a", {
1640
+ /* @__PURE__ */ jsx20("a", {
1597
1641
  href: "/docs/miscellaneous/chrome-headless-shell",
1598
1642
  children: "Chrome Headless Shell"
1599
1643
  }),
1600
1644
  ", this option is not functional anymore.",
1601
- /* @__PURE__ */ jsx19("br", {}),
1602
- /* @__PURE__ */ jsx19("br", {}),
1645
+ /* @__PURE__ */ jsx20("br", {}),
1646
+ /* @__PURE__ */ jsx20("br", {}),
1603
1647
  " If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
1604
1648
  ]
1605
1649
  }),
@@ -1607,10 +1651,10 @@ var headlessOption = {
1607
1651
  docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
1608
1652
  type: false,
1609
1653
  getValue: ({ commandLine }) => {
1610
- if (commandLine[cliFlag23] !== undefined) {
1654
+ if (commandLine[cliFlag24] !== undefined) {
1611
1655
  return {
1612
1656
  source: "cli",
1613
- value: !commandLine[cliFlag23]
1657
+ value: !commandLine[cliFlag24]
1614
1658
  };
1615
1659
  }
1616
1660
  if (headlessMode !== DEFAULT4) {
@@ -1630,21 +1674,21 @@ var headlessOption = {
1630
1674
  };
1631
1675
 
1632
1676
  // src/options/image-sequence-pattern.tsx
1633
- import { jsx as jsx20, jsxs as jsxs16, Fragment as Fragment20 } from "react/jsx-runtime";
1634
- var cliFlag24 = "image-sequence-pattern";
1677
+ import { jsx as jsx21, jsxs as jsxs17, Fragment as Fragment21 } from "react/jsx-runtime";
1678
+ var cliFlag25 = "image-sequence-pattern";
1635
1679
  var currentImageSequencePattern = null;
1636
1680
  var imageSequencePatternOption = {
1637
1681
  name: "Image Sequence Pattern",
1638
- cliFlag: cliFlag24,
1682
+ cliFlag: cliFlag25,
1639
1683
  ssrName: "imageSequencePattern",
1640
- description: () => /* @__PURE__ */ jsxs16(Fragment20, {
1684
+ description: () => /* @__PURE__ */ jsxs17(Fragment21, {
1641
1685
  children: [
1642
1686
  "Pattern for naming image sequence files. Supports ",
1643
- /* @__PURE__ */ jsx20("code", {
1687
+ /* @__PURE__ */ jsx21("code", {
1644
1688
  children: "[frame]"
1645
1689
  }),
1646
1690
  " for the zero-padded frame number and ",
1647
- /* @__PURE__ */ jsx20("code", {
1691
+ /* @__PURE__ */ jsx21("code", {
1648
1692
  children: "[ext]"
1649
1693
  }),
1650
1694
  " for the file extension."
@@ -1660,7 +1704,7 @@ var imageSequencePatternOption = {
1660
1704
  };
1661
1705
  }
1662
1706
  return {
1663
- value: commandLine[cliFlag24],
1707
+ value: commandLine[cliFlag25],
1664
1708
  source: "cli"
1665
1709
  };
1666
1710
  },
@@ -1670,7 +1714,7 @@ var imageSequencePatternOption = {
1670
1714
  };
1671
1715
 
1672
1716
  // src/options/jpeg-quality.tsx
1673
- import { jsx as jsx21, Fragment as Fragment21 } from "react/jsx-runtime";
1717
+ import { jsx as jsx22, Fragment as Fragment22 } from "react/jsx-runtime";
1674
1718
  var defaultValue = DEFAULT_JPEG_QUALITY;
1675
1719
  var quality = defaultValue;
1676
1720
  var setJpegQuality = (q) => {
@@ -1681,11 +1725,11 @@ var setJpegQuality = (q) => {
1681
1725
  }
1682
1726
  quality = q;
1683
1727
  };
1684
- var cliFlag25 = "jpeg-quality";
1728
+ var cliFlag26 = "jpeg-quality";
1685
1729
  var jpegQualityOption = {
1686
1730
  name: "JPEG Quality",
1687
- cliFlag: cliFlag25,
1688
- description: () => /* @__PURE__ */ jsx21(Fragment21, {
1731
+ cliFlag: cliFlag26,
1732
+ description: () => /* @__PURE__ */ jsx22(Fragment22, {
1689
1733
  children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
1690
1734
  }),
1691
1735
  ssrName: "jpegQuality",
@@ -1693,11 +1737,11 @@ var jpegQualityOption = {
1693
1737
  type: 0,
1694
1738
  setConfig: setJpegQuality,
1695
1739
  getValue: ({ commandLine }) => {
1696
- if (commandLine[cliFlag25] !== undefined) {
1697
- validateJpegQuality(commandLine[cliFlag25]);
1740
+ if (commandLine[cliFlag26] !== undefined) {
1741
+ validateJpegQuality(commandLine[cliFlag26]);
1698
1742
  return {
1699
1743
  source: "cli",
1700
- value: commandLine[cliFlag25]
1744
+ value: commandLine[cliFlag26]
1701
1745
  };
1702
1746
  }
1703
1747
  if (quality !== defaultValue) {
@@ -1714,38 +1758,38 @@ var jpegQualityOption = {
1714
1758
  };
1715
1759
 
1716
1760
  // src/options/latency-hint.tsx
1717
- import { jsx as jsx22, jsxs as jsxs17, Fragment as Fragment22 } from "react/jsx-runtime";
1718
- var cliFlag26 = "audio-latency-hint";
1761
+ import { jsx as jsx23, jsxs as jsxs18, Fragment as Fragment23 } from "react/jsx-runtime";
1762
+ var cliFlag27 = "audio-latency-hint";
1719
1763
  var value = null;
1720
1764
  var audioLatencyHintOption = {
1721
1765
  name: "Audio Latency Hint",
1722
- cliFlag: cliFlag26,
1723
- description: () => /* @__PURE__ */ jsxs17(Fragment22, {
1766
+ cliFlag: cliFlag27,
1767
+ description: () => /* @__PURE__ */ jsxs18(Fragment23, {
1724
1768
  children: [
1725
1769
  "Sets the",
1726
1770
  " ",
1727
- /* @__PURE__ */ jsx22("a", {
1771
+ /* @__PURE__ */ jsx23("a", {
1728
1772
  href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
1729
1773
  children: "audio latency"
1730
1774
  }),
1731
1775
  " ",
1732
1776
  "hint for the global ",
1733
- /* @__PURE__ */ jsx22("code", {
1777
+ /* @__PURE__ */ jsx23("code", {
1734
1778
  children: "AudioContext"
1735
1779
  }),
1736
1780
  " context that Remotion uses to play audio.",
1737
- /* @__PURE__ */ jsx22("br", {}),
1781
+ /* @__PURE__ */ jsx23("br", {}),
1738
1782
  "Possible values: ",
1739
- /* @__PURE__ */ jsx22("code", {
1783
+ /* @__PURE__ */ jsx23("code", {
1740
1784
  children: "interactive"
1741
1785
  }),
1742
1786
  ", ",
1743
- /* @__PURE__ */ jsx22("code", {
1787
+ /* @__PURE__ */ jsx23("code", {
1744
1788
  children: "balanced"
1745
1789
  }),
1746
1790
  ",",
1747
1791
  " ",
1748
- /* @__PURE__ */ jsx22("code", {
1792
+ /* @__PURE__ */ jsx23("code", {
1749
1793
  children: "playback"
1750
1794
  })
1751
1795
  ]
@@ -1754,7 +1798,7 @@ var audioLatencyHintOption = {
1754
1798
  docLink: "https://www.remotion.dev/docs/renderer/render-media",
1755
1799
  type: "interactive",
1756
1800
  getValue: ({ commandLine }) => {
1757
- const val = commandLine[cliFlag26];
1801
+ const val = commandLine[cliFlag27];
1758
1802
  if (typeof val !== "undefined") {
1759
1803
  return { value: val, source: "cli" };
1760
1804
  }
@@ -1769,43 +1813,43 @@ var audioLatencyHintOption = {
1769
1813
  };
1770
1814
 
1771
1815
  // src/options/log-level.tsx
1772
- import { jsx as jsx23, jsxs as jsxs18, Fragment as Fragment23 } from "react/jsx-runtime";
1816
+ import { jsx as jsx24, jsxs as jsxs19, Fragment as Fragment24 } from "react/jsx-runtime";
1773
1817
  var logLevel = "info";
1774
- var cliFlag27 = "log";
1818
+ var cliFlag28 = "log";
1775
1819
  var logLevelOption = {
1776
- cliFlag: cliFlag27,
1820
+ cliFlag: cliFlag28,
1777
1821
  name: "Log Level",
1778
1822
  ssrName: "logLevel",
1779
- description: () => /* @__PURE__ */ jsxs18(Fragment23, {
1823
+ description: () => /* @__PURE__ */ jsxs19(Fragment24, {
1780
1824
  children: [
1781
1825
  "One of ",
1782
- /* @__PURE__ */ jsx23("code", {
1826
+ /* @__PURE__ */ jsx24("code", {
1783
1827
  children: "trace"
1784
1828
  }),
1785
1829
  ", ",
1786
- /* @__PURE__ */ jsx23("code", {
1830
+ /* @__PURE__ */ jsx24("code", {
1787
1831
  children: "verbose"
1788
1832
  }),
1789
1833
  ", ",
1790
- /* @__PURE__ */ jsx23("code", {
1834
+ /* @__PURE__ */ jsx24("code", {
1791
1835
  children: "info"
1792
1836
  }),
1793
1837
  ",",
1794
1838
  " ",
1795
- /* @__PURE__ */ jsx23("code", {
1839
+ /* @__PURE__ */ jsx24("code", {
1796
1840
  children: "warn"
1797
1841
  }),
1798
1842
  ", ",
1799
- /* @__PURE__ */ jsx23("code", {
1843
+ /* @__PURE__ */ jsx24("code", {
1800
1844
  children: "error"
1801
1845
  }),
1802
1846
  ".",
1803
- /* @__PURE__ */ jsx23("br", {}),
1847
+ /* @__PURE__ */ jsx24("br", {}),
1804
1848
  " Determines how much info is being logged to the console.",
1805
- /* @__PURE__ */ jsx23("br", {}),
1806
- /* @__PURE__ */ jsx23("br", {}),
1849
+ /* @__PURE__ */ jsx24("br", {}),
1850
+ /* @__PURE__ */ jsx24("br", {}),
1807
1851
  " Default ",
1808
- /* @__PURE__ */ jsx23("code", {
1852
+ /* @__PURE__ */ jsx24("code", {
1809
1853
  children: "info"
1810
1854
  }),
1811
1855
  "."
@@ -1813,11 +1857,11 @@ var logLevelOption = {
1813
1857
  }),
1814
1858
  docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
1815
1859
  getValue: ({ commandLine }) => {
1816
- if (commandLine[cliFlag27]) {
1817
- if (!isValidLogLevel(commandLine[cliFlag27])) {
1860
+ if (commandLine[cliFlag28]) {
1861
+ if (!isValidLogLevel(commandLine[cliFlag28])) {
1818
1862
  throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
1819
1863
  }
1820
- return { value: commandLine[cliFlag27], source: "cli" };
1864
+ return { value: commandLine[cliFlag28], source: "cli" };
1821
1865
  }
1822
1866
  if (logLevel !== "info") {
1823
1867
  return { value: logLevel, source: "config" };
@@ -1831,19 +1875,19 @@ var logLevelOption = {
1831
1875
  };
1832
1876
 
1833
1877
  // src/options/metadata.tsx
1834
- import { jsx as jsx24, jsxs as jsxs19, Fragment as Fragment24 } from "react/jsx-runtime";
1878
+ import { jsx as jsx25, jsxs as jsxs20, Fragment as Fragment25 } from "react/jsx-runtime";
1835
1879
  var metadata = {};
1836
- var cliFlag28 = "metadata";
1880
+ var cliFlag29 = "metadata";
1837
1881
  var metadataOption = {
1838
1882
  name: "Metadata",
1839
- cliFlag: cliFlag28,
1883
+ cliFlag: cliFlag29,
1840
1884
  description: (mode) => {
1841
1885
  if (mode === "ssr") {
1842
- return /* @__PURE__ */ jsxs19(Fragment24, {
1886
+ return /* @__PURE__ */ jsxs20(Fragment25, {
1843
1887
  children: [
1844
1888
  "An object containing metadata to be embedded in the video. See",
1845
1889
  " ",
1846
- /* @__PURE__ */ jsx24("a", {
1890
+ /* @__PURE__ */ jsx25("a", {
1847
1891
  href: "/docs/metadata",
1848
1892
  children: "here"
1849
1893
  }),
@@ -1851,18 +1895,18 @@ var metadataOption = {
1851
1895
  ]
1852
1896
  });
1853
1897
  }
1854
- return /* @__PURE__ */ jsxs19(Fragment24, {
1898
+ return /* @__PURE__ */ jsxs20(Fragment25, {
1855
1899
  children: [
1856
1900
  "Metadata to be embedded in the video. See",
1857
1901
  " ",
1858
- /* @__PURE__ */ jsx24("a", {
1902
+ /* @__PURE__ */ jsx25("a", {
1859
1903
  href: "/docs/metadata",
1860
1904
  children: "here"
1861
1905
  }),
1862
1906
  " for which metadata is accepted.",
1863
- /* @__PURE__ */ jsx24("br", {}),
1907
+ /* @__PURE__ */ jsx25("br", {}),
1864
1908
  "The parameter must be in the format of ",
1865
- /* @__PURE__ */ jsx24("code", {
1909
+ /* @__PURE__ */ jsx25("code", {
1866
1910
  children: "--metadata key=value"
1867
1911
  }),
1868
1912
  " ",
@@ -1873,8 +1917,8 @@ var metadataOption = {
1873
1917
  docLink: "https://www.remotion.dev/docs/metadata",
1874
1918
  type: {},
1875
1919
  getValue: ({ commandLine }) => {
1876
- if (commandLine[cliFlag28] !== undefined) {
1877
- const val = commandLine[cliFlag28];
1920
+ if (commandLine[cliFlag29] !== undefined) {
1921
+ const val = commandLine[cliFlag29];
1878
1922
  const array = typeof val === "string" ? [val] : val;
1879
1923
  const keyValues = array.map((a) => {
1880
1924
  if (!a.includes("=")) {
@@ -1904,24 +1948,24 @@ var metadataOption = {
1904
1948
  };
1905
1949
 
1906
1950
  // src/options/mute.tsx
1907
- import { jsx as jsx25, Fragment as Fragment25 } from "react/jsx-runtime";
1951
+ import { jsx as jsx26, Fragment as Fragment26 } from "react/jsx-runtime";
1908
1952
  var DEFAULT_MUTED_STATE = false;
1909
1953
  var mutedState = DEFAULT_MUTED_STATE;
1910
- var cliFlag29 = "muted";
1954
+ var cliFlag30 = "muted";
1911
1955
  var mutedOption = {
1912
1956
  name: "Muted",
1913
- cliFlag: cliFlag29,
1914
- description: () => /* @__PURE__ */ jsx25(Fragment25, {
1957
+ cliFlag: cliFlag30,
1958
+ description: () => /* @__PURE__ */ jsx26(Fragment26, {
1915
1959
  children: "The Audio of the video will be omitted."
1916
1960
  }),
1917
1961
  ssrName: "muted",
1918
1962
  docLink: "https://www.remotion.dev/docs/audio/muting",
1919
1963
  type: false,
1920
1964
  getValue: ({ commandLine }) => {
1921
- if (commandLine[cliFlag29] !== null) {
1965
+ if (commandLine[cliFlag30] !== null) {
1922
1966
  return {
1923
1967
  source: "cli",
1924
- value: commandLine[cliFlag29]
1968
+ value: commandLine[cliFlag30]
1925
1969
  };
1926
1970
  }
1927
1971
  if (mutedState !== DEFAULT_MUTED_STATE) {
@@ -1941,50 +1985,50 @@ var mutedOption = {
1941
1985
  };
1942
1986
 
1943
1987
  // src/options/number-of-gif-loops.tsx
1944
- import { jsx as jsx26, jsxs as jsxs20, Fragment as Fragment26 } from "react/jsx-runtime";
1988
+ import { jsx as jsx27, jsxs as jsxs21, Fragment as Fragment27 } from "react/jsx-runtime";
1945
1989
  var currentLoop = null;
1946
1990
  var validate = (newLoop) => {
1947
1991
  if (newLoop !== null && typeof newLoop !== "number") {
1948
1992
  throw new Error("--number-of-gif-loops flag must be a number.");
1949
1993
  }
1950
1994
  };
1951
- var cliFlag30 = "number-of-gif-loops";
1995
+ var cliFlag31 = "number-of-gif-loops";
1952
1996
  var numberOfGifLoopsOption = {
1953
1997
  name: "Number of GIF loops",
1954
- cliFlag: cliFlag30,
1998
+ cliFlag: cliFlag31,
1955
1999
  description: () => {
1956
- return /* @__PURE__ */ jsxs20(Fragment26, {
2000
+ return /* @__PURE__ */ jsxs21(Fragment27, {
1957
2001
  children: [
1958
2002
  "Allows you to set the number of loops as follows:",
1959
- /* @__PURE__ */ jsxs20("ul", {
2003
+ /* @__PURE__ */ jsxs21("ul", {
1960
2004
  children: [
1961
- /* @__PURE__ */ jsxs20("li", {
2005
+ /* @__PURE__ */ jsxs21("li", {
1962
2006
  children: [
1963
- /* @__PURE__ */ jsx26("code", {
2007
+ /* @__PURE__ */ jsx27("code", {
1964
2008
  children: "null"
1965
2009
  }),
1966
2010
  " (or omitting in the CLI) plays the GIF indefinitely."
1967
2011
  ]
1968
2012
  }),
1969
- /* @__PURE__ */ jsxs20("li", {
2013
+ /* @__PURE__ */ jsxs21("li", {
1970
2014
  children: [
1971
- /* @__PURE__ */ jsx26("code", {
2015
+ /* @__PURE__ */ jsx27("code", {
1972
2016
  children: "0"
1973
2017
  }),
1974
2018
  " disables looping"
1975
2019
  ]
1976
2020
  }),
1977
- /* @__PURE__ */ jsxs20("li", {
2021
+ /* @__PURE__ */ jsxs21("li", {
1978
2022
  children: [
1979
- /* @__PURE__ */ jsx26("code", {
2023
+ /* @__PURE__ */ jsx27("code", {
1980
2024
  children: "1"
1981
2025
  }),
1982
2026
  " loops the GIF once (plays twice in total)"
1983
2027
  ]
1984
2028
  }),
1985
- /* @__PURE__ */ jsxs20("li", {
2029
+ /* @__PURE__ */ jsxs21("li", {
1986
2030
  children: [
1987
- /* @__PURE__ */ jsx26("code", {
2031
+ /* @__PURE__ */ jsx27("code", {
1988
2032
  children: "2"
1989
2033
  }),
1990
2034
  " loops the GIF twice (plays three times in total) and so on."
@@ -1999,10 +2043,10 @@ var numberOfGifLoopsOption = {
1999
2043
  docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
2000
2044
  type: 0,
2001
2045
  getValue: ({ commandLine }) => {
2002
- if (commandLine[cliFlag30] !== undefined) {
2003
- validate(commandLine[cliFlag30]);
2046
+ if (commandLine[cliFlag31] !== undefined) {
2047
+ validate(commandLine[cliFlag31]);
2004
2048
  return {
2005
- value: commandLine[cliFlag30],
2049
+ value: commandLine[cliFlag31],
2006
2050
  source: "cli"
2007
2051
  };
2008
2052
  }
@@ -2024,35 +2068,35 @@ var numberOfGifLoopsOption = {
2024
2068
  };
2025
2069
 
2026
2070
  // src/options/offthreadvideo-cache-size.tsx
2027
- import { jsx as jsx27, jsxs as jsxs21, Fragment as Fragment27 } from "react/jsx-runtime";
2071
+ import { jsx as jsx28, jsxs as jsxs22, Fragment as Fragment28 } from "react/jsx-runtime";
2028
2072
  var offthreadVideoCacheSizeInBytes = null;
2029
- var cliFlag31 = "offthreadvideo-cache-size-in-bytes";
2073
+ var cliFlag32 = "offthreadvideo-cache-size-in-bytes";
2030
2074
  var offthreadVideoCacheSizeInBytesOption = {
2031
2075
  name: "OffthreadVideo cache size",
2032
- cliFlag: cliFlag31,
2033
- description: () => /* @__PURE__ */ jsxs21(Fragment27, {
2076
+ cliFlag: cliFlag32,
2077
+ description: () => /* @__PURE__ */ jsxs22(Fragment28, {
2034
2078
  children: [
2035
2079
  "From v4.0, Remotion has a cache for",
2036
2080
  " ",
2037
- /* @__PURE__ */ jsx27("a", {
2081
+ /* @__PURE__ */ jsx28("a", {
2038
2082
  href: "https://remotion.dev/docs/offthreadvideo",
2039
- children: /* @__PURE__ */ jsx27("code", {
2083
+ children: /* @__PURE__ */ jsx28("code", {
2040
2084
  children: "<OffthreadVideo>"
2041
2085
  })
2042
2086
  }),
2043
2087
  " ",
2044
2088
  "frames. The default is ",
2045
- /* @__PURE__ */ jsx27("code", {
2089
+ /* @__PURE__ */ jsx28("code", {
2046
2090
  children: "null"
2047
2091
  }),
2048
2092
  ", corresponding to half of the system memory available when the render starts.",
2049
- /* @__PURE__ */ jsx27("br", {}),
2093
+ /* @__PURE__ */ jsx28("br", {}),
2050
2094
  " This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.",
2051
- /* @__PURE__ */ jsx27("br", {}),
2095
+ /* @__PURE__ */ jsx28("br", {}),
2052
2096
  "The used value will be printed when running in verbose mode.",
2053
- /* @__PURE__ */ jsx27("br", {}),
2097
+ /* @__PURE__ */ jsx28("br", {}),
2054
2098
  "Default: ",
2055
- /* @__PURE__ */ jsx27("code", {
2099
+ /* @__PURE__ */ jsx28("code", {
2056
2100
  children: "null"
2057
2101
  })
2058
2102
  ]
@@ -2061,10 +2105,10 @@ var offthreadVideoCacheSizeInBytesOption = {
2061
2105
  docLink: "https://www.remotion.dev/docs/offthreadvideo",
2062
2106
  type: 0,
2063
2107
  getValue: ({ commandLine }) => {
2064
- if (commandLine[cliFlag31] !== undefined) {
2108
+ if (commandLine[cliFlag32] !== undefined) {
2065
2109
  return {
2066
2110
  source: "cli",
2067
- value: commandLine[cliFlag31]
2111
+ value: commandLine[cliFlag32]
2068
2112
  };
2069
2113
  }
2070
2114
  if (offthreadVideoCacheSizeInBytes !== null) {
@@ -2084,18 +2128,18 @@ var offthreadVideoCacheSizeInBytesOption = {
2084
2128
  };
2085
2129
 
2086
2130
  // src/options/offthreadvideo-threads.tsx
2087
- import { jsx as jsx28, jsxs as jsxs22, Fragment as Fragment28 } from "react/jsx-runtime";
2131
+ import { jsx as jsx29, jsxs as jsxs23, Fragment as Fragment29 } from "react/jsx-runtime";
2088
2132
  var value2 = null;
2089
- var cliFlag32 = "offthreadvideo-video-threads";
2133
+ var cliFlag33 = "offthreadvideo-video-threads";
2090
2134
  var offthreadVideoThreadsOption = {
2091
2135
  name: "OffthreadVideo threads",
2092
- cliFlag: cliFlag32,
2093
- description: () => /* @__PURE__ */ jsxs22(Fragment28, {
2136
+ cliFlag: cliFlag33,
2137
+ description: () => /* @__PURE__ */ jsxs23(Fragment29, {
2094
2138
  children: [
2095
2139
  "The number of threads that",
2096
- /* @__PURE__ */ jsx28("a", {
2140
+ /* @__PURE__ */ jsx29("a", {
2097
2141
  href: "https://remotion.dev/docs/offthreadvideo",
2098
- children: /* @__PURE__ */ jsx28("code", {
2142
+ children: /* @__PURE__ */ jsx29("code", {
2099
2143
  children: "<OffthreadVideo>"
2100
2144
  })
2101
2145
  }),
@@ -2110,10 +2154,10 @@ var offthreadVideoThreadsOption = {
2110
2154
  docLink: "https://www.remotion.dev/docs/offthreadvideo",
2111
2155
  type: 0,
2112
2156
  getValue: ({ commandLine }) => {
2113
- if (commandLine[cliFlag32] !== undefined) {
2157
+ if (commandLine[cliFlag33] !== undefined) {
2114
2158
  return {
2115
2159
  source: "cli",
2116
- value: commandLine[cliFlag32]
2160
+ value: commandLine[cliFlag33]
2117
2161
  };
2118
2162
  }
2119
2163
  if (value2 !== null) {
@@ -2134,16 +2178,16 @@ var offthreadVideoThreadsOption = {
2134
2178
  var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
2135
2179
 
2136
2180
  // src/options/on-browser-download.tsx
2137
- import { jsx as jsx29, jsxs as jsxs23, Fragment as Fragment29 } from "react/jsx-runtime";
2138
- var cliFlag33 = "on-browser-download";
2181
+ import { jsx as jsx30, jsxs as jsxs24, Fragment as Fragment30 } from "react/jsx-runtime";
2182
+ var cliFlag34 = "on-browser-download";
2139
2183
  var onBrowserDownloadOption = {
2140
2184
  name: "Browser download callback function",
2141
- cliFlag: cliFlag33,
2142
- description: () => /* @__PURE__ */ jsxs23(Fragment29, {
2185
+ cliFlag: cliFlag34,
2186
+ description: () => /* @__PURE__ */ jsxs24(Fragment30, {
2143
2187
  children: [
2144
2188
  "Gets called when no compatible local browser is detected on the system and this API needs to download a browser. Return a callback to observe progress.",
2145
2189
  " ",
2146
- /* @__PURE__ */ jsx29("a", {
2190
+ /* @__PURE__ */ jsx30("a", {
2147
2191
  href: "/docs/renderer/ensure-browser#onbrowserdownload",
2148
2192
  children: "See here for how to use this option."
2149
2193
  })
@@ -2161,9 +2205,9 @@ var onBrowserDownloadOption = {
2161
2205
  };
2162
2206
 
2163
2207
  // src/options/overwrite.tsx
2164
- import { jsx as jsx30, jsxs as jsxs24, Fragment as Fragment30 } from "react/jsx-runtime";
2208
+ import { jsx as jsx31, jsxs as jsxs25, Fragment as Fragment31 } from "react/jsx-runtime";
2165
2209
  var shouldOverwrite = null;
2166
- var cliFlag34 = "overwrite";
2210
+ var cliFlag35 = "overwrite";
2167
2211
  var validate2 = (value3) => {
2168
2212
  if (typeof value3 !== "boolean") {
2169
2213
  throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
@@ -2171,15 +2215,15 @@ var validate2 = (value3) => {
2171
2215
  };
2172
2216
  var overwriteOption = {
2173
2217
  name: "Overwrite output",
2174
- cliFlag: cliFlag34,
2175
- description: () => /* @__PURE__ */ jsxs24(Fragment30, {
2218
+ cliFlag: cliFlag35,
2219
+ description: () => /* @__PURE__ */ jsxs25(Fragment31, {
2176
2220
  children: [
2177
2221
  "If set to ",
2178
- /* @__PURE__ */ jsx30("code", {
2222
+ /* @__PURE__ */ jsx31("code", {
2179
2223
  children: "false"
2180
2224
  }),
2181
2225
  ", will prevent rendering to a path that already exists. Default is ",
2182
- /* @__PURE__ */ jsx30("code", {
2226
+ /* @__PURE__ */ jsx31("code", {
2183
2227
  children: "true"
2184
2228
  }),
2185
2229
  "."
@@ -2189,11 +2233,11 @@ var overwriteOption = {
2189
2233
  docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
2190
2234
  type: false,
2191
2235
  getValue: ({ commandLine }, defaultValue2) => {
2192
- if (commandLine[cliFlag34] !== undefined) {
2193
- validate2(commandLine[cliFlag34]);
2236
+ if (commandLine[cliFlag35] !== undefined) {
2237
+ validate2(commandLine[cliFlag35]);
2194
2238
  return {
2195
2239
  source: "cli",
2196
- value: commandLine[cliFlag34]
2240
+ value: commandLine[cliFlag35]
2197
2241
  };
2198
2242
  }
2199
2243
  if (shouldOverwrite !== null) {
@@ -2214,21 +2258,21 @@ var overwriteOption = {
2214
2258
  };
2215
2259
 
2216
2260
  // src/options/prefer-lossless.tsx
2217
- import { jsx as jsx31, jsxs as jsxs25, Fragment as Fragment31 } from "react/jsx-runtime";
2218
- var cliFlag35 = "prefer-lossless";
2261
+ import { jsx as jsx32, jsxs as jsxs26, Fragment as Fragment32 } from "react/jsx-runtime";
2262
+ var cliFlag36 = "prefer-lossless";
2219
2263
  var input = false;
2220
2264
  var preferLosslessAudioOption = {
2221
2265
  name: "Prefer lossless",
2222
- cliFlag: cliFlag35,
2223
- description: () => /* @__PURE__ */ jsxs25(Fragment31, {
2266
+ cliFlag: cliFlag36,
2267
+ description: () => /* @__PURE__ */ jsxs26(Fragment32, {
2224
2268
  children: [
2225
2269
  "Uses a lossless audio codec, if one is available for the codec. If you set",
2226
- /* @__PURE__ */ jsx31("code", {
2270
+ /* @__PURE__ */ jsx32("code", {
2227
2271
  children: "audioCodec"
2228
2272
  }),
2229
2273
  ", it takes priority over",
2230
2274
  " ",
2231
- /* @__PURE__ */ jsx31("code", {
2275
+ /* @__PURE__ */ jsx32("code", {
2232
2276
  children: "preferLossless"
2233
2277
  }),
2234
2278
  "."
@@ -2238,7 +2282,7 @@ var preferLosslessAudioOption = {
2238
2282
  type: false,
2239
2283
  ssrName: "preferLossless",
2240
2284
  getValue: ({ commandLine }) => {
2241
- if (commandLine[cliFlag35]) {
2285
+ if (commandLine[cliFlag36]) {
2242
2286
  return { value: true, source: "cli" };
2243
2287
  }
2244
2288
  if (input === true) {
@@ -2252,20 +2296,20 @@ var preferLosslessAudioOption = {
2252
2296
  };
2253
2297
 
2254
2298
  // src/options/public-dir.tsx
2255
- import { jsx as jsx32, jsxs as jsxs26, Fragment as Fragment32 } from "react/jsx-runtime";
2256
- var cliFlag36 = "public-dir";
2299
+ import { jsx as jsx33, jsxs as jsxs27, Fragment as Fragment33 } from "react/jsx-runtime";
2300
+ var cliFlag37 = "public-dir";
2257
2301
  var currentPublicDir = null;
2258
2302
  var publicDirOption = {
2259
2303
  name: "Public Directory",
2260
- cliFlag: cliFlag36,
2304
+ cliFlag: cliFlag37,
2261
2305
  description: () => {
2262
- return /* @__PURE__ */ jsxs26(Fragment32, {
2306
+ return /* @__PURE__ */ jsxs27(Fragment33, {
2263
2307
  children: [
2264
2308
  "Define the location of the",
2265
2309
  " ",
2266
- /* @__PURE__ */ jsx32("a", {
2310
+ /* @__PURE__ */ jsx33("a", {
2267
2311
  href: "/docs/terminology/public-dir",
2268
- children: /* @__PURE__ */ jsx32("code", {
2312
+ children: /* @__PURE__ */ jsx33("code", {
2269
2313
  children: "public/ directory"
2270
2314
  })
2271
2315
  }),
@@ -2276,10 +2320,10 @@ var publicDirOption = {
2276
2320
  ssrName: "publicDir",
2277
2321
  docLink: "https://www.remotion.dev/docs/terminology/public-dir",
2278
2322
  getValue: ({ commandLine }) => {
2279
- if (commandLine[cliFlag36] !== undefined) {
2323
+ if (commandLine[cliFlag37] !== undefined) {
2280
2324
  return {
2281
2325
  source: "cli",
2282
- value: commandLine[cliFlag36]
2326
+ value: commandLine[cliFlag37]
2283
2327
  };
2284
2328
  }
2285
2329
  if (currentPublicDir !== null) {
@@ -2300,25 +2344,25 @@ var publicDirOption = {
2300
2344
  };
2301
2345
 
2302
2346
  // src/options/public-path.tsx
2303
- import { jsx as jsx33, jsxs as jsxs27, Fragment as Fragment33 } from "react/jsx-runtime";
2304
- var cliFlag37 = "public-path";
2347
+ import { jsx as jsx34, jsxs as jsxs28, Fragment as Fragment34 } from "react/jsx-runtime";
2348
+ var cliFlag38 = "public-path";
2305
2349
  var currentPublicPath = null;
2306
2350
  var publicPathOption = {
2307
2351
  name: "Public Path",
2308
- cliFlag: cliFlag37,
2352
+ cliFlag: cliFlag38,
2309
2353
  description: () => {
2310
- return /* @__PURE__ */ jsxs27(Fragment33, {
2354
+ return /* @__PURE__ */ jsxs28(Fragment34, {
2311
2355
  children: [
2312
2356
  "The path of the URL where the bundle is going to be hosted. By default it is ",
2313
- /* @__PURE__ */ jsx33("code", {
2357
+ /* @__PURE__ */ jsx34("code", {
2314
2358
  children: "/"
2315
2359
  }),
2316
2360
  ", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
2317
- /* @__PURE__ */ jsx33("code", {
2361
+ /* @__PURE__ */ jsx34("code", {
2318
2362
  children: "https://localhost:3000/"
2319
2363
  }),
2320
2364
  "). If you are deploying to a subdirectory (e.g. ",
2321
- /* @__PURE__ */ jsx33("code", {
2365
+ /* @__PURE__ */ jsx34("code", {
2322
2366
  children: "/sites/my-site/"
2323
2367
  }),
2324
2368
  "), you should set this to the subdirectory."
@@ -2328,10 +2372,10 @@ var publicPathOption = {
2328
2372
  ssrName: "publicPath",
2329
2373
  docLink: "https://www.remotion.dev/docs/renderer",
2330
2374
  getValue: ({ commandLine }) => {
2331
- if (commandLine[cliFlag37] !== undefined) {
2375
+ if (commandLine[cliFlag38] !== undefined) {
2332
2376
  return {
2333
2377
  source: "cli",
2334
- value: commandLine[cliFlag37]
2378
+ value: commandLine[cliFlag38]
2335
2379
  };
2336
2380
  }
2337
2381
  if (currentPublicPath !== null) {
@@ -2352,25 +2396,25 @@ var publicPathOption = {
2352
2396
  };
2353
2397
 
2354
2398
  // src/options/repro.tsx
2355
- import { jsx as jsx34, Fragment as Fragment34 } from "react/jsx-runtime";
2399
+ import { jsx as jsx35, Fragment as Fragment35 } from "react/jsx-runtime";
2356
2400
  var enableRepro = false;
2357
2401
  var setRepro = (should) => {
2358
2402
  enableRepro = should;
2359
2403
  };
2360
- var cliFlag38 = "repro";
2404
+ var cliFlag39 = "repro";
2361
2405
  var reproOption = {
2362
2406
  name: "Create reproduction",
2363
- cliFlag: cliFlag38,
2364
- description: () => /* @__PURE__ */ jsx34(Fragment34, {
2407
+ cliFlag: cliFlag39,
2408
+ description: () => /* @__PURE__ */ jsx35(Fragment35, {
2365
2409
  children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
2366
2410
  }),
2367
2411
  ssrName: "repro",
2368
2412
  docLink: "https://www.remotion.dev/docs/render-media#repro",
2369
2413
  type: false,
2370
2414
  getValue: ({ commandLine }) => {
2371
- if (commandLine[cliFlag38] !== undefined) {
2415
+ if (commandLine[cliFlag39] !== undefined) {
2372
2416
  return {
2373
- value: commandLine[cliFlag38],
2417
+ value: commandLine[cliFlag39],
2374
2418
  source: "cli"
2375
2419
  };
2376
2420
  }
@@ -2389,9 +2433,9 @@ var reproOption = {
2389
2433
  };
2390
2434
 
2391
2435
  // src/options/scale.tsx
2392
- import { jsx as jsx35, jsxs as jsxs28, Fragment as Fragment35 } from "react/jsx-runtime";
2436
+ import { jsx as jsx36, jsxs as jsxs29, Fragment as Fragment36 } from "react/jsx-runtime";
2393
2437
  var currentScale = 1;
2394
- var cliFlag39 = "scale";
2438
+ var cliFlag40 = "scale";
2395
2439
  var validateScale = (value3) => {
2396
2440
  if (typeof value3 !== "number") {
2397
2441
  throw new Error("scale must be a number.");
@@ -2399,11 +2443,11 @@ var validateScale = (value3) => {
2399
2443
  };
2400
2444
  var scaleOption = {
2401
2445
  name: "Scale",
2402
- cliFlag: cliFlag39,
2403
- description: () => /* @__PURE__ */ jsxs28(Fragment35, {
2446
+ cliFlag: cliFlag40,
2447
+ description: () => /* @__PURE__ */ jsxs29(Fragment36, {
2404
2448
  children: [
2405
2449
  "Scales the output by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
2406
- /* @__PURE__ */ jsx35("code", {
2450
+ /* @__PURE__ */ jsx36("code", {
2407
2451
  children: "1.5"
2408
2452
  }),
2409
2453
  ". Vector elements like fonts and HTML markups will be rendered with extra details."
@@ -2413,11 +2457,11 @@ var scaleOption = {
2413
2457
  docLink: "https://www.remotion.dev/docs/scaling",
2414
2458
  type: 0,
2415
2459
  getValue: ({ commandLine }) => {
2416
- if (commandLine[cliFlag39] !== undefined) {
2417
- validateScale(commandLine[cliFlag39]);
2460
+ if (commandLine[cliFlag40] !== undefined) {
2461
+ validateScale(commandLine[cliFlag40]);
2418
2462
  return {
2419
2463
  source: "cli",
2420
- value: commandLine[cliFlag39]
2464
+ value: commandLine[cliFlag40]
2421
2465
  };
2422
2466
  }
2423
2467
  if (currentScale !== null) {
@@ -2438,16 +2482,16 @@ var scaleOption = {
2438
2482
 
2439
2483
  // src/options/throw-if-site-exists.tsx
2440
2484
  var DEFAULT5 = false;
2441
- var cliFlag40 = "throw-if-site-exists";
2485
+ var cliFlag41 = "throw-if-site-exists";
2442
2486
  var throwIfSiteExistsOption = {
2443
- cliFlag: cliFlag40,
2487
+ cliFlag: cliFlag41,
2444
2488
  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.`,
2445
2489
  docLink: "https://remotion.dev/docs/lambda/deploy-site",
2446
2490
  getValue: ({ commandLine }) => {
2447
- if (commandLine[cliFlag40]) {
2491
+ if (commandLine[cliFlag41]) {
2448
2492
  return {
2449
2493
  source: "cli",
2450
- value: commandLine[cliFlag40]
2494
+ value: commandLine[cliFlag41]
2451
2495
  };
2452
2496
  }
2453
2497
  return {
@@ -2464,37 +2508,37 @@ var throwIfSiteExistsOption = {
2464
2508
  };
2465
2509
 
2466
2510
  // src/options/timeout.tsx
2467
- import { jsx as jsx36, jsxs as jsxs29, Fragment as Fragment36 } from "react/jsx-runtime";
2511
+ import { jsx as jsx37, jsxs as jsxs30, Fragment as Fragment37 } from "react/jsx-runtime";
2468
2512
  var currentTimeout = DEFAULT_TIMEOUT;
2469
2513
  var validate3 = (value3) => {
2470
2514
  if (typeof value3 !== "number") {
2471
2515
  throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
2472
2516
  }
2473
2517
  };
2474
- var cliFlag41 = "timeout";
2518
+ var cliFlag42 = "timeout";
2475
2519
  var delayRenderTimeoutInMillisecondsOption = {
2476
2520
  name: "delayRender() timeout",
2477
- cliFlag: cliFlag41,
2478
- description: () => /* @__PURE__ */ jsxs29(Fragment36, {
2521
+ cliFlag: cliFlag42,
2522
+ description: () => /* @__PURE__ */ jsxs30(Fragment37, {
2479
2523
  children: [
2480
2524
  "A number describing how long the render may take to resolve all",
2481
2525
  " ",
2482
- /* @__PURE__ */ jsx36("a", {
2526
+ /* @__PURE__ */ jsx37("a", {
2483
2527
  href: "https://remotion.dev/docs/delay-render",
2484
- children: /* @__PURE__ */ jsx36("code", {
2528
+ children: /* @__PURE__ */ jsx37("code", {
2485
2529
  children: "delayRender()"
2486
2530
  })
2487
2531
  }),
2488
2532
  " ",
2489
2533
  "calls",
2490
2534
  " ",
2491
- /* @__PURE__ */ jsx36("a", {
2535
+ /* @__PURE__ */ jsx37("a", {
2492
2536
  style: { fontSize: "inherit" },
2493
2537
  href: "https://remotion.dev/docs/timeout",
2494
2538
  children: "before it times out"
2495
2539
  }),
2496
2540
  ". Default: ",
2497
- /* @__PURE__ */ jsx36("code", {
2541
+ /* @__PURE__ */ jsx37("code", {
2498
2542
  children: "30000"
2499
2543
  })
2500
2544
  ]
@@ -2503,10 +2547,10 @@ var delayRenderTimeoutInMillisecondsOption = {
2503
2547
  docLink: "https://www.remotion.dev/docs/timeout",
2504
2548
  type: 0,
2505
2549
  getValue: ({ commandLine }) => {
2506
- if (commandLine[cliFlag41] !== undefined) {
2550
+ if (commandLine[cliFlag42] !== undefined) {
2507
2551
  return {
2508
2552
  source: "cli",
2509
- value: commandLine[cliFlag41]
2553
+ value: commandLine[cliFlag42]
2510
2554
  };
2511
2555
  }
2512
2556
  if (currentTimeout !== null) {
@@ -2528,26 +2572,26 @@ var delayRenderTimeoutInMillisecondsOption = {
2528
2572
  };
2529
2573
 
2530
2574
  // src/options/video-bitrate.tsx
2531
- import { jsx as jsx37, jsxs as jsxs30, Fragment as Fragment37 } from "react/jsx-runtime";
2575
+ import { jsx as jsx38, jsxs as jsxs31, Fragment as Fragment38 } from "react/jsx-runtime";
2532
2576
  var videoBitrate = null;
2533
- var cliFlag42 = "video-bitrate";
2577
+ var cliFlag43 = "video-bitrate";
2534
2578
  var videoBitrateOption = {
2535
2579
  name: "Video Bitrate",
2536
- cliFlag: cliFlag42,
2537
- description: () => /* @__PURE__ */ jsxs30(Fragment37, {
2580
+ cliFlag: cliFlag43,
2581
+ description: () => /* @__PURE__ */ jsxs31(Fragment38, {
2538
2582
  children: [
2539
2583
  "Specify the target bitrate for the generated video. The syntax for FFmpeg",
2540
2584
  "'",
2541
2585
  "s",
2542
- /* @__PURE__ */ jsx37("code", {
2586
+ /* @__PURE__ */ jsx38("code", {
2543
2587
  children: "-b:v"
2544
2588
  }),
2545
2589
  " parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
2546
- /* @__PURE__ */ jsx37("code", {
2590
+ /* @__PURE__ */ jsx38("code", {
2547
2591
  children: "512K"
2548
2592
  }),
2549
2593
  " for 512 kbps, ",
2550
- /* @__PURE__ */ jsx37("code", {
2594
+ /* @__PURE__ */ jsx38("code", {
2551
2595
  children: "1M"
2552
2596
  }),
2553
2597
  " for 1 Mbps."
@@ -2557,10 +2601,10 @@ var videoBitrateOption = {
2557
2601
  docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
2558
2602
  type: "",
2559
2603
  getValue: ({ commandLine }) => {
2560
- if (commandLine[cliFlag42] !== undefined) {
2604
+ if (commandLine[cliFlag43] !== undefined) {
2561
2605
  return {
2562
2606
  source: "cli",
2563
- value: commandLine[cliFlag42]
2607
+ value: commandLine[cliFlag43]
2564
2608
  };
2565
2609
  }
2566
2610
  if (videoBitrate !== null) {
@@ -2580,29 +2624,29 @@ var videoBitrateOption = {
2580
2624
  };
2581
2625
 
2582
2626
  // src/options/video-cache-size.tsx
2583
- import { jsx as jsx38, jsxs as jsxs31, Fragment as Fragment38 } from "react/jsx-runtime";
2627
+ import { jsx as jsx39, jsxs as jsxs32, Fragment as Fragment39 } from "react/jsx-runtime";
2584
2628
  var mediaCacheSizeInBytes = null;
2585
- var cliFlag43 = "media-cache-size-in-bytes";
2629
+ var cliFlag44 = "media-cache-size-in-bytes";
2586
2630
  var mediaCacheSizeInBytesOption = {
2587
2631
  name: "@remotion/media cache size",
2588
- cliFlag: cliFlag43,
2589
- description: () => /* @__PURE__ */ jsxs31(Fragment38, {
2632
+ cliFlag: cliFlag44,
2633
+ description: () => /* @__PURE__ */ jsxs32(Fragment39, {
2590
2634
  children: [
2591
2635
  "Specify the maximum size of the cache that ",
2592
- /* @__PURE__ */ jsx38("code", {
2636
+ /* @__PURE__ */ jsx39("code", {
2593
2637
  children: "<Video>"
2594
2638
  }),
2595
2639
  " and",
2596
2640
  " ",
2597
- /* @__PURE__ */ jsx38("code", {
2641
+ /* @__PURE__ */ jsx39("code", {
2598
2642
  children: "<Audio>"
2599
2643
  }),
2600
2644
  " from ",
2601
- /* @__PURE__ */ jsx38("code", {
2645
+ /* @__PURE__ */ jsx39("code", {
2602
2646
  children: "@remotion/media"
2603
2647
  }),
2604
2648
  " may use combined, in bytes. ",
2605
- /* @__PURE__ */ jsx38("br", {}),
2649
+ /* @__PURE__ */ jsx39("br", {}),
2606
2650
  "The default is half of the available system memory when the render starts."
2607
2651
  ]
2608
2652
  }),
@@ -2610,10 +2654,10 @@ var mediaCacheSizeInBytesOption = {
2610
2654
  docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
2611
2655
  type: 0,
2612
2656
  getValue: ({ commandLine }) => {
2613
- if (commandLine[cliFlag43] !== undefined) {
2657
+ if (commandLine[cliFlag44] !== undefined) {
2614
2658
  return {
2615
2659
  source: "cli",
2616
- value: commandLine[cliFlag43]
2660
+ value: commandLine[cliFlag44]
2617
2661
  };
2618
2662
  }
2619
2663
  if (mediaCacheSizeInBytes !== null) {
@@ -2748,7 +2792,7 @@ var getExtensionOfFilename = (filename) => {
2748
2792
  };
2749
2793
 
2750
2794
  // src/options/video-codec.tsx
2751
- import { jsx as jsx39, Fragment as Fragment39 } from "react/jsx-runtime";
2795
+ import { jsx as jsx40, Fragment as Fragment40 } from "react/jsx-runtime";
2752
2796
  var codec;
2753
2797
  var setCodec = (newCodec) => {
2754
2798
  if (newCodec === undefined) {
@@ -2772,11 +2816,11 @@ var deriveCodecsFromFilename = (extension) => {
2772
2816
  possible: makeFileExtensionMap()[extension] ?? []
2773
2817
  };
2774
2818
  };
2775
- var cliFlag44 = "codec";
2819
+ var cliFlag45 = "codec";
2776
2820
  var videoCodecOption = {
2777
2821
  name: "Codec",
2778
- cliFlag: cliFlag44,
2779
- description: () => /* @__PURE__ */ jsx39(Fragment39, {
2822
+ cliFlag: cliFlag45,
2823
+ description: () => /* @__PURE__ */ jsx40(Fragment40, {
2780
2824
  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."
2781
2825
  }),
2782
2826
  ssrName: "codec",
@@ -2799,7 +2843,7 @@ var videoCodecOption = {
2799
2843
  if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
2800
2844
  throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
2801
2845
  }
2802
- const cliArgument = commandLine[cliFlag44];
2846
+ const cliArgument = commandLine[cliFlag45];
2803
2847
  if (cliArgument) {
2804
2848
  if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
2805
2849
  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.`);
@@ -2848,12 +2892,12 @@ var videoCodecOption = {
2848
2892
  };
2849
2893
 
2850
2894
  // src/options/webhook-custom-data.tsx
2851
- import { jsxs as jsxs32, Fragment as Fragment40 } from "react/jsx-runtime";
2852
- var cliFlag45 = "webhook-custom-data";
2895
+ import { jsxs as jsxs33, Fragment as Fragment41 } from "react/jsx-runtime";
2896
+ var cliFlag46 = "webhook-custom-data";
2853
2897
  var webhookCustomDataOption = {
2854
2898
  name: "Webhook custom data",
2855
- cliFlag: cliFlag45,
2856
- description: (type) => /* @__PURE__ */ jsxs32(Fragment40, {
2899
+ cliFlag: cliFlag46,
2900
+ description: (type) => /* @__PURE__ */ jsxs33(Fragment41, {
2857
2901
  children: [
2858
2902
  "Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
2859
2903
  " ",
@@ -2872,7 +2916,7 @@ var webhookCustomDataOption = {
2872
2916
  };
2873
2917
 
2874
2918
  // src/options/x264-preset.tsx
2875
- import { jsx as jsx40, jsxs as jsxs33, Fragment as Fragment41 } from "react/jsx-runtime";
2919
+ import { jsx as jsx41, jsxs as jsxs34, Fragment as Fragment42 } from "react/jsx-runtime";
2876
2920
  var x264PresetOptions = [
2877
2921
  "ultrafast",
2878
2922
  "superfast",
@@ -2886,63 +2930,63 @@ var x264PresetOptions = [
2886
2930
  "placebo"
2887
2931
  ];
2888
2932
  var preset = null;
2889
- var cliFlag46 = "x264-preset";
2933
+ var cliFlag47 = "x264-preset";
2890
2934
  var DEFAULT_PRESET = "medium";
2891
2935
  var x264Option = {
2892
2936
  name: "x264 Preset",
2893
- cliFlag: cliFlag46,
2894
- description: () => /* @__PURE__ */ jsxs33(Fragment41, {
2937
+ cliFlag: cliFlag47,
2938
+ description: () => /* @__PURE__ */ jsxs34(Fragment42, {
2895
2939
  children: [
2896
2940
  "Sets a x264 preset profile. Only applies to videos rendered with",
2897
2941
  " ",
2898
- /* @__PURE__ */ jsx40("code", {
2942
+ /* @__PURE__ */ jsx41("code", {
2899
2943
  children: "h264"
2900
2944
  }),
2901
2945
  " codec.",
2902
- /* @__PURE__ */ jsx40("br", {}),
2946
+ /* @__PURE__ */ jsx41("br", {}),
2903
2947
  "Possible values: ",
2904
- /* @__PURE__ */ jsx40("code", {
2948
+ /* @__PURE__ */ jsx41("code", {
2905
2949
  children: "superfast"
2906
2950
  }),
2907
2951
  ", ",
2908
- /* @__PURE__ */ jsx40("code", {
2952
+ /* @__PURE__ */ jsx41("code", {
2909
2953
  children: "veryfast"
2910
2954
  }),
2911
2955
  ",",
2912
2956
  " ",
2913
- /* @__PURE__ */ jsx40("code", {
2957
+ /* @__PURE__ */ jsx41("code", {
2914
2958
  children: "faster"
2915
2959
  }),
2916
2960
  ", ",
2917
- /* @__PURE__ */ jsx40("code", {
2961
+ /* @__PURE__ */ jsx41("code", {
2918
2962
  children: "fast"
2919
2963
  }),
2920
2964
  ", ",
2921
- /* @__PURE__ */ jsx40("code", {
2965
+ /* @__PURE__ */ jsx41("code", {
2922
2966
  children: "medium"
2923
2967
  }),
2924
2968
  ",",
2925
2969
  " ",
2926
- /* @__PURE__ */ jsx40("code", {
2970
+ /* @__PURE__ */ jsx41("code", {
2927
2971
  children: "slow"
2928
2972
  }),
2929
2973
  ", ",
2930
- /* @__PURE__ */ jsx40("code", {
2974
+ /* @__PURE__ */ jsx41("code", {
2931
2975
  children: "slower"
2932
2976
  }),
2933
2977
  ", ",
2934
- /* @__PURE__ */ jsx40("code", {
2978
+ /* @__PURE__ */ jsx41("code", {
2935
2979
  children: "veryslow"
2936
2980
  }),
2937
2981
  ",",
2938
2982
  " ",
2939
- /* @__PURE__ */ jsx40("code", {
2983
+ /* @__PURE__ */ jsx41("code", {
2940
2984
  children: "placebo"
2941
2985
  }),
2942
2986
  ".",
2943
- /* @__PURE__ */ jsx40("br", {}),
2987
+ /* @__PURE__ */ jsx41("br", {}),
2944
2988
  "Default: ",
2945
- /* @__PURE__ */ jsx40("code", {
2989
+ /* @__PURE__ */ jsx41("code", {
2946
2990
  children: DEFAULT_PRESET
2947
2991
  })
2948
2992
  ]
@@ -2951,7 +2995,7 @@ var x264Option = {
2951
2995
  docLink: "https://www.remotion.dev/docs/renderer/render-media",
2952
2996
  type: "fast",
2953
2997
  getValue: ({ commandLine }) => {
2954
- const value3 = commandLine[cliFlag46];
2998
+ const value3 = commandLine[cliFlag47];
2955
2999
  if (typeof value3 !== "undefined") {
2956
3000
  return { value: value3, source: "cli" };
2957
3001
  }
@@ -3012,7 +3056,8 @@ var allOptions = {
3012
3056
  audioLatencyHintOption,
3013
3057
  enableCrossSiteIsolationOption,
3014
3058
  imageSequencePatternOption,
3015
- mediaCacheSizeInBytesOption
3059
+ mediaCacheSizeInBytesOption,
3060
+ darkModeOption
3016
3061
  };
3017
3062
 
3018
3063
  // src/options/options-map.ts