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