@remotion/renderer 4.0.313 → 4.0.315
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/browser/BrowserFetcher.js +3 -3
- package/dist/client.d.ts +30 -0
- package/dist/compositor/compositor.js +1 -1
- package/dist/esm/client.mjs +325 -287
- package/dist/esm/index.mjs +4 -4
- package/dist/options/disallow-parallel-encoding.d.ts +15 -0
- package/dist/options/disallow-parallel-encoding.js +35 -0
- package/dist/options/index.d.ts +15 -0
- package/dist/options/index.js +2 -0
- package/dist/options/options-map.d.ts +15 -0
- package/dist/options/options-map.js +2 -0
- package/dist/set-props-and-env.js +1 -1
- package/package.json +12 -12
package/dist/esm/client.mjs
CHANGED
|
@@ -1007,18 +1007,54 @@ var disableGitSourceOption = {
|
|
|
1007
1007
|
type: false
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
|
+
// src/options/disallow-parallel-encoding.tsx
|
|
1011
|
+
import { jsx as jsx10, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
1012
|
+
var disallowParallelEncoding = false;
|
|
1013
|
+
var cliFlag13 = "disallow-parallel-encoding";
|
|
1014
|
+
var disallowParallelEncodingOption = {
|
|
1015
|
+
name: "Disallow parallel encoding",
|
|
1016
|
+
cliFlag: cliFlag13,
|
|
1017
|
+
description: () => /* @__PURE__ */ jsx10(Fragment10, {
|
|
1018
|
+
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."
|
|
1019
|
+
}),
|
|
1020
|
+
ssrName: "disallowParallelEncoding",
|
|
1021
|
+
docLink: "https://www.remotion.dev/docs/config#setdisallowparallelencoding",
|
|
1022
|
+
type: false,
|
|
1023
|
+
getValue: ({ commandLine }) => {
|
|
1024
|
+
if (commandLine[cliFlag13] !== undefined) {
|
|
1025
|
+
return {
|
|
1026
|
+
value: commandLine[cliFlag13],
|
|
1027
|
+
source: "cli"
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
if (disallowParallelEncoding !== false) {
|
|
1031
|
+
return {
|
|
1032
|
+
value: disallowParallelEncoding,
|
|
1033
|
+
source: "config"
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
return {
|
|
1037
|
+
value: false,
|
|
1038
|
+
source: "default"
|
|
1039
|
+
};
|
|
1040
|
+
},
|
|
1041
|
+
setConfig(value) {
|
|
1042
|
+
disallowParallelEncoding = value;
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1010
1046
|
// src/options/enable-lambda-insights.tsx
|
|
1011
|
-
import { jsx as
|
|
1012
|
-
var
|
|
1047
|
+
import { jsx as jsx11, jsxs as jsxs8, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
1048
|
+
var cliFlag14 = "enable-lambda-insights";
|
|
1013
1049
|
var option = false;
|
|
1014
1050
|
var enableLambdaInsights = {
|
|
1015
1051
|
name: "Enable Lambda Insights",
|
|
1016
|
-
cliFlag:
|
|
1017
|
-
description: () => /* @__PURE__ */ jsxs8(
|
|
1052
|
+
cliFlag: cliFlag14,
|
|
1053
|
+
description: () => /* @__PURE__ */ jsxs8(Fragment11, {
|
|
1018
1054
|
children: [
|
|
1019
1055
|
"Enable",
|
|
1020
1056
|
" ",
|
|
1021
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ jsx11("a", {
|
|
1022
1058
|
href: "https://remotion.dev/docs/lambda/insights",
|
|
1023
1059
|
children: "Lambda Insights in AWS CloudWatch"
|
|
1024
1060
|
}),
|
|
@@ -1032,9 +1068,9 @@ var enableLambdaInsights = {
|
|
|
1032
1068
|
option = value;
|
|
1033
1069
|
},
|
|
1034
1070
|
getValue: ({ commandLine }) => {
|
|
1035
|
-
if (commandLine[
|
|
1071
|
+
if (commandLine[cliFlag14] !== undefined) {
|
|
1036
1072
|
return {
|
|
1037
|
-
value: commandLine[
|
|
1073
|
+
value: commandLine[cliFlag14],
|
|
1038
1074
|
source: "cli"
|
|
1039
1075
|
};
|
|
1040
1076
|
}
|
|
@@ -1052,37 +1088,37 @@ var enableLambdaInsights = {
|
|
|
1052
1088
|
};
|
|
1053
1089
|
|
|
1054
1090
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
1055
|
-
import { jsx as
|
|
1091
|
+
import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
|
|
1056
1092
|
var DEFAULT_VALUE = true;
|
|
1057
1093
|
var multiProcessOnLinux = DEFAULT_VALUE;
|
|
1058
|
-
var
|
|
1094
|
+
var cliFlag15 = "enable-multiprocess-on-linux";
|
|
1059
1095
|
var enableMultiprocessOnLinuxOption = {
|
|
1060
1096
|
name: "Enable Multiprocess on Linux",
|
|
1061
|
-
cliFlag:
|
|
1062
|
-
description: () => /* @__PURE__ */ jsxs9(
|
|
1097
|
+
cliFlag: cliFlag15,
|
|
1098
|
+
description: () => /* @__PURE__ */ jsxs9(Fragment12, {
|
|
1063
1099
|
children: [
|
|
1064
1100
|
"Removes the ",
|
|
1065
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1066
1102
|
children: "--single-process"
|
|
1067
1103
|
}),
|
|
1068
1104
|
" 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.",
|
|
1069
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ jsx12("br", {}),
|
|
1070
1106
|
"Default: ",
|
|
1071
|
-
/* @__PURE__ */
|
|
1107
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1072
1108
|
children: "false"
|
|
1073
1109
|
}),
|
|
1074
1110
|
" until v4.0.136, then ",
|
|
1075
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1076
1112
|
children: "true"
|
|
1077
1113
|
}),
|
|
1078
1114
|
" from v4.0.137 on because newer Chrome versions ",
|
|
1079
1115
|
"don't",
|
|
1080
1116
|
" allow rendering with the ",
|
|
1081
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1082
1118
|
children: "--single-process"
|
|
1083
1119
|
}),
|
|
1084
1120
|
" flag. ",
|
|
1085
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ jsx12("br", {}),
|
|
1086
1122
|
"This flag will be removed in Remotion v5.0."
|
|
1087
1123
|
]
|
|
1088
1124
|
}),
|
|
@@ -1090,10 +1126,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1090
1126
|
docLink: "https://www.remotion.dev/docs/chromium-flags",
|
|
1091
1127
|
type: false,
|
|
1092
1128
|
getValue: ({ commandLine }) => {
|
|
1093
|
-
if (commandLine[
|
|
1129
|
+
if (commandLine[cliFlag15] !== undefined) {
|
|
1094
1130
|
return {
|
|
1095
1131
|
source: "cli",
|
|
1096
|
-
value: commandLine[
|
|
1132
|
+
value: commandLine[cliFlag15]
|
|
1097
1133
|
};
|
|
1098
1134
|
}
|
|
1099
1135
|
if (multiProcessOnLinux !== false) {
|
|
@@ -1113,19 +1149,19 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1113
1149
|
};
|
|
1114
1150
|
|
|
1115
1151
|
// src/options/encoding-buffer-size.tsx
|
|
1116
|
-
import { jsx as
|
|
1152
|
+
import { jsx as jsx13, jsxs as jsxs10, Fragment as Fragment13 } from "react/jsx-runtime";
|
|
1117
1153
|
var encodingBufferSize = null;
|
|
1118
1154
|
var setEncodingBufferSize = (bitrate) => {
|
|
1119
1155
|
encodingBufferSize = bitrate;
|
|
1120
1156
|
};
|
|
1121
|
-
var
|
|
1157
|
+
var cliFlag16 = "buffer-size";
|
|
1122
1158
|
var encodingBufferSizeOption = {
|
|
1123
1159
|
name: "FFmpeg -bufsize flag",
|
|
1124
|
-
cliFlag:
|
|
1125
|
-
description: () => /* @__PURE__ */ jsxs10(
|
|
1160
|
+
cliFlag: cliFlag16,
|
|
1161
|
+
description: () => /* @__PURE__ */ jsxs10(Fragment13, {
|
|
1126
1162
|
children: [
|
|
1127
1163
|
"The value for the ",
|
|
1128
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ jsx13("code", {
|
|
1129
1165
|
children: "-bufsize"
|
|
1130
1166
|
}),
|
|
1131
1167
|
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
|
|
@@ -1135,9 +1171,9 @@ var encodingBufferSizeOption = {
|
|
|
1135
1171
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
|
|
1136
1172
|
type: "",
|
|
1137
1173
|
getValue: ({ commandLine }) => {
|
|
1138
|
-
if (commandLine[
|
|
1174
|
+
if (commandLine[cliFlag16] !== undefined) {
|
|
1139
1175
|
return {
|
|
1140
|
-
value: commandLine[
|
|
1176
|
+
value: commandLine[cliFlag16],
|
|
1141
1177
|
source: "cli"
|
|
1142
1178
|
};
|
|
1143
1179
|
}
|
|
@@ -1156,16 +1192,16 @@ var encodingBufferSizeOption = {
|
|
|
1156
1192
|
};
|
|
1157
1193
|
|
|
1158
1194
|
// src/options/encoding-max-rate.tsx
|
|
1159
|
-
import { jsx as
|
|
1195
|
+
import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment14 } from "react/jsx-runtime";
|
|
1160
1196
|
var encodingMaxRate = null;
|
|
1161
|
-
var
|
|
1197
|
+
var cliFlag17 = "max-rate";
|
|
1162
1198
|
var encodingMaxRateOption = {
|
|
1163
1199
|
name: "FFmpeg -maxrate flag",
|
|
1164
|
-
cliFlag:
|
|
1165
|
-
description: () => /* @__PURE__ */ jsxs11(
|
|
1200
|
+
cliFlag: cliFlag17,
|
|
1201
|
+
description: () => /* @__PURE__ */ jsxs11(Fragment14, {
|
|
1166
1202
|
children: [
|
|
1167
1203
|
"The value for the ",
|
|
1168
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ jsx14("code", {
|
|
1169
1205
|
children: "-maxrate"
|
|
1170
1206
|
}),
|
|
1171
1207
|
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
|
|
@@ -1175,9 +1211,9 @@ var encodingMaxRateOption = {
|
|
|
1175
1211
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
|
|
1176
1212
|
type: "",
|
|
1177
1213
|
getValue: ({ commandLine }) => {
|
|
1178
|
-
if (commandLine[
|
|
1214
|
+
if (commandLine[cliFlag17] !== undefined) {
|
|
1179
1215
|
return {
|
|
1180
|
-
value: commandLine[
|
|
1216
|
+
value: commandLine[cliFlag17],
|
|
1181
1217
|
source: "cli"
|
|
1182
1218
|
};
|
|
1183
1219
|
}
|
|
@@ -1198,21 +1234,21 @@ var encodingMaxRateOption = {
|
|
|
1198
1234
|
};
|
|
1199
1235
|
|
|
1200
1236
|
// src/options/enforce-audio.tsx
|
|
1201
|
-
import { jsx as
|
|
1237
|
+
import { jsx as jsx15, Fragment as Fragment15 } from "react/jsx-runtime";
|
|
1202
1238
|
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
|
|
1203
1239
|
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
1204
|
-
var
|
|
1240
|
+
var cliFlag18 = "enforce-audio-track";
|
|
1205
1241
|
var enforceAudioOption = {
|
|
1206
1242
|
name: "Enforce Audio Track",
|
|
1207
|
-
cliFlag:
|
|
1208
|
-
description: () => /* @__PURE__ */
|
|
1243
|
+
cliFlag: cliFlag18,
|
|
1244
|
+
description: () => /* @__PURE__ */ jsx15(Fragment15, {
|
|
1209
1245
|
children: "Render a silent audio track if there would be none otherwise."
|
|
1210
1246
|
}),
|
|
1211
1247
|
ssrName: "enforceAudioTrack",
|
|
1212
1248
|
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
|
|
1213
1249
|
type: false,
|
|
1214
1250
|
getValue: ({ commandLine }) => {
|
|
1215
|
-
if (commandLine[
|
|
1251
|
+
if (commandLine[cliFlag18]) {
|
|
1216
1252
|
return {
|
|
1217
1253
|
source: "cli",
|
|
1218
1254
|
value: true
|
|
@@ -1235,22 +1271,22 @@ var enforceAudioOption = {
|
|
|
1235
1271
|
};
|
|
1236
1272
|
|
|
1237
1273
|
// src/options/folder-expiry.tsx
|
|
1238
|
-
import { jsx as
|
|
1274
|
+
import { jsx as jsx16, jsxs as jsxs12, Fragment as Fragment16 } from "react/jsx-runtime";
|
|
1239
1275
|
var enableFolderExpiry = null;
|
|
1240
|
-
var
|
|
1276
|
+
var cliFlag19 = "enable-folder-expiry";
|
|
1241
1277
|
var folderExpiryOption = {
|
|
1242
1278
|
name: "Lambda render expiration",
|
|
1243
|
-
cliFlag:
|
|
1279
|
+
cliFlag: cliFlag19,
|
|
1244
1280
|
description: () => {
|
|
1245
|
-
return /* @__PURE__ */ jsxs12(
|
|
1281
|
+
return /* @__PURE__ */ jsxs12(Fragment16, {
|
|
1246
1282
|
children: [
|
|
1247
1283
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
1248
1284
|
" ",
|
|
1249
|
-
/* @__PURE__ */
|
|
1285
|
+
/* @__PURE__ */ jsx16("code", {
|
|
1250
1286
|
children: "null"
|
|
1251
1287
|
}),
|
|
1252
1288
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
1253
|
-
/* @__PURE__ */
|
|
1289
|
+
/* @__PURE__ */ jsx16("a", {
|
|
1254
1290
|
href: "/docs/lambda/autodelete",
|
|
1255
1291
|
children: "Lambda autodelete"
|
|
1256
1292
|
}),
|
|
@@ -1262,10 +1298,10 @@ var folderExpiryOption = {
|
|
|
1262
1298
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1263
1299
|
type: false,
|
|
1264
1300
|
getValue: ({ commandLine }) => {
|
|
1265
|
-
if (commandLine[
|
|
1301
|
+
if (commandLine[cliFlag19] !== undefined) {
|
|
1266
1302
|
return {
|
|
1267
1303
|
source: "cli",
|
|
1268
|
-
value: commandLine[
|
|
1304
|
+
value: commandLine[cliFlag19]
|
|
1269
1305
|
};
|
|
1270
1306
|
}
|
|
1271
1307
|
if (enableFolderExpiry !== null) {
|
|
@@ -1285,24 +1321,24 @@ var folderExpiryOption = {
|
|
|
1285
1321
|
};
|
|
1286
1322
|
|
|
1287
1323
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
1288
|
-
import { jsx as
|
|
1324
|
+
import { jsx as jsx17, jsxs as jsxs13, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
1289
1325
|
var DEFAULT3 = false;
|
|
1290
1326
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
1291
|
-
var
|
|
1327
|
+
var cliFlag20 = "for-seamless-aac-concatenation";
|
|
1292
1328
|
var forSeamlessAacConcatenationOption = {
|
|
1293
1329
|
name: "For seamless AAC concatenation",
|
|
1294
|
-
cliFlag:
|
|
1295
|
-
description: () => /* @__PURE__ */ jsxs13(
|
|
1330
|
+
cliFlag: cliFlag20,
|
|
1331
|
+
description: () => /* @__PURE__ */ jsxs13(Fragment17, {
|
|
1296
1332
|
children: [
|
|
1297
1333
|
"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.",
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ jsx17("br", {}),
|
|
1335
|
+
/* @__PURE__ */ jsx17("br", {}),
|
|
1300
1336
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
1301
1337
|
]
|
|
1302
1338
|
}),
|
|
1303
1339
|
docLink: "https://remotion.dev/docs/renderer",
|
|
1304
1340
|
getValue: ({ commandLine }) => {
|
|
1305
|
-
if (commandLine[
|
|
1341
|
+
if (commandLine[cliFlag20]) {
|
|
1306
1342
|
return {
|
|
1307
1343
|
source: "cli",
|
|
1308
1344
|
value: true
|
|
@@ -1327,7 +1363,7 @@ var forSeamlessAacConcatenationOption = {
|
|
|
1327
1363
|
};
|
|
1328
1364
|
|
|
1329
1365
|
// src/options/gl.tsx
|
|
1330
|
-
import { jsx as
|
|
1366
|
+
import { jsx as jsx18, jsxs as jsxs14, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
1331
1367
|
var validOpenGlRenderers = [
|
|
1332
1368
|
"swangle",
|
|
1333
1369
|
"angle",
|
|
@@ -1342,7 +1378,7 @@ var AngleChangelog = () => {
|
|
|
1342
1378
|
return /* @__PURE__ */ jsxs14("details", {
|
|
1343
1379
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
1344
1380
|
children: [
|
|
1345
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ jsx18("summary", {
|
|
1346
1382
|
children: "Changelog"
|
|
1347
1383
|
}),
|
|
1348
1384
|
/* @__PURE__ */ jsxs14("ul", {
|
|
@@ -1351,12 +1387,12 @@ var AngleChangelog = () => {
|
|
|
1351
1387
|
children: [
|
|
1352
1388
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
1353
1389
|
" ",
|
|
1354
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1355
1391
|
children: "swiftshader"
|
|
1356
1392
|
}),
|
|
1357
1393
|
", but from v3.0.8 the default is",
|
|
1358
1394
|
" ",
|
|
1359
|
-
/* @__PURE__ */
|
|
1395
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1360
1396
|
children: "swangle"
|
|
1361
1397
|
}),
|
|
1362
1398
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
@@ -1365,7 +1401,7 @@ var AngleChangelog = () => {
|
|
|
1365
1401
|
/* @__PURE__ */ jsxs14("li", {
|
|
1366
1402
|
children: [
|
|
1367
1403
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
1368
|
-
/* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1369
1405
|
children: "angle"
|
|
1370
1406
|
}),
|
|
1371
1407
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
@@ -1376,53 +1412,53 @@ var AngleChangelog = () => {
|
|
|
1376
1412
|
]
|
|
1377
1413
|
});
|
|
1378
1414
|
};
|
|
1379
|
-
var
|
|
1415
|
+
var cliFlag21 = "gl";
|
|
1380
1416
|
var glOption = {
|
|
1381
|
-
cliFlag:
|
|
1417
|
+
cliFlag: cliFlag21,
|
|
1382
1418
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
1383
1419
|
name: "OpenGL renderer",
|
|
1384
1420
|
type: "angle",
|
|
1385
1421
|
ssrName: "gl",
|
|
1386
1422
|
description: () => {
|
|
1387
|
-
return /* @__PURE__ */ jsxs14(
|
|
1423
|
+
return /* @__PURE__ */ jsxs14(Fragment18, {
|
|
1388
1424
|
children: [
|
|
1389
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ jsx18(AngleChangelog, {}),
|
|
1390
1426
|
/* @__PURE__ */ jsxs14("p", {
|
|
1391
1427
|
children: [
|
|
1392
1428
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
1393
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ jsx18("br", {}),
|
|
1394
1430
|
"Accepted values:"
|
|
1395
1431
|
]
|
|
1396
1432
|
}),
|
|
1397
1433
|
/* @__PURE__ */ jsxs14("ul", {
|
|
1398
1434
|
children: [
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
children: /* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ jsx18("li", {
|
|
1436
|
+
children: /* @__PURE__ */ jsx18("code", {
|
|
1401
1437
|
children: '"angle"'
|
|
1402
1438
|
})
|
|
1403
1439
|
}),
|
|
1404
|
-
/* @__PURE__ */
|
|
1405
|
-
children: /* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ jsx18("li", {
|
|
1441
|
+
children: /* @__PURE__ */ jsx18("code", {
|
|
1406
1442
|
children: '"egl"'
|
|
1407
1443
|
})
|
|
1408
1444
|
}),
|
|
1409
|
-
/* @__PURE__ */
|
|
1410
|
-
children: /* @__PURE__ */
|
|
1445
|
+
/* @__PURE__ */ jsx18("li", {
|
|
1446
|
+
children: /* @__PURE__ */ jsx18("code", {
|
|
1411
1447
|
children: '"swiftshader"'
|
|
1412
1448
|
})
|
|
1413
1449
|
}),
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
children: /* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ jsx18("li", {
|
|
1451
|
+
children: /* @__PURE__ */ jsx18("code", {
|
|
1416
1452
|
children: '"swangle"'
|
|
1417
1453
|
})
|
|
1418
1454
|
}),
|
|
1419
1455
|
/* @__PURE__ */ jsxs14("li", {
|
|
1420
1456
|
children: [
|
|
1421
|
-
/* @__PURE__ */
|
|
1457
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1422
1458
|
children: '"vulkan"'
|
|
1423
1459
|
}),
|
|
1424
1460
|
" (",
|
|
1425
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ jsx18("em", {
|
|
1426
1462
|
children: "from Remotion v4.0.41"
|
|
1427
1463
|
}),
|
|
1428
1464
|
")"
|
|
@@ -1430,11 +1466,11 @@ var glOption = {
|
|
|
1430
1466
|
}),
|
|
1431
1467
|
/* @__PURE__ */ jsxs14("li", {
|
|
1432
1468
|
children: [
|
|
1433
|
-
/* @__PURE__ */
|
|
1469
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1434
1470
|
children: '"angle-egl"'
|
|
1435
1471
|
}),
|
|
1436
1472
|
" (",
|
|
1437
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsx18("em", {
|
|
1438
1474
|
children: "from Remotion v4.0.51"
|
|
1439
1475
|
}),
|
|
1440
1476
|
")"
|
|
@@ -1445,11 +1481,11 @@ var glOption = {
|
|
|
1445
1481
|
/* @__PURE__ */ jsxs14("p", {
|
|
1446
1482
|
children: [
|
|
1447
1483
|
"The default is ",
|
|
1448
|
-
/* @__PURE__ */
|
|
1484
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1449
1485
|
children: "null"
|
|
1450
1486
|
}),
|
|
1451
1487
|
", letting Chrome decide, except on Lambda where the default is ",
|
|
1452
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1453
1489
|
children: '"swangle"'
|
|
1454
1490
|
})
|
|
1455
1491
|
]
|
|
@@ -1458,10 +1494,10 @@ var glOption = {
|
|
|
1458
1494
|
});
|
|
1459
1495
|
},
|
|
1460
1496
|
getValue: ({ commandLine }) => {
|
|
1461
|
-
if (commandLine[
|
|
1462
|
-
validateOpenGlRenderer(commandLine[
|
|
1497
|
+
if (commandLine[cliFlag21]) {
|
|
1498
|
+
validateOpenGlRenderer(commandLine[cliFlag21]);
|
|
1463
1499
|
return {
|
|
1464
|
-
value: commandLine[
|
|
1500
|
+
value: commandLine[cliFlag21],
|
|
1465
1501
|
source: "cli"
|
|
1466
1502
|
};
|
|
1467
1503
|
}
|
|
@@ -1497,11 +1533,11 @@ var hardwareAccelerationOptions = [
|
|
|
1497
1533
|
"if-possible",
|
|
1498
1534
|
"required"
|
|
1499
1535
|
];
|
|
1500
|
-
var
|
|
1536
|
+
var cliFlag22 = "hardware-acceleration";
|
|
1501
1537
|
var currentValue = null;
|
|
1502
1538
|
var hardwareAccelerationOption = {
|
|
1503
1539
|
name: "Hardware Acceleration",
|
|
1504
|
-
cliFlag:
|
|
1540
|
+
cliFlag: cliFlag22,
|
|
1505
1541
|
description: () => `
|
|
1506
1542
|
One of
|
|
1507
1543
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -1513,10 +1549,10 @@ var hardwareAccelerationOption = {
|
|
|
1513
1549
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
1514
1550
|
type: "disable",
|
|
1515
1551
|
getValue: ({ commandLine }) => {
|
|
1516
|
-
if (commandLine[
|
|
1517
|
-
const value = commandLine[
|
|
1552
|
+
if (commandLine[cliFlag22] !== undefined) {
|
|
1553
|
+
const value = commandLine[cliFlag22];
|
|
1518
1554
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1519
|
-
throw new Error(`Invalid value for --${
|
|
1555
|
+
throw new Error(`Invalid value for --${cliFlag22}: ${value}`);
|
|
1520
1556
|
}
|
|
1521
1557
|
return {
|
|
1522
1558
|
source: "cli",
|
|
@@ -1536,31 +1572,31 @@ var hardwareAccelerationOption = {
|
|
|
1536
1572
|
},
|
|
1537
1573
|
setConfig: (value) => {
|
|
1538
1574
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1539
|
-
throw new Error(`Invalid value for --${
|
|
1575
|
+
throw new Error(`Invalid value for --${cliFlag22}: ${value}`);
|
|
1540
1576
|
}
|
|
1541
1577
|
currentValue = value;
|
|
1542
1578
|
}
|
|
1543
1579
|
};
|
|
1544
1580
|
|
|
1545
1581
|
// src/options/headless.tsx
|
|
1546
|
-
import { jsx as
|
|
1582
|
+
import { jsx as jsx19, jsxs as jsxs15, Fragment as Fragment19 } from "react/jsx-runtime";
|
|
1547
1583
|
var DEFAULT4 = true;
|
|
1548
1584
|
var headlessMode = DEFAULT4;
|
|
1549
|
-
var
|
|
1585
|
+
var cliFlag23 = "disable-headless";
|
|
1550
1586
|
var headlessOption = {
|
|
1551
1587
|
name: "Disable Headless Mode",
|
|
1552
|
-
cliFlag:
|
|
1553
|
-
description: () => /* @__PURE__ */ jsxs15(
|
|
1588
|
+
cliFlag: cliFlag23,
|
|
1589
|
+
description: () => /* @__PURE__ */ jsxs15(Fragment19, {
|
|
1554
1590
|
children: [
|
|
1555
1591
|
"Deprecated - will be removed in 5.0.0. With the migration to",
|
|
1556
1592
|
" ",
|
|
1557
|
-
/* @__PURE__ */
|
|
1593
|
+
/* @__PURE__ */ jsx19("a", {
|
|
1558
1594
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
1559
1595
|
children: "Chrome Headless Shell"
|
|
1560
1596
|
}),
|
|
1561
1597
|
", this option is not functional anymore.",
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
1598
|
+
/* @__PURE__ */ jsx19("br", {}),
|
|
1599
|
+
/* @__PURE__ */ jsx19("br", {}),
|
|
1564
1600
|
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
|
|
1565
1601
|
]
|
|
1566
1602
|
}),
|
|
@@ -1568,10 +1604,10 @@ var headlessOption = {
|
|
|
1568
1604
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
1569
1605
|
type: false,
|
|
1570
1606
|
getValue: ({ commandLine }) => {
|
|
1571
|
-
if (commandLine[
|
|
1607
|
+
if (commandLine[cliFlag23] !== undefined) {
|
|
1572
1608
|
return {
|
|
1573
1609
|
source: "cli",
|
|
1574
|
-
value: !commandLine[
|
|
1610
|
+
value: !commandLine[cliFlag23]
|
|
1575
1611
|
};
|
|
1576
1612
|
}
|
|
1577
1613
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -1591,21 +1627,21 @@ var headlessOption = {
|
|
|
1591
1627
|
};
|
|
1592
1628
|
|
|
1593
1629
|
// src/options/image-sequence-pattern.tsx
|
|
1594
|
-
import { jsx as
|
|
1595
|
-
var
|
|
1630
|
+
import { jsx as jsx20, jsxs as jsxs16, Fragment as Fragment20 } from "react/jsx-runtime";
|
|
1631
|
+
var cliFlag24 = "image-sequence-pattern";
|
|
1596
1632
|
var currentImageSequencePattern = null;
|
|
1597
1633
|
var imageSequencePatternOption = {
|
|
1598
1634
|
name: "Image Sequence Pattern",
|
|
1599
|
-
cliFlag:
|
|
1635
|
+
cliFlag: cliFlag24,
|
|
1600
1636
|
ssrName: "imageSequencePattern",
|
|
1601
|
-
description: () => /* @__PURE__ */ jsxs16(
|
|
1637
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment20, {
|
|
1602
1638
|
children: [
|
|
1603
1639
|
"Pattern for naming image sequence files. Supports ",
|
|
1604
|
-
/* @__PURE__ */
|
|
1640
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1605
1641
|
children: "[frame]"
|
|
1606
1642
|
}),
|
|
1607
1643
|
" for the zero-padded frame number and ",
|
|
1608
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1609
1645
|
children: "[ext]"
|
|
1610
1646
|
}),
|
|
1611
1647
|
" for the file extension."
|
|
@@ -1621,7 +1657,7 @@ var imageSequencePatternOption = {
|
|
|
1621
1657
|
};
|
|
1622
1658
|
}
|
|
1623
1659
|
return {
|
|
1624
|
-
value: commandLine[
|
|
1660
|
+
value: commandLine[cliFlag24],
|
|
1625
1661
|
source: "cli"
|
|
1626
1662
|
};
|
|
1627
1663
|
},
|
|
@@ -1631,7 +1667,7 @@ var imageSequencePatternOption = {
|
|
|
1631
1667
|
};
|
|
1632
1668
|
|
|
1633
1669
|
// src/options/jpeg-quality.tsx
|
|
1634
|
-
import { jsx as
|
|
1670
|
+
import { jsx as jsx21, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
1635
1671
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
1636
1672
|
var quality = defaultValue;
|
|
1637
1673
|
var setJpegQuality = (q) => {
|
|
@@ -1642,11 +1678,11 @@ var setJpegQuality = (q) => {
|
|
|
1642
1678
|
}
|
|
1643
1679
|
quality = q;
|
|
1644
1680
|
};
|
|
1645
|
-
var
|
|
1681
|
+
var cliFlag25 = "jpeg-quality";
|
|
1646
1682
|
var jpegQualityOption = {
|
|
1647
1683
|
name: "JPEG Quality",
|
|
1648
|
-
cliFlag:
|
|
1649
|
-
description: () => /* @__PURE__ */
|
|
1684
|
+
cliFlag: cliFlag25,
|
|
1685
|
+
description: () => /* @__PURE__ */ jsx21(Fragment21, {
|
|
1650
1686
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
1651
1687
|
}),
|
|
1652
1688
|
ssrName: "jpegQuality",
|
|
@@ -1654,11 +1690,11 @@ var jpegQualityOption = {
|
|
|
1654
1690
|
type: 0,
|
|
1655
1691
|
setConfig: setJpegQuality,
|
|
1656
1692
|
getValue: ({ commandLine }) => {
|
|
1657
|
-
if (commandLine[
|
|
1658
|
-
validateJpegQuality(commandLine[
|
|
1693
|
+
if (commandLine[cliFlag25] !== undefined) {
|
|
1694
|
+
validateJpegQuality(commandLine[cliFlag25]);
|
|
1659
1695
|
return {
|
|
1660
1696
|
source: "cli",
|
|
1661
|
-
value: commandLine[
|
|
1697
|
+
value: commandLine[cliFlag25]
|
|
1662
1698
|
};
|
|
1663
1699
|
}
|
|
1664
1700
|
if (quality !== defaultValue) {
|
|
@@ -1675,38 +1711,38 @@ var jpegQualityOption = {
|
|
|
1675
1711
|
};
|
|
1676
1712
|
|
|
1677
1713
|
// src/options/latency-hint.tsx
|
|
1678
|
-
import { jsx as
|
|
1679
|
-
var
|
|
1714
|
+
import { jsx as jsx22, jsxs as jsxs17, Fragment as Fragment22 } from "react/jsx-runtime";
|
|
1715
|
+
var cliFlag26 = "audio-latency-hint";
|
|
1680
1716
|
var value = null;
|
|
1681
1717
|
var audioLatencyHintOption = {
|
|
1682
1718
|
name: "Audio Latency Hint",
|
|
1683
|
-
cliFlag:
|
|
1684
|
-
description: () => /* @__PURE__ */ jsxs17(
|
|
1719
|
+
cliFlag: cliFlag26,
|
|
1720
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment22, {
|
|
1685
1721
|
children: [
|
|
1686
1722
|
"Sets the",
|
|
1687
1723
|
" ",
|
|
1688
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx22("a", {
|
|
1689
1725
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
1690
1726
|
children: "audio latency"
|
|
1691
1727
|
}),
|
|
1692
1728
|
" ",
|
|
1693
1729
|
"hint for the global ",
|
|
1694
|
-
/* @__PURE__ */
|
|
1730
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1695
1731
|
children: "AudioContext"
|
|
1696
1732
|
}),
|
|
1697
1733
|
" context that Remotion uses to play audio.",
|
|
1698
|
-
/* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ jsx22("br", {}),
|
|
1699
1735
|
"Possible values: ",
|
|
1700
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1701
1737
|
children: "interactive"
|
|
1702
1738
|
}),
|
|
1703
1739
|
", ",
|
|
1704
|
-
/* @__PURE__ */
|
|
1740
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1705
1741
|
children: "balanced"
|
|
1706
1742
|
}),
|
|
1707
1743
|
",",
|
|
1708
1744
|
" ",
|
|
1709
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1710
1746
|
children: "playback"
|
|
1711
1747
|
})
|
|
1712
1748
|
]
|
|
@@ -1715,7 +1751,7 @@ var audioLatencyHintOption = {
|
|
|
1715
1751
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
1716
1752
|
type: "interactive",
|
|
1717
1753
|
getValue: ({ commandLine }) => {
|
|
1718
|
-
const val = commandLine[
|
|
1754
|
+
const val = commandLine[cliFlag26];
|
|
1719
1755
|
if (typeof val !== "undefined") {
|
|
1720
1756
|
return { value: val, source: "cli" };
|
|
1721
1757
|
}
|
|
@@ -1730,43 +1766,43 @@ var audioLatencyHintOption = {
|
|
|
1730
1766
|
};
|
|
1731
1767
|
|
|
1732
1768
|
// src/options/log-level.tsx
|
|
1733
|
-
import { jsx as
|
|
1769
|
+
import { jsx as jsx23, jsxs as jsxs18, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1734
1770
|
var logLevel = "info";
|
|
1735
|
-
var
|
|
1771
|
+
var cliFlag27 = "log";
|
|
1736
1772
|
var logLevelOption = {
|
|
1737
|
-
cliFlag:
|
|
1773
|
+
cliFlag: cliFlag27,
|
|
1738
1774
|
name: "Log Level",
|
|
1739
1775
|
ssrName: "logLevel",
|
|
1740
|
-
description: () => /* @__PURE__ */ jsxs18(
|
|
1776
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment23, {
|
|
1741
1777
|
children: [
|
|
1742
1778
|
"One of ",
|
|
1743
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1744
1780
|
children: "trace"
|
|
1745
1781
|
}),
|
|
1746
1782
|
", ",
|
|
1747
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1748
1784
|
children: "verbose"
|
|
1749
1785
|
}),
|
|
1750
1786
|
", ",
|
|
1751
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1752
1788
|
children: "info"
|
|
1753
1789
|
}),
|
|
1754
1790
|
",",
|
|
1755
1791
|
" ",
|
|
1756
|
-
/* @__PURE__ */
|
|
1792
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1757
1793
|
children: "warn"
|
|
1758
1794
|
}),
|
|
1759
1795
|
", ",
|
|
1760
|
-
/* @__PURE__ */
|
|
1796
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1761
1797
|
children: "error"
|
|
1762
1798
|
}),
|
|
1763
1799
|
".",
|
|
1764
|
-
/* @__PURE__ */
|
|
1800
|
+
/* @__PURE__ */ jsx23("br", {}),
|
|
1765
1801
|
" Determines how much info is being logged to the console.",
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1802
|
+
/* @__PURE__ */ jsx23("br", {}),
|
|
1803
|
+
/* @__PURE__ */ jsx23("br", {}),
|
|
1768
1804
|
" Default ",
|
|
1769
|
-
/* @__PURE__ */
|
|
1805
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1770
1806
|
children: "info"
|
|
1771
1807
|
}),
|
|
1772
1808
|
"."
|
|
@@ -1774,11 +1810,11 @@ var logLevelOption = {
|
|
|
1774
1810
|
}),
|
|
1775
1811
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
1776
1812
|
getValue: ({ commandLine }) => {
|
|
1777
|
-
if (commandLine[
|
|
1778
|
-
if (!isValidLogLevel(commandLine[
|
|
1813
|
+
if (commandLine[cliFlag27]) {
|
|
1814
|
+
if (!isValidLogLevel(commandLine[cliFlag27])) {
|
|
1779
1815
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
1780
1816
|
}
|
|
1781
|
-
return { value: commandLine[
|
|
1817
|
+
return { value: commandLine[cliFlag27], source: "cli" };
|
|
1782
1818
|
}
|
|
1783
1819
|
if (logLevel !== "info") {
|
|
1784
1820
|
return { value: logLevel, source: "config" };
|
|
@@ -1792,19 +1828,19 @@ var logLevelOption = {
|
|
|
1792
1828
|
};
|
|
1793
1829
|
|
|
1794
1830
|
// src/options/metadata.tsx
|
|
1795
|
-
import { jsx as
|
|
1831
|
+
import { jsx as jsx24, jsxs as jsxs19, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1796
1832
|
var metadata = {};
|
|
1797
|
-
var
|
|
1833
|
+
var cliFlag28 = "metadata";
|
|
1798
1834
|
var metadataOption = {
|
|
1799
1835
|
name: "Metadata",
|
|
1800
|
-
cliFlag:
|
|
1836
|
+
cliFlag: cliFlag28,
|
|
1801
1837
|
description: (mode) => {
|
|
1802
1838
|
if (mode === "ssr") {
|
|
1803
|
-
return /* @__PURE__ */ jsxs19(
|
|
1839
|
+
return /* @__PURE__ */ jsxs19(Fragment24, {
|
|
1804
1840
|
children: [
|
|
1805
1841
|
"An object containing metadata to be embedded in the video. See",
|
|
1806
1842
|
" ",
|
|
1807
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ jsx24("a", {
|
|
1808
1844
|
href: "/docs/metadata",
|
|
1809
1845
|
children: "here"
|
|
1810
1846
|
}),
|
|
@@ -1812,18 +1848,18 @@ var metadataOption = {
|
|
|
1812
1848
|
]
|
|
1813
1849
|
});
|
|
1814
1850
|
}
|
|
1815
|
-
return /* @__PURE__ */ jsxs19(
|
|
1851
|
+
return /* @__PURE__ */ jsxs19(Fragment24, {
|
|
1816
1852
|
children: [
|
|
1817
1853
|
"Metadata to be embedded in the video. See",
|
|
1818
1854
|
" ",
|
|
1819
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ jsx24("a", {
|
|
1820
1856
|
href: "/docs/metadata",
|
|
1821
1857
|
children: "here"
|
|
1822
1858
|
}),
|
|
1823
1859
|
" for which metadata is accepted.",
|
|
1824
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ jsx24("br", {}),
|
|
1825
1861
|
"The parameter must be in the format of ",
|
|
1826
|
-
/* @__PURE__ */
|
|
1862
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1827
1863
|
children: "--metadata key=value"
|
|
1828
1864
|
}),
|
|
1829
1865
|
" ",
|
|
@@ -1834,8 +1870,8 @@ var metadataOption = {
|
|
|
1834
1870
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
1835
1871
|
type: {},
|
|
1836
1872
|
getValue: ({ commandLine }) => {
|
|
1837
|
-
if (commandLine[
|
|
1838
|
-
const val = commandLine[
|
|
1873
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1874
|
+
const val = commandLine[cliFlag28];
|
|
1839
1875
|
const array = typeof val === "string" ? [val] : val;
|
|
1840
1876
|
const keyValues = array.map((a) => {
|
|
1841
1877
|
if (!a.includes("=")) {
|
|
@@ -1865,24 +1901,24 @@ var metadataOption = {
|
|
|
1865
1901
|
};
|
|
1866
1902
|
|
|
1867
1903
|
// src/options/mute.tsx
|
|
1868
|
-
import { jsx as
|
|
1904
|
+
import { jsx as jsx25, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1869
1905
|
var DEFAULT_MUTED_STATE = false;
|
|
1870
1906
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
1871
|
-
var
|
|
1907
|
+
var cliFlag29 = "muted";
|
|
1872
1908
|
var mutedOption = {
|
|
1873
1909
|
name: "Muted",
|
|
1874
|
-
cliFlag:
|
|
1875
|
-
description: () => /* @__PURE__ */
|
|
1910
|
+
cliFlag: cliFlag29,
|
|
1911
|
+
description: () => /* @__PURE__ */ jsx25(Fragment25, {
|
|
1876
1912
|
children: "The Audio of the video will be omitted."
|
|
1877
1913
|
}),
|
|
1878
1914
|
ssrName: "muted",
|
|
1879
1915
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
1880
1916
|
type: false,
|
|
1881
1917
|
getValue: ({ commandLine }) => {
|
|
1882
|
-
if (commandLine[
|
|
1918
|
+
if (commandLine[cliFlag29] !== null) {
|
|
1883
1919
|
return {
|
|
1884
1920
|
source: "cli",
|
|
1885
|
-
value: commandLine[
|
|
1921
|
+
value: commandLine[cliFlag29]
|
|
1886
1922
|
};
|
|
1887
1923
|
}
|
|
1888
1924
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -1902,26 +1938,26 @@ var mutedOption = {
|
|
|
1902
1938
|
};
|
|
1903
1939
|
|
|
1904
1940
|
// src/options/number-of-gif-loops.tsx
|
|
1905
|
-
import { jsx as
|
|
1941
|
+
import { jsx as jsx26, jsxs as jsxs20, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1906
1942
|
var currentLoop = null;
|
|
1907
1943
|
var validate = (newLoop) => {
|
|
1908
1944
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
1909
1945
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
1910
1946
|
}
|
|
1911
1947
|
};
|
|
1912
|
-
var
|
|
1948
|
+
var cliFlag30 = "number-of-gif-loops";
|
|
1913
1949
|
var numberOfGifLoopsOption = {
|
|
1914
1950
|
name: "Number of GIF loops",
|
|
1915
|
-
cliFlag:
|
|
1951
|
+
cliFlag: cliFlag30,
|
|
1916
1952
|
description: () => {
|
|
1917
|
-
return /* @__PURE__ */ jsxs20(
|
|
1953
|
+
return /* @__PURE__ */ jsxs20(Fragment26, {
|
|
1918
1954
|
children: [
|
|
1919
1955
|
"Allows you to set the number of loops as follows:",
|
|
1920
1956
|
/* @__PURE__ */ jsxs20("ul", {
|
|
1921
1957
|
children: [
|
|
1922
1958
|
/* @__PURE__ */ jsxs20("li", {
|
|
1923
1959
|
children: [
|
|
1924
|
-
/* @__PURE__ */
|
|
1960
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1925
1961
|
children: "null"
|
|
1926
1962
|
}),
|
|
1927
1963
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
@@ -1929,7 +1965,7 @@ var numberOfGifLoopsOption = {
|
|
|
1929
1965
|
}),
|
|
1930
1966
|
/* @__PURE__ */ jsxs20("li", {
|
|
1931
1967
|
children: [
|
|
1932
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1933
1969
|
children: "0"
|
|
1934
1970
|
}),
|
|
1935
1971
|
" disables looping"
|
|
@@ -1937,7 +1973,7 @@ var numberOfGifLoopsOption = {
|
|
|
1937
1973
|
}),
|
|
1938
1974
|
/* @__PURE__ */ jsxs20("li", {
|
|
1939
1975
|
children: [
|
|
1940
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1941
1977
|
children: "1"
|
|
1942
1978
|
}),
|
|
1943
1979
|
" loops the GIF once (plays twice in total)"
|
|
@@ -1945,7 +1981,7 @@ var numberOfGifLoopsOption = {
|
|
|
1945
1981
|
}),
|
|
1946
1982
|
/* @__PURE__ */ jsxs20("li", {
|
|
1947
1983
|
children: [
|
|
1948
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1949
1985
|
children: "2"
|
|
1950
1986
|
}),
|
|
1951
1987
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -1960,10 +1996,10 @@ var numberOfGifLoopsOption = {
|
|
|
1960
1996
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
1961
1997
|
type: 0,
|
|
1962
1998
|
getValue: ({ commandLine }) => {
|
|
1963
|
-
if (commandLine[
|
|
1964
|
-
validate(commandLine[
|
|
1999
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
2000
|
+
validate(commandLine[cliFlag30]);
|
|
1965
2001
|
return {
|
|
1966
|
-
value: commandLine[
|
|
2002
|
+
value: commandLine[cliFlag30],
|
|
1967
2003
|
source: "cli"
|
|
1968
2004
|
};
|
|
1969
2005
|
}
|
|
@@ -1985,35 +2021,35 @@ var numberOfGifLoopsOption = {
|
|
|
1985
2021
|
};
|
|
1986
2022
|
|
|
1987
2023
|
// src/options/offthreadvideo-cache-size.tsx
|
|
1988
|
-
import { jsx as
|
|
2024
|
+
import { jsx as jsx27, jsxs as jsxs21, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1989
2025
|
var offthreadVideoCacheSizeInBytes = null;
|
|
1990
|
-
var
|
|
2026
|
+
var cliFlag31 = "offthreadvideo-cache-size-in-bytes";
|
|
1991
2027
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
1992
2028
|
name: "OffthreadVideo cache size",
|
|
1993
|
-
cliFlag:
|
|
1994
|
-
description: () => /* @__PURE__ */ jsxs21(
|
|
2029
|
+
cliFlag: cliFlag31,
|
|
2030
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment27, {
|
|
1995
2031
|
children: [
|
|
1996
2032
|
"From v4.0, Remotion has a cache for",
|
|
1997
2033
|
" ",
|
|
1998
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ jsx27("a", {
|
|
1999
2035
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2000
|
-
children: /* @__PURE__ */
|
|
2036
|
+
children: /* @__PURE__ */ jsx27("code", {
|
|
2001
2037
|
children: "<OffthreadVideo>"
|
|
2002
2038
|
})
|
|
2003
2039
|
}),
|
|
2004
2040
|
" ",
|
|
2005
2041
|
"frames. The default is ",
|
|
2006
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx27("code", {
|
|
2007
2043
|
children: "null"
|
|
2008
2044
|
}),
|
|
2009
2045
|
", corresponding to half of the system memory available when the render starts.",
|
|
2010
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ jsx27("br", {}),
|
|
2011
2047
|
" 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.",
|
|
2012
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ jsx27("br", {}),
|
|
2013
2049
|
"The used value will be printed when running in verbose mode.",
|
|
2014
|
-
/* @__PURE__ */
|
|
2050
|
+
/* @__PURE__ */ jsx27("br", {}),
|
|
2015
2051
|
"Default: ",
|
|
2016
|
-
/* @__PURE__ */
|
|
2052
|
+
/* @__PURE__ */ jsx27("code", {
|
|
2017
2053
|
children: "null"
|
|
2018
2054
|
})
|
|
2019
2055
|
]
|
|
@@ -2022,10 +2058,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2022
2058
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2023
2059
|
type: 0,
|
|
2024
2060
|
getValue: ({ commandLine }) => {
|
|
2025
|
-
if (commandLine[
|
|
2061
|
+
if (commandLine[cliFlag31] !== undefined) {
|
|
2026
2062
|
return {
|
|
2027
2063
|
source: "cli",
|
|
2028
|
-
value: commandLine[
|
|
2064
|
+
value: commandLine[cliFlag31]
|
|
2029
2065
|
};
|
|
2030
2066
|
}
|
|
2031
2067
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -2045,18 +2081,18 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2045
2081
|
};
|
|
2046
2082
|
|
|
2047
2083
|
// src/options/offthreadvideo-threads.tsx
|
|
2048
|
-
import { jsx as
|
|
2084
|
+
import { jsx as jsx28, jsxs as jsxs22, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
2049
2085
|
var value2 = null;
|
|
2050
|
-
var
|
|
2086
|
+
var cliFlag32 = "offthreadvideo-video-threads";
|
|
2051
2087
|
var offthreadVideoThreadsOption = {
|
|
2052
2088
|
name: "OffthreadVideo threads",
|
|
2053
|
-
cliFlag:
|
|
2054
|
-
description: () => /* @__PURE__ */ jsxs22(
|
|
2089
|
+
cliFlag: cliFlag32,
|
|
2090
|
+
description: () => /* @__PURE__ */ jsxs22(Fragment28, {
|
|
2055
2091
|
children: [
|
|
2056
2092
|
"The number of threads that",
|
|
2057
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ jsx28("a", {
|
|
2058
2094
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2059
|
-
children: /* @__PURE__ */
|
|
2095
|
+
children: /* @__PURE__ */ jsx28("code", {
|
|
2060
2096
|
children: "<OffthreadVideo>"
|
|
2061
2097
|
})
|
|
2062
2098
|
}),
|
|
@@ -2071,10 +2107,10 @@ var offthreadVideoThreadsOption = {
|
|
|
2071
2107
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2072
2108
|
type: 0,
|
|
2073
2109
|
getValue: ({ commandLine }) => {
|
|
2074
|
-
if (commandLine[
|
|
2110
|
+
if (commandLine[cliFlag32] !== undefined) {
|
|
2075
2111
|
return {
|
|
2076
2112
|
source: "cli",
|
|
2077
|
-
value: commandLine[
|
|
2113
|
+
value: commandLine[cliFlag32]
|
|
2078
2114
|
};
|
|
2079
2115
|
}
|
|
2080
2116
|
if (value2 !== null) {
|
|
@@ -2095,16 +2131,16 @@ var offthreadVideoThreadsOption = {
|
|
|
2095
2131
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
2096
2132
|
|
|
2097
2133
|
// src/options/on-browser-download.tsx
|
|
2098
|
-
import { jsx as
|
|
2099
|
-
var
|
|
2134
|
+
import { jsx as jsx29, jsxs as jsxs23, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
2135
|
+
var cliFlag33 = "on-browser-download";
|
|
2100
2136
|
var onBrowserDownloadOption = {
|
|
2101
2137
|
name: "Browser download callback function",
|
|
2102
|
-
cliFlag:
|
|
2103
|
-
description: () => /* @__PURE__ */ jsxs23(
|
|
2138
|
+
cliFlag: cliFlag33,
|
|
2139
|
+
description: () => /* @__PURE__ */ jsxs23(Fragment29, {
|
|
2104
2140
|
children: [
|
|
2105
2141
|
"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.",
|
|
2106
2142
|
" ",
|
|
2107
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ jsx29("a", {
|
|
2108
2144
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
2109
2145
|
children: "See here for how to use this option."
|
|
2110
2146
|
})
|
|
@@ -2122,9 +2158,9 @@ var onBrowserDownloadOption = {
|
|
|
2122
2158
|
};
|
|
2123
2159
|
|
|
2124
2160
|
// src/options/overwrite.tsx
|
|
2125
|
-
import { jsx as
|
|
2161
|
+
import { jsx as jsx30, jsxs as jsxs24, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
2126
2162
|
var shouldOverwrite = null;
|
|
2127
|
-
var
|
|
2163
|
+
var cliFlag34 = "overwrite";
|
|
2128
2164
|
var validate2 = (value3) => {
|
|
2129
2165
|
if (typeof value3 !== "boolean") {
|
|
2130
2166
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -2132,15 +2168,15 @@ var validate2 = (value3) => {
|
|
|
2132
2168
|
};
|
|
2133
2169
|
var overwriteOption = {
|
|
2134
2170
|
name: "Overwrite output",
|
|
2135
|
-
cliFlag:
|
|
2136
|
-
description: () => /* @__PURE__ */ jsxs24(
|
|
2171
|
+
cliFlag: cliFlag34,
|
|
2172
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment30, {
|
|
2137
2173
|
children: [
|
|
2138
2174
|
"If set to ",
|
|
2139
|
-
/* @__PURE__ */
|
|
2175
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2140
2176
|
children: "false"
|
|
2141
2177
|
}),
|
|
2142
2178
|
", will prevent rendering to a path that already exists. Default is ",
|
|
2143
|
-
/* @__PURE__ */
|
|
2179
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2144
2180
|
children: "true"
|
|
2145
2181
|
}),
|
|
2146
2182
|
"."
|
|
@@ -2150,11 +2186,11 @@ var overwriteOption = {
|
|
|
2150
2186
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
2151
2187
|
type: false,
|
|
2152
2188
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
2153
|
-
if (commandLine[
|
|
2154
|
-
validate2(commandLine[
|
|
2189
|
+
if (commandLine[cliFlag34] !== undefined) {
|
|
2190
|
+
validate2(commandLine[cliFlag34]);
|
|
2155
2191
|
return {
|
|
2156
2192
|
source: "cli",
|
|
2157
|
-
value: commandLine[
|
|
2193
|
+
value: commandLine[cliFlag34]
|
|
2158
2194
|
};
|
|
2159
2195
|
}
|
|
2160
2196
|
if (shouldOverwrite !== null) {
|
|
@@ -2175,21 +2211,21 @@ var overwriteOption = {
|
|
|
2175
2211
|
};
|
|
2176
2212
|
|
|
2177
2213
|
// src/options/prefer-lossless.tsx
|
|
2178
|
-
import { jsx as
|
|
2179
|
-
var
|
|
2214
|
+
import { jsx as jsx31, jsxs as jsxs25, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
2215
|
+
var cliFlag35 = "prefer-lossless";
|
|
2180
2216
|
var input = false;
|
|
2181
2217
|
var preferLosslessAudioOption = {
|
|
2182
2218
|
name: "Prefer lossless",
|
|
2183
|
-
cliFlag:
|
|
2184
|
-
description: () => /* @__PURE__ */ jsxs25(
|
|
2219
|
+
cliFlag: cliFlag35,
|
|
2220
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment31, {
|
|
2185
2221
|
children: [
|
|
2186
2222
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
2187
|
-
/* @__PURE__ */
|
|
2223
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2188
2224
|
children: "audioCodec"
|
|
2189
2225
|
}),
|
|
2190
2226
|
", it takes priority over",
|
|
2191
2227
|
" ",
|
|
2192
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2193
2229
|
children: "preferLossless"
|
|
2194
2230
|
}),
|
|
2195
2231
|
"."
|
|
@@ -2199,7 +2235,7 @@ var preferLosslessAudioOption = {
|
|
|
2199
2235
|
type: false,
|
|
2200
2236
|
ssrName: "preferLossless",
|
|
2201
2237
|
getValue: ({ commandLine }) => {
|
|
2202
|
-
if (commandLine[
|
|
2238
|
+
if (commandLine[cliFlag35]) {
|
|
2203
2239
|
return { value: true, source: "cli" };
|
|
2204
2240
|
}
|
|
2205
2241
|
if (input === true) {
|
|
@@ -2213,20 +2249,20 @@ var preferLosslessAudioOption = {
|
|
|
2213
2249
|
};
|
|
2214
2250
|
|
|
2215
2251
|
// src/options/public-dir.tsx
|
|
2216
|
-
import { jsx as
|
|
2217
|
-
var
|
|
2252
|
+
import { jsx as jsx32, jsxs as jsxs26, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2253
|
+
var cliFlag36 = "public-dir";
|
|
2218
2254
|
var currentPublicDir = null;
|
|
2219
2255
|
var publicDirOption = {
|
|
2220
2256
|
name: "Public Directory",
|
|
2221
|
-
cliFlag:
|
|
2257
|
+
cliFlag: cliFlag36,
|
|
2222
2258
|
description: () => {
|
|
2223
|
-
return /* @__PURE__ */ jsxs26(
|
|
2259
|
+
return /* @__PURE__ */ jsxs26(Fragment32, {
|
|
2224
2260
|
children: [
|
|
2225
2261
|
"Define the location of the",
|
|
2226
2262
|
" ",
|
|
2227
|
-
/* @__PURE__ */
|
|
2263
|
+
/* @__PURE__ */ jsx32("a", {
|
|
2228
2264
|
href: "/docs/terminology/public-dir",
|
|
2229
|
-
children: /* @__PURE__ */
|
|
2265
|
+
children: /* @__PURE__ */ jsx32("code", {
|
|
2230
2266
|
children: "public/ directory"
|
|
2231
2267
|
})
|
|
2232
2268
|
}),
|
|
@@ -2237,10 +2273,10 @@ var publicDirOption = {
|
|
|
2237
2273
|
ssrName: "publicDir",
|
|
2238
2274
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
2239
2275
|
getValue: ({ commandLine }) => {
|
|
2240
|
-
if (commandLine[
|
|
2276
|
+
if (commandLine[cliFlag36] !== undefined) {
|
|
2241
2277
|
return {
|
|
2242
2278
|
source: "cli",
|
|
2243
|
-
value: commandLine[
|
|
2279
|
+
value: commandLine[cliFlag36]
|
|
2244
2280
|
};
|
|
2245
2281
|
}
|
|
2246
2282
|
if (currentPublicDir !== null) {
|
|
@@ -2261,25 +2297,25 @@ var publicDirOption = {
|
|
|
2261
2297
|
};
|
|
2262
2298
|
|
|
2263
2299
|
// src/options/public-path.tsx
|
|
2264
|
-
import { jsx as
|
|
2265
|
-
var
|
|
2300
|
+
import { jsx as jsx33, jsxs as jsxs27, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2301
|
+
var cliFlag37 = "public-path";
|
|
2266
2302
|
var currentPublicPath = null;
|
|
2267
2303
|
var publicPathOption = {
|
|
2268
2304
|
name: "Public Path",
|
|
2269
|
-
cliFlag:
|
|
2305
|
+
cliFlag: cliFlag37,
|
|
2270
2306
|
description: () => {
|
|
2271
|
-
return /* @__PURE__ */ jsxs27(
|
|
2307
|
+
return /* @__PURE__ */ jsxs27(Fragment33, {
|
|
2272
2308
|
children: [
|
|
2273
2309
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
2274
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2275
2311
|
children: "/"
|
|
2276
2312
|
}),
|
|
2277
2313
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
2278
|
-
/* @__PURE__ */
|
|
2314
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2279
2315
|
children: "https://localhost:3000/"
|
|
2280
2316
|
}),
|
|
2281
2317
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
2282
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2283
2319
|
children: "/sites/my-site/"
|
|
2284
2320
|
}),
|
|
2285
2321
|
"), you should set this to the subdirectory."
|
|
@@ -2289,10 +2325,10 @@ var publicPathOption = {
|
|
|
2289
2325
|
ssrName: "publicPath",
|
|
2290
2326
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
2291
2327
|
getValue: ({ commandLine }) => {
|
|
2292
|
-
if (commandLine[
|
|
2328
|
+
if (commandLine[cliFlag37] !== undefined) {
|
|
2293
2329
|
return {
|
|
2294
2330
|
source: "cli",
|
|
2295
|
-
value: commandLine[
|
|
2331
|
+
value: commandLine[cliFlag37]
|
|
2296
2332
|
};
|
|
2297
2333
|
}
|
|
2298
2334
|
if (currentPublicPath !== null) {
|
|
@@ -2313,25 +2349,25 @@ var publicPathOption = {
|
|
|
2313
2349
|
};
|
|
2314
2350
|
|
|
2315
2351
|
// src/options/repro.tsx
|
|
2316
|
-
import { jsx as
|
|
2352
|
+
import { jsx as jsx34, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2317
2353
|
var enableRepro = false;
|
|
2318
2354
|
var setRepro = (should) => {
|
|
2319
2355
|
enableRepro = should;
|
|
2320
2356
|
};
|
|
2321
|
-
var
|
|
2357
|
+
var cliFlag38 = "repro";
|
|
2322
2358
|
var reproOption = {
|
|
2323
2359
|
name: "Create reproduction",
|
|
2324
|
-
cliFlag:
|
|
2325
|
-
description: () => /* @__PURE__ */
|
|
2360
|
+
cliFlag: cliFlag38,
|
|
2361
|
+
description: () => /* @__PURE__ */ jsx34(Fragment34, {
|
|
2326
2362
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
2327
2363
|
}),
|
|
2328
2364
|
ssrName: "repro",
|
|
2329
2365
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
2330
2366
|
type: false,
|
|
2331
2367
|
getValue: ({ commandLine }) => {
|
|
2332
|
-
if (commandLine[
|
|
2368
|
+
if (commandLine[cliFlag38] !== undefined) {
|
|
2333
2369
|
return {
|
|
2334
|
-
value: commandLine[
|
|
2370
|
+
value: commandLine[cliFlag38],
|
|
2335
2371
|
source: "cli"
|
|
2336
2372
|
};
|
|
2337
2373
|
}
|
|
@@ -2350,9 +2386,9 @@ var reproOption = {
|
|
|
2350
2386
|
};
|
|
2351
2387
|
|
|
2352
2388
|
// src/options/scale.tsx
|
|
2353
|
-
import { jsx as
|
|
2389
|
+
import { jsx as jsx35, jsxs as jsxs28, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2354
2390
|
var currentScale = 1;
|
|
2355
|
-
var
|
|
2391
|
+
var cliFlag39 = "scale";
|
|
2356
2392
|
var validateScale = (value3) => {
|
|
2357
2393
|
if (typeof value3 !== "number") {
|
|
2358
2394
|
throw new Error("scale must be a number.");
|
|
@@ -2360,11 +2396,11 @@ var validateScale = (value3) => {
|
|
|
2360
2396
|
};
|
|
2361
2397
|
var scaleOption = {
|
|
2362
2398
|
name: "Scale",
|
|
2363
|
-
cliFlag:
|
|
2364
|
-
description: () => /* @__PURE__ */ jsxs28(
|
|
2399
|
+
cliFlag: cliFlag39,
|
|
2400
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment35, {
|
|
2365
2401
|
children: [
|
|
2366
2402
|
"Scales the output by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
2367
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2368
2404
|
children: "1.5"
|
|
2369
2405
|
}),
|
|
2370
2406
|
". Vector elements like fonts and HTML markups will be rendered with extra details."
|
|
@@ -2374,11 +2410,11 @@ var scaleOption = {
|
|
|
2374
2410
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
2375
2411
|
type: 0,
|
|
2376
2412
|
getValue: ({ commandLine }) => {
|
|
2377
|
-
if (commandLine[
|
|
2378
|
-
validateScale(commandLine[
|
|
2413
|
+
if (commandLine[cliFlag39] !== undefined) {
|
|
2414
|
+
validateScale(commandLine[cliFlag39]);
|
|
2379
2415
|
return {
|
|
2380
2416
|
source: "cli",
|
|
2381
|
-
value: commandLine[
|
|
2417
|
+
value: commandLine[cliFlag39]
|
|
2382
2418
|
};
|
|
2383
2419
|
}
|
|
2384
2420
|
if (currentScale !== null) {
|
|
@@ -2399,16 +2435,16 @@ var scaleOption = {
|
|
|
2399
2435
|
|
|
2400
2436
|
// src/options/throw-if-site-exists.tsx
|
|
2401
2437
|
var DEFAULT5 = false;
|
|
2402
|
-
var
|
|
2438
|
+
var cliFlag40 = "throw-if-site-exists";
|
|
2403
2439
|
var throwIfSiteExistsOption = {
|
|
2404
|
-
cliFlag:
|
|
2440
|
+
cliFlag: cliFlag40,
|
|
2405
2441
|
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.`,
|
|
2406
2442
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
2407
2443
|
getValue: ({ commandLine }) => {
|
|
2408
|
-
if (commandLine[
|
|
2444
|
+
if (commandLine[cliFlag40]) {
|
|
2409
2445
|
return {
|
|
2410
2446
|
source: "cli",
|
|
2411
|
-
value: commandLine[
|
|
2447
|
+
value: commandLine[cliFlag40]
|
|
2412
2448
|
};
|
|
2413
2449
|
}
|
|
2414
2450
|
return {
|
|
@@ -2425,35 +2461,35 @@ var throwIfSiteExistsOption = {
|
|
|
2425
2461
|
};
|
|
2426
2462
|
|
|
2427
2463
|
// src/options/timeout.tsx
|
|
2428
|
-
import { jsx as
|
|
2464
|
+
import { jsx as jsx36, jsxs as jsxs29, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2429
2465
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
2430
2466
|
var validate3 = (value3) => {
|
|
2431
2467
|
if (typeof value3 !== "number") {
|
|
2432
2468
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
2433
2469
|
}
|
|
2434
2470
|
};
|
|
2435
|
-
var
|
|
2471
|
+
var cliFlag41 = "timeout";
|
|
2436
2472
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
2437
2473
|
name: "delayRender() timeout",
|
|
2438
|
-
cliFlag:
|
|
2439
|
-
description: () => /* @__PURE__ */ jsxs29(
|
|
2474
|
+
cliFlag: cliFlag41,
|
|
2475
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment36, {
|
|
2440
2476
|
children: [
|
|
2441
2477
|
"A number describing how long the render may take to resolve all",
|
|
2442
2478
|
" ",
|
|
2443
|
-
/* @__PURE__ */
|
|
2479
|
+
/* @__PURE__ */ jsx36("a", {
|
|
2444
2480
|
href: "https://remotion.dev/docs/delay-render",
|
|
2445
|
-
children: /* @__PURE__ */
|
|
2481
|
+
children: /* @__PURE__ */ jsx36("code", {
|
|
2446
2482
|
children: "delayRender()"
|
|
2447
2483
|
})
|
|
2448
2484
|
}),
|
|
2449
2485
|
" ",
|
|
2450
2486
|
"calls ",
|
|
2451
|
-
/* @__PURE__ */
|
|
2487
|
+
/* @__PURE__ */ jsx36("a", {
|
|
2452
2488
|
href: "https://remotion.dev/docs/timeout",
|
|
2453
2489
|
children: "before it times out"
|
|
2454
2490
|
}),
|
|
2455
2491
|
". Default: ",
|
|
2456
|
-
/* @__PURE__ */
|
|
2492
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2457
2493
|
children: "30000"
|
|
2458
2494
|
})
|
|
2459
2495
|
]
|
|
@@ -2462,10 +2498,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2462
2498
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
2463
2499
|
type: 0,
|
|
2464
2500
|
getValue: ({ commandLine }) => {
|
|
2465
|
-
if (commandLine[
|
|
2501
|
+
if (commandLine[cliFlag41] !== undefined) {
|
|
2466
2502
|
return {
|
|
2467
2503
|
source: "cli",
|
|
2468
|
-
value: commandLine[
|
|
2504
|
+
value: commandLine[cliFlag41]
|
|
2469
2505
|
};
|
|
2470
2506
|
}
|
|
2471
2507
|
if (currentTimeout !== null) {
|
|
@@ -2487,26 +2523,26 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2487
2523
|
};
|
|
2488
2524
|
|
|
2489
2525
|
// src/options/video-bitrate.tsx
|
|
2490
|
-
import { jsx as
|
|
2526
|
+
import { jsx as jsx37, jsxs as jsxs30, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2491
2527
|
var videoBitrate = null;
|
|
2492
|
-
var
|
|
2528
|
+
var cliFlag42 = "video-bitrate";
|
|
2493
2529
|
var videoBitrateOption = {
|
|
2494
2530
|
name: "Video Bitrate",
|
|
2495
|
-
cliFlag:
|
|
2496
|
-
description: () => /* @__PURE__ */ jsxs30(
|
|
2531
|
+
cliFlag: cliFlag42,
|
|
2532
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment37, {
|
|
2497
2533
|
children: [
|
|
2498
2534
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
2499
2535
|
"'",
|
|
2500
2536
|
"s",
|
|
2501
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2502
2538
|
children: "-b:v"
|
|
2503
2539
|
}),
|
|
2504
2540
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
2505
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2506
2542
|
children: "512K"
|
|
2507
2543
|
}),
|
|
2508
2544
|
" for 512 kbps, ",
|
|
2509
|
-
/* @__PURE__ */
|
|
2545
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2510
2546
|
children: "1M"
|
|
2511
2547
|
}),
|
|
2512
2548
|
" for 1 Mbps."
|
|
@@ -2516,10 +2552,10 @@ var videoBitrateOption = {
|
|
|
2516
2552
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
2517
2553
|
type: "",
|
|
2518
2554
|
getValue: ({ commandLine }) => {
|
|
2519
|
-
if (commandLine[
|
|
2555
|
+
if (commandLine[cliFlag42] !== undefined) {
|
|
2520
2556
|
return {
|
|
2521
2557
|
source: "cli",
|
|
2522
|
-
value: commandLine[
|
|
2558
|
+
value: commandLine[cliFlag42]
|
|
2523
2559
|
};
|
|
2524
2560
|
}
|
|
2525
2561
|
if (videoBitrate !== null) {
|
|
@@ -2654,7 +2690,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
2654
2690
|
};
|
|
2655
2691
|
|
|
2656
2692
|
// src/options/video-codec.tsx
|
|
2657
|
-
import { jsx as
|
|
2693
|
+
import { jsx as jsx38, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2658
2694
|
var codec;
|
|
2659
2695
|
var setCodec = (newCodec) => {
|
|
2660
2696
|
if (newCodec === undefined) {
|
|
@@ -2678,11 +2714,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
2678
2714
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
2679
2715
|
};
|
|
2680
2716
|
};
|
|
2681
|
-
var
|
|
2717
|
+
var cliFlag43 = "codec";
|
|
2682
2718
|
var videoCodecOption = {
|
|
2683
2719
|
name: "Codec",
|
|
2684
|
-
cliFlag:
|
|
2685
|
-
description: () => /* @__PURE__ */
|
|
2720
|
+
cliFlag: cliFlag43,
|
|
2721
|
+
description: () => /* @__PURE__ */ jsx38(Fragment38, {
|
|
2686
2722
|
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."
|
|
2687
2723
|
}),
|
|
2688
2724
|
ssrName: "codec",
|
|
@@ -2705,7 +2741,7 @@ var videoCodecOption = {
|
|
|
2705
2741
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
2706
2742
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
2707
2743
|
}
|
|
2708
|
-
const cliArgument = commandLine[
|
|
2744
|
+
const cliArgument = commandLine[cliFlag43];
|
|
2709
2745
|
if (cliArgument) {
|
|
2710
2746
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
2711
2747
|
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.`);
|
|
@@ -2754,12 +2790,12 @@ var videoCodecOption = {
|
|
|
2754
2790
|
};
|
|
2755
2791
|
|
|
2756
2792
|
// src/options/webhook-custom-data.tsx
|
|
2757
|
-
import { jsxs as jsxs31, Fragment as
|
|
2758
|
-
var
|
|
2793
|
+
import { jsxs as jsxs31, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2794
|
+
var cliFlag44 = "webhook-custom-data";
|
|
2759
2795
|
var webhookCustomDataOption = {
|
|
2760
2796
|
name: "Webhook custom data",
|
|
2761
|
-
cliFlag:
|
|
2762
|
-
description: (type) => /* @__PURE__ */ jsxs31(
|
|
2797
|
+
cliFlag: cliFlag44,
|
|
2798
|
+
description: (type) => /* @__PURE__ */ jsxs31(Fragment39, {
|
|
2763
2799
|
children: [
|
|
2764
2800
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
2765
2801
|
" ",
|
|
@@ -2778,7 +2814,7 @@ var webhookCustomDataOption = {
|
|
|
2778
2814
|
};
|
|
2779
2815
|
|
|
2780
2816
|
// src/options/x264-preset.tsx
|
|
2781
|
-
import { jsx as
|
|
2817
|
+
import { jsx as jsx39, jsxs as jsxs32, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2782
2818
|
var x264PresetOptions = [
|
|
2783
2819
|
"ultrafast",
|
|
2784
2820
|
"superfast",
|
|
@@ -2792,63 +2828,63 @@ var x264PresetOptions = [
|
|
|
2792
2828
|
"placebo"
|
|
2793
2829
|
];
|
|
2794
2830
|
var preset = null;
|
|
2795
|
-
var
|
|
2831
|
+
var cliFlag45 = "x264-preset";
|
|
2796
2832
|
var DEFAULT_PRESET = "medium";
|
|
2797
2833
|
var x264Option = {
|
|
2798
2834
|
name: "x264 Preset",
|
|
2799
|
-
cliFlag:
|
|
2800
|
-
description: () => /* @__PURE__ */ jsxs32(
|
|
2835
|
+
cliFlag: cliFlag45,
|
|
2836
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment40, {
|
|
2801
2837
|
children: [
|
|
2802
2838
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
2803
2839
|
" ",
|
|
2804
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2805
2841
|
children: "h264"
|
|
2806
2842
|
}),
|
|
2807
2843
|
" codec.",
|
|
2808
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ jsx39("br", {}),
|
|
2809
2845
|
"Possible values: ",
|
|
2810
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2811
2847
|
children: "superfast"
|
|
2812
2848
|
}),
|
|
2813
2849
|
", ",
|
|
2814
|
-
/* @__PURE__ */
|
|
2850
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2815
2851
|
children: "veryfast"
|
|
2816
2852
|
}),
|
|
2817
2853
|
",",
|
|
2818
2854
|
" ",
|
|
2819
|
-
/* @__PURE__ */
|
|
2855
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2820
2856
|
children: "faster"
|
|
2821
2857
|
}),
|
|
2822
2858
|
", ",
|
|
2823
|
-
/* @__PURE__ */
|
|
2859
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2824
2860
|
children: "fast"
|
|
2825
2861
|
}),
|
|
2826
2862
|
", ",
|
|
2827
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2828
2864
|
children: "medium"
|
|
2829
2865
|
}),
|
|
2830
2866
|
",",
|
|
2831
2867
|
" ",
|
|
2832
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2833
2869
|
children: "slow"
|
|
2834
2870
|
}),
|
|
2835
2871
|
", ",
|
|
2836
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2837
2873
|
children: "slower"
|
|
2838
2874
|
}),
|
|
2839
2875
|
", ",
|
|
2840
|
-
/* @__PURE__ */
|
|
2876
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2841
2877
|
children: "veryslow"
|
|
2842
2878
|
}),
|
|
2843
2879
|
",",
|
|
2844
2880
|
" ",
|
|
2845
|
-
/* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2846
2882
|
children: "placebo"
|
|
2847
2883
|
}),
|
|
2848
2884
|
".",
|
|
2849
|
-
/* @__PURE__ */
|
|
2885
|
+
/* @__PURE__ */ jsx39("br", {}),
|
|
2850
2886
|
"Default: ",
|
|
2851
|
-
/* @__PURE__ */
|
|
2887
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2852
2888
|
children: DEFAULT_PRESET
|
|
2853
2889
|
})
|
|
2854
2890
|
]
|
|
@@ -2857,7 +2893,7 @@ var x264Option = {
|
|
|
2857
2893
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2858
2894
|
type: "fast",
|
|
2859
2895
|
getValue: ({ commandLine }) => {
|
|
2860
|
-
const value3 = commandLine[
|
|
2896
|
+
const value3 = commandLine[cliFlag45];
|
|
2861
2897
|
if (typeof value3 !== "undefined") {
|
|
2862
2898
|
return { value: value3, source: "cli" };
|
|
2863
2899
|
}
|
|
@@ -2887,6 +2923,7 @@ var allOptions = {
|
|
|
2887
2923
|
webhookCustomDataOption,
|
|
2888
2924
|
colorSpaceOption,
|
|
2889
2925
|
deleteAfterOption,
|
|
2926
|
+
disallowParallelEncodingOption,
|
|
2890
2927
|
folderExpiryOption,
|
|
2891
2928
|
enableMultiprocessOnLinuxOption,
|
|
2892
2929
|
glOption,
|
|
@@ -2931,6 +2968,7 @@ var optionsMap = {
|
|
|
2931
2968
|
audioBitrate: audioBitrateOption,
|
|
2932
2969
|
colorSpace: colorSpaceOption,
|
|
2933
2970
|
codec: videoCodecOption,
|
|
2971
|
+
disallowParallelEncoding: disallowParallelEncodingOption,
|
|
2934
2972
|
jpegQuality: jpegQualityOption,
|
|
2935
2973
|
encodingMaxRate: encodingMaxRateOption,
|
|
2936
2974
|
encodingBufferSize: encodingBufferSizeOption,
|