@remotion/renderer 4.0.305 → 4.0.308
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +15 -0
- package/dist/esm/client.mjs +349 -311
- package/dist/options/cross-site-isolation.d.ts +15 -0
- package/dist/options/cross-site-isolation.js +29 -0
- package/dist/options/index.d.ts +15 -0
- package/dist/options/index.js +2 -0
- package/dist/options/option.d.ts +1 -1
- package/package.json +12 -12
- package/ensure-browser.mjs +0 -3311
package/dist/esm/client.mjs
CHANGED
|
@@ -878,38 +878,75 @@ var crfOption = {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
|
|
881
|
-
// src/options/
|
|
881
|
+
// src/options/cross-site-isolation.tsx
|
|
882
882
|
import { jsx as jsx8, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
883
|
-
var
|
|
883
|
+
var enableCrossSiteIsolation = false;
|
|
884
|
+
var cliFlag10 = "cross-site-isolation";
|
|
885
|
+
var enableCrossSiteIsolationOption = {
|
|
886
|
+
name: "Enable Cross-Site Isolation",
|
|
887
|
+
cliFlag: cliFlag10,
|
|
888
|
+
description: () => /* @__PURE__ */ jsxs6(Fragment8, {
|
|
889
|
+
children: [
|
|
890
|
+
"Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for",
|
|
891
|
+
" ",
|
|
892
|
+
/* @__PURE__ */ jsx8("code", {
|
|
893
|
+
children: "@remotion/whisper-web"
|
|
894
|
+
}),
|
|
895
|
+
")."
|
|
896
|
+
]
|
|
897
|
+
}),
|
|
898
|
+
ssrName: null,
|
|
899
|
+
docLink: "https://www.remotion.dev/docs/config#setenablecrosssiteisolation",
|
|
900
|
+
type: false,
|
|
901
|
+
getValue: ({ commandLine }) => {
|
|
902
|
+
if (commandLine[cliFlag10] !== undefined) {
|
|
903
|
+
return {
|
|
904
|
+
value: commandLine[cliFlag10],
|
|
905
|
+
source: "cli"
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
return {
|
|
909
|
+
value: enableCrossSiteIsolation,
|
|
910
|
+
source: "config"
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
setConfig(value) {
|
|
914
|
+
enableCrossSiteIsolation = value;
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
// src/options/delete-after.tsx
|
|
919
|
+
import { jsx as jsx9, jsxs as jsxs7, Fragment as Fragment9 } from "react/jsx-runtime";
|
|
920
|
+
var cliFlag11 = "delete-after";
|
|
884
921
|
var deleteAfter = null;
|
|
885
922
|
var deleteAfterOption = {
|
|
886
923
|
name: "Lambda render expiration",
|
|
887
|
-
cliFlag:
|
|
924
|
+
cliFlag: cliFlag11,
|
|
888
925
|
description: () => {
|
|
889
|
-
return /* @__PURE__ */
|
|
926
|
+
return /* @__PURE__ */ jsxs7(Fragment9, {
|
|
890
927
|
children: [
|
|
891
928
|
"Automatically delete the render after a certain period. Accepted values are ",
|
|
892
|
-
/* @__PURE__ */
|
|
929
|
+
/* @__PURE__ */ jsx9("code", {
|
|
893
930
|
children: "1-day"
|
|
894
931
|
}),
|
|
895
932
|
", ",
|
|
896
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ jsx9("code", {
|
|
897
934
|
children: "3-days"
|
|
898
935
|
}),
|
|
899
936
|
", ",
|
|
900
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ jsx9("code", {
|
|
901
938
|
children: "7-days"
|
|
902
939
|
}),
|
|
903
940
|
" and",
|
|
904
941
|
" ",
|
|
905
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ jsx9("code", {
|
|
906
943
|
children: "30-days"
|
|
907
944
|
}),
|
|
908
945
|
".",
|
|
909
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ jsx9("br", {}),
|
|
910
947
|
" For this to work, your bucket needs to have",
|
|
911
948
|
" ",
|
|
912
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ jsx9("a", {
|
|
913
950
|
href: "/docs/lambda/autodelete",
|
|
914
951
|
children: "lifecycles enabled"
|
|
915
952
|
}),
|
|
@@ -921,10 +958,10 @@ var deleteAfterOption = {
|
|
|
921
958
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
922
959
|
type: "1-day",
|
|
923
960
|
getValue: ({ commandLine }) => {
|
|
924
|
-
if (commandLine[
|
|
961
|
+
if (commandLine[cliFlag11] !== undefined) {
|
|
925
962
|
return {
|
|
926
963
|
source: "cli",
|
|
927
|
-
value: commandLine[
|
|
964
|
+
value: commandLine[cliFlag11]
|
|
928
965
|
};
|
|
929
966
|
}
|
|
930
967
|
if (deleteAfter !== null) {
|
|
@@ -945,16 +982,16 @@ var deleteAfterOption = {
|
|
|
945
982
|
|
|
946
983
|
// src/options/disable-git-source.tsx
|
|
947
984
|
var DEFAULT2 = false;
|
|
948
|
-
var
|
|
985
|
+
var cliFlag12 = "disable-git-source";
|
|
949
986
|
var disableGitSourceOption = {
|
|
950
|
-
cliFlag:
|
|
987
|
+
cliFlag: cliFlag12,
|
|
951
988
|
description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
|
|
952
989
|
docLink: "https://remotion.dev/docs/bundle",
|
|
953
990
|
getValue: ({ commandLine }) => {
|
|
954
|
-
if (commandLine[
|
|
991
|
+
if (commandLine[cliFlag12]) {
|
|
955
992
|
return {
|
|
956
993
|
source: "cli",
|
|
957
|
-
value: commandLine[
|
|
994
|
+
value: commandLine[cliFlag12]
|
|
958
995
|
};
|
|
959
996
|
}
|
|
960
997
|
return {
|
|
@@ -971,17 +1008,17 @@ var disableGitSourceOption = {
|
|
|
971
1008
|
};
|
|
972
1009
|
|
|
973
1010
|
// src/options/enable-lambda-insights.tsx
|
|
974
|
-
import { jsx as
|
|
975
|
-
var
|
|
1011
|
+
import { jsx as jsx10, jsxs as jsxs8, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
1012
|
+
var cliFlag13 = "enable-lambda-insights";
|
|
976
1013
|
var option = false;
|
|
977
1014
|
var enableLambdaInsights = {
|
|
978
1015
|
name: "Enable Lambda Insights",
|
|
979
|
-
cliFlag:
|
|
980
|
-
description: () => /* @__PURE__ */
|
|
1016
|
+
cliFlag: cliFlag13,
|
|
1017
|
+
description: () => /* @__PURE__ */ jsxs8(Fragment10, {
|
|
981
1018
|
children: [
|
|
982
1019
|
"Enable",
|
|
983
1020
|
" ",
|
|
984
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ jsx10("a", {
|
|
985
1022
|
href: "https://remotion.dev/docs/lambda/insights",
|
|
986
1023
|
children: "Lambda Insights in AWS CloudWatch"
|
|
987
1024
|
}),
|
|
@@ -995,9 +1032,9 @@ var enableLambdaInsights = {
|
|
|
995
1032
|
option = value;
|
|
996
1033
|
},
|
|
997
1034
|
getValue: ({ commandLine }) => {
|
|
998
|
-
if (commandLine[
|
|
1035
|
+
if (commandLine[cliFlag13] !== undefined) {
|
|
999
1036
|
return {
|
|
1000
|
-
value: commandLine[
|
|
1037
|
+
value: commandLine[cliFlag13],
|
|
1001
1038
|
source: "cli"
|
|
1002
1039
|
};
|
|
1003
1040
|
}
|
|
@@ -1015,37 +1052,37 @@ var enableLambdaInsights = {
|
|
|
1015
1052
|
};
|
|
1016
1053
|
|
|
1017
1054
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
1018
|
-
import { jsx as
|
|
1055
|
+
import { jsx as jsx11, jsxs as jsxs9, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
1019
1056
|
var DEFAULT_VALUE = true;
|
|
1020
1057
|
var multiProcessOnLinux = DEFAULT_VALUE;
|
|
1021
|
-
var
|
|
1058
|
+
var cliFlag14 = "enable-multiprocess-on-linux";
|
|
1022
1059
|
var enableMultiprocessOnLinuxOption = {
|
|
1023
1060
|
name: "Enable Multiprocess on Linux",
|
|
1024
|
-
cliFlag:
|
|
1025
|
-
description: () => /* @__PURE__ */
|
|
1061
|
+
cliFlag: cliFlag14,
|
|
1062
|
+
description: () => /* @__PURE__ */ jsxs9(Fragment11, {
|
|
1026
1063
|
children: [
|
|
1027
1064
|
"Removes the ",
|
|
1028
|
-
/* @__PURE__ */
|
|
1065
|
+
/* @__PURE__ */ jsx11("code", {
|
|
1029
1066
|
children: "--single-process"
|
|
1030
1067
|
}),
|
|
1031
1068
|
" 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.",
|
|
1032
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ jsx11("br", {}),
|
|
1033
1070
|
"Default: ",
|
|
1034
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ jsx11("code", {
|
|
1035
1072
|
children: "false"
|
|
1036
1073
|
}),
|
|
1037
1074
|
" until v4.0.136, then ",
|
|
1038
|
-
/* @__PURE__ */
|
|
1075
|
+
/* @__PURE__ */ jsx11("code", {
|
|
1039
1076
|
children: "true"
|
|
1040
1077
|
}),
|
|
1041
1078
|
" from v4.0.137 on because newer Chrome versions ",
|
|
1042
1079
|
"don't",
|
|
1043
1080
|
" allow rendering with the ",
|
|
1044
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ jsx11("code", {
|
|
1045
1082
|
children: "--single-process"
|
|
1046
1083
|
}),
|
|
1047
1084
|
" flag. ",
|
|
1048
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ jsx11("br", {}),
|
|
1049
1086
|
"This flag will be removed in Remotion v5.0."
|
|
1050
1087
|
]
|
|
1051
1088
|
}),
|
|
@@ -1053,10 +1090,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1053
1090
|
docLink: "https://www.remotion.dev/docs/chromium-flags",
|
|
1054
1091
|
type: false,
|
|
1055
1092
|
getValue: ({ commandLine }) => {
|
|
1056
|
-
if (commandLine[
|
|
1093
|
+
if (commandLine[cliFlag14] !== undefined) {
|
|
1057
1094
|
return {
|
|
1058
1095
|
source: "cli",
|
|
1059
|
-
value: commandLine[
|
|
1096
|
+
value: commandLine[cliFlag14]
|
|
1060
1097
|
};
|
|
1061
1098
|
}
|
|
1062
1099
|
if (multiProcessOnLinux !== false) {
|
|
@@ -1076,19 +1113,19 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1076
1113
|
};
|
|
1077
1114
|
|
|
1078
1115
|
// src/options/encoding-buffer-size.tsx
|
|
1079
|
-
import { jsx as
|
|
1116
|
+
import { jsx as jsx12, jsxs as jsxs10, Fragment as Fragment12 } from "react/jsx-runtime";
|
|
1080
1117
|
var encodingBufferSize = null;
|
|
1081
1118
|
var setEncodingBufferSize = (bitrate) => {
|
|
1082
1119
|
encodingBufferSize = bitrate;
|
|
1083
1120
|
};
|
|
1084
|
-
var
|
|
1121
|
+
var cliFlag15 = "buffer-size";
|
|
1085
1122
|
var encodingBufferSizeOption = {
|
|
1086
1123
|
name: "FFmpeg -bufsize flag",
|
|
1087
|
-
cliFlag:
|
|
1088
|
-
description: () => /* @__PURE__ */
|
|
1124
|
+
cliFlag: cliFlag15,
|
|
1125
|
+
description: () => /* @__PURE__ */ jsxs10(Fragment12, {
|
|
1089
1126
|
children: [
|
|
1090
1127
|
"The value for the ",
|
|
1091
|
-
/* @__PURE__ */
|
|
1128
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1092
1129
|
children: "-bufsize"
|
|
1093
1130
|
}),
|
|
1094
1131
|
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
|
|
@@ -1098,9 +1135,9 @@ var encodingBufferSizeOption = {
|
|
|
1098
1135
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
|
|
1099
1136
|
type: "",
|
|
1100
1137
|
getValue: ({ commandLine }) => {
|
|
1101
|
-
if (commandLine[
|
|
1138
|
+
if (commandLine[cliFlag15] !== undefined) {
|
|
1102
1139
|
return {
|
|
1103
|
-
value: commandLine[
|
|
1140
|
+
value: commandLine[cliFlag15],
|
|
1104
1141
|
source: "cli"
|
|
1105
1142
|
};
|
|
1106
1143
|
}
|
|
@@ -1119,16 +1156,16 @@ var encodingBufferSizeOption = {
|
|
|
1119
1156
|
};
|
|
1120
1157
|
|
|
1121
1158
|
// src/options/encoding-max-rate.tsx
|
|
1122
|
-
import { jsx as
|
|
1159
|
+
import { jsx as jsx13, jsxs as jsxs11, Fragment as Fragment13 } from "react/jsx-runtime";
|
|
1123
1160
|
var encodingMaxRate = null;
|
|
1124
|
-
var
|
|
1161
|
+
var cliFlag16 = "max-rate";
|
|
1125
1162
|
var encodingMaxRateOption = {
|
|
1126
1163
|
name: "FFmpeg -maxrate flag",
|
|
1127
|
-
cliFlag:
|
|
1128
|
-
description: () => /* @__PURE__ */
|
|
1164
|
+
cliFlag: cliFlag16,
|
|
1165
|
+
description: () => /* @__PURE__ */ jsxs11(Fragment13, {
|
|
1129
1166
|
children: [
|
|
1130
1167
|
"The value for the ",
|
|
1131
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ jsx13("code", {
|
|
1132
1169
|
children: "-maxrate"
|
|
1133
1170
|
}),
|
|
1134
1171
|
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
|
|
@@ -1138,9 +1175,9 @@ var encodingMaxRateOption = {
|
|
|
1138
1175
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
|
|
1139
1176
|
type: "",
|
|
1140
1177
|
getValue: ({ commandLine }) => {
|
|
1141
|
-
if (commandLine[
|
|
1178
|
+
if (commandLine[cliFlag16] !== undefined) {
|
|
1142
1179
|
return {
|
|
1143
|
-
value: commandLine[
|
|
1180
|
+
value: commandLine[cliFlag16],
|
|
1144
1181
|
source: "cli"
|
|
1145
1182
|
};
|
|
1146
1183
|
}
|
|
@@ -1161,21 +1198,21 @@ var encodingMaxRateOption = {
|
|
|
1161
1198
|
};
|
|
1162
1199
|
|
|
1163
1200
|
// src/options/enforce-audio.tsx
|
|
1164
|
-
import { jsx as
|
|
1201
|
+
import { jsx as jsx14, Fragment as Fragment14 } from "react/jsx-runtime";
|
|
1165
1202
|
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
|
|
1166
1203
|
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
1167
|
-
var
|
|
1204
|
+
var cliFlag17 = "enforce-audio-track";
|
|
1168
1205
|
var enforceAudioOption = {
|
|
1169
1206
|
name: "Enforce Audio Track",
|
|
1170
|
-
cliFlag:
|
|
1171
|
-
description: () => /* @__PURE__ */
|
|
1207
|
+
cliFlag: cliFlag17,
|
|
1208
|
+
description: () => /* @__PURE__ */ jsx14(Fragment14, {
|
|
1172
1209
|
children: "Render a silent audio track if there would be none otherwise."
|
|
1173
1210
|
}),
|
|
1174
1211
|
ssrName: "enforceAudioTrack",
|
|
1175
1212
|
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
|
|
1176
1213
|
type: false,
|
|
1177
1214
|
getValue: ({ commandLine }) => {
|
|
1178
|
-
if (commandLine[
|
|
1215
|
+
if (commandLine[cliFlag17]) {
|
|
1179
1216
|
return {
|
|
1180
1217
|
source: "cli",
|
|
1181
1218
|
value: true
|
|
@@ -1198,22 +1235,22 @@ var enforceAudioOption = {
|
|
|
1198
1235
|
};
|
|
1199
1236
|
|
|
1200
1237
|
// src/options/folder-expiry.tsx
|
|
1201
|
-
import { jsx as
|
|
1238
|
+
import { jsx as jsx15, jsxs as jsxs12, Fragment as Fragment15 } from "react/jsx-runtime";
|
|
1202
1239
|
var enableFolderExpiry = null;
|
|
1203
|
-
var
|
|
1240
|
+
var cliFlag18 = "enable-folder-expiry";
|
|
1204
1241
|
var folderExpiryOption = {
|
|
1205
1242
|
name: "Lambda render expiration",
|
|
1206
|
-
cliFlag:
|
|
1243
|
+
cliFlag: cliFlag18,
|
|
1207
1244
|
description: () => {
|
|
1208
|
-
return /* @__PURE__ */
|
|
1245
|
+
return /* @__PURE__ */ jsxs12(Fragment15, {
|
|
1209
1246
|
children: [
|
|
1210
1247
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
1211
1248
|
" ",
|
|
1212
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ jsx15("code", {
|
|
1213
1250
|
children: "null"
|
|
1214
1251
|
}),
|
|
1215
1252
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
1216
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ jsx15("a", {
|
|
1217
1254
|
href: "/docs/lambda/autodelete",
|
|
1218
1255
|
children: "Lambda autodelete"
|
|
1219
1256
|
}),
|
|
@@ -1225,10 +1262,10 @@ var folderExpiryOption = {
|
|
|
1225
1262
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1226
1263
|
type: false,
|
|
1227
1264
|
getValue: ({ commandLine }) => {
|
|
1228
|
-
if (commandLine[
|
|
1265
|
+
if (commandLine[cliFlag18] !== undefined) {
|
|
1229
1266
|
return {
|
|
1230
1267
|
source: "cli",
|
|
1231
|
-
value: commandLine[
|
|
1268
|
+
value: commandLine[cliFlag18]
|
|
1232
1269
|
};
|
|
1233
1270
|
}
|
|
1234
1271
|
if (enableFolderExpiry !== null) {
|
|
@@ -1248,24 +1285,24 @@ var folderExpiryOption = {
|
|
|
1248
1285
|
};
|
|
1249
1286
|
|
|
1250
1287
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
1251
|
-
import { jsx as
|
|
1288
|
+
import { jsx as jsx16, jsxs as jsxs13, Fragment as Fragment16 } from "react/jsx-runtime";
|
|
1252
1289
|
var DEFAULT3 = false;
|
|
1253
1290
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
1254
|
-
var
|
|
1291
|
+
var cliFlag19 = "for-seamless-aac-concatenation";
|
|
1255
1292
|
var forSeamlessAacConcatenationOption = {
|
|
1256
1293
|
name: "For seamless AAC concatenation",
|
|
1257
|
-
cliFlag:
|
|
1258
|
-
description: () => /* @__PURE__ */
|
|
1294
|
+
cliFlag: cliFlag19,
|
|
1295
|
+
description: () => /* @__PURE__ */ jsxs13(Fragment16, {
|
|
1259
1296
|
children: [
|
|
1260
1297
|
"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.",
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ jsx16("br", {}),
|
|
1299
|
+
/* @__PURE__ */ jsx16("br", {}),
|
|
1263
1300
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
1264
1301
|
]
|
|
1265
1302
|
}),
|
|
1266
1303
|
docLink: "https://remotion.dev/docs/renderer",
|
|
1267
1304
|
getValue: ({ commandLine }) => {
|
|
1268
|
-
if (commandLine[
|
|
1305
|
+
if (commandLine[cliFlag19]) {
|
|
1269
1306
|
return {
|
|
1270
1307
|
source: "cli",
|
|
1271
1308
|
value: true
|
|
@@ -1290,7 +1327,7 @@ var forSeamlessAacConcatenationOption = {
|
|
|
1290
1327
|
};
|
|
1291
1328
|
|
|
1292
1329
|
// src/options/gl.tsx
|
|
1293
|
-
import { jsx as
|
|
1330
|
+
import { jsx as jsx17, jsxs as jsxs14, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
1294
1331
|
var validOpenGlRenderers = [
|
|
1295
1332
|
"swangle",
|
|
1296
1333
|
"angle",
|
|
@@ -1302,33 +1339,33 @@ var validOpenGlRenderers = [
|
|
|
1302
1339
|
var DEFAULT_OPENGL_RENDERER = null;
|
|
1303
1340
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
1304
1341
|
var AngleChangelog = () => {
|
|
1305
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsxs14("details", {
|
|
1306
1343
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
1307
1344
|
children: [
|
|
1308
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ jsx17("summary", {
|
|
1309
1346
|
children: "Changelog"
|
|
1310
1347
|
}),
|
|
1311
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ jsxs14("ul", {
|
|
1312
1349
|
children: [
|
|
1313
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsxs14("li", {
|
|
1314
1351
|
children: [
|
|
1315
1352
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
1316
1353
|
" ",
|
|
1317
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1318
1355
|
children: "swiftshader"
|
|
1319
1356
|
}),
|
|
1320
1357
|
", but from v3.0.8 the default is",
|
|
1321
1358
|
" ",
|
|
1322
|
-
/* @__PURE__ */
|
|
1359
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1323
1360
|
children: "swangle"
|
|
1324
1361
|
}),
|
|
1325
1362
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
1326
1363
|
]
|
|
1327
1364
|
}),
|
|
1328
|
-
/* @__PURE__ */
|
|
1365
|
+
/* @__PURE__ */ jsxs14("li", {
|
|
1329
1366
|
children: [
|
|
1330
1367
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
1331
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1332
1369
|
children: "angle"
|
|
1333
1370
|
}),
|
|
1334
1371
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
@@ -1339,65 +1376,65 @@ var AngleChangelog = () => {
|
|
|
1339
1376
|
]
|
|
1340
1377
|
});
|
|
1341
1378
|
};
|
|
1342
|
-
var
|
|
1379
|
+
var cliFlag20 = "gl";
|
|
1343
1380
|
var glOption = {
|
|
1344
|
-
cliFlag:
|
|
1381
|
+
cliFlag: cliFlag20,
|
|
1345
1382
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
1346
1383
|
name: "OpenGL renderer",
|
|
1347
1384
|
type: "angle",
|
|
1348
1385
|
ssrName: "gl",
|
|
1349
1386
|
description: () => {
|
|
1350
|
-
return /* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ jsxs14(Fragment17, {
|
|
1351
1388
|
children: [
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1389
|
+
/* @__PURE__ */ jsx17(AngleChangelog, {}),
|
|
1390
|
+
/* @__PURE__ */ jsxs14("p", {
|
|
1354
1391
|
children: [
|
|
1355
1392
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
1356
|
-
/* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ jsx17("br", {}),
|
|
1357
1394
|
"Accepted values:"
|
|
1358
1395
|
]
|
|
1359
1396
|
}),
|
|
1360
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ jsxs14("ul", {
|
|
1361
1398
|
children: [
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
children: /* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ jsx17("li", {
|
|
1400
|
+
children: /* @__PURE__ */ jsx17("code", {
|
|
1364
1401
|
children: '"angle"'
|
|
1365
1402
|
})
|
|
1366
1403
|
}),
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
children: /* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ jsx17("li", {
|
|
1405
|
+
children: /* @__PURE__ */ jsx17("code", {
|
|
1369
1406
|
children: '"egl"'
|
|
1370
1407
|
})
|
|
1371
1408
|
}),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
children: /* @__PURE__ */
|
|
1409
|
+
/* @__PURE__ */ jsx17("li", {
|
|
1410
|
+
children: /* @__PURE__ */ jsx17("code", {
|
|
1374
1411
|
children: '"swiftshader"'
|
|
1375
1412
|
})
|
|
1376
1413
|
}),
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
children: /* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ jsx17("li", {
|
|
1415
|
+
children: /* @__PURE__ */ jsx17("code", {
|
|
1379
1416
|
children: '"swangle"'
|
|
1380
1417
|
})
|
|
1381
1418
|
}),
|
|
1382
|
-
/* @__PURE__ */
|
|
1419
|
+
/* @__PURE__ */ jsxs14("li", {
|
|
1383
1420
|
children: [
|
|
1384
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1385
1422
|
children: '"vulkan"'
|
|
1386
1423
|
}),
|
|
1387
1424
|
" (",
|
|
1388
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ jsx17("em", {
|
|
1389
1426
|
children: "from Remotion v4.0.41"
|
|
1390
1427
|
}),
|
|
1391
1428
|
")"
|
|
1392
1429
|
]
|
|
1393
1430
|
}),
|
|
1394
|
-
/* @__PURE__ */
|
|
1431
|
+
/* @__PURE__ */ jsxs14("li", {
|
|
1395
1432
|
children: [
|
|
1396
|
-
/* @__PURE__ */
|
|
1433
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1397
1434
|
children: '"angle-egl"'
|
|
1398
1435
|
}),
|
|
1399
1436
|
" (",
|
|
1400
|
-
/* @__PURE__ */
|
|
1437
|
+
/* @__PURE__ */ jsx17("em", {
|
|
1401
1438
|
children: "from Remotion v4.0.51"
|
|
1402
1439
|
}),
|
|
1403
1440
|
")"
|
|
@@ -1405,14 +1442,14 @@ var glOption = {
|
|
|
1405
1442
|
})
|
|
1406
1443
|
]
|
|
1407
1444
|
}),
|
|
1408
|
-
/* @__PURE__ */
|
|
1445
|
+
/* @__PURE__ */ jsxs14("p", {
|
|
1409
1446
|
children: [
|
|
1410
1447
|
"The default is ",
|
|
1411
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1412
1449
|
children: "null"
|
|
1413
1450
|
}),
|
|
1414
1451
|
", letting Chrome decide, except on Lambda where the default is ",
|
|
1415
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1416
1453
|
children: '"swangle"'
|
|
1417
1454
|
})
|
|
1418
1455
|
]
|
|
@@ -1421,10 +1458,10 @@ var glOption = {
|
|
|
1421
1458
|
});
|
|
1422
1459
|
},
|
|
1423
1460
|
getValue: ({ commandLine }) => {
|
|
1424
|
-
if (commandLine[
|
|
1425
|
-
validateOpenGlRenderer(commandLine[
|
|
1461
|
+
if (commandLine[cliFlag20]) {
|
|
1462
|
+
validateOpenGlRenderer(commandLine[cliFlag20]);
|
|
1426
1463
|
return {
|
|
1427
|
-
value: commandLine[
|
|
1464
|
+
value: commandLine[cliFlag20],
|
|
1428
1465
|
source: "cli"
|
|
1429
1466
|
};
|
|
1430
1467
|
}
|
|
@@ -1460,11 +1497,11 @@ var hardwareAccelerationOptions = [
|
|
|
1460
1497
|
"if-possible",
|
|
1461
1498
|
"required"
|
|
1462
1499
|
];
|
|
1463
|
-
var
|
|
1500
|
+
var cliFlag21 = "hardware-acceleration";
|
|
1464
1501
|
var currentValue = null;
|
|
1465
1502
|
var hardwareAccelerationOption = {
|
|
1466
1503
|
name: "Hardware Acceleration",
|
|
1467
|
-
cliFlag:
|
|
1504
|
+
cliFlag: cliFlag21,
|
|
1468
1505
|
description: () => `
|
|
1469
1506
|
One of
|
|
1470
1507
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -1476,10 +1513,10 @@ var hardwareAccelerationOption = {
|
|
|
1476
1513
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
1477
1514
|
type: "disable",
|
|
1478
1515
|
getValue: ({ commandLine }) => {
|
|
1479
|
-
if (commandLine[
|
|
1480
|
-
const value = commandLine[
|
|
1516
|
+
if (commandLine[cliFlag21] !== undefined) {
|
|
1517
|
+
const value = commandLine[cliFlag21];
|
|
1481
1518
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1482
|
-
throw new Error(`Invalid value for --${
|
|
1519
|
+
throw new Error(`Invalid value for --${cliFlag21}: ${value}`);
|
|
1483
1520
|
}
|
|
1484
1521
|
return {
|
|
1485
1522
|
source: "cli",
|
|
@@ -1499,31 +1536,31 @@ var hardwareAccelerationOption = {
|
|
|
1499
1536
|
},
|
|
1500
1537
|
setConfig: (value) => {
|
|
1501
1538
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1502
|
-
throw new Error(`Invalid value for --${
|
|
1539
|
+
throw new Error(`Invalid value for --${cliFlag21}: ${value}`);
|
|
1503
1540
|
}
|
|
1504
1541
|
currentValue = value;
|
|
1505
1542
|
}
|
|
1506
1543
|
};
|
|
1507
1544
|
|
|
1508
1545
|
// src/options/headless.tsx
|
|
1509
|
-
import { jsx as
|
|
1546
|
+
import { jsx as jsx18, jsxs as jsxs15, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
1510
1547
|
var DEFAULT4 = true;
|
|
1511
1548
|
var headlessMode = DEFAULT4;
|
|
1512
|
-
var
|
|
1549
|
+
var cliFlag22 = "disable-headless";
|
|
1513
1550
|
var headlessOption = {
|
|
1514
1551
|
name: "Disable Headless Mode",
|
|
1515
|
-
cliFlag:
|
|
1516
|
-
description: () => /* @__PURE__ */
|
|
1552
|
+
cliFlag: cliFlag22,
|
|
1553
|
+
description: () => /* @__PURE__ */ jsxs15(Fragment18, {
|
|
1517
1554
|
children: [
|
|
1518
1555
|
"Deprecated - will be removed in 5.0.0. With the migration to",
|
|
1519
1556
|
" ",
|
|
1520
|
-
/* @__PURE__ */
|
|
1557
|
+
/* @__PURE__ */ jsx18("a", {
|
|
1521
1558
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
1522
1559
|
children: "Chrome Headless Shell"
|
|
1523
1560
|
}),
|
|
1524
1561
|
", this option is not functional anymore.",
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ jsx18("br", {}),
|
|
1563
|
+
/* @__PURE__ */ jsx18("br", {}),
|
|
1527
1564
|
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
|
|
1528
1565
|
]
|
|
1529
1566
|
}),
|
|
@@ -1531,10 +1568,10 @@ var headlessOption = {
|
|
|
1531
1568
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
1532
1569
|
type: false,
|
|
1533
1570
|
getValue: ({ commandLine }) => {
|
|
1534
|
-
if (commandLine[
|
|
1571
|
+
if (commandLine[cliFlag22] !== undefined) {
|
|
1535
1572
|
return {
|
|
1536
1573
|
source: "cli",
|
|
1537
|
-
value: !commandLine[
|
|
1574
|
+
value: !commandLine[cliFlag22]
|
|
1538
1575
|
};
|
|
1539
1576
|
}
|
|
1540
1577
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -1554,7 +1591,7 @@ var headlessOption = {
|
|
|
1554
1591
|
};
|
|
1555
1592
|
|
|
1556
1593
|
// src/options/jpeg-quality.tsx
|
|
1557
|
-
import { jsx as
|
|
1594
|
+
import { jsx as jsx19, Fragment as Fragment19 } from "react/jsx-runtime";
|
|
1558
1595
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
1559
1596
|
var quality = defaultValue;
|
|
1560
1597
|
var setJpegQuality = (q) => {
|
|
@@ -1565,11 +1602,11 @@ var setJpegQuality = (q) => {
|
|
|
1565
1602
|
}
|
|
1566
1603
|
quality = q;
|
|
1567
1604
|
};
|
|
1568
|
-
var
|
|
1605
|
+
var cliFlag23 = "jpeg-quality";
|
|
1569
1606
|
var jpegQualityOption = {
|
|
1570
1607
|
name: "JPEG Quality",
|
|
1571
|
-
cliFlag:
|
|
1572
|
-
description: () => /* @__PURE__ */
|
|
1608
|
+
cliFlag: cliFlag23,
|
|
1609
|
+
description: () => /* @__PURE__ */ jsx19(Fragment19, {
|
|
1573
1610
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
1574
1611
|
}),
|
|
1575
1612
|
ssrName: "jpegQuality",
|
|
@@ -1577,11 +1614,11 @@ var jpegQualityOption = {
|
|
|
1577
1614
|
type: 0,
|
|
1578
1615
|
setConfig: setJpegQuality,
|
|
1579
1616
|
getValue: ({ commandLine }) => {
|
|
1580
|
-
if (commandLine[
|
|
1581
|
-
validateJpegQuality(commandLine[
|
|
1617
|
+
if (commandLine[cliFlag23] !== undefined) {
|
|
1618
|
+
validateJpegQuality(commandLine[cliFlag23]);
|
|
1582
1619
|
return {
|
|
1583
1620
|
source: "cli",
|
|
1584
|
-
value: commandLine[
|
|
1621
|
+
value: commandLine[cliFlag23]
|
|
1585
1622
|
};
|
|
1586
1623
|
}
|
|
1587
1624
|
if (quality !== defaultValue) {
|
|
@@ -1598,38 +1635,38 @@ var jpegQualityOption = {
|
|
|
1598
1635
|
};
|
|
1599
1636
|
|
|
1600
1637
|
// src/options/latency-hint.tsx
|
|
1601
|
-
import { jsx as
|
|
1602
|
-
var
|
|
1638
|
+
import { jsx as jsx20, jsxs as jsxs16, Fragment as Fragment20 } from "react/jsx-runtime";
|
|
1639
|
+
var cliFlag24 = "audio-latency-hint";
|
|
1603
1640
|
var value = null;
|
|
1604
1641
|
var audioLatencyHintOption = {
|
|
1605
1642
|
name: "Audio Latency Hint",
|
|
1606
|
-
cliFlag:
|
|
1607
|
-
description: () => /* @__PURE__ */
|
|
1643
|
+
cliFlag: cliFlag24,
|
|
1644
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment20, {
|
|
1608
1645
|
children: [
|
|
1609
1646
|
"Sets the",
|
|
1610
1647
|
" ",
|
|
1611
|
-
/* @__PURE__ */
|
|
1648
|
+
/* @__PURE__ */ jsx20("a", {
|
|
1612
1649
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
1613
1650
|
children: "audio latency"
|
|
1614
1651
|
}),
|
|
1615
1652
|
" ",
|
|
1616
1653
|
"hint for the global ",
|
|
1617
|
-
/* @__PURE__ */
|
|
1654
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1618
1655
|
children: "AudioContext"
|
|
1619
1656
|
}),
|
|
1620
1657
|
" context that Remotion uses to play audio.",
|
|
1621
|
-
/* @__PURE__ */
|
|
1658
|
+
/* @__PURE__ */ jsx20("br", {}),
|
|
1622
1659
|
"Possible values: ",
|
|
1623
|
-
/* @__PURE__ */
|
|
1660
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1624
1661
|
children: "interactive"
|
|
1625
1662
|
}),
|
|
1626
1663
|
", ",
|
|
1627
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1628
1665
|
children: "balanced"
|
|
1629
1666
|
}),
|
|
1630
1667
|
",",
|
|
1631
1668
|
" ",
|
|
1632
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1633
1670
|
children: "playback"
|
|
1634
1671
|
})
|
|
1635
1672
|
]
|
|
@@ -1638,7 +1675,7 @@ var audioLatencyHintOption = {
|
|
|
1638
1675
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
1639
1676
|
type: "interactive",
|
|
1640
1677
|
getValue: ({ commandLine }) => {
|
|
1641
|
-
const val = commandLine[
|
|
1678
|
+
const val = commandLine[cliFlag24];
|
|
1642
1679
|
if (typeof val !== "undefined") {
|
|
1643
1680
|
return { value: val, source: "cli" };
|
|
1644
1681
|
}
|
|
@@ -1653,43 +1690,43 @@ var audioLatencyHintOption = {
|
|
|
1653
1690
|
};
|
|
1654
1691
|
|
|
1655
1692
|
// src/options/log-level.tsx
|
|
1656
|
-
import { jsx as
|
|
1693
|
+
import { jsx as jsx21, jsxs as jsxs17, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
1657
1694
|
var logLevel = "info";
|
|
1658
|
-
var
|
|
1695
|
+
var cliFlag25 = "log";
|
|
1659
1696
|
var logLevelOption = {
|
|
1660
|
-
cliFlag:
|
|
1697
|
+
cliFlag: cliFlag25,
|
|
1661
1698
|
name: "Log Level",
|
|
1662
1699
|
ssrName: "logLevel",
|
|
1663
|
-
description: () => /* @__PURE__ */
|
|
1700
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment21, {
|
|
1664
1701
|
children: [
|
|
1665
1702
|
"One of ",
|
|
1666
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1667
1704
|
children: "trace"
|
|
1668
1705
|
}),
|
|
1669
1706
|
", ",
|
|
1670
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1671
1708
|
children: "verbose"
|
|
1672
1709
|
}),
|
|
1673
1710
|
", ",
|
|
1674
|
-
/* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1675
1712
|
children: "info"
|
|
1676
1713
|
}),
|
|
1677
1714
|
",",
|
|
1678
1715
|
" ",
|
|
1679
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1680
1717
|
children: "warn"
|
|
1681
1718
|
}),
|
|
1682
1719
|
", ",
|
|
1683
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1684
1721
|
children: "error"
|
|
1685
1722
|
}),
|
|
1686
1723
|
".",
|
|
1687
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1688
1725
|
" Determines how much info is being logged to the console.",
|
|
1689
|
-
/* @__PURE__ */
|
|
1690
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1727
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1691
1728
|
" Default ",
|
|
1692
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1693
1730
|
children: "info"
|
|
1694
1731
|
}),
|
|
1695
1732
|
"."
|
|
@@ -1697,11 +1734,11 @@ var logLevelOption = {
|
|
|
1697
1734
|
}),
|
|
1698
1735
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
1699
1736
|
getValue: ({ commandLine }) => {
|
|
1700
|
-
if (commandLine[
|
|
1701
|
-
if (!isValidLogLevel(commandLine[
|
|
1737
|
+
if (commandLine[cliFlag25]) {
|
|
1738
|
+
if (!isValidLogLevel(commandLine[cliFlag25])) {
|
|
1702
1739
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
1703
1740
|
}
|
|
1704
|
-
return { value: commandLine[
|
|
1741
|
+
return { value: commandLine[cliFlag25], source: "cli" };
|
|
1705
1742
|
}
|
|
1706
1743
|
if (logLevel !== "info") {
|
|
1707
1744
|
return { value: logLevel, source: "config" };
|
|
@@ -1715,19 +1752,19 @@ var logLevelOption = {
|
|
|
1715
1752
|
};
|
|
1716
1753
|
|
|
1717
1754
|
// src/options/metadata.tsx
|
|
1718
|
-
import { jsx as
|
|
1755
|
+
import { jsx as jsx22, jsxs as jsxs18, Fragment as Fragment22 } from "react/jsx-runtime";
|
|
1719
1756
|
var metadata = {};
|
|
1720
|
-
var
|
|
1757
|
+
var cliFlag26 = "metadata";
|
|
1721
1758
|
var metadataOption = {
|
|
1722
1759
|
name: "Metadata",
|
|
1723
|
-
cliFlag:
|
|
1760
|
+
cliFlag: cliFlag26,
|
|
1724
1761
|
description: (mode) => {
|
|
1725
1762
|
if (mode === "ssr") {
|
|
1726
|
-
return /* @__PURE__ */
|
|
1763
|
+
return /* @__PURE__ */ jsxs18(Fragment22, {
|
|
1727
1764
|
children: [
|
|
1728
1765
|
"An object containing metadata to be embedded in the video. See",
|
|
1729
1766
|
" ",
|
|
1730
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ jsx22("a", {
|
|
1731
1768
|
href: "/docs/metadata",
|
|
1732
1769
|
children: "here"
|
|
1733
1770
|
}),
|
|
@@ -1735,18 +1772,18 @@ var metadataOption = {
|
|
|
1735
1772
|
]
|
|
1736
1773
|
});
|
|
1737
1774
|
}
|
|
1738
|
-
return /* @__PURE__ */
|
|
1775
|
+
return /* @__PURE__ */ jsxs18(Fragment22, {
|
|
1739
1776
|
children: [
|
|
1740
1777
|
"Metadata to be embedded in the video. See",
|
|
1741
1778
|
" ",
|
|
1742
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsx22("a", {
|
|
1743
1780
|
href: "/docs/metadata",
|
|
1744
1781
|
children: "here"
|
|
1745
1782
|
}),
|
|
1746
1783
|
" for which metadata is accepted.",
|
|
1747
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ jsx22("br", {}),
|
|
1748
1785
|
"The parameter must be in the format of ",
|
|
1749
|
-
/* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1750
1787
|
children: "--metadata key=value"
|
|
1751
1788
|
}),
|
|
1752
1789
|
" ",
|
|
@@ -1757,8 +1794,8 @@ var metadataOption = {
|
|
|
1757
1794
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
1758
1795
|
type: {},
|
|
1759
1796
|
getValue: ({ commandLine }) => {
|
|
1760
|
-
if (commandLine[
|
|
1761
|
-
const val = commandLine[
|
|
1797
|
+
if (commandLine[cliFlag26] !== undefined) {
|
|
1798
|
+
const val = commandLine[cliFlag26];
|
|
1762
1799
|
const array = typeof val === "string" ? [val] : val;
|
|
1763
1800
|
const keyValues = array.map((a) => {
|
|
1764
1801
|
if (!a.includes("=")) {
|
|
@@ -1788,24 +1825,24 @@ var metadataOption = {
|
|
|
1788
1825
|
};
|
|
1789
1826
|
|
|
1790
1827
|
// src/options/mute.tsx
|
|
1791
|
-
import { jsx as
|
|
1828
|
+
import { jsx as jsx23, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1792
1829
|
var DEFAULT_MUTED_STATE = false;
|
|
1793
1830
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
1794
|
-
var
|
|
1831
|
+
var cliFlag27 = "muted";
|
|
1795
1832
|
var mutedOption = {
|
|
1796
1833
|
name: "Muted",
|
|
1797
|
-
cliFlag:
|
|
1798
|
-
description: () => /* @__PURE__ */
|
|
1834
|
+
cliFlag: cliFlag27,
|
|
1835
|
+
description: () => /* @__PURE__ */ jsx23(Fragment23, {
|
|
1799
1836
|
children: "The Audio of the video will be omitted."
|
|
1800
1837
|
}),
|
|
1801
1838
|
ssrName: "muted",
|
|
1802
1839
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
1803
1840
|
type: false,
|
|
1804
1841
|
getValue: ({ commandLine }) => {
|
|
1805
|
-
if (commandLine[
|
|
1842
|
+
if (commandLine[cliFlag27] !== null) {
|
|
1806
1843
|
return {
|
|
1807
1844
|
source: "cli",
|
|
1808
|
-
value: commandLine[
|
|
1845
|
+
value: commandLine[cliFlag27]
|
|
1809
1846
|
};
|
|
1810
1847
|
}
|
|
1811
1848
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -1825,50 +1862,50 @@ var mutedOption = {
|
|
|
1825
1862
|
};
|
|
1826
1863
|
|
|
1827
1864
|
// src/options/number-of-gif-loops.tsx
|
|
1828
|
-
import { jsx as
|
|
1865
|
+
import { jsx as jsx24, jsxs as jsxs19, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1829
1866
|
var currentLoop = null;
|
|
1830
1867
|
var validate = (newLoop) => {
|
|
1831
1868
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
1832
1869
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
1833
1870
|
}
|
|
1834
1871
|
};
|
|
1835
|
-
var
|
|
1872
|
+
var cliFlag28 = "number-of-gif-loops";
|
|
1836
1873
|
var numberOfGifLoopsOption = {
|
|
1837
1874
|
name: "Number of GIF loops",
|
|
1838
|
-
cliFlag:
|
|
1875
|
+
cliFlag: cliFlag28,
|
|
1839
1876
|
description: () => {
|
|
1840
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsxs19(Fragment24, {
|
|
1841
1878
|
children: [
|
|
1842
1879
|
"Allows you to set the number of loops as follows:",
|
|
1843
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ jsxs19("ul", {
|
|
1844
1881
|
children: [
|
|
1845
|
-
/* @__PURE__ */
|
|
1882
|
+
/* @__PURE__ */ jsxs19("li", {
|
|
1846
1883
|
children: [
|
|
1847
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1848
1885
|
children: "null"
|
|
1849
1886
|
}),
|
|
1850
1887
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
1851
1888
|
]
|
|
1852
1889
|
}),
|
|
1853
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ jsxs19("li", {
|
|
1854
1891
|
children: [
|
|
1855
|
-
/* @__PURE__ */
|
|
1892
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1856
1893
|
children: "0"
|
|
1857
1894
|
}),
|
|
1858
1895
|
" disables looping"
|
|
1859
1896
|
]
|
|
1860
1897
|
}),
|
|
1861
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ jsxs19("li", {
|
|
1862
1899
|
children: [
|
|
1863
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1864
1901
|
children: "1"
|
|
1865
1902
|
}),
|
|
1866
1903
|
" loops the GIF once (plays twice in total)"
|
|
1867
1904
|
]
|
|
1868
1905
|
}),
|
|
1869
|
-
/* @__PURE__ */
|
|
1906
|
+
/* @__PURE__ */ jsxs19("li", {
|
|
1870
1907
|
children: [
|
|
1871
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1872
1909
|
children: "2"
|
|
1873
1910
|
}),
|
|
1874
1911
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -1883,10 +1920,10 @@ var numberOfGifLoopsOption = {
|
|
|
1883
1920
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
1884
1921
|
type: 0,
|
|
1885
1922
|
getValue: ({ commandLine }) => {
|
|
1886
|
-
if (commandLine[
|
|
1887
|
-
validate(commandLine[
|
|
1923
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1924
|
+
validate(commandLine[cliFlag28]);
|
|
1888
1925
|
return {
|
|
1889
|
-
value: commandLine[
|
|
1926
|
+
value: commandLine[cliFlag28],
|
|
1890
1927
|
source: "cli"
|
|
1891
1928
|
};
|
|
1892
1929
|
}
|
|
@@ -1908,35 +1945,35 @@ var numberOfGifLoopsOption = {
|
|
|
1908
1945
|
};
|
|
1909
1946
|
|
|
1910
1947
|
// src/options/offthreadvideo-cache-size.tsx
|
|
1911
|
-
import { jsx as
|
|
1948
|
+
import { jsx as jsx25, jsxs as jsxs20, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1912
1949
|
var offthreadVideoCacheSizeInBytes = null;
|
|
1913
|
-
var
|
|
1950
|
+
var cliFlag29 = "offthreadvideo-cache-size-in-bytes";
|
|
1914
1951
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
1915
1952
|
name: "OffthreadVideo cache size",
|
|
1916
|
-
cliFlag:
|
|
1917
|
-
description: () => /* @__PURE__ */
|
|
1953
|
+
cliFlag: cliFlag29,
|
|
1954
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment25, {
|
|
1918
1955
|
children: [
|
|
1919
1956
|
"From v4.0, Remotion has a cache for",
|
|
1920
1957
|
" ",
|
|
1921
|
-
/* @__PURE__ */
|
|
1958
|
+
/* @__PURE__ */ jsx25("a", {
|
|
1922
1959
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
1923
|
-
children: /* @__PURE__ */
|
|
1960
|
+
children: /* @__PURE__ */ jsx25("code", {
|
|
1924
1961
|
children: "<OffthreadVideo>"
|
|
1925
1962
|
})
|
|
1926
1963
|
}),
|
|
1927
1964
|
" ",
|
|
1928
1965
|
"frames. The default is ",
|
|
1929
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1930
1967
|
children: "null"
|
|
1931
1968
|
}),
|
|
1932
1969
|
", corresponding to half of the system memory available when the render starts.",
|
|
1933
|
-
/* @__PURE__ */
|
|
1970
|
+
/* @__PURE__ */ jsx25("br", {}),
|
|
1934
1971
|
" 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.",
|
|
1935
|
-
/* @__PURE__ */
|
|
1972
|
+
/* @__PURE__ */ jsx25("br", {}),
|
|
1936
1973
|
"The used value will be printed when running in verbose mode.",
|
|
1937
|
-
/* @__PURE__ */
|
|
1974
|
+
/* @__PURE__ */ jsx25("br", {}),
|
|
1938
1975
|
"Default: ",
|
|
1939
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1940
1977
|
children: "null"
|
|
1941
1978
|
})
|
|
1942
1979
|
]
|
|
@@ -1945,10 +1982,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
1945
1982
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
1946
1983
|
type: 0,
|
|
1947
1984
|
getValue: ({ commandLine }) => {
|
|
1948
|
-
if (commandLine[
|
|
1985
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1949
1986
|
return {
|
|
1950
1987
|
source: "cli",
|
|
1951
|
-
value: commandLine[
|
|
1988
|
+
value: commandLine[cliFlag29]
|
|
1952
1989
|
};
|
|
1953
1990
|
}
|
|
1954
1991
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -1968,18 +2005,18 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
1968
2005
|
};
|
|
1969
2006
|
|
|
1970
2007
|
// src/options/offthreadvideo-threads.tsx
|
|
1971
|
-
import { jsx as
|
|
2008
|
+
import { jsx as jsx26, jsxs as jsxs21, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1972
2009
|
var value2 = null;
|
|
1973
|
-
var
|
|
2010
|
+
var cliFlag30 = "offthreadvideo-video-threads";
|
|
1974
2011
|
var offthreadVideoThreadsOption = {
|
|
1975
2012
|
name: "OffthreadVideo threads",
|
|
1976
|
-
cliFlag:
|
|
1977
|
-
description: () => /* @__PURE__ */
|
|
2013
|
+
cliFlag: cliFlag30,
|
|
2014
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment26, {
|
|
1978
2015
|
children: [
|
|
1979
2016
|
"The number of threads that",
|
|
1980
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx26("a", {
|
|
1981
2018
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
1982
|
-
children: /* @__PURE__ */
|
|
2019
|
+
children: /* @__PURE__ */ jsx26("code", {
|
|
1983
2020
|
children: "<OffthreadVideo>"
|
|
1984
2021
|
})
|
|
1985
2022
|
}),
|
|
@@ -1994,10 +2031,10 @@ var offthreadVideoThreadsOption = {
|
|
|
1994
2031
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
1995
2032
|
type: 0,
|
|
1996
2033
|
getValue: ({ commandLine }) => {
|
|
1997
|
-
if (commandLine[
|
|
2034
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
1998
2035
|
return {
|
|
1999
2036
|
source: "cli",
|
|
2000
|
-
value: commandLine[
|
|
2037
|
+
value: commandLine[cliFlag30]
|
|
2001
2038
|
};
|
|
2002
2039
|
}
|
|
2003
2040
|
if (value2 !== null) {
|
|
@@ -2018,16 +2055,16 @@ var offthreadVideoThreadsOption = {
|
|
|
2018
2055
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
2019
2056
|
|
|
2020
2057
|
// src/options/on-browser-download.tsx
|
|
2021
|
-
import { jsx as
|
|
2022
|
-
var
|
|
2058
|
+
import { jsx as jsx27, jsxs as jsxs22, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
2059
|
+
var cliFlag31 = "on-browser-download";
|
|
2023
2060
|
var onBrowserDownloadOption = {
|
|
2024
2061
|
name: "Browser download callback function",
|
|
2025
|
-
cliFlag:
|
|
2026
|
-
description: () => /* @__PURE__ */
|
|
2062
|
+
cliFlag: cliFlag31,
|
|
2063
|
+
description: () => /* @__PURE__ */ jsxs22(Fragment27, {
|
|
2027
2064
|
children: [
|
|
2028
2065
|
"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.",
|
|
2029
2066
|
" ",
|
|
2030
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx27("a", {
|
|
2031
2068
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
2032
2069
|
children: "See here for how to use this option."
|
|
2033
2070
|
})
|
|
@@ -2045,9 +2082,9 @@ var onBrowserDownloadOption = {
|
|
|
2045
2082
|
};
|
|
2046
2083
|
|
|
2047
2084
|
// src/options/overwrite.tsx
|
|
2048
|
-
import { jsx as
|
|
2085
|
+
import { jsx as jsx28, jsxs as jsxs23, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
2049
2086
|
var shouldOverwrite = null;
|
|
2050
|
-
var
|
|
2087
|
+
var cliFlag32 = "overwrite";
|
|
2051
2088
|
var validate2 = (value3) => {
|
|
2052
2089
|
if (typeof value3 !== "boolean") {
|
|
2053
2090
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -2055,15 +2092,15 @@ var validate2 = (value3) => {
|
|
|
2055
2092
|
};
|
|
2056
2093
|
var overwriteOption = {
|
|
2057
2094
|
name: "Overwrite output",
|
|
2058
|
-
cliFlag:
|
|
2059
|
-
description: () => /* @__PURE__ */
|
|
2095
|
+
cliFlag: cliFlag32,
|
|
2096
|
+
description: () => /* @__PURE__ */ jsxs23(Fragment28, {
|
|
2060
2097
|
children: [
|
|
2061
2098
|
"If set to ",
|
|
2062
|
-
/* @__PURE__ */
|
|
2099
|
+
/* @__PURE__ */ jsx28("code", {
|
|
2063
2100
|
children: "false"
|
|
2064
2101
|
}),
|
|
2065
2102
|
", will prevent rendering to a path that already exists. Default is ",
|
|
2066
|
-
/* @__PURE__ */
|
|
2103
|
+
/* @__PURE__ */ jsx28("code", {
|
|
2067
2104
|
children: "true"
|
|
2068
2105
|
}),
|
|
2069
2106
|
"."
|
|
@@ -2073,11 +2110,11 @@ var overwriteOption = {
|
|
|
2073
2110
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
2074
2111
|
type: false,
|
|
2075
2112
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
2076
|
-
if (commandLine[
|
|
2077
|
-
validate2(commandLine[
|
|
2113
|
+
if (commandLine[cliFlag32] !== undefined) {
|
|
2114
|
+
validate2(commandLine[cliFlag32]);
|
|
2078
2115
|
return {
|
|
2079
2116
|
source: "cli",
|
|
2080
|
-
value: commandLine[
|
|
2117
|
+
value: commandLine[cliFlag32]
|
|
2081
2118
|
};
|
|
2082
2119
|
}
|
|
2083
2120
|
if (shouldOverwrite !== null) {
|
|
@@ -2098,21 +2135,21 @@ var overwriteOption = {
|
|
|
2098
2135
|
};
|
|
2099
2136
|
|
|
2100
2137
|
// src/options/prefer-lossless.tsx
|
|
2101
|
-
import { jsx as
|
|
2102
|
-
var
|
|
2138
|
+
import { jsx as jsx29, jsxs as jsxs24, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
2139
|
+
var cliFlag33 = "prefer-lossless";
|
|
2103
2140
|
var input = false;
|
|
2104
2141
|
var preferLosslessAudioOption = {
|
|
2105
2142
|
name: "Prefer lossless",
|
|
2106
|
-
cliFlag:
|
|
2107
|
-
description: () => /* @__PURE__ */
|
|
2143
|
+
cliFlag: cliFlag33,
|
|
2144
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment29, {
|
|
2108
2145
|
children: [
|
|
2109
2146
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
2110
|
-
/* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ jsx29("code", {
|
|
2111
2148
|
children: "audioCodec"
|
|
2112
2149
|
}),
|
|
2113
2150
|
", it takes priority over",
|
|
2114
2151
|
" ",
|
|
2115
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx29("code", {
|
|
2116
2153
|
children: "preferLossless"
|
|
2117
2154
|
}),
|
|
2118
2155
|
"."
|
|
@@ -2122,7 +2159,7 @@ var preferLosslessAudioOption = {
|
|
|
2122
2159
|
type: false,
|
|
2123
2160
|
ssrName: "preferLossless",
|
|
2124
2161
|
getValue: ({ commandLine }) => {
|
|
2125
|
-
if (commandLine[
|
|
2162
|
+
if (commandLine[cliFlag33]) {
|
|
2126
2163
|
return { value: true, source: "cli" };
|
|
2127
2164
|
}
|
|
2128
2165
|
if (input === true) {
|
|
@@ -2136,20 +2173,20 @@ var preferLosslessAudioOption = {
|
|
|
2136
2173
|
};
|
|
2137
2174
|
|
|
2138
2175
|
// src/options/public-dir.tsx
|
|
2139
|
-
import { jsx as
|
|
2140
|
-
var
|
|
2176
|
+
import { jsx as jsx30, jsxs as jsxs25, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
2177
|
+
var cliFlag34 = "public-dir";
|
|
2141
2178
|
var currentPublicDir = null;
|
|
2142
2179
|
var publicDirOption = {
|
|
2143
2180
|
name: "Public Directory",
|
|
2144
|
-
cliFlag:
|
|
2181
|
+
cliFlag: cliFlag34,
|
|
2145
2182
|
description: () => {
|
|
2146
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ jsxs25(Fragment30, {
|
|
2147
2184
|
children: [
|
|
2148
2185
|
"Define the location of the",
|
|
2149
2186
|
" ",
|
|
2150
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx30("a", {
|
|
2151
2188
|
href: "/docs/terminology/public-dir",
|
|
2152
|
-
children: /* @__PURE__ */
|
|
2189
|
+
children: /* @__PURE__ */ jsx30("code", {
|
|
2153
2190
|
children: "public/ directory"
|
|
2154
2191
|
})
|
|
2155
2192
|
}),
|
|
@@ -2160,10 +2197,10 @@ var publicDirOption = {
|
|
|
2160
2197
|
ssrName: "publicDir",
|
|
2161
2198
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
2162
2199
|
getValue: ({ commandLine }) => {
|
|
2163
|
-
if (commandLine[
|
|
2200
|
+
if (commandLine[cliFlag34] !== undefined) {
|
|
2164
2201
|
return {
|
|
2165
2202
|
source: "cli",
|
|
2166
|
-
value: commandLine[
|
|
2203
|
+
value: commandLine[cliFlag34]
|
|
2167
2204
|
};
|
|
2168
2205
|
}
|
|
2169
2206
|
if (currentPublicDir !== null) {
|
|
@@ -2184,25 +2221,25 @@ var publicDirOption = {
|
|
|
2184
2221
|
};
|
|
2185
2222
|
|
|
2186
2223
|
// src/options/public-path.tsx
|
|
2187
|
-
import { jsx as
|
|
2188
|
-
var
|
|
2224
|
+
import { jsx as jsx31, jsxs as jsxs26, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
2225
|
+
var cliFlag35 = "public-path";
|
|
2189
2226
|
var currentPublicPath = null;
|
|
2190
2227
|
var publicPathOption = {
|
|
2191
2228
|
name: "Public Path",
|
|
2192
|
-
cliFlag:
|
|
2229
|
+
cliFlag: cliFlag35,
|
|
2193
2230
|
description: () => {
|
|
2194
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsxs26(Fragment31, {
|
|
2195
2232
|
children: [
|
|
2196
2233
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
2197
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2198
2235
|
children: "/"
|
|
2199
2236
|
}),
|
|
2200
2237
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
2201
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2202
2239
|
children: "https://localhost:3000/"
|
|
2203
2240
|
}),
|
|
2204
2241
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
2205
|
-
/* @__PURE__ */
|
|
2242
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2206
2243
|
children: "/sites/my-site/"
|
|
2207
2244
|
}),
|
|
2208
2245
|
"), you should set this to the subdirectory."
|
|
@@ -2212,10 +2249,10 @@ var publicPathOption = {
|
|
|
2212
2249
|
ssrName: "publicPath",
|
|
2213
2250
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
2214
2251
|
getValue: ({ commandLine }) => {
|
|
2215
|
-
if (commandLine[
|
|
2252
|
+
if (commandLine[cliFlag35] !== undefined) {
|
|
2216
2253
|
return {
|
|
2217
2254
|
source: "cli",
|
|
2218
|
-
value: commandLine[
|
|
2255
|
+
value: commandLine[cliFlag35]
|
|
2219
2256
|
};
|
|
2220
2257
|
}
|
|
2221
2258
|
if (currentPublicPath !== null) {
|
|
@@ -2236,25 +2273,25 @@ var publicPathOption = {
|
|
|
2236
2273
|
};
|
|
2237
2274
|
|
|
2238
2275
|
// src/options/repro.tsx
|
|
2239
|
-
import { jsx as
|
|
2276
|
+
import { jsx as jsx32, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2240
2277
|
var enableRepro = false;
|
|
2241
2278
|
var setRepro = (should) => {
|
|
2242
2279
|
enableRepro = should;
|
|
2243
2280
|
};
|
|
2244
|
-
var
|
|
2281
|
+
var cliFlag36 = "repro";
|
|
2245
2282
|
var reproOption = {
|
|
2246
2283
|
name: "Create reproduction",
|
|
2247
|
-
cliFlag:
|
|
2248
|
-
description: () => /* @__PURE__ */
|
|
2284
|
+
cliFlag: cliFlag36,
|
|
2285
|
+
description: () => /* @__PURE__ */ jsx32(Fragment32, {
|
|
2249
2286
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
2250
2287
|
}),
|
|
2251
2288
|
ssrName: "repro",
|
|
2252
2289
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
2253
2290
|
type: false,
|
|
2254
2291
|
getValue: ({ commandLine }) => {
|
|
2255
|
-
if (commandLine[
|
|
2292
|
+
if (commandLine[cliFlag36] !== undefined) {
|
|
2256
2293
|
return {
|
|
2257
|
-
value: commandLine[
|
|
2294
|
+
value: commandLine[cliFlag36],
|
|
2258
2295
|
source: "cli"
|
|
2259
2296
|
};
|
|
2260
2297
|
}
|
|
@@ -2273,9 +2310,9 @@ var reproOption = {
|
|
|
2273
2310
|
};
|
|
2274
2311
|
|
|
2275
2312
|
// src/options/scale.tsx
|
|
2276
|
-
import { jsx as
|
|
2313
|
+
import { jsx as jsx33, jsxs as jsxs27, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2277
2314
|
var currentScale = 1;
|
|
2278
|
-
var
|
|
2315
|
+
var cliFlag37 = "scale";
|
|
2279
2316
|
var validateScale = (value3) => {
|
|
2280
2317
|
if (typeof value3 !== "number") {
|
|
2281
2318
|
throw new Error("scale must be a number.");
|
|
@@ -2283,11 +2320,11 @@ var validateScale = (value3) => {
|
|
|
2283
2320
|
};
|
|
2284
2321
|
var scaleOption = {
|
|
2285
2322
|
name: "Scale",
|
|
2286
|
-
cliFlag:
|
|
2287
|
-
description: () => /* @__PURE__ */
|
|
2323
|
+
cliFlag: cliFlag37,
|
|
2324
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment33, {
|
|
2288
2325
|
children: [
|
|
2289
2326
|
"Scales the output by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
2290
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2291
2328
|
children: "1.5"
|
|
2292
2329
|
}),
|
|
2293
2330
|
". Vector elements like fonts and HTML markups will be rendered with extra details."
|
|
@@ -2297,11 +2334,11 @@ var scaleOption = {
|
|
|
2297
2334
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
2298
2335
|
type: 0,
|
|
2299
2336
|
getValue: ({ commandLine }) => {
|
|
2300
|
-
if (commandLine[
|
|
2301
|
-
validateScale(commandLine[
|
|
2337
|
+
if (commandLine[cliFlag37] !== undefined) {
|
|
2338
|
+
validateScale(commandLine[cliFlag37]);
|
|
2302
2339
|
return {
|
|
2303
2340
|
source: "cli",
|
|
2304
|
-
value: commandLine[
|
|
2341
|
+
value: commandLine[cliFlag37]
|
|
2305
2342
|
};
|
|
2306
2343
|
}
|
|
2307
2344
|
if (currentScale !== null) {
|
|
@@ -2322,16 +2359,16 @@ var scaleOption = {
|
|
|
2322
2359
|
|
|
2323
2360
|
// src/options/throw-if-site-exists.tsx
|
|
2324
2361
|
var DEFAULT5 = false;
|
|
2325
|
-
var
|
|
2362
|
+
var cliFlag38 = "throw-if-site-exists";
|
|
2326
2363
|
var throwIfSiteExistsOption = {
|
|
2327
|
-
cliFlag:
|
|
2364
|
+
cliFlag: cliFlag38,
|
|
2328
2365
|
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.`,
|
|
2329
2366
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
2330
2367
|
getValue: ({ commandLine }) => {
|
|
2331
|
-
if (commandLine[
|
|
2368
|
+
if (commandLine[cliFlag38]) {
|
|
2332
2369
|
return {
|
|
2333
2370
|
source: "cli",
|
|
2334
|
-
value: commandLine[
|
|
2371
|
+
value: commandLine[cliFlag38]
|
|
2335
2372
|
};
|
|
2336
2373
|
}
|
|
2337
2374
|
return {
|
|
@@ -2348,35 +2385,35 @@ var throwIfSiteExistsOption = {
|
|
|
2348
2385
|
};
|
|
2349
2386
|
|
|
2350
2387
|
// src/options/timeout.tsx
|
|
2351
|
-
import { jsx as
|
|
2388
|
+
import { jsx as jsx34, jsxs as jsxs28, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2352
2389
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
2353
2390
|
var validate3 = (value3) => {
|
|
2354
2391
|
if (typeof value3 !== "number") {
|
|
2355
2392
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
2356
2393
|
}
|
|
2357
2394
|
};
|
|
2358
|
-
var
|
|
2395
|
+
var cliFlag39 = "timeout";
|
|
2359
2396
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
2360
2397
|
name: "delayRender() timeout",
|
|
2361
|
-
cliFlag:
|
|
2362
|
-
description: () => /* @__PURE__ */
|
|
2398
|
+
cliFlag: cliFlag39,
|
|
2399
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment34, {
|
|
2363
2400
|
children: [
|
|
2364
2401
|
"A number describing how long the render may take to resolve all",
|
|
2365
2402
|
" ",
|
|
2366
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ jsx34("a", {
|
|
2367
2404
|
href: "https://remotion.dev/docs/delay-render",
|
|
2368
|
-
children: /* @__PURE__ */
|
|
2405
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2369
2406
|
children: "delayRender()"
|
|
2370
2407
|
})
|
|
2371
2408
|
}),
|
|
2372
2409
|
" ",
|
|
2373
2410
|
"calls ",
|
|
2374
|
-
/* @__PURE__ */
|
|
2411
|
+
/* @__PURE__ */ jsx34("a", {
|
|
2375
2412
|
href: "https://remotion.dev/docs/timeout",
|
|
2376
2413
|
children: "before it times out"
|
|
2377
2414
|
}),
|
|
2378
2415
|
". Default: ",
|
|
2379
|
-
/* @__PURE__ */
|
|
2416
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2380
2417
|
children: "30000"
|
|
2381
2418
|
})
|
|
2382
2419
|
]
|
|
@@ -2385,10 +2422,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2385
2422
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
2386
2423
|
type: 0,
|
|
2387
2424
|
getValue: ({ commandLine }) => {
|
|
2388
|
-
if (commandLine[
|
|
2425
|
+
if (commandLine[cliFlag39] !== undefined) {
|
|
2389
2426
|
return {
|
|
2390
2427
|
source: "cli",
|
|
2391
|
-
value: commandLine[
|
|
2428
|
+
value: commandLine[cliFlag39]
|
|
2392
2429
|
};
|
|
2393
2430
|
}
|
|
2394
2431
|
if (currentTimeout !== null) {
|
|
@@ -2410,26 +2447,26 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2410
2447
|
};
|
|
2411
2448
|
|
|
2412
2449
|
// src/options/video-bitrate.tsx
|
|
2413
|
-
import { jsx as
|
|
2450
|
+
import { jsx as jsx35, jsxs as jsxs29, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2414
2451
|
var videoBitrate = null;
|
|
2415
|
-
var
|
|
2452
|
+
var cliFlag40 = "video-bitrate";
|
|
2416
2453
|
var videoBitrateOption = {
|
|
2417
2454
|
name: "Video Bitrate",
|
|
2418
|
-
cliFlag:
|
|
2419
|
-
description: () => /* @__PURE__ */
|
|
2455
|
+
cliFlag: cliFlag40,
|
|
2456
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment35, {
|
|
2420
2457
|
children: [
|
|
2421
2458
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
2422
2459
|
"'",
|
|
2423
2460
|
"s",
|
|
2424
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2425
2462
|
children: "-b:v"
|
|
2426
2463
|
}),
|
|
2427
2464
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
2428
|
-
/* @__PURE__ */
|
|
2465
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2429
2466
|
children: "512K"
|
|
2430
2467
|
}),
|
|
2431
2468
|
" for 512 kbps, ",
|
|
2432
|
-
/* @__PURE__ */
|
|
2469
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2433
2470
|
children: "1M"
|
|
2434
2471
|
}),
|
|
2435
2472
|
" for 1 Mbps."
|
|
@@ -2439,10 +2476,10 @@ var videoBitrateOption = {
|
|
|
2439
2476
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
2440
2477
|
type: "",
|
|
2441
2478
|
getValue: ({ commandLine }) => {
|
|
2442
|
-
if (commandLine[
|
|
2479
|
+
if (commandLine[cliFlag40] !== undefined) {
|
|
2443
2480
|
return {
|
|
2444
2481
|
source: "cli",
|
|
2445
|
-
value: commandLine[
|
|
2482
|
+
value: commandLine[cliFlag40]
|
|
2446
2483
|
};
|
|
2447
2484
|
}
|
|
2448
2485
|
if (videoBitrate !== null) {
|
|
@@ -2577,7 +2614,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
2577
2614
|
};
|
|
2578
2615
|
|
|
2579
2616
|
// src/options/video-codec.tsx
|
|
2580
|
-
import { jsx as
|
|
2617
|
+
import { jsx as jsx36, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2581
2618
|
var codec;
|
|
2582
2619
|
var setCodec = (newCodec) => {
|
|
2583
2620
|
if (newCodec === undefined) {
|
|
@@ -2601,11 +2638,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
2601
2638
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
2602
2639
|
};
|
|
2603
2640
|
};
|
|
2604
|
-
var
|
|
2641
|
+
var cliFlag41 = "codec";
|
|
2605
2642
|
var videoCodecOption = {
|
|
2606
2643
|
name: "Codec",
|
|
2607
|
-
cliFlag:
|
|
2608
|
-
description: () => /* @__PURE__ */
|
|
2644
|
+
cliFlag: cliFlag41,
|
|
2645
|
+
description: () => /* @__PURE__ */ jsx36(Fragment36, {
|
|
2609
2646
|
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."
|
|
2610
2647
|
}),
|
|
2611
2648
|
ssrName: "codec",
|
|
@@ -2628,7 +2665,7 @@ var videoCodecOption = {
|
|
|
2628
2665
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
2629
2666
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
2630
2667
|
}
|
|
2631
|
-
const cliArgument = commandLine[
|
|
2668
|
+
const cliArgument = commandLine[cliFlag41];
|
|
2632
2669
|
if (cliArgument) {
|
|
2633
2670
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
2634
2671
|
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.`);
|
|
@@ -2665,12 +2702,12 @@ var videoCodecOption = {
|
|
|
2665
2702
|
};
|
|
2666
2703
|
|
|
2667
2704
|
// src/options/webhook-custom-data.tsx
|
|
2668
|
-
import { jsxs as
|
|
2669
|
-
var
|
|
2705
|
+
import { jsxs as jsxs30, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2706
|
+
var cliFlag42 = "webhook-custom-data";
|
|
2670
2707
|
var webhookCustomDataOption = {
|
|
2671
2708
|
name: "Webhook custom data",
|
|
2672
|
-
cliFlag:
|
|
2673
|
-
description: (type) => /* @__PURE__ */
|
|
2709
|
+
cliFlag: cliFlag42,
|
|
2710
|
+
description: (type) => /* @__PURE__ */ jsxs30(Fragment37, {
|
|
2674
2711
|
children: [
|
|
2675
2712
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
2676
2713
|
" ",
|
|
@@ -2689,7 +2726,7 @@ var webhookCustomDataOption = {
|
|
|
2689
2726
|
};
|
|
2690
2727
|
|
|
2691
2728
|
// src/options/x264-preset.tsx
|
|
2692
|
-
import { jsx as
|
|
2729
|
+
import { jsx as jsx37, jsxs as jsxs31, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2693
2730
|
var x264PresetOptions = [
|
|
2694
2731
|
"ultrafast",
|
|
2695
2732
|
"superfast",
|
|
@@ -2703,63 +2740,63 @@ var x264PresetOptions = [
|
|
|
2703
2740
|
"placebo"
|
|
2704
2741
|
];
|
|
2705
2742
|
var preset = null;
|
|
2706
|
-
var
|
|
2743
|
+
var cliFlag43 = "x264-preset";
|
|
2707
2744
|
var DEFAULT_PRESET = "medium";
|
|
2708
2745
|
var x264Option = {
|
|
2709
2746
|
name: "x264 Preset",
|
|
2710
|
-
cliFlag:
|
|
2711
|
-
description: () => /* @__PURE__ */
|
|
2747
|
+
cliFlag: cliFlag43,
|
|
2748
|
+
description: () => /* @__PURE__ */ jsxs31(Fragment38, {
|
|
2712
2749
|
children: [
|
|
2713
2750
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
2714
2751
|
" ",
|
|
2715
|
-
/* @__PURE__ */
|
|
2752
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2716
2753
|
children: "h264"
|
|
2717
2754
|
}),
|
|
2718
2755
|
" codec.",
|
|
2719
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ jsx37("br", {}),
|
|
2720
2757
|
"Possible values: ",
|
|
2721
|
-
/* @__PURE__ */
|
|
2758
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2722
2759
|
children: "superfast"
|
|
2723
2760
|
}),
|
|
2724
2761
|
", ",
|
|
2725
|
-
/* @__PURE__ */
|
|
2762
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2726
2763
|
children: "veryfast"
|
|
2727
2764
|
}),
|
|
2728
2765
|
",",
|
|
2729
2766
|
" ",
|
|
2730
|
-
/* @__PURE__ */
|
|
2767
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2731
2768
|
children: "faster"
|
|
2732
2769
|
}),
|
|
2733
2770
|
", ",
|
|
2734
|
-
/* @__PURE__ */
|
|
2771
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2735
2772
|
children: "fast"
|
|
2736
2773
|
}),
|
|
2737
2774
|
", ",
|
|
2738
|
-
/* @__PURE__ */
|
|
2775
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2739
2776
|
children: "medium"
|
|
2740
2777
|
}),
|
|
2741
2778
|
",",
|
|
2742
2779
|
" ",
|
|
2743
|
-
/* @__PURE__ */
|
|
2780
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2744
2781
|
children: "slow"
|
|
2745
2782
|
}),
|
|
2746
2783
|
", ",
|
|
2747
|
-
/* @__PURE__ */
|
|
2784
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2748
2785
|
children: "slower"
|
|
2749
2786
|
}),
|
|
2750
2787
|
", ",
|
|
2751
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2752
2789
|
children: "veryslow"
|
|
2753
2790
|
}),
|
|
2754
2791
|
",",
|
|
2755
2792
|
" ",
|
|
2756
|
-
/* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2757
2794
|
children: "placebo"
|
|
2758
2795
|
}),
|
|
2759
2796
|
".",
|
|
2760
|
-
/* @__PURE__ */
|
|
2797
|
+
/* @__PURE__ */ jsx37("br", {}),
|
|
2761
2798
|
"Default: ",
|
|
2762
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2763
2800
|
children: DEFAULT_PRESET
|
|
2764
2801
|
})
|
|
2765
2802
|
]
|
|
@@ -2768,7 +2805,7 @@ var x264Option = {
|
|
|
2768
2805
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2769
2806
|
type: "fast",
|
|
2770
2807
|
getValue: ({ commandLine }) => {
|
|
2771
|
-
const value3 = commandLine[
|
|
2808
|
+
const value3 = commandLine[cliFlag43];
|
|
2772
2809
|
if (typeof value3 !== "undefined") {
|
|
2773
2810
|
return { value: value3, source: "cli" };
|
|
2774
2811
|
}
|
|
@@ -2825,7 +2862,8 @@ var allOptions = {
|
|
|
2825
2862
|
hardwareAccelerationOption,
|
|
2826
2863
|
chromeModeOption,
|
|
2827
2864
|
apiKeyOption,
|
|
2828
|
-
audioLatencyHintOption
|
|
2865
|
+
audioLatencyHintOption,
|
|
2866
|
+
enableCrossSiteIsolationOption
|
|
2829
2867
|
};
|
|
2830
2868
|
|
|
2831
2869
|
// src/options/options-map.ts
|