@remotion/renderer 4.0.423 → 4.0.424
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 +237 -13
- package/dist/combine-chunks.js +3 -0
- package/dist/ensure-browser.d.ts +3 -0
- package/dist/esm/client.mjs +317 -118
- package/dist/esm/index.mjs +14 -7
- package/dist/esm/pure.mjs +4 -2
- package/dist/ffmpeg-args.d.ts +1 -1
- package/dist/ffmpeg-args.js +1 -1
- package/dist/index.d.ts +44 -0
- package/dist/mux-video-and-audio.d.ts +2 -1
- package/dist/mux-video-and-audio.js +6 -1
- package/dist/options/api-key.d.ts +1 -0
- package/dist/options/api-key.js +1 -0
- package/dist/options/ask-ai.d.ts +1 -0
- package/dist/options/ask-ai.js +1 -0
- package/dist/options/audio-bitrate.d.ts +1 -0
- package/dist/options/audio-bitrate.js +1 -0
- package/dist/options/audio-codec.d.ts +1 -0
- package/dist/options/audio-codec.js +1 -0
- package/dist/options/beep-on-finish.d.ts +1 -0
- package/dist/options/beep-on-finish.js +1 -0
- package/dist/options/binaries-directory.d.ts +1 -0
- package/dist/options/binaries-directory.js +1 -0
- package/dist/options/chrome-mode.d.ts +1 -0
- package/dist/options/chrome-mode.js +1 -0
- package/dist/options/color-space.d.ts +5 -4
- package/dist/options/color-space.js +4 -2
- package/dist/options/crf.d.ts +1 -0
- package/dist/options/crf.js +1 -0
- package/dist/options/cross-site-isolation.d.ts +1 -0
- package/dist/options/cross-site-isolation.js +1 -0
- package/dist/options/dark-mode.d.ts +1 -0
- package/dist/options/dark-mode.js +1 -0
- package/dist/options/delete-after.d.ts +1 -0
- package/dist/options/delete-after.js +1 -0
- package/dist/options/disable-git-source.d.ts +1 -0
- package/dist/options/disable-git-source.js +1 -0
- package/dist/options/disallow-parallel-encoding.d.ts +1 -0
- package/dist/options/disallow-parallel-encoding.js +1 -0
- package/dist/options/enable-lambda-insights.d.ts +1 -0
- package/dist/options/enable-lambda-insights.js +1 -0
- package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
- package/dist/options/enable-multiprocess-on-linux.js +1 -0
- package/dist/options/encoding-buffer-size.d.ts +1 -0
- package/dist/options/encoding-buffer-size.js +1 -0
- package/dist/options/encoding-max-rate.d.ts +1 -0
- package/dist/options/encoding-max-rate.js +1 -0
- package/dist/options/enforce-audio.d.ts +1 -0
- package/dist/options/enforce-audio.js +1 -0
- package/dist/options/experimental-client-side-rendering.d.ts +1 -0
- package/dist/options/experimental-client-side-rendering.js +1 -0
- package/dist/options/folder-expiry.d.ts +1 -0
- package/dist/options/folder-expiry.js +1 -0
- package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
- package/dist/options/for-seamless-aac-concatenation.js +1 -0
- package/dist/options/force-new-studio.d.ts +1 -0
- package/dist/options/force-new-studio.js +1 -0
- package/dist/options/gl.d.ts +1 -0
- package/dist/options/gl.js +1 -0
- package/dist/options/hardware-acceleration.d.ts +1 -0
- package/dist/options/hardware-acceleration.js +1 -0
- package/dist/options/headless.d.ts +1 -0
- package/dist/options/headless.js +1 -0
- package/dist/options/image-sequence-pattern.d.ts +1 -0
- package/dist/options/image-sequence-pattern.js +1 -0
- package/dist/options/index.d.ts +97 -3
- package/dist/options/index.js +4 -0
- package/dist/options/ipv4.d.ts +1 -0
- package/dist/options/ipv4.js +1 -0
- package/dist/options/is-production.d.ts +1 -0
- package/dist/options/is-production.js +1 -0
- package/dist/options/jpeg-quality.d.ts +1 -0
- package/dist/options/jpeg-quality.js +1 -0
- package/dist/options/keyboard-shortcuts.d.ts +1 -0
- package/dist/options/keyboard-shortcuts.js +1 -0
- package/dist/options/latency-hint.d.ts +1 -0
- package/dist/options/latency-hint.js +1 -0
- package/dist/options/license-key.d.ts +1 -0
- package/dist/options/license-key.js +1 -0
- package/dist/options/log-level.d.ts +1 -0
- package/dist/options/log-level.js +1 -0
- package/dist/options/metadata.d.ts +1 -0
- package/dist/options/metadata.js +1 -0
- package/dist/options/mute.d.ts +1 -0
- package/dist/options/mute.js +1 -0
- package/dist/options/number-of-gif-loops.d.ts +1 -0
- package/dist/options/number-of-gif-loops.js +1 -0
- package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
- package/dist/options/number-of-shared-audio-tags.js +1 -0
- package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
- package/dist/options/offthreadvideo-cache-size.js +1 -0
- package/dist/options/offthreadvideo-threads.d.ts +1 -0
- package/dist/options/offthreadvideo-threads.js +1 -0
- package/dist/options/on-browser-download.d.ts +1 -0
- package/dist/options/on-browser-download.js +1 -0
- package/dist/options/option.d.ts +1 -0
- package/dist/options/options-map.d.ts +139 -9
- package/dist/options/overwrite.d.ts +1 -0
- package/dist/options/overwrite.js +1 -0
- package/dist/options/prefer-lossless.d.ts +1 -0
- package/dist/options/prefer-lossless.js +1 -0
- package/dist/options/public-dir.d.ts +1 -0
- package/dist/options/public-dir.js +1 -0
- package/dist/options/public-license-key.d.ts +1 -0
- package/dist/options/public-license-key.js +1 -0
- package/dist/options/public-path.d.ts +1 -0
- package/dist/options/public-path.js +1 -0
- package/dist/options/repro.d.ts +1 -0
- package/dist/options/repro.js +1 -0
- package/dist/options/scale.d.ts +1 -0
- package/dist/options/scale.js +1 -0
- package/dist/options/separate-audio.d.ts +1 -0
- package/dist/options/separate-audio.js +1 -0
- package/dist/options/still-image-format.d.ts +19 -0
- package/dist/options/still-image-format.js +55 -0
- package/dist/options/throw-if-site-exists.d.ts +1 -0
- package/dist/options/throw-if-site-exists.js +1 -0
- package/dist/options/timeout.d.ts +1 -0
- package/dist/options/timeout.js +1 -0
- package/dist/options/video-bitrate.d.ts +1 -0
- package/dist/options/video-bitrate.js +1 -0
- package/dist/options/video-cache-size.d.ts +1 -0
- package/dist/options/video-cache-size.js +1 -0
- package/dist/options/video-codec.d.ts +1 -0
- package/dist/options/video-codec.js +1 -0
- package/dist/options/video-image-format.d.ts +19 -0
- package/dist/options/video-image-format.js +55 -0
- package/dist/options/webhook-custom-data.d.ts +1 -0
- package/dist/options/webhook-custom-data.js +1 -0
- package/dist/options/x264-preset.d.ts +1 -0
- package/dist/options/x264-preset.js +1 -0
- package/dist/validate-number-of-gif-loops.js +1 -1
- package/package.json +14 -14
- package/dist/options/private-license-key.d.ts +0 -15
- package/dist/options/private-license-key.js +0 -35
package/dist/esm/client.mjs
CHANGED
|
@@ -320,7 +320,8 @@ var apiKeyOption = {
|
|
|
320
320
|
},
|
|
321
321
|
setConfig: (value) => {
|
|
322
322
|
currentApiKey = value;
|
|
323
|
-
}
|
|
323
|
+
},
|
|
324
|
+
id: cliFlag
|
|
324
325
|
};
|
|
325
326
|
|
|
326
327
|
// src/options/ask-ai.tsx
|
|
@@ -351,7 +352,8 @@ var askAIOption = {
|
|
|
351
352
|
},
|
|
352
353
|
setConfig(value) {
|
|
353
354
|
askAIEnabled = value;
|
|
354
|
-
}
|
|
355
|
+
},
|
|
356
|
+
id: cliFlag2
|
|
355
357
|
};
|
|
356
358
|
|
|
357
359
|
// src/options/audio-bitrate.tsx
|
|
@@ -406,7 +408,8 @@ var audioBitrateOption = {
|
|
|
406
408
|
},
|
|
407
409
|
setConfig: (value) => {
|
|
408
410
|
audioBitrate = value;
|
|
409
|
-
}
|
|
411
|
+
},
|
|
412
|
+
id: cliFlag3
|
|
410
413
|
};
|
|
411
414
|
|
|
412
415
|
// src/options/separate-audio.tsx
|
|
@@ -433,7 +436,8 @@ var separateAudioOption = {
|
|
|
433
436
|
throw new Error("Not implemented");
|
|
434
437
|
},
|
|
435
438
|
ssrName: "separateAudioTo",
|
|
436
|
-
type: "string"
|
|
439
|
+
type: "string",
|
|
440
|
+
id: cliFlag4
|
|
437
441
|
};
|
|
438
442
|
|
|
439
443
|
// src/options/audio-codec.tsx
|
|
@@ -595,7 +599,8 @@ var audioCodecOption = {
|
|
|
595
599
|
docLink: "https://www.remotion.dev/docs/encoding/#audio-codec",
|
|
596
600
|
name: "Audio Codec",
|
|
597
601
|
ssrName,
|
|
598
|
-
type: "aac"
|
|
602
|
+
type: "aac",
|
|
603
|
+
id: cliFlag5
|
|
599
604
|
};
|
|
600
605
|
|
|
601
606
|
// src/options/beep-on-finish.tsx
|
|
@@ -631,7 +636,8 @@ var beepOnFinishOption = {
|
|
|
631
636
|
},
|
|
632
637
|
setConfig(value) {
|
|
633
638
|
beepOnFinish = value;
|
|
634
|
-
}
|
|
639
|
+
},
|
|
640
|
+
id: cliFlag6
|
|
635
641
|
};
|
|
636
642
|
|
|
637
643
|
// src/options/binaries-directory.tsx
|
|
@@ -689,7 +695,8 @@ var binariesDirectoryOption = {
|
|
|
689
695
|
},
|
|
690
696
|
setConfig: (value) => {
|
|
691
697
|
currentDirectory = value;
|
|
692
|
-
}
|
|
698
|
+
},
|
|
699
|
+
id: cliFlag7
|
|
693
700
|
};
|
|
694
701
|
|
|
695
702
|
// src/options/chrome-mode.tsx
|
|
@@ -759,13 +766,14 @@ var chromeModeOption = {
|
|
|
759
766
|
setConfig: (newChromeMode) => {
|
|
760
767
|
configSelection = newChromeMode;
|
|
761
768
|
},
|
|
762
|
-
type: "headless-shell"
|
|
769
|
+
type: "headless-shell",
|
|
770
|
+
id: cliFlag8
|
|
763
771
|
};
|
|
764
772
|
|
|
765
773
|
// src/options/color-space.tsx
|
|
766
774
|
import { NoReactInternals } from "remotion/no-react";
|
|
767
775
|
import { jsx as jsx7, jsxs as jsxs5, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
768
|
-
var validV4ColorSpaces = ["default", "bt709", "bt2020-ncl"];
|
|
776
|
+
var validV4ColorSpaces = ["default", "bt601", "bt709", "bt2020-ncl"];
|
|
769
777
|
var validV5ColorSpaces = ["bt601", "bt709", "bt2020-ncl"];
|
|
770
778
|
var validColorSpaces = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? validV5ColorSpaces : validV4ColorSpaces;
|
|
771
779
|
var DEFAULT_COLOR_SPACE = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? "bt709" : "default";
|
|
@@ -796,6 +804,25 @@ var colorSpaceOption = {
|
|
|
796
804
|
]
|
|
797
805
|
}) : /* @__PURE__ */ jsxs5(Fragment7, {
|
|
798
806
|
children: [
|
|
807
|
+
/* @__PURE__ */ jsxs5("code", {
|
|
808
|
+
children: [
|
|
809
|
+
'"',
|
|
810
|
+
"bt601",
|
|
811
|
+
'"'
|
|
812
|
+
]
|
|
813
|
+
}),
|
|
814
|
+
" ",
|
|
815
|
+
"(same as",
|
|
816
|
+
" ",
|
|
817
|
+
/* @__PURE__ */ jsxs5("code", {
|
|
818
|
+
children: [
|
|
819
|
+
'"',
|
|
820
|
+
"default",
|
|
821
|
+
'"'
|
|
822
|
+
]
|
|
823
|
+
}),
|
|
824
|
+
", since v4.0.424),",
|
|
825
|
+
" ",
|
|
799
826
|
/* @__PURE__ */ jsxs5("code", {
|
|
800
827
|
children: [
|
|
801
828
|
'"',
|
|
@@ -866,7 +893,8 @@ var colorSpaceOption = {
|
|
|
866
893
|
},
|
|
867
894
|
setConfig: (value) => {
|
|
868
895
|
colorSpace = value ?? DEFAULT_COLOR_SPACE;
|
|
869
|
-
}
|
|
896
|
+
},
|
|
897
|
+
id: cliFlag9
|
|
870
898
|
};
|
|
871
899
|
|
|
872
900
|
// src/options/crf.tsx
|
|
@@ -909,7 +937,8 @@ var crfOption = {
|
|
|
909
937
|
setConfig: (crf) => {
|
|
910
938
|
validateCrf(crf);
|
|
911
939
|
currentCrf = crf;
|
|
912
|
-
}
|
|
940
|
+
},
|
|
941
|
+
id: cliFlag10
|
|
913
942
|
};
|
|
914
943
|
|
|
915
944
|
// src/options/cross-site-isolation.tsx
|
|
@@ -946,7 +975,8 @@ var enableCrossSiteIsolationOption = {
|
|
|
946
975
|
},
|
|
947
976
|
setConfig(value) {
|
|
948
977
|
enableCrossSiteIsolation = value;
|
|
949
|
-
}
|
|
978
|
+
},
|
|
979
|
+
id: cliFlag11
|
|
950
980
|
};
|
|
951
981
|
|
|
952
982
|
// src/options/dark-mode.tsx
|
|
@@ -990,7 +1020,8 @@ var darkModeOption = {
|
|
|
990
1020
|
},
|
|
991
1021
|
setConfig: (value) => {
|
|
992
1022
|
darkMode = value;
|
|
993
|
-
}
|
|
1023
|
+
},
|
|
1024
|
+
id: cliFlag12
|
|
994
1025
|
};
|
|
995
1026
|
|
|
996
1027
|
// src/options/delete-after.tsx
|
|
@@ -1055,7 +1086,8 @@ var deleteAfterOption = {
|
|
|
1055
1086
|
},
|
|
1056
1087
|
setConfig: (value) => {
|
|
1057
1088
|
deleteAfter = value;
|
|
1058
|
-
}
|
|
1089
|
+
},
|
|
1090
|
+
id: cliFlag13
|
|
1059
1091
|
};
|
|
1060
1092
|
|
|
1061
1093
|
// src/options/disable-git-source.tsx
|
|
@@ -1082,7 +1114,8 @@ var disableGitSourceOption = {
|
|
|
1082
1114
|
throw new Error("Not implemented");
|
|
1083
1115
|
},
|
|
1084
1116
|
ssrName: "disableGitSource",
|
|
1085
|
-
type: false
|
|
1117
|
+
type: false,
|
|
1118
|
+
id: cliFlag14
|
|
1086
1119
|
};
|
|
1087
1120
|
|
|
1088
1121
|
// src/options/disallow-parallel-encoding.tsx
|
|
@@ -1118,7 +1151,8 @@ var disallowParallelEncodingOption = {
|
|
|
1118
1151
|
},
|
|
1119
1152
|
setConfig(value) {
|
|
1120
1153
|
disallowParallelEncoding = value;
|
|
1121
|
-
}
|
|
1154
|
+
},
|
|
1155
|
+
id: cliFlag15
|
|
1122
1156
|
};
|
|
1123
1157
|
|
|
1124
1158
|
// src/options/enable-lambda-insights.tsx
|
|
@@ -1162,7 +1196,8 @@ var enableLambdaInsights = {
|
|
|
1162
1196
|
value: false,
|
|
1163
1197
|
source: "default"
|
|
1164
1198
|
};
|
|
1165
|
-
}
|
|
1199
|
+
},
|
|
1200
|
+
id: cliFlag16
|
|
1166
1201
|
};
|
|
1167
1202
|
|
|
1168
1203
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
@@ -1223,7 +1258,8 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1223
1258
|
},
|
|
1224
1259
|
setConfig: (value) => {
|
|
1225
1260
|
multiProcessOnLinux = value;
|
|
1226
|
-
}
|
|
1261
|
+
},
|
|
1262
|
+
id: cliFlag17
|
|
1227
1263
|
};
|
|
1228
1264
|
|
|
1229
1265
|
// src/options/encoding-buffer-size.tsx
|
|
@@ -1266,7 +1302,8 @@ var encodingBufferSizeOption = {
|
|
|
1266
1302
|
source: "default"
|
|
1267
1303
|
};
|
|
1268
1304
|
},
|
|
1269
|
-
setConfig: setEncodingBufferSize
|
|
1305
|
+
setConfig: setEncodingBufferSize,
|
|
1306
|
+
id: cliFlag18
|
|
1270
1307
|
};
|
|
1271
1308
|
|
|
1272
1309
|
// src/options/encoding-max-rate.tsx
|
|
@@ -1308,7 +1345,8 @@ var encodingMaxRateOption = {
|
|
|
1308
1345
|
},
|
|
1309
1346
|
setConfig: (newMaxRate) => {
|
|
1310
1347
|
encodingMaxRate = newMaxRate;
|
|
1311
|
-
}
|
|
1348
|
+
},
|
|
1349
|
+
id: cliFlag19
|
|
1312
1350
|
};
|
|
1313
1351
|
|
|
1314
1352
|
// src/options/enforce-audio.tsx
|
|
@@ -1345,7 +1383,8 @@ var enforceAudioOption = {
|
|
|
1345
1383
|
},
|
|
1346
1384
|
setConfig: (value) => {
|
|
1347
1385
|
enforceAudioTrackState = value;
|
|
1348
|
-
}
|
|
1386
|
+
},
|
|
1387
|
+
id: cliFlag20
|
|
1349
1388
|
};
|
|
1350
1389
|
|
|
1351
1390
|
// src/options/experimental-client-side-rendering.tsx
|
|
@@ -1376,7 +1415,8 @@ var experimentalClientSideRenderingOption = {
|
|
|
1376
1415
|
},
|
|
1377
1416
|
setConfig(value) {
|
|
1378
1417
|
experimentalClientSideRenderingEnabled = value;
|
|
1379
|
-
}
|
|
1418
|
+
},
|
|
1419
|
+
id: cliFlag21
|
|
1380
1420
|
};
|
|
1381
1421
|
|
|
1382
1422
|
// src/options/folder-expiry.tsx
|
|
@@ -1426,7 +1466,8 @@ var folderExpiryOption = {
|
|
|
1426
1466
|
},
|
|
1427
1467
|
setConfig: (value) => {
|
|
1428
1468
|
enableFolderExpiry = value;
|
|
1429
|
-
}
|
|
1469
|
+
},
|
|
1470
|
+
id: cliFlag22
|
|
1430
1471
|
};
|
|
1431
1472
|
|
|
1432
1473
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
@@ -1468,7 +1509,8 @@ var forSeamlessAacConcatenationOption = {
|
|
|
1468
1509
|
forSeamlessAacConcatenation = value;
|
|
1469
1510
|
},
|
|
1470
1511
|
ssrName: "forSeamlessAacConcatenation",
|
|
1471
|
-
type: false
|
|
1512
|
+
type: false,
|
|
1513
|
+
id: cliFlag23
|
|
1472
1514
|
};
|
|
1473
1515
|
|
|
1474
1516
|
// src/options/force-new-studio.tsx
|
|
@@ -1498,7 +1540,8 @@ var forceNewStudioOption = {
|
|
|
1498
1540
|
},
|
|
1499
1541
|
setConfig(value) {
|
|
1500
1542
|
forceNewEnabled = value;
|
|
1501
|
-
}
|
|
1543
|
+
},
|
|
1544
|
+
id: cliFlag24
|
|
1502
1545
|
};
|
|
1503
1546
|
|
|
1504
1547
|
// src/options/gl.tsx
|
|
@@ -1654,7 +1697,8 @@ var glOption = {
|
|
|
1654
1697
|
setConfig: (value) => {
|
|
1655
1698
|
validateOpenGlRenderer(value);
|
|
1656
1699
|
openGlRenderer = value;
|
|
1657
|
-
}
|
|
1700
|
+
},
|
|
1701
|
+
id: cliFlag25
|
|
1658
1702
|
};
|
|
1659
1703
|
var validateOpenGlRenderer = (option2) => {
|
|
1660
1704
|
if (option2 === null) {
|
|
@@ -1714,7 +1758,8 @@ var hardwareAccelerationOption = {
|
|
|
1714
1758
|
throw new Error(`Invalid value for --${cliFlag26}: ${value}`);
|
|
1715
1759
|
}
|
|
1716
1760
|
currentValue = value;
|
|
1717
|
-
}
|
|
1761
|
+
},
|
|
1762
|
+
id: cliFlag26
|
|
1718
1763
|
};
|
|
1719
1764
|
|
|
1720
1765
|
// src/options/headless.tsx
|
|
@@ -1762,7 +1807,8 @@ var headlessOption = {
|
|
|
1762
1807
|
},
|
|
1763
1808
|
setConfig: (value) => {
|
|
1764
1809
|
headlessMode = value;
|
|
1765
|
-
}
|
|
1810
|
+
},
|
|
1811
|
+
id: cliFlag27
|
|
1766
1812
|
};
|
|
1767
1813
|
|
|
1768
1814
|
// src/options/image-sequence-pattern.tsx
|
|
@@ -1802,7 +1848,8 @@ var imageSequencePatternOption = {
|
|
|
1802
1848
|
},
|
|
1803
1849
|
setConfig: (pattern) => {
|
|
1804
1850
|
currentImageSequencePattern = pattern;
|
|
1805
|
-
}
|
|
1851
|
+
},
|
|
1852
|
+
id: cliFlag28
|
|
1806
1853
|
};
|
|
1807
1854
|
|
|
1808
1855
|
// src/options/ipv4.tsx
|
|
@@ -1832,7 +1879,8 @@ var ipv4Option = {
|
|
|
1832
1879
|
},
|
|
1833
1880
|
setConfig(value) {
|
|
1834
1881
|
forceIPv4 = value;
|
|
1835
|
-
}
|
|
1882
|
+
},
|
|
1883
|
+
id: cliFlag29
|
|
1836
1884
|
};
|
|
1837
1885
|
|
|
1838
1886
|
// src/options/is-production.tsx
|
|
@@ -1879,7 +1927,8 @@ var isProductionOption = {
|
|
|
1879
1927
|
setConfig: (value) => {
|
|
1880
1928
|
currentIsProductionKey = value;
|
|
1881
1929
|
},
|
|
1882
|
-
type: false
|
|
1930
|
+
type: false,
|
|
1931
|
+
id: cliFlag30
|
|
1883
1932
|
};
|
|
1884
1933
|
|
|
1885
1934
|
// src/options/jpeg-quality.tsx
|
|
@@ -1923,7 +1972,8 @@ var jpegQualityOption = {
|
|
|
1923
1972
|
source: "default",
|
|
1924
1973
|
value: defaultValue
|
|
1925
1974
|
};
|
|
1926
|
-
}
|
|
1975
|
+
},
|
|
1976
|
+
id: cliFlag31
|
|
1927
1977
|
};
|
|
1928
1978
|
|
|
1929
1979
|
// src/options/keyboard-shortcuts.tsx
|
|
@@ -1954,7 +2004,8 @@ var keyboardShortcutsOption = {
|
|
|
1954
2004
|
},
|
|
1955
2005
|
setConfig(value) {
|
|
1956
2006
|
keyboardShortcutsEnabled = value;
|
|
1957
|
-
}
|
|
2007
|
+
},
|
|
2008
|
+
id: cliFlag32
|
|
1958
2009
|
};
|
|
1959
2010
|
|
|
1960
2011
|
// src/options/latency-hint.tsx
|
|
@@ -2009,7 +2060,8 @@ var audioLatencyHintOption = {
|
|
|
2009
2060
|
},
|
|
2010
2061
|
setConfig: (profile) => {
|
|
2011
2062
|
value = profile;
|
|
2012
|
-
}
|
|
2063
|
+
},
|
|
2064
|
+
id: cliFlag33
|
|
2013
2065
|
};
|
|
2014
2066
|
|
|
2015
2067
|
// src/options/license-key.tsx
|
|
@@ -2046,7 +2098,8 @@ var licenseKeyOption = {
|
|
|
2046
2098
|
},
|
|
2047
2099
|
setConfig: (value2) => {
|
|
2048
2100
|
currentLicenseKey = value2;
|
|
2049
|
-
}
|
|
2101
|
+
},
|
|
2102
|
+
id: cliFlag34
|
|
2050
2103
|
};
|
|
2051
2104
|
|
|
2052
2105
|
// src/options/log-level.tsx
|
|
@@ -2108,7 +2161,8 @@ var logLevelOption = {
|
|
|
2108
2161
|
setConfig: (newLogLevel) => {
|
|
2109
2162
|
logLevel = newLogLevel;
|
|
2110
2163
|
},
|
|
2111
|
-
type: "error"
|
|
2164
|
+
type: "error",
|
|
2165
|
+
id: cliFlag35
|
|
2112
2166
|
};
|
|
2113
2167
|
|
|
2114
2168
|
// src/options/metadata.tsx
|
|
@@ -2181,7 +2235,8 @@ var metadataOption = {
|
|
|
2181
2235
|
setConfig: (newMetadata) => {
|
|
2182
2236
|
metadata = newMetadata;
|
|
2183
2237
|
},
|
|
2184
|
-
ssrName: "metadata"
|
|
2238
|
+
ssrName: "metadata",
|
|
2239
|
+
id: cliFlag36
|
|
2185
2240
|
};
|
|
2186
2241
|
|
|
2187
2242
|
// src/options/mute.tsx
|
|
@@ -2218,7 +2273,8 @@ var mutedOption = {
|
|
|
2218
2273
|
},
|
|
2219
2274
|
setConfig: () => {
|
|
2220
2275
|
mutedState = true;
|
|
2221
|
-
}
|
|
2276
|
+
},
|
|
2277
|
+
id: cliFlag37
|
|
2222
2278
|
};
|
|
2223
2279
|
|
|
2224
2280
|
// src/options/number-of-gif-loops.tsx
|
|
@@ -2301,7 +2357,8 @@ var numberOfGifLoopsOption = {
|
|
|
2301
2357
|
setConfig: (newLoop) => {
|
|
2302
2358
|
validate(newLoop);
|
|
2303
2359
|
currentLoop = newLoop;
|
|
2304
|
-
}
|
|
2360
|
+
},
|
|
2361
|
+
id: cliFlag38
|
|
2305
2362
|
};
|
|
2306
2363
|
|
|
2307
2364
|
// src/options/number-of-shared-audio-tags.tsx
|
|
@@ -2340,7 +2397,8 @@ var numberOfSharedAudioTagsOption = {
|
|
|
2340
2397
|
},
|
|
2341
2398
|
setConfig(value2) {
|
|
2342
2399
|
numberOfSharedAudioTags = value2;
|
|
2343
|
-
}
|
|
2400
|
+
},
|
|
2401
|
+
id: cliFlag39
|
|
2344
2402
|
};
|
|
2345
2403
|
|
|
2346
2404
|
// src/options/offthreadvideo-cache-size.tsx
|
|
@@ -2400,7 +2458,8 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2400
2458
|
},
|
|
2401
2459
|
setConfig: (size) => {
|
|
2402
2460
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
2403
|
-
}
|
|
2461
|
+
},
|
|
2462
|
+
id: cliFlag40
|
|
2404
2463
|
};
|
|
2405
2464
|
|
|
2406
2465
|
// src/options/offthreadvideo-threads.tsx
|
|
@@ -2449,7 +2508,8 @@ var offthreadVideoThreadsOption = {
|
|
|
2449
2508
|
},
|
|
2450
2509
|
setConfig: (size) => {
|
|
2451
2510
|
value2 = size ?? null;
|
|
2452
|
-
}
|
|
2511
|
+
},
|
|
2512
|
+
id: cliFlag41
|
|
2453
2513
|
};
|
|
2454
2514
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
2455
2515
|
|
|
@@ -2477,7 +2537,8 @@ var onBrowserDownloadOption = {
|
|
|
2477
2537
|
},
|
|
2478
2538
|
setConfig: () => {
|
|
2479
2539
|
throw new Error("does not support config file");
|
|
2480
|
-
}
|
|
2540
|
+
},
|
|
2541
|
+
id: cliFlag42
|
|
2481
2542
|
};
|
|
2482
2543
|
|
|
2483
2544
|
// src/options/overwrite.tsx
|
|
@@ -2530,7 +2591,8 @@ var overwriteOption = {
|
|
|
2530
2591
|
setConfig: (value3) => {
|
|
2531
2592
|
validate2(value3);
|
|
2532
2593
|
shouldOverwrite = value3;
|
|
2533
|
-
}
|
|
2594
|
+
},
|
|
2595
|
+
id: cliFlag43
|
|
2534
2596
|
};
|
|
2535
2597
|
|
|
2536
2598
|
// src/options/prefer-lossless.tsx
|
|
@@ -2568,7 +2630,8 @@ var preferLosslessAudioOption = {
|
|
|
2568
2630
|
},
|
|
2569
2631
|
setConfig: (val) => {
|
|
2570
2632
|
input = val;
|
|
2571
|
-
}
|
|
2633
|
+
},
|
|
2634
|
+
id: cliFlag44
|
|
2572
2635
|
};
|
|
2573
2636
|
|
|
2574
2637
|
// src/options/public-dir.tsx
|
|
@@ -2616,7 +2679,8 @@ var publicDirOption = {
|
|
|
2616
2679
|
setConfig: (value3) => {
|
|
2617
2680
|
currentPublicDir = value3;
|
|
2618
2681
|
},
|
|
2619
|
-
type: ""
|
|
2682
|
+
type: "",
|
|
2683
|
+
id: cliFlag45
|
|
2620
2684
|
};
|
|
2621
2685
|
|
|
2622
2686
|
// src/options/public-license-key.tsx
|
|
@@ -2662,7 +2726,8 @@ var publicLicenseKeyOption = {
|
|
|
2662
2726
|
}
|
|
2663
2727
|
currentPublicLicenseKey = value3;
|
|
2664
2728
|
},
|
|
2665
|
-
type: null
|
|
2729
|
+
type: null,
|
|
2730
|
+
id: cliFlag46
|
|
2666
2731
|
};
|
|
2667
2732
|
|
|
2668
2733
|
// src/options/public-path.tsx
|
|
@@ -2714,7 +2779,8 @@ var publicPathOption = {
|
|
|
2714
2779
|
setConfig: (value3) => {
|
|
2715
2780
|
currentPublicPath = value3;
|
|
2716
2781
|
},
|
|
2717
|
-
type: ""
|
|
2782
|
+
type: "",
|
|
2783
|
+
id: cliFlag47
|
|
2718
2784
|
};
|
|
2719
2785
|
|
|
2720
2786
|
// src/options/repro.tsx
|
|
@@ -2751,7 +2817,8 @@ var reproOption = {
|
|
|
2751
2817
|
source: "default"
|
|
2752
2818
|
};
|
|
2753
2819
|
},
|
|
2754
|
-
setConfig: setRepro
|
|
2820
|
+
setConfig: setRepro,
|
|
2821
|
+
id: cliFlag48
|
|
2755
2822
|
};
|
|
2756
2823
|
|
|
2757
2824
|
// src/options/scale.tsx
|
|
@@ -2804,21 +2871,83 @@ var scaleOption = {
|
|
|
2804
2871
|
},
|
|
2805
2872
|
setConfig: (scale) => {
|
|
2806
2873
|
currentScale = scale;
|
|
2807
|
-
}
|
|
2874
|
+
},
|
|
2875
|
+
id: cliFlag49
|
|
2876
|
+
};
|
|
2877
|
+
|
|
2878
|
+
// src/options/still-image-format.tsx
|
|
2879
|
+
import { jsx as jsx46, jsxs as jsxs34, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2880
|
+
var currentStillImageFormat = null;
|
|
2881
|
+
var cliFlag50 = "image-format";
|
|
2882
|
+
var stillImageFormatOption = {
|
|
2883
|
+
name: "Still Image Format",
|
|
2884
|
+
cliFlag: cliFlag50,
|
|
2885
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment46, {
|
|
2886
|
+
children: [
|
|
2887
|
+
"The image format to use when rendering a still. Must be one of",
|
|
2888
|
+
" ",
|
|
2889
|
+
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
2890
|
+
". Default:",
|
|
2891
|
+
" ",
|
|
2892
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2893
|
+
children: '"png"'
|
|
2894
|
+
}),
|
|
2895
|
+
"."
|
|
2896
|
+
]
|
|
2897
|
+
}),
|
|
2898
|
+
ssrName: "imageFormat",
|
|
2899
|
+
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
2900
|
+
type: null,
|
|
2901
|
+
getValue: ({ commandLine }) => {
|
|
2902
|
+
if (commandLine[cliFlag50] !== undefined) {
|
|
2903
|
+
const value3 = commandLine[cliFlag50];
|
|
2904
|
+
if (!validStillImageFormats.includes(value3)) {
|
|
2905
|
+
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
2906
|
+
}
|
|
2907
|
+
return {
|
|
2908
|
+
source: "cli",
|
|
2909
|
+
value: value3
|
|
2910
|
+
};
|
|
2911
|
+
}
|
|
2912
|
+
if (currentStillImageFormat !== null) {
|
|
2913
|
+
return {
|
|
2914
|
+
source: "config",
|
|
2915
|
+
value: currentStillImageFormat
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
return {
|
|
2919
|
+
source: "default",
|
|
2920
|
+
value: null
|
|
2921
|
+
};
|
|
2922
|
+
},
|
|
2923
|
+
setConfig: (value3) => {
|
|
2924
|
+
if (value3 === null) {
|
|
2925
|
+
currentStillImageFormat = null;
|
|
2926
|
+
return;
|
|
2927
|
+
}
|
|
2928
|
+
if (!validStillImageFormats.includes(value3)) {
|
|
2929
|
+
throw new TypeError([
|
|
2930
|
+
`Value ${value3} is not valid as a still image format.`,
|
|
2931
|
+
value3 === "jpg" ? 'Did you mean "jpeg"?' : null
|
|
2932
|
+
].filter(Boolean).join(" "));
|
|
2933
|
+
}
|
|
2934
|
+
currentStillImageFormat = value3;
|
|
2935
|
+
},
|
|
2936
|
+
id: "still-image-format"
|
|
2808
2937
|
};
|
|
2809
2938
|
|
|
2810
2939
|
// src/options/throw-if-site-exists.tsx
|
|
2811
2940
|
var DEFAULT5 = false;
|
|
2812
|
-
var
|
|
2941
|
+
var cliFlag51 = "throw-if-site-exists";
|
|
2813
2942
|
var throwIfSiteExistsOption = {
|
|
2814
|
-
cliFlag:
|
|
2943
|
+
cliFlag: cliFlag51,
|
|
2815
2944
|
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.`,
|
|
2816
2945
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
2817
2946
|
getValue: ({ commandLine }) => {
|
|
2818
|
-
if (commandLine[
|
|
2947
|
+
if (commandLine[cliFlag51]) {
|
|
2819
2948
|
return {
|
|
2820
2949
|
source: "cli",
|
|
2821
|
-
value: commandLine[
|
|
2950
|
+
value: commandLine[cliFlag51]
|
|
2822
2951
|
};
|
|
2823
2952
|
}
|
|
2824
2953
|
return {
|
|
@@ -2831,41 +2960,42 @@ var throwIfSiteExistsOption = {
|
|
|
2831
2960
|
throw new Error("Not implemented");
|
|
2832
2961
|
},
|
|
2833
2962
|
ssrName: "throwIfSiteExists",
|
|
2834
|
-
type: false
|
|
2963
|
+
type: false,
|
|
2964
|
+
id: cliFlag51
|
|
2835
2965
|
};
|
|
2836
2966
|
|
|
2837
2967
|
// src/options/timeout.tsx
|
|
2838
|
-
import { jsx as
|
|
2968
|
+
import { jsx as jsx47, jsxs as jsxs35, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
2839
2969
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
2840
2970
|
var validate3 = (value3) => {
|
|
2841
2971
|
if (typeof value3 !== "number") {
|
|
2842
2972
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
2843
2973
|
}
|
|
2844
2974
|
};
|
|
2845
|
-
var
|
|
2975
|
+
var cliFlag52 = "timeout";
|
|
2846
2976
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
2847
2977
|
name: "delayRender() timeout",
|
|
2848
|
-
cliFlag:
|
|
2849
|
-
description: () => /* @__PURE__ */
|
|
2978
|
+
cliFlag: cliFlag52,
|
|
2979
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment47, {
|
|
2850
2980
|
children: [
|
|
2851
2981
|
"A number describing how long the render may take to resolve all",
|
|
2852
2982
|
" ",
|
|
2853
|
-
/* @__PURE__ */
|
|
2983
|
+
/* @__PURE__ */ jsx47("a", {
|
|
2854
2984
|
href: "https://remotion.dev/docs/delay-render",
|
|
2855
|
-
children: /* @__PURE__ */
|
|
2985
|
+
children: /* @__PURE__ */ jsx47("code", {
|
|
2856
2986
|
children: "delayRender()"
|
|
2857
2987
|
})
|
|
2858
2988
|
}),
|
|
2859
2989
|
" ",
|
|
2860
2990
|
"calls",
|
|
2861
2991
|
" ",
|
|
2862
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ jsx47("a", {
|
|
2863
2993
|
style: { fontSize: "inherit" },
|
|
2864
2994
|
href: "https://remotion.dev/docs/timeout",
|
|
2865
2995
|
children: "before it times out"
|
|
2866
2996
|
}),
|
|
2867
2997
|
". Default: ",
|
|
2868
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx47("code", {
|
|
2869
2999
|
children: "30000"
|
|
2870
3000
|
})
|
|
2871
3001
|
]
|
|
@@ -2874,10 +3004,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2874
3004
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
2875
3005
|
type: 0,
|
|
2876
3006
|
getValue: ({ commandLine }) => {
|
|
2877
|
-
if (commandLine[
|
|
3007
|
+
if (commandLine[cliFlag52] !== undefined) {
|
|
2878
3008
|
return {
|
|
2879
3009
|
source: "cli",
|
|
2880
|
-
value: commandLine[
|
|
3010
|
+
value: commandLine[cliFlag52]
|
|
2881
3011
|
};
|
|
2882
3012
|
}
|
|
2883
3013
|
if (currentTimeout !== null) {
|
|
@@ -2895,30 +3025,31 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2895
3025
|
setConfig: (value3) => {
|
|
2896
3026
|
validate3(value3);
|
|
2897
3027
|
currentTimeout = value3;
|
|
2898
|
-
}
|
|
3028
|
+
},
|
|
3029
|
+
id: cliFlag52
|
|
2899
3030
|
};
|
|
2900
3031
|
|
|
2901
3032
|
// src/options/video-bitrate.tsx
|
|
2902
|
-
import { jsx as
|
|
3033
|
+
import { jsx as jsx48, jsxs as jsxs36, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
2903
3034
|
var videoBitrate = null;
|
|
2904
|
-
var
|
|
3035
|
+
var cliFlag53 = "video-bitrate";
|
|
2905
3036
|
var videoBitrateOption = {
|
|
2906
3037
|
name: "Video Bitrate",
|
|
2907
|
-
cliFlag:
|
|
2908
|
-
description: () => /* @__PURE__ */
|
|
3038
|
+
cliFlag: cliFlag53,
|
|
3039
|
+
description: () => /* @__PURE__ */ jsxs36(Fragment48, {
|
|
2909
3040
|
children: [
|
|
2910
3041
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
2911
3042
|
"'",
|
|
2912
3043
|
"s",
|
|
2913
|
-
/* @__PURE__ */
|
|
3044
|
+
/* @__PURE__ */ jsx48("code", {
|
|
2914
3045
|
children: "-b:v"
|
|
2915
3046
|
}),
|
|
2916
3047
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
2917
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ jsx48("code", {
|
|
2918
3049
|
children: "512K"
|
|
2919
3050
|
}),
|
|
2920
3051
|
" for 512 kbps, ",
|
|
2921
|
-
/* @__PURE__ */
|
|
3052
|
+
/* @__PURE__ */ jsx48("code", {
|
|
2922
3053
|
children: "1M"
|
|
2923
3054
|
}),
|
|
2924
3055
|
" for 1 Mbps."
|
|
@@ -2928,10 +3059,10 @@ var videoBitrateOption = {
|
|
|
2928
3059
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
2929
3060
|
type: "",
|
|
2930
3061
|
getValue: ({ commandLine }) => {
|
|
2931
|
-
if (commandLine[
|
|
3062
|
+
if (commandLine[cliFlag53] !== undefined) {
|
|
2932
3063
|
return {
|
|
2933
3064
|
source: "cli",
|
|
2934
|
-
value: commandLine[
|
|
3065
|
+
value: commandLine[cliFlag53]
|
|
2935
3066
|
};
|
|
2936
3067
|
}
|
|
2937
3068
|
if (videoBitrate !== null) {
|
|
@@ -2947,33 +3078,34 @@ var videoBitrateOption = {
|
|
|
2947
3078
|
},
|
|
2948
3079
|
setConfig: (bitrate) => {
|
|
2949
3080
|
videoBitrate = bitrate;
|
|
2950
|
-
}
|
|
3081
|
+
},
|
|
3082
|
+
id: cliFlag53
|
|
2951
3083
|
};
|
|
2952
3084
|
|
|
2953
3085
|
// src/options/video-cache-size.tsx
|
|
2954
|
-
import { jsx as
|
|
3086
|
+
import { jsx as jsx49, jsxs as jsxs37, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
2955
3087
|
var mediaCacheSizeInBytes = null;
|
|
2956
|
-
var
|
|
3088
|
+
var cliFlag54 = "media-cache-size-in-bytes";
|
|
2957
3089
|
var mediaCacheSizeInBytesOption = {
|
|
2958
3090
|
name: "@remotion/media cache size",
|
|
2959
|
-
cliFlag:
|
|
2960
|
-
description: () => /* @__PURE__ */
|
|
3091
|
+
cliFlag: cliFlag54,
|
|
3092
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment49, {
|
|
2961
3093
|
children: [
|
|
2962
3094
|
"Specify the maximum size of the cache that ",
|
|
2963
|
-
/* @__PURE__ */
|
|
3095
|
+
/* @__PURE__ */ jsx49("code", {
|
|
2964
3096
|
children: "<Video>"
|
|
2965
3097
|
}),
|
|
2966
3098
|
" and",
|
|
2967
3099
|
" ",
|
|
2968
|
-
/* @__PURE__ */
|
|
3100
|
+
/* @__PURE__ */ jsx49("code", {
|
|
2969
3101
|
children: "<Audio>"
|
|
2970
3102
|
}),
|
|
2971
3103
|
" from ",
|
|
2972
|
-
/* @__PURE__ */
|
|
3104
|
+
/* @__PURE__ */ jsx49("code", {
|
|
2973
3105
|
children: "@remotion/media"
|
|
2974
3106
|
}),
|
|
2975
3107
|
" may use combined, in bytes. ",
|
|
2976
|
-
/* @__PURE__ */
|
|
3108
|
+
/* @__PURE__ */ jsx49("br", {}),
|
|
2977
3109
|
"The default is half of the available system memory when the render starts."
|
|
2978
3110
|
]
|
|
2979
3111
|
}),
|
|
@@ -2981,10 +3113,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
2981
3113
|
docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
|
|
2982
3114
|
type: 0,
|
|
2983
3115
|
getValue: ({ commandLine }) => {
|
|
2984
|
-
if (commandLine[
|
|
3116
|
+
if (commandLine[cliFlag54] !== undefined) {
|
|
2985
3117
|
return {
|
|
2986
3118
|
source: "cli",
|
|
2987
|
-
value: commandLine[
|
|
3119
|
+
value: commandLine[cliFlag54]
|
|
2988
3120
|
};
|
|
2989
3121
|
}
|
|
2990
3122
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -3000,7 +3132,8 @@ var mediaCacheSizeInBytesOption = {
|
|
|
3000
3132
|
},
|
|
3001
3133
|
setConfig: (size) => {
|
|
3002
3134
|
mediaCacheSizeInBytes = size ?? null;
|
|
3003
|
-
}
|
|
3135
|
+
},
|
|
3136
|
+
id: cliFlag54
|
|
3004
3137
|
};
|
|
3005
3138
|
|
|
3006
3139
|
// src/path-normalize.ts
|
|
@@ -3119,7 +3252,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
3119
3252
|
};
|
|
3120
3253
|
|
|
3121
3254
|
// src/options/video-codec.tsx
|
|
3122
|
-
import { jsx as
|
|
3255
|
+
import { jsx as jsx50, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3123
3256
|
var codec;
|
|
3124
3257
|
var setCodec = (newCodec) => {
|
|
3125
3258
|
if (newCodec === undefined) {
|
|
@@ -3143,11 +3276,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
3143
3276
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
3144
3277
|
};
|
|
3145
3278
|
};
|
|
3146
|
-
var
|
|
3279
|
+
var cliFlag55 = "codec";
|
|
3147
3280
|
var videoCodecOption = {
|
|
3148
3281
|
name: "Codec",
|
|
3149
|
-
cliFlag:
|
|
3150
|
-
description: () => /* @__PURE__ */
|
|
3282
|
+
cliFlag: cliFlag55,
|
|
3283
|
+
description: () => /* @__PURE__ */ jsx50(Fragment50, {
|
|
3151
3284
|
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."
|
|
3152
3285
|
}),
|
|
3153
3286
|
ssrName: "codec",
|
|
@@ -3170,7 +3303,7 @@ var videoCodecOption = {
|
|
|
3170
3303
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
3171
3304
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
3172
3305
|
}
|
|
3173
|
-
const cliArgument = commandLine[
|
|
3306
|
+
const cliArgument = commandLine[cliFlag55];
|
|
3174
3307
|
if (cliArgument) {
|
|
3175
3308
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
3176
3309
|
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.`);
|
|
@@ -3215,16 +3348,78 @@ var videoCodecOption = {
|
|
|
3215
3348
|
}
|
|
3216
3349
|
return { value: DEFAULT_CODEC, source: "default" };
|
|
3217
3350
|
},
|
|
3218
|
-
setConfig: setCodec
|
|
3351
|
+
setConfig: setCodec,
|
|
3352
|
+
id: cliFlag55
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
// src/options/video-image-format.tsx
|
|
3356
|
+
import { jsx as jsx51, jsxs as jsxs38, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3357
|
+
var currentVideoImageFormat = null;
|
|
3358
|
+
var cliFlag56 = "image-format";
|
|
3359
|
+
var videoImageFormatOption = {
|
|
3360
|
+
name: "Video Image Format",
|
|
3361
|
+
cliFlag: cliFlag56,
|
|
3362
|
+
description: () => /* @__PURE__ */ jsxs38(Fragment51, {
|
|
3363
|
+
children: [
|
|
3364
|
+
"The image format to use when rendering frames for a video. Must be one of",
|
|
3365
|
+
" ",
|
|
3366
|
+
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
3367
|
+
". Default:",
|
|
3368
|
+
" ",
|
|
3369
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3370
|
+
children: '"jpeg"'
|
|
3371
|
+
}),
|
|
3372
|
+
". JPEG is faster, but does not support transparency."
|
|
3373
|
+
]
|
|
3374
|
+
}),
|
|
3375
|
+
ssrName: "imageFormat",
|
|
3376
|
+
docLink: "https://www.remotion.dev/docs/renderer/render-media#imageformat",
|
|
3377
|
+
type: null,
|
|
3378
|
+
getValue: ({ commandLine }) => {
|
|
3379
|
+
if (commandLine[cliFlag56] !== undefined) {
|
|
3380
|
+
const value3 = commandLine[cliFlag56];
|
|
3381
|
+
if (!validVideoImageFormats.includes(value3)) {
|
|
3382
|
+
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
3383
|
+
}
|
|
3384
|
+
return {
|
|
3385
|
+
source: "cli",
|
|
3386
|
+
value: value3
|
|
3387
|
+
};
|
|
3388
|
+
}
|
|
3389
|
+
if (currentVideoImageFormat !== null) {
|
|
3390
|
+
return {
|
|
3391
|
+
source: "config",
|
|
3392
|
+
value: currentVideoImageFormat
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
return {
|
|
3396
|
+
source: "default",
|
|
3397
|
+
value: null
|
|
3398
|
+
};
|
|
3399
|
+
},
|
|
3400
|
+
setConfig: (value3) => {
|
|
3401
|
+
if (value3 === null) {
|
|
3402
|
+
currentVideoImageFormat = null;
|
|
3403
|
+
return;
|
|
3404
|
+
}
|
|
3405
|
+
if (!validVideoImageFormats.includes(value3)) {
|
|
3406
|
+
throw new TypeError([
|
|
3407
|
+
`Value ${value3} is not valid as a video image format.`,
|
|
3408
|
+
value3 === "jpg" ? 'Did you mean "jpeg"?' : null
|
|
3409
|
+
].filter(Boolean).join(" "));
|
|
3410
|
+
}
|
|
3411
|
+
currentVideoImageFormat = value3;
|
|
3412
|
+
},
|
|
3413
|
+
id: "video-image-format"
|
|
3219
3414
|
};
|
|
3220
3415
|
|
|
3221
3416
|
// src/options/webhook-custom-data.tsx
|
|
3222
|
-
import { jsxs as
|
|
3223
|
-
var
|
|
3417
|
+
import { jsxs as jsxs39, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3418
|
+
var cliFlag57 = "webhook-custom-data";
|
|
3224
3419
|
var webhookCustomDataOption = {
|
|
3225
3420
|
name: "Webhook custom data",
|
|
3226
|
-
cliFlag:
|
|
3227
|
-
description: (type) => /* @__PURE__ */
|
|
3421
|
+
cliFlag: cliFlag57,
|
|
3422
|
+
description: (type) => /* @__PURE__ */ jsxs39(Fragment52, {
|
|
3228
3423
|
children: [
|
|
3229
3424
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
3230
3425
|
" ",
|
|
@@ -3239,11 +3434,12 @@ var webhookCustomDataOption = {
|
|
|
3239
3434
|
},
|
|
3240
3435
|
setConfig: () => {
|
|
3241
3436
|
throw new Error("Not implemented");
|
|
3242
|
-
}
|
|
3437
|
+
},
|
|
3438
|
+
id: cliFlag57
|
|
3243
3439
|
};
|
|
3244
3440
|
|
|
3245
3441
|
// src/options/x264-preset.tsx
|
|
3246
|
-
import { jsx as
|
|
3442
|
+
import { jsx as jsx52, jsxs as jsxs40, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3247
3443
|
var x264PresetOptions = [
|
|
3248
3444
|
"ultrafast",
|
|
3249
3445
|
"superfast",
|
|
@@ -3257,63 +3453,63 @@ var x264PresetOptions = [
|
|
|
3257
3453
|
"placebo"
|
|
3258
3454
|
];
|
|
3259
3455
|
var preset = null;
|
|
3260
|
-
var
|
|
3456
|
+
var cliFlag58 = "x264-preset";
|
|
3261
3457
|
var DEFAULT_PRESET = "medium";
|
|
3262
3458
|
var x264Option = {
|
|
3263
3459
|
name: "x264 Preset",
|
|
3264
|
-
cliFlag:
|
|
3265
|
-
description: () => /* @__PURE__ */
|
|
3460
|
+
cliFlag: cliFlag58,
|
|
3461
|
+
description: () => /* @__PURE__ */ jsxs40(Fragment53, {
|
|
3266
3462
|
children: [
|
|
3267
3463
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
3268
3464
|
" ",
|
|
3269
|
-
/* @__PURE__ */
|
|
3465
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3270
3466
|
children: "h264"
|
|
3271
3467
|
}),
|
|
3272
3468
|
" codec.",
|
|
3273
|
-
/* @__PURE__ */
|
|
3469
|
+
/* @__PURE__ */ jsx52("br", {}),
|
|
3274
3470
|
"Possible values: ",
|
|
3275
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3276
3472
|
children: "superfast"
|
|
3277
3473
|
}),
|
|
3278
3474
|
", ",
|
|
3279
|
-
/* @__PURE__ */
|
|
3475
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3280
3476
|
children: "veryfast"
|
|
3281
3477
|
}),
|
|
3282
3478
|
",",
|
|
3283
3479
|
" ",
|
|
3284
|
-
/* @__PURE__ */
|
|
3480
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3285
3481
|
children: "faster"
|
|
3286
3482
|
}),
|
|
3287
3483
|
", ",
|
|
3288
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3289
3485
|
children: "fast"
|
|
3290
3486
|
}),
|
|
3291
3487
|
", ",
|
|
3292
|
-
/* @__PURE__ */
|
|
3488
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3293
3489
|
children: "medium"
|
|
3294
3490
|
}),
|
|
3295
3491
|
",",
|
|
3296
3492
|
" ",
|
|
3297
|
-
/* @__PURE__ */
|
|
3493
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3298
3494
|
children: "slow"
|
|
3299
3495
|
}),
|
|
3300
3496
|
", ",
|
|
3301
|
-
/* @__PURE__ */
|
|
3497
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3302
3498
|
children: "slower"
|
|
3303
3499
|
}),
|
|
3304
3500
|
", ",
|
|
3305
|
-
/* @__PURE__ */
|
|
3501
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3306
3502
|
children: "veryslow"
|
|
3307
3503
|
}),
|
|
3308
3504
|
",",
|
|
3309
3505
|
" ",
|
|
3310
|
-
/* @__PURE__ */
|
|
3506
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3311
3507
|
children: "placebo"
|
|
3312
3508
|
}),
|
|
3313
3509
|
".",
|
|
3314
|
-
/* @__PURE__ */
|
|
3510
|
+
/* @__PURE__ */ jsx52("br", {}),
|
|
3315
3511
|
"Default: ",
|
|
3316
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3317
3513
|
children: DEFAULT_PRESET
|
|
3318
3514
|
})
|
|
3319
3515
|
]
|
|
@@ -3322,7 +3518,7 @@ var x264Option = {
|
|
|
3322
3518
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
3323
3519
|
type: "fast",
|
|
3324
3520
|
getValue: ({ commandLine }) => {
|
|
3325
|
-
const value3 = commandLine[
|
|
3521
|
+
const value3 = commandLine[cliFlag58];
|
|
3326
3522
|
if (typeof value3 !== "undefined") {
|
|
3327
3523
|
return { value: value3, source: "cli" };
|
|
3328
3524
|
}
|
|
@@ -3333,7 +3529,8 @@ var x264Option = {
|
|
|
3333
3529
|
},
|
|
3334
3530
|
setConfig: (profile) => {
|
|
3335
3531
|
preset = profile;
|
|
3336
|
-
}
|
|
3532
|
+
},
|
|
3533
|
+
id: cliFlag58
|
|
3337
3534
|
};
|
|
3338
3535
|
|
|
3339
3536
|
// src/options/index.tsx
|
|
@@ -3393,7 +3590,9 @@ var allOptions = {
|
|
|
3393
3590
|
keyboardShortcutsOption,
|
|
3394
3591
|
forceNewStudioOption,
|
|
3395
3592
|
numberOfSharedAudioTagsOption,
|
|
3396
|
-
ipv4Option
|
|
3593
|
+
ipv4Option,
|
|
3594
|
+
stillImageFormatOption,
|
|
3595
|
+
videoImageFormatOption
|
|
3397
3596
|
};
|
|
3398
3597
|
|
|
3399
3598
|
// src/options/options-map.ts
|