@remotion/renderer 4.0.514 → 4.0.516
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 +16 -0
- package/dist/esm/client.mjs +673 -634
- package/dist/esm/index.mjs +52 -3
- package/dist/index.d.ts +1 -1
- package/dist/options/enable-cancellation.d.ts +16 -0
- package/dist/options/enable-cancellation.js +31 -0
- package/dist/options/index.d.ts +16 -0
- package/dist/options/index.js +2 -0
- package/dist/prestitcher-memory-usage.d.ts +4 -0
- package/dist/prestitcher-memory-usage.js +10 -3
- package/dist/render-frame-and-retry-target-close.d.ts +1 -1
- package/dist/render-frame-with-option-to-reject.d.ts +1 -1
- package/dist/render-frame-with-option-to-reject.js +1 -1
- package/dist/render-frame.d.ts +1 -1
- package/dist/render-frames.d.ts +3 -3
- package/dist/render-media.js +7 -3
- package/dist/write-with-backpressure.d.ts +5 -0
- package/dist/write-with-backpressure.js +34 -0
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -1658,18 +1658,56 @@ var disallowParallelEncodingOption = {
|
|
|
1658
1658
|
id: cliFlag25
|
|
1659
1659
|
};
|
|
1660
1660
|
|
|
1661
|
-
// src/options/enable-
|
|
1661
|
+
// src/options/enable-cancellation.tsx
|
|
1662
1662
|
import { jsx as jsx23, jsxs as jsxs16, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1663
|
-
var cliFlag26 = "enable-
|
|
1663
|
+
var cliFlag26 = "enable-cancellation";
|
|
1664
|
+
var enableCancellation = false;
|
|
1665
|
+
var enableCancellationOption = {
|
|
1666
|
+
name: "Enable cancellation",
|
|
1667
|
+
cliFlag: cliFlag26,
|
|
1668
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment23, {
|
|
1669
|
+
children: [
|
|
1670
|
+
"Allows a Lambda render to be cancelled by pressing Ctrl+C while running",
|
|
1671
|
+
" ",
|
|
1672
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1673
|
+
children: "npx remotion lambda render"
|
|
1674
|
+
}),
|
|
1675
|
+
". Enabling cancellation causes each renderer function to poll S3 once per second while it is running."
|
|
1676
|
+
]
|
|
1677
|
+
}),
|
|
1678
|
+
ssrName: null,
|
|
1679
|
+
docLink: "https://www.remotion.dev/docs/lambda/cli/render#--enable-cancellation",
|
|
1680
|
+
type: false,
|
|
1681
|
+
setConfig: (value) => {
|
|
1682
|
+
enableCancellation = value;
|
|
1683
|
+
},
|
|
1684
|
+
getValue: ({ commandLine }) => {
|
|
1685
|
+
if (typeof commandLine[cliFlag26] === "boolean") {
|
|
1686
|
+
return {
|
|
1687
|
+
value: commandLine[cliFlag26],
|
|
1688
|
+
source: "cli"
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
return {
|
|
1692
|
+
value: enableCancellation,
|
|
1693
|
+
source: enableCancellation ? "config" : "default"
|
|
1694
|
+
};
|
|
1695
|
+
},
|
|
1696
|
+
id: cliFlag26
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
// src/options/enable-lambda-insights.tsx
|
|
1700
|
+
import { jsx as jsx24, jsxs as jsxs17, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1701
|
+
var cliFlag27 = "enable-lambda-insights";
|
|
1664
1702
|
var option = false;
|
|
1665
1703
|
var enableLambdaInsights = {
|
|
1666
1704
|
name: "Enable Lambda Insights",
|
|
1667
|
-
cliFlag:
|
|
1668
|
-
description: () => /* @__PURE__ */
|
|
1705
|
+
cliFlag: cliFlag27,
|
|
1706
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment24, {
|
|
1669
1707
|
children: [
|
|
1670
1708
|
"Enable",
|
|
1671
1709
|
" ",
|
|
1672
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ jsx24("a", {
|
|
1673
1711
|
href: "https://remotion.dev/docs/lambda/insights",
|
|
1674
1712
|
children: "Lambda Insights in AWS CloudWatch"
|
|
1675
1713
|
}),
|
|
@@ -1683,9 +1721,9 @@ var enableLambdaInsights = {
|
|
|
1683
1721
|
option = value;
|
|
1684
1722
|
},
|
|
1685
1723
|
getValue: ({ commandLine }) => {
|
|
1686
|
-
if (commandLine[
|
|
1724
|
+
if (commandLine[cliFlag27] !== undefined) {
|
|
1687
1725
|
return {
|
|
1688
|
-
value: commandLine[
|
|
1726
|
+
value: commandLine[cliFlag27],
|
|
1689
1727
|
source: "cli"
|
|
1690
1728
|
};
|
|
1691
1729
|
}
|
|
@@ -1700,41 +1738,41 @@ var enableLambdaInsights = {
|
|
|
1700
1738
|
source: "default"
|
|
1701
1739
|
};
|
|
1702
1740
|
},
|
|
1703
|
-
id:
|
|
1741
|
+
id: cliFlag27
|
|
1704
1742
|
};
|
|
1705
1743
|
|
|
1706
1744
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
1707
|
-
import { jsx as
|
|
1745
|
+
import { jsx as jsx25, jsxs as jsxs18, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1708
1746
|
var DEFAULT_VALUE2 = true;
|
|
1709
1747
|
var multiProcessOnLinux = DEFAULT_VALUE2;
|
|
1710
|
-
var
|
|
1748
|
+
var cliFlag28 = "enable-multiprocess-on-linux";
|
|
1711
1749
|
var enableMultiprocessOnLinuxOption = {
|
|
1712
1750
|
name: "Enable Multiprocess on Linux",
|
|
1713
|
-
cliFlag:
|
|
1714
|
-
description: () => /* @__PURE__ */
|
|
1751
|
+
cliFlag: cliFlag28,
|
|
1752
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment25, {
|
|
1715
1753
|
children: [
|
|
1716
1754
|
"Removes the ",
|
|
1717
|
-
/* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1718
1756
|
children: "--single-process"
|
|
1719
1757
|
}),
|
|
1720
1758
|
" flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing.",
|
|
1721
|
-
/* @__PURE__ */
|
|
1759
|
+
/* @__PURE__ */ jsx25("br", {}),
|
|
1722
1760
|
"Default: ",
|
|
1723
|
-
/* @__PURE__ */
|
|
1761
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1724
1762
|
children: "false"
|
|
1725
1763
|
}),
|
|
1726
1764
|
" until v4.0.136, then ",
|
|
1727
|
-
/* @__PURE__ */
|
|
1765
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1728
1766
|
children: "true"
|
|
1729
1767
|
}),
|
|
1730
1768
|
" from v4.0.137 on because newer Chrome versions ",
|
|
1731
1769
|
"don't",
|
|
1732
1770
|
" allow rendering with the ",
|
|
1733
|
-
/* @__PURE__ */
|
|
1771
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1734
1772
|
children: "--single-process"
|
|
1735
1773
|
}),
|
|
1736
1774
|
" flag. ",
|
|
1737
|
-
/* @__PURE__ */
|
|
1775
|
+
/* @__PURE__ */ jsx25("br", {}),
|
|
1738
1776
|
"This flag will be removed in Remotion v5.0."
|
|
1739
1777
|
]
|
|
1740
1778
|
}),
|
|
@@ -1742,10 +1780,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1742
1780
|
docLink: "https://www.remotion.dev/docs/chromium-flags",
|
|
1743
1781
|
type: false,
|
|
1744
1782
|
getValue: ({ commandLine }) => {
|
|
1745
|
-
if (commandLine[
|
|
1783
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1746
1784
|
return {
|
|
1747
1785
|
source: "cli",
|
|
1748
|
-
value: commandLine[
|
|
1786
|
+
value: commandLine[cliFlag28]
|
|
1749
1787
|
};
|
|
1750
1788
|
}
|
|
1751
1789
|
if (multiProcessOnLinux !== false) {
|
|
@@ -1762,23 +1800,23 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1762
1800
|
setConfig: (value) => {
|
|
1763
1801
|
multiProcessOnLinux = value;
|
|
1764
1802
|
},
|
|
1765
|
-
id:
|
|
1803
|
+
id: cliFlag28
|
|
1766
1804
|
};
|
|
1767
1805
|
|
|
1768
1806
|
// src/options/encoding-buffer-size.tsx
|
|
1769
|
-
import { jsx as
|
|
1807
|
+
import { jsx as jsx26, jsxs as jsxs19, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1770
1808
|
var encodingBufferSize = null;
|
|
1771
1809
|
var setEncodingBufferSize = (bitrate) => {
|
|
1772
1810
|
encodingBufferSize = bitrate;
|
|
1773
1811
|
};
|
|
1774
|
-
var
|
|
1812
|
+
var cliFlag29 = "buffer-size";
|
|
1775
1813
|
var encodingBufferSizeOption = {
|
|
1776
1814
|
name: "FFmpeg -bufsize flag",
|
|
1777
|
-
cliFlag:
|
|
1778
|
-
description: () => /* @__PURE__ */
|
|
1815
|
+
cliFlag: cliFlag29,
|
|
1816
|
+
description: () => /* @__PURE__ */ jsxs19(Fragment26, {
|
|
1779
1817
|
children: [
|
|
1780
1818
|
"The value for the ",
|
|
1781
|
-
/* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1782
1820
|
children: "-bufsize"
|
|
1783
1821
|
}),
|
|
1784
1822
|
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
|
|
@@ -1788,9 +1826,9 @@ var encodingBufferSizeOption = {
|
|
|
1788
1826
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
|
|
1789
1827
|
type: "",
|
|
1790
1828
|
getValue: ({ commandLine }) => {
|
|
1791
|
-
if (commandLine[
|
|
1829
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1792
1830
|
return {
|
|
1793
|
-
value: commandLine[
|
|
1831
|
+
value: commandLine[cliFlag29],
|
|
1794
1832
|
source: "cli"
|
|
1795
1833
|
};
|
|
1796
1834
|
}
|
|
@@ -1806,20 +1844,20 @@ var encodingBufferSizeOption = {
|
|
|
1806
1844
|
};
|
|
1807
1845
|
},
|
|
1808
1846
|
setConfig: setEncodingBufferSize,
|
|
1809
|
-
id:
|
|
1847
|
+
id: cliFlag29
|
|
1810
1848
|
};
|
|
1811
1849
|
|
|
1812
1850
|
// src/options/encoding-max-rate.tsx
|
|
1813
|
-
import { jsx as
|
|
1851
|
+
import { jsx as jsx27, jsxs as jsxs20, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1814
1852
|
var encodingMaxRate = null;
|
|
1815
|
-
var
|
|
1853
|
+
var cliFlag30 = "max-rate";
|
|
1816
1854
|
var encodingMaxRateOption = {
|
|
1817
1855
|
name: "FFmpeg -maxrate flag",
|
|
1818
|
-
cliFlag:
|
|
1819
|
-
description: () => /* @__PURE__ */
|
|
1856
|
+
cliFlag: cliFlag30,
|
|
1857
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment27, {
|
|
1820
1858
|
children: [
|
|
1821
1859
|
"The value for the ",
|
|
1822
|
-
/* @__PURE__ */
|
|
1860
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1823
1861
|
children: "-maxrate"
|
|
1824
1862
|
}),
|
|
1825
1863
|
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
|
|
@@ -1829,9 +1867,9 @@ var encodingMaxRateOption = {
|
|
|
1829
1867
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
|
|
1830
1868
|
type: "",
|
|
1831
1869
|
getValue: ({ commandLine }) => {
|
|
1832
|
-
if (commandLine[
|
|
1870
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
1833
1871
|
return {
|
|
1834
|
-
value: commandLine[
|
|
1872
|
+
value: commandLine[cliFlag30],
|
|
1835
1873
|
source: "cli"
|
|
1836
1874
|
};
|
|
1837
1875
|
}
|
|
@@ -1849,25 +1887,25 @@ var encodingMaxRateOption = {
|
|
|
1849
1887
|
setConfig: (newMaxRate) => {
|
|
1850
1888
|
encodingMaxRate = newMaxRate;
|
|
1851
1889
|
},
|
|
1852
|
-
id:
|
|
1890
|
+
id: cliFlag30
|
|
1853
1891
|
};
|
|
1854
1892
|
|
|
1855
1893
|
// src/options/enforce-audio.tsx
|
|
1856
|
-
import { jsx as
|
|
1894
|
+
import { jsx as jsx28, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1857
1895
|
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
|
|
1858
1896
|
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
1859
|
-
var
|
|
1897
|
+
var cliFlag31 = "enforce-audio-track";
|
|
1860
1898
|
var enforceAudioOption = {
|
|
1861
1899
|
name: "Enforce Audio Track",
|
|
1862
|
-
cliFlag:
|
|
1863
|
-
description: () => /* @__PURE__ */
|
|
1900
|
+
cliFlag: cliFlag31,
|
|
1901
|
+
description: () => /* @__PURE__ */ jsx28(Fragment28, {
|
|
1864
1902
|
children: "Render a silent audio track if there would be none otherwise."
|
|
1865
1903
|
}),
|
|
1866
1904
|
ssrName: "enforceAudioTrack",
|
|
1867
1905
|
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
|
|
1868
1906
|
type: false,
|
|
1869
1907
|
getValue: ({ commandLine }) => {
|
|
1870
|
-
if (commandLine[
|
|
1908
|
+
if (commandLine[cliFlag31]) {
|
|
1871
1909
|
return {
|
|
1872
1910
|
source: "cli",
|
|
1873
1911
|
value: true
|
|
@@ -1887,20 +1925,20 @@ var enforceAudioOption = {
|
|
|
1887
1925
|
setConfig: (value) => {
|
|
1888
1926
|
enforceAudioTrackState = value;
|
|
1889
1927
|
},
|
|
1890
|
-
id:
|
|
1928
|
+
id: cliFlag31
|
|
1891
1929
|
};
|
|
1892
1930
|
|
|
1893
1931
|
// src/options/env-file.tsx
|
|
1894
|
-
import { jsx as
|
|
1895
|
-
var
|
|
1932
|
+
import { jsx as jsx29, jsxs as jsxs21, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1933
|
+
var cliFlag32 = "env-file";
|
|
1896
1934
|
var envFileLocation = null;
|
|
1897
1935
|
var envFileOption = {
|
|
1898
1936
|
name: "Env File",
|
|
1899
|
-
cliFlag:
|
|
1900
|
-
description: () => /* @__PURE__ */
|
|
1937
|
+
cliFlag: cliFlag32,
|
|
1938
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment29, {
|
|
1901
1939
|
children: [
|
|
1902
1940
|
"Specify a location for a dotenv file. Default ",
|
|
1903
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1904
1942
|
children: ".env"
|
|
1905
1943
|
}),
|
|
1906
1944
|
"."
|
|
@@ -1909,10 +1947,10 @@ var envFileOption = {
|
|
|
1909
1947
|
ssrName: null,
|
|
1910
1948
|
docLink: "https://www.remotion.dev/docs/cli/render#--env-file",
|
|
1911
1949
|
getValue: ({ commandLine }) => {
|
|
1912
|
-
if (commandLine[
|
|
1950
|
+
if (commandLine[cliFlag32] !== undefined) {
|
|
1913
1951
|
return {
|
|
1914
1952
|
source: "cli",
|
|
1915
|
-
value: commandLine[
|
|
1953
|
+
value: commandLine[cliFlag32]
|
|
1916
1954
|
};
|
|
1917
1955
|
}
|
|
1918
1956
|
if (envFileLocation !== null) {
|
|
@@ -1930,30 +1968,30 @@ var envFileOption = {
|
|
|
1930
1968
|
envFileLocation = value;
|
|
1931
1969
|
},
|
|
1932
1970
|
type: "",
|
|
1933
|
-
id:
|
|
1971
|
+
id: cliFlag32
|
|
1934
1972
|
};
|
|
1935
1973
|
|
|
1936
1974
|
// src/options/every-nth-frame.tsx
|
|
1937
|
-
import { jsx as
|
|
1975
|
+
import { jsx as jsx30, jsxs as jsxs22, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
1938
1976
|
var DEFAULT_EVERY_NTH_FRAME = 1;
|
|
1939
1977
|
var everyNthFrame = DEFAULT_EVERY_NTH_FRAME;
|
|
1940
|
-
var
|
|
1978
|
+
var cliFlag33 = "every-nth-frame";
|
|
1941
1979
|
var everyNthFrameOption = {
|
|
1942
1980
|
name: "Every nth frame",
|
|
1943
|
-
cliFlag:
|
|
1944
|
-
description: () => /* @__PURE__ */
|
|
1981
|
+
cliFlag: cliFlag33,
|
|
1982
|
+
description: () => /* @__PURE__ */ jsxs22(Fragment30, {
|
|
1945
1983
|
children: [
|
|
1946
1984
|
"This option may only be set when rendering GIFs. It determines how many frames are rendered, while the other ones get skipped in order to lower the FPS of the GIF. For example, if the ",
|
|
1947
|
-
/* @__PURE__ */
|
|
1985
|
+
/* @__PURE__ */ jsx30("code", {
|
|
1948
1986
|
children: "fps"
|
|
1949
1987
|
}),
|
|
1950
1988
|
" is 30, and",
|
|
1951
1989
|
" ",
|
|
1952
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ jsx30("code", {
|
|
1953
1991
|
children: "everyNthFrame"
|
|
1954
1992
|
}),
|
|
1955
1993
|
" is 2, the FPS of the GIF is ",
|
|
1956
|
-
/* @__PURE__ */
|
|
1994
|
+
/* @__PURE__ */ jsx30("code", {
|
|
1957
1995
|
children: "15"
|
|
1958
1996
|
}),
|
|
1959
1997
|
"."
|
|
@@ -1963,10 +2001,10 @@ var everyNthFrameOption = {
|
|
|
1963
2001
|
docLink: "https://www.remotion.dev/docs/config#seteverynthframe",
|
|
1964
2002
|
type: DEFAULT_EVERY_NTH_FRAME,
|
|
1965
2003
|
getValue: ({ commandLine }) => {
|
|
1966
|
-
if (commandLine[
|
|
2004
|
+
if (commandLine[cliFlag33] !== undefined) {
|
|
1967
2005
|
return {
|
|
1968
2006
|
source: "cli",
|
|
1969
|
-
value: commandLine[
|
|
2007
|
+
value: commandLine[cliFlag33]
|
|
1970
2008
|
};
|
|
1971
2009
|
}
|
|
1972
2010
|
if (everyNthFrame !== DEFAULT_EVERY_NTH_FRAME) {
|
|
@@ -1983,20 +2021,20 @@ var everyNthFrameOption = {
|
|
|
1983
2021
|
setConfig: (value) => {
|
|
1984
2022
|
everyNthFrame = value;
|
|
1985
2023
|
},
|
|
1986
|
-
id:
|
|
2024
|
+
id: cliFlag33
|
|
1987
2025
|
};
|
|
1988
2026
|
|
|
1989
2027
|
// src/options/experimental-keep-audio-context-alive.tsx
|
|
1990
|
-
import { jsx as
|
|
2028
|
+
import { jsx as jsx31, jsxs as jsxs23, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
1991
2029
|
var experimentalKeepAudioContextAlive = false;
|
|
1992
|
-
var
|
|
2030
|
+
var cliFlag34 = "experimental-keep-audio-context-alive";
|
|
1993
2031
|
var experimentalKeepAudioContextAliveOption = {
|
|
1994
2032
|
name: "Keep AudioContext alive (experimental)",
|
|
1995
|
-
cliFlag:
|
|
1996
|
-
description: () => /* @__PURE__ */
|
|
2033
|
+
cliFlag: cliFlag34,
|
|
2034
|
+
description: () => /* @__PURE__ */ jsxs23(Fragment31, {
|
|
1997
2035
|
children: [
|
|
1998
2036
|
"Keeps the shared ",
|
|
1999
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2000
2038
|
children: "AudioContext"
|
|
2001
2039
|
}),
|
|
2002
2040
|
" running while the Remotion Studio is paused."
|
|
@@ -2006,9 +2044,9 @@ var experimentalKeepAudioContextAliveOption = {
|
|
|
2006
2044
|
docLink: "https://www.remotion.dev/docs/config#setexperimentalkeepaudiocontextalive",
|
|
2007
2045
|
type: false,
|
|
2008
2046
|
getValue: ({ commandLine }) => {
|
|
2009
|
-
if (commandLine[
|
|
2047
|
+
if (commandLine[cliFlag34] !== undefined && commandLine[cliFlag34] !== null) {
|
|
2010
2048
|
return {
|
|
2011
|
-
value: commandLine[
|
|
2049
|
+
value: commandLine[cliFlag34],
|
|
2012
2050
|
source: "cli"
|
|
2013
2051
|
};
|
|
2014
2052
|
}
|
|
@@ -2020,26 +2058,26 @@ var experimentalKeepAudioContextAliveOption = {
|
|
|
2020
2058
|
setConfig(value) {
|
|
2021
2059
|
experimentalKeepAudioContextAlive = value;
|
|
2022
2060
|
},
|
|
2023
|
-
id:
|
|
2061
|
+
id: cliFlag34
|
|
2024
2062
|
};
|
|
2025
2063
|
|
|
2026
2064
|
// src/options/folder-expiry.tsx
|
|
2027
|
-
import { jsx as
|
|
2065
|
+
import { jsx as jsx32, jsxs as jsxs24, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2028
2066
|
var enableFolderExpiry = null;
|
|
2029
|
-
var
|
|
2067
|
+
var cliFlag35 = "enable-folder-expiry";
|
|
2030
2068
|
var folderExpiryOption = {
|
|
2031
2069
|
name: "Lambda render expiration",
|
|
2032
|
-
cliFlag:
|
|
2070
|
+
cliFlag: cliFlag35,
|
|
2033
2071
|
description: () => {
|
|
2034
|
-
return /* @__PURE__ */
|
|
2072
|
+
return /* @__PURE__ */ jsxs24(Fragment32, {
|
|
2035
2073
|
children: [
|
|
2036
2074
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
2037
2075
|
" ",
|
|
2038
|
-
/* @__PURE__ */
|
|
2076
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2039
2077
|
children: "null"
|
|
2040
2078
|
}),
|
|
2041
2079
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
2042
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ jsx32("a", {
|
|
2043
2081
|
href: "/docs/lambda/autodelete",
|
|
2044
2082
|
children: "Lambda autodelete"
|
|
2045
2083
|
}),
|
|
@@ -2051,10 +2089,10 @@ var folderExpiryOption = {
|
|
|
2051
2089
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
2052
2090
|
type: false,
|
|
2053
2091
|
getValue: ({ commandLine }) => {
|
|
2054
|
-
if (commandLine[
|
|
2092
|
+
if (commandLine[cliFlag35] !== undefined) {
|
|
2055
2093
|
return {
|
|
2056
2094
|
source: "cli",
|
|
2057
|
-
value: commandLine[
|
|
2095
|
+
value: commandLine[cliFlag35]
|
|
2058
2096
|
};
|
|
2059
2097
|
}
|
|
2060
2098
|
if (enableFolderExpiry !== null) {
|
|
@@ -2071,28 +2109,28 @@ var folderExpiryOption = {
|
|
|
2071
2109
|
setConfig: (value) => {
|
|
2072
2110
|
enableFolderExpiry = value;
|
|
2073
2111
|
},
|
|
2074
|
-
id:
|
|
2112
|
+
id: cliFlag35
|
|
2075
2113
|
};
|
|
2076
2114
|
|
|
2077
2115
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
2078
|
-
import { jsx as
|
|
2116
|
+
import { jsx as jsx33, jsxs as jsxs25, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2079
2117
|
var DEFAULT3 = false;
|
|
2080
2118
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
2081
|
-
var
|
|
2119
|
+
var cliFlag36 = "for-seamless-aac-concatenation";
|
|
2082
2120
|
var forSeamlessAacConcatenationOption = {
|
|
2083
2121
|
name: "For seamless AAC concatenation",
|
|
2084
|
-
cliFlag:
|
|
2085
|
-
description: () => /* @__PURE__ */
|
|
2122
|
+
cliFlag: cliFlag36,
|
|
2123
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment33, {
|
|
2086
2124
|
children: [
|
|
2087
2125
|
"If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2127
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2090
2128
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
2091
2129
|
]
|
|
2092
2130
|
}),
|
|
2093
2131
|
docLink: "https://remotion.dev/docs/renderer",
|
|
2094
2132
|
getValue: ({ commandLine }) => {
|
|
2095
|
-
if (commandLine[
|
|
2133
|
+
if (commandLine[cliFlag36]) {
|
|
2096
2134
|
return {
|
|
2097
2135
|
source: "cli",
|
|
2098
2136
|
value: true
|
|
@@ -2114,26 +2152,26 @@ var forSeamlessAacConcatenationOption = {
|
|
|
2114
2152
|
},
|
|
2115
2153
|
ssrName: "forSeamlessAacConcatenation",
|
|
2116
2154
|
type: false,
|
|
2117
|
-
id:
|
|
2155
|
+
id: cliFlag36
|
|
2118
2156
|
};
|
|
2119
2157
|
|
|
2120
2158
|
// src/options/force-new-studio.tsx
|
|
2121
|
-
import { jsx as
|
|
2159
|
+
import { jsx as jsx34, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2122
2160
|
var forceNewEnabled = false;
|
|
2123
|
-
var
|
|
2161
|
+
var cliFlag37 = "force-new";
|
|
2124
2162
|
var forceNewStudioOption = {
|
|
2125
2163
|
name: "Force New Studio",
|
|
2126
|
-
cliFlag:
|
|
2127
|
-
description: () => /* @__PURE__ */
|
|
2164
|
+
cliFlag: cliFlag37,
|
|
2165
|
+
description: () => /* @__PURE__ */ jsx34(Fragment34, {
|
|
2128
2166
|
children: "Forces starting a new Studio instance even if one is already running on the same port for the same project."
|
|
2129
2167
|
}),
|
|
2130
2168
|
ssrName: null,
|
|
2131
2169
|
docLink: "https://www.remotion.dev/docs/config#setforcenewstudioenabled",
|
|
2132
2170
|
type: false,
|
|
2133
2171
|
getValue: ({ commandLine }) => {
|
|
2134
|
-
if (commandLine[
|
|
2172
|
+
if (commandLine[cliFlag37] !== undefined && commandLine[cliFlag37] !== null) {
|
|
2135
2173
|
return {
|
|
2136
|
-
value: commandLine[
|
|
2174
|
+
value: commandLine[cliFlag37],
|
|
2137
2175
|
source: "cli"
|
|
2138
2176
|
};
|
|
2139
2177
|
}
|
|
@@ -2145,7 +2183,7 @@ var forceNewStudioOption = {
|
|
|
2145
2183
|
setConfig(value) {
|
|
2146
2184
|
forceNewEnabled = value;
|
|
2147
2185
|
},
|
|
2148
|
-
id:
|
|
2186
|
+
id: cliFlag37
|
|
2149
2187
|
};
|
|
2150
2188
|
|
|
2151
2189
|
// src/frame-range.ts
|
|
@@ -2264,8 +2302,8 @@ var validateSelectedFrames = ({
|
|
|
2264
2302
|
};
|
|
2265
2303
|
|
|
2266
2304
|
// src/options/frames.tsx
|
|
2267
|
-
import { jsx as
|
|
2268
|
-
var
|
|
2305
|
+
import { jsx as jsx35, jsxs as jsxs26, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2306
|
+
var cliFlag38 = "frames";
|
|
2269
2307
|
var frameSelection = null;
|
|
2270
2308
|
var parseFrameRangeFromCli = (newFrameRange) => {
|
|
2271
2309
|
if (typeof newFrameRange === "number") {
|
|
@@ -2342,16 +2380,16 @@ var parseFrameRangeFromCli = (newFrameRange) => {
|
|
|
2342
2380
|
};
|
|
2343
2381
|
var framesOption = {
|
|
2344
2382
|
name: "Frame Range",
|
|
2345
|
-
cliFlag:
|
|
2346
|
-
description: () => /* @__PURE__ */
|
|
2383
|
+
cliFlag: cliFlag38,
|
|
2384
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment35, {
|
|
2347
2385
|
children: [
|
|
2348
2386
|
"Render a subset of a video. Pass a single number to render a still, or a range (e.g. ",
|
|
2349
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2350
2388
|
children: "0-9"
|
|
2351
2389
|
}),
|
|
2352
2390
|
") to render a subset of frames. Pass",
|
|
2353
2391
|
" ",
|
|
2354
|
-
/* @__PURE__ */
|
|
2392
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2355
2393
|
children: "100-"
|
|
2356
2394
|
}),
|
|
2357
2395
|
" to render from frame 100 to the end."
|
|
@@ -2361,8 +2399,8 @@ var framesOption = {
|
|
|
2361
2399
|
docLink: "https://www.remotion.dev/docs/config#setframerange",
|
|
2362
2400
|
type: null,
|
|
2363
2401
|
getValue: ({ commandLine }) => {
|
|
2364
|
-
if (commandLine[
|
|
2365
|
-
const value = parseFrameRangeFromCli(commandLine[
|
|
2402
|
+
if (commandLine[cliFlag38] !== undefined) {
|
|
2403
|
+
const value = parseFrameRangeFromCli(commandLine[cliFlag38]);
|
|
2366
2404
|
if (typeof value === "object" && !Array.isArray(value)) {
|
|
2367
2405
|
validateSelectedFrames({
|
|
2368
2406
|
frames: value.frames,
|
|
@@ -2389,12 +2427,12 @@ var framesOption = {
|
|
|
2389
2427
|
}
|
|
2390
2428
|
frameSelection = value;
|
|
2391
2429
|
},
|
|
2392
|
-
id:
|
|
2430
|
+
id: cliFlag38
|
|
2393
2431
|
};
|
|
2394
2432
|
|
|
2395
2433
|
// src/options/gl.tsx
|
|
2396
2434
|
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
|
|
2397
|
-
import { jsx as
|
|
2435
|
+
import { jsx as jsx36, jsxs as jsxs27, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2398
2436
|
var validOpenGlRenderers = [
|
|
2399
2437
|
"swangle",
|
|
2400
2438
|
"angle",
|
|
@@ -2409,42 +2447,42 @@ var getDefaultOpenGlRenderer = (enableV5BreakingChanges) => {
|
|
|
2409
2447
|
var DEFAULT_OPENGL_RENDERER = getDefaultOpenGlRenderer(NoReactInternals2.ENABLE_V5_BREAKING_CHANGES);
|
|
2410
2448
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
2411
2449
|
var AngleChangelog = () => {
|
|
2412
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsxs27("details", {
|
|
2413
2451
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
2414
2452
|
children: [
|
|
2415
|
-
/* @__PURE__ */
|
|
2453
|
+
/* @__PURE__ */ jsx36("summary", {
|
|
2416
2454
|
children: "Changelog"
|
|
2417
2455
|
}),
|
|
2418
|
-
/* @__PURE__ */
|
|
2456
|
+
/* @__PURE__ */ jsxs27("ul", {
|
|
2419
2457
|
children: [
|
|
2420
|
-
/* @__PURE__ */
|
|
2458
|
+
/* @__PURE__ */ jsxs27("li", {
|
|
2421
2459
|
children: [
|
|
2422
2460
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
2423
2461
|
" ",
|
|
2424
|
-
/* @__PURE__ */
|
|
2462
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2425
2463
|
children: "swiftshader"
|
|
2426
2464
|
}),
|
|
2427
2465
|
", but from v3.0.8 the default is",
|
|
2428
2466
|
" ",
|
|
2429
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2430
2468
|
children: "swangle"
|
|
2431
2469
|
}),
|
|
2432
2470
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
2433
2471
|
]
|
|
2434
2472
|
}),
|
|
2435
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ jsxs27("li", {
|
|
2436
2474
|
children: [
|
|
2437
2475
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
2438
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2439
2477
|
children: "angle"
|
|
2440
2478
|
}),
|
|
2441
2479
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
2442
2480
|
]
|
|
2443
2481
|
}),
|
|
2444
|
-
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */
|
|
2482
|
+
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs27("li", {
|
|
2445
2483
|
children: [
|
|
2446
2484
|
"From Remotion v5.0, the default is ",
|
|
2447
|
-
/* @__PURE__ */
|
|
2485
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2448
2486
|
children: "angle"
|
|
2449
2487
|
}),
|
|
2450
2488
|
". If no compatible GPU is available, Chromium automatically falls back to SwiftShader."
|
|
@@ -2455,65 +2493,65 @@ var AngleChangelog = () => {
|
|
|
2455
2493
|
]
|
|
2456
2494
|
});
|
|
2457
2495
|
};
|
|
2458
|
-
var
|
|
2496
|
+
var cliFlag39 = "gl";
|
|
2459
2497
|
var glOption = {
|
|
2460
|
-
cliFlag:
|
|
2498
|
+
cliFlag: cliFlag39,
|
|
2461
2499
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
2462
2500
|
name: "OpenGL renderer",
|
|
2463
2501
|
type: "angle",
|
|
2464
2502
|
ssrName: "gl",
|
|
2465
2503
|
description: () => {
|
|
2466
|
-
return /* @__PURE__ */
|
|
2504
|
+
return /* @__PURE__ */ jsxs27(Fragment36, {
|
|
2467
2505
|
children: [
|
|
2468
|
-
/* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ jsx36(AngleChangelog, {}),
|
|
2507
|
+
/* @__PURE__ */ jsxs27("p", {
|
|
2470
2508
|
children: [
|
|
2471
2509
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
2472
|
-
/* @__PURE__ */
|
|
2510
|
+
/* @__PURE__ */ jsx36("br", {}),
|
|
2473
2511
|
"Accepted values:"
|
|
2474
2512
|
]
|
|
2475
2513
|
}),
|
|
2476
|
-
/* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ jsxs27("ul", {
|
|
2477
2515
|
children: [
|
|
2478
|
-
/* @__PURE__ */
|
|
2479
|
-
children: /* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ jsx36("li", {
|
|
2517
|
+
children: /* @__PURE__ */ jsx36("code", {
|
|
2480
2518
|
children: '"angle"'
|
|
2481
2519
|
})
|
|
2482
2520
|
}),
|
|
2483
|
-
/* @__PURE__ */
|
|
2484
|
-
children: /* @__PURE__ */
|
|
2521
|
+
/* @__PURE__ */ jsx36("li", {
|
|
2522
|
+
children: /* @__PURE__ */ jsx36("code", {
|
|
2485
2523
|
children: '"egl"'
|
|
2486
2524
|
})
|
|
2487
2525
|
}),
|
|
2488
|
-
/* @__PURE__ */
|
|
2489
|
-
children: /* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ jsx36("li", {
|
|
2527
|
+
children: /* @__PURE__ */ jsx36("code", {
|
|
2490
2528
|
children: '"swiftshader"'
|
|
2491
2529
|
})
|
|
2492
2530
|
}),
|
|
2493
|
-
/* @__PURE__ */
|
|
2494
|
-
children: /* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ jsx36("li", {
|
|
2532
|
+
children: /* @__PURE__ */ jsx36("code", {
|
|
2495
2533
|
children: '"swangle"'
|
|
2496
2534
|
})
|
|
2497
2535
|
}),
|
|
2498
|
-
/* @__PURE__ */
|
|
2536
|
+
/* @__PURE__ */ jsxs27("li", {
|
|
2499
2537
|
children: [
|
|
2500
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2501
2539
|
children: '"vulkan"'
|
|
2502
2540
|
}),
|
|
2503
2541
|
" (",
|
|
2504
|
-
/* @__PURE__ */
|
|
2542
|
+
/* @__PURE__ */ jsx36("em", {
|
|
2505
2543
|
children: "from Remotion v4.0.41"
|
|
2506
2544
|
}),
|
|
2507
2545
|
")"
|
|
2508
2546
|
]
|
|
2509
2547
|
}),
|
|
2510
|
-
/* @__PURE__ */
|
|
2548
|
+
/* @__PURE__ */ jsxs27("li", {
|
|
2511
2549
|
children: [
|
|
2512
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2513
2551
|
children: '"angle-egl"'
|
|
2514
2552
|
}),
|
|
2515
2553
|
" (",
|
|
2516
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ jsx36("em", {
|
|
2517
2555
|
children: "from Remotion v4.0.51"
|
|
2518
2556
|
}),
|
|
2519
2557
|
")"
|
|
@@ -2521,16 +2559,16 @@ var glOption = {
|
|
|
2521
2559
|
})
|
|
2522
2560
|
]
|
|
2523
2561
|
}),
|
|
2524
|
-
/* @__PURE__ */
|
|
2562
|
+
/* @__PURE__ */ jsxs27("p", {
|
|
2525
2563
|
children: [
|
|
2526
2564
|
"The default is",
|
|
2527
2565
|
" ",
|
|
2528
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2529
2567
|
children: DEFAULT_OPENGL_RENDERER === null ? "null" : `"${DEFAULT_OPENGL_RENDERER}"`
|
|
2530
2568
|
}),
|
|
2531
2569
|
DEFAULT_OPENGL_RENDERER === null ? ", letting Chrome decide" : ", with automatic fallback to SwiftShader if no compatible GPU is available",
|
|
2532
2570
|
", except on Lambda where the default is ",
|
|
2533
|
-
/* @__PURE__ */
|
|
2571
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2534
2572
|
children: '"swangle"'
|
|
2535
2573
|
})
|
|
2536
2574
|
]
|
|
@@ -2539,10 +2577,10 @@ var glOption = {
|
|
|
2539
2577
|
});
|
|
2540
2578
|
},
|
|
2541
2579
|
getValue: ({ commandLine }) => {
|
|
2542
|
-
if (commandLine[
|
|
2543
|
-
validateOpenGlRenderer(commandLine[
|
|
2580
|
+
if (commandLine[cliFlag39]) {
|
|
2581
|
+
validateOpenGlRenderer(commandLine[cliFlag39]);
|
|
2544
2582
|
return {
|
|
2545
|
-
value: commandLine[
|
|
2583
|
+
value: commandLine[cliFlag39],
|
|
2546
2584
|
source: "cli"
|
|
2547
2585
|
};
|
|
2548
2586
|
}
|
|
@@ -2561,7 +2599,7 @@ var glOption = {
|
|
|
2561
2599
|
validateOpenGlRenderer(value);
|
|
2562
2600
|
openGlRenderer = value;
|
|
2563
2601
|
},
|
|
2564
|
-
id:
|
|
2602
|
+
id: cliFlag39
|
|
2565
2603
|
};
|
|
2566
2604
|
var validateOpenGlRenderer = (option2) => {
|
|
2567
2605
|
if (option2 === null) {
|
|
@@ -2574,7 +2612,7 @@ var validateOpenGlRenderer = (option2) => {
|
|
|
2574
2612
|
};
|
|
2575
2613
|
|
|
2576
2614
|
// src/options/gop-size.tsx
|
|
2577
|
-
import { jsx as
|
|
2615
|
+
import { jsx as jsx37, jsxs as jsxs28, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2578
2616
|
var gopSize = null;
|
|
2579
2617
|
var validateGopSize = (value) => {
|
|
2580
2618
|
if (value === null) {
|
|
@@ -2584,14 +2622,14 @@ var validateGopSize = (value) => {
|
|
|
2584
2622
|
throw new TypeError("The GOP size must be an integer greater than 0 or null.");
|
|
2585
2623
|
}
|
|
2586
2624
|
};
|
|
2587
|
-
var
|
|
2625
|
+
var cliFlag40 = "gop";
|
|
2588
2626
|
var gopSizeOption = {
|
|
2589
2627
|
name: "GOP size",
|
|
2590
|
-
cliFlag:
|
|
2591
|
-
description: () => /* @__PURE__ */
|
|
2628
|
+
cliFlag: cliFlag40,
|
|
2629
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment37, {
|
|
2592
2630
|
children: [
|
|
2593
2631
|
"Set the maximum number of frames between two keyframes. This maps to FFmpeg's ",
|
|
2594
|
-
/* @__PURE__ */
|
|
2632
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2595
2633
|
children: "-g"
|
|
2596
2634
|
}),
|
|
2597
2635
|
" option. Default: Let the encoder decide."
|
|
@@ -2601,7 +2639,7 @@ var gopSizeOption = {
|
|
|
2601
2639
|
docLink: "https://www.remotion.dev/docs/config#setgopsize",
|
|
2602
2640
|
type: null,
|
|
2603
2641
|
getValue: ({ commandLine }) => {
|
|
2604
|
-
const value = commandLine[
|
|
2642
|
+
const value = commandLine[cliFlag40];
|
|
2605
2643
|
if (value !== undefined) {
|
|
2606
2644
|
validateGopSize(value);
|
|
2607
2645
|
return { value, source: "cli" };
|
|
@@ -2612,7 +2650,7 @@ var gopSizeOption = {
|
|
|
2612
2650
|
validateGopSize(value);
|
|
2613
2651
|
gopSize = value;
|
|
2614
2652
|
},
|
|
2615
|
-
id:
|
|
2653
|
+
id: cliFlag40
|
|
2616
2654
|
};
|
|
2617
2655
|
|
|
2618
2656
|
// src/options/hardware-acceleration.tsx
|
|
@@ -2621,11 +2659,11 @@ var hardwareAccelerationOptions = [
|
|
|
2621
2659
|
"if-possible",
|
|
2622
2660
|
"required"
|
|
2623
2661
|
];
|
|
2624
|
-
var
|
|
2662
|
+
var cliFlag41 = "hardware-acceleration";
|
|
2625
2663
|
var currentValue = null;
|
|
2626
2664
|
var hardwareAccelerationOption = {
|
|
2627
2665
|
name: "Hardware Acceleration",
|
|
2628
|
-
cliFlag:
|
|
2666
|
+
cliFlag: cliFlag41,
|
|
2629
2667
|
description: () => `
|
|
2630
2668
|
One of
|
|
2631
2669
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -2637,10 +2675,10 @@ var hardwareAccelerationOption = {
|
|
|
2637
2675
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
2638
2676
|
type: "disable",
|
|
2639
2677
|
getValue: ({ commandLine }) => {
|
|
2640
|
-
if (commandLine[
|
|
2641
|
-
const value = commandLine[
|
|
2678
|
+
if (commandLine[cliFlag41] !== undefined) {
|
|
2679
|
+
const value = commandLine[cliFlag41];
|
|
2642
2680
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2643
|
-
throw new Error(`Invalid value for --${
|
|
2681
|
+
throw new Error(`Invalid value for --${cliFlag41}: ${value}`);
|
|
2644
2682
|
}
|
|
2645
2683
|
return {
|
|
2646
2684
|
source: "cli",
|
|
@@ -2660,26 +2698,26 @@ var hardwareAccelerationOption = {
|
|
|
2660
2698
|
},
|
|
2661
2699
|
setConfig: (value) => {
|
|
2662
2700
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2663
|
-
throw new Error(`Invalid value for --${
|
|
2701
|
+
throw new Error(`Invalid value for --${cliFlag41}: ${value}`);
|
|
2664
2702
|
}
|
|
2665
2703
|
currentValue = value;
|
|
2666
2704
|
},
|
|
2667
|
-
id:
|
|
2705
|
+
id: cliFlag41
|
|
2668
2706
|
};
|
|
2669
2707
|
|
|
2670
2708
|
// src/options/headless.tsx
|
|
2671
|
-
import { jsx as
|
|
2709
|
+
import { jsx as jsx38, jsxs as jsxs29, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2672
2710
|
var DEFAULT4 = true;
|
|
2673
2711
|
var headlessMode = DEFAULT4;
|
|
2674
|
-
var
|
|
2712
|
+
var cliFlag42 = "disable-headless";
|
|
2675
2713
|
var headlessOption = {
|
|
2676
2714
|
name: "Disable Headless Mode",
|
|
2677
|
-
cliFlag:
|
|
2678
|
-
description: () => /* @__PURE__ */
|
|
2715
|
+
cliFlag: cliFlag42,
|
|
2716
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment38, {
|
|
2679
2717
|
children: [
|
|
2680
2718
|
"If disabled, the render will open an actual Chrome window where you can see the render happen. This requires",
|
|
2681
2719
|
" ",
|
|
2682
|
-
/* @__PURE__ */
|
|
2720
|
+
/* @__PURE__ */ jsx38("a", {
|
|
2683
2721
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
2684
2722
|
children: "Chrome for Testing"
|
|
2685
2723
|
}),
|
|
@@ -2691,10 +2729,10 @@ var headlessOption = {
|
|
|
2691
2729
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
2692
2730
|
type: false,
|
|
2693
2731
|
getValue: ({ commandLine }) => {
|
|
2694
|
-
if (commandLine[
|
|
2732
|
+
if (commandLine[cliFlag42] !== undefined && commandLine[cliFlag42] !== null) {
|
|
2695
2733
|
return {
|
|
2696
2734
|
source: "cli",
|
|
2697
|
-
value: !commandLine[
|
|
2735
|
+
value: !commandLine[cliFlag42]
|
|
2698
2736
|
};
|
|
2699
2737
|
}
|
|
2700
2738
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -2711,27 +2749,27 @@ var headlessOption = {
|
|
|
2711
2749
|
setConfig: (value) => {
|
|
2712
2750
|
headlessMode = value;
|
|
2713
2751
|
},
|
|
2714
|
-
id:
|
|
2752
|
+
id: cliFlag42
|
|
2715
2753
|
};
|
|
2716
2754
|
|
|
2717
2755
|
// src/options/ignore-certificate-errors.tsx
|
|
2718
|
-
import { jsx as
|
|
2756
|
+
import { jsx as jsx39, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2719
2757
|
var ignoreCertificateErrors = false;
|
|
2720
|
-
var
|
|
2758
|
+
var cliFlag43 = "ignore-certificate-errors";
|
|
2721
2759
|
var ignoreCertificateErrorsOption = {
|
|
2722
2760
|
name: "Ignore certificate errors",
|
|
2723
|
-
cliFlag:
|
|
2724
|
-
description: () => /* @__PURE__ */
|
|
2761
|
+
cliFlag: cliFlag43,
|
|
2762
|
+
description: () => /* @__PURE__ */ jsx39(Fragment39, {
|
|
2725
2763
|
children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored."
|
|
2726
2764
|
}),
|
|
2727
2765
|
ssrName: "ignoreCertificateErrors",
|
|
2728
2766
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors",
|
|
2729
2767
|
type: false,
|
|
2730
2768
|
getValue: ({ commandLine }) => {
|
|
2731
|
-
if (commandLine[
|
|
2769
|
+
if (commandLine[cliFlag43] !== undefined && commandLine[cliFlag43] !== null) {
|
|
2732
2770
|
return {
|
|
2733
2771
|
source: "cli",
|
|
2734
|
-
value: Boolean(commandLine[
|
|
2772
|
+
value: Boolean(commandLine[cliFlag43])
|
|
2735
2773
|
};
|
|
2736
2774
|
}
|
|
2737
2775
|
if (ignoreCertificateErrors) {
|
|
@@ -2748,23 +2786,23 @@ var ignoreCertificateErrorsOption = {
|
|
|
2748
2786
|
setConfig: (value) => {
|
|
2749
2787
|
ignoreCertificateErrors = value;
|
|
2750
2788
|
},
|
|
2751
|
-
id:
|
|
2789
|
+
id: cliFlag43
|
|
2752
2790
|
};
|
|
2753
2791
|
|
|
2754
2792
|
// src/options/image-sequence.tsx
|
|
2755
|
-
import { jsx as
|
|
2756
|
-
var
|
|
2793
|
+
import { jsx as jsx40, jsxs as jsxs30, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2794
|
+
var cliFlag44 = "sequence";
|
|
2757
2795
|
var imageSequence = false;
|
|
2758
2796
|
var imageSequenceOption = {
|
|
2759
2797
|
name: "Image Sequence",
|
|
2760
|
-
cliFlag:
|
|
2761
|
-
description: () => /* @__PURE__ */
|
|
2798
|
+
cliFlag: cliFlag44,
|
|
2799
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment40, {
|
|
2762
2800
|
children: [
|
|
2763
2801
|
"Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See",
|
|
2764
2802
|
" ",
|
|
2765
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx40("a", {
|
|
2766
2804
|
href: "/docs/config#setimagesequence",
|
|
2767
|
-
children: /* @__PURE__ */
|
|
2805
|
+
children: /* @__PURE__ */ jsx40("code", {
|
|
2768
2806
|
children: "setImageSequence()"
|
|
2769
2807
|
})
|
|
2770
2808
|
}),
|
|
@@ -2775,10 +2813,10 @@ var imageSequenceOption = {
|
|
|
2775
2813
|
ssrName: null,
|
|
2776
2814
|
docLink: "https://www.remotion.dev/docs/config#setimagesequence",
|
|
2777
2815
|
getValue: ({ commandLine }) => {
|
|
2778
|
-
if (commandLine[
|
|
2816
|
+
if (commandLine[cliFlag44] !== undefined && commandLine[cliFlag44] !== null) {
|
|
2779
2817
|
return {
|
|
2780
2818
|
source: "cli",
|
|
2781
|
-
value: Boolean(commandLine[
|
|
2819
|
+
value: Boolean(commandLine[cliFlag44])
|
|
2782
2820
|
};
|
|
2783
2821
|
}
|
|
2784
2822
|
return {
|
|
@@ -2790,25 +2828,25 @@ var imageSequenceOption = {
|
|
|
2790
2828
|
imageSequence = value;
|
|
2791
2829
|
},
|
|
2792
2830
|
type: false,
|
|
2793
|
-
id:
|
|
2831
|
+
id: cliFlag44
|
|
2794
2832
|
};
|
|
2795
2833
|
|
|
2796
2834
|
// src/options/image-sequence-pattern.tsx
|
|
2797
|
-
import { jsx as
|
|
2798
|
-
var
|
|
2835
|
+
import { jsx as jsx41, jsxs as jsxs31, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2836
|
+
var cliFlag45 = "image-sequence-pattern";
|
|
2799
2837
|
var currentImageSequencePattern = null;
|
|
2800
2838
|
var imageSequencePatternOption = {
|
|
2801
2839
|
name: "Image Sequence Pattern",
|
|
2802
|
-
cliFlag:
|
|
2840
|
+
cliFlag: cliFlag45,
|
|
2803
2841
|
ssrName: "imageSequencePattern",
|
|
2804
|
-
description: () => /* @__PURE__ */
|
|
2842
|
+
description: () => /* @__PURE__ */ jsxs31(Fragment41, {
|
|
2805
2843
|
children: [
|
|
2806
2844
|
"Pattern for naming image sequence files. Supports ",
|
|
2807
|
-
/* @__PURE__ */
|
|
2845
|
+
/* @__PURE__ */ jsx41("code", {
|
|
2808
2846
|
children: "[frame]"
|
|
2809
2847
|
}),
|
|
2810
2848
|
" for the zero-padded frame number and ",
|
|
2811
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ jsx41("code", {
|
|
2812
2850
|
children: "[ext]"
|
|
2813
2851
|
}),
|
|
2814
2852
|
" for the file extension."
|
|
@@ -2824,7 +2862,7 @@ var imageSequencePatternOption = {
|
|
|
2824
2862
|
};
|
|
2825
2863
|
}
|
|
2826
2864
|
return {
|
|
2827
|
-
value: commandLine[
|
|
2865
|
+
value: commandLine[cliFlag45],
|
|
2828
2866
|
source: "cli"
|
|
2829
2867
|
};
|
|
2830
2868
|
},
|
|
@@ -2834,26 +2872,26 @@ var imageSequencePatternOption = {
|
|
|
2834
2872
|
reset: () => {
|
|
2835
2873
|
currentImageSequencePattern = null;
|
|
2836
2874
|
},
|
|
2837
|
-
id:
|
|
2875
|
+
id: cliFlag45
|
|
2838
2876
|
};
|
|
2839
2877
|
|
|
2840
2878
|
// src/options/interactivity.tsx
|
|
2841
|
-
import { jsx as
|
|
2879
|
+
import { jsx as jsx42, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2842
2880
|
var interactivityEnabled = true;
|
|
2843
2881
|
var configuredInteractivityEnabled = null;
|
|
2844
|
-
var
|
|
2882
|
+
var cliFlag46 = "disable-interactivity";
|
|
2845
2883
|
var interactivityOption = {
|
|
2846
2884
|
name: "Disable or enable Studio interactivity",
|
|
2847
|
-
cliFlag:
|
|
2848
|
-
description: () => /* @__PURE__ */
|
|
2885
|
+
cliFlag: cliFlag46,
|
|
2886
|
+
description: () => /* @__PURE__ */ jsx42(Fragment42, {
|
|
2849
2887
|
children: "Enable or disable interactive editing in the Remotion Studio. When disabled, the Studio keeps previewing and source navigation available, but disables preview outlines, the sequence inspector, visual controls, timeline selection and timeline editing gestures."
|
|
2850
2888
|
}),
|
|
2851
2889
|
ssrName: null,
|
|
2852
2890
|
docLink: "https://www.remotion.dev/docs/config#setinteractivityenabled",
|
|
2853
2891
|
type: false,
|
|
2854
2892
|
getValue: ({ commandLine }) => {
|
|
2855
|
-
if (commandLine[
|
|
2856
|
-
interactivityEnabled = commandLine[
|
|
2893
|
+
if (commandLine[cliFlag46] !== undefined && commandLine[cliFlag46] !== null) {
|
|
2894
|
+
interactivityEnabled = commandLine[cliFlag46] === false;
|
|
2857
2895
|
return {
|
|
2858
2896
|
value: interactivityEnabled,
|
|
2859
2897
|
source: "cli"
|
|
@@ -2873,26 +2911,26 @@ var interactivityOption = {
|
|
|
2873
2911
|
interactivityEnabled = true;
|
|
2874
2912
|
configuredInteractivityEnabled = null;
|
|
2875
2913
|
},
|
|
2876
|
-
id:
|
|
2914
|
+
id: cliFlag46
|
|
2877
2915
|
};
|
|
2878
2916
|
|
|
2879
2917
|
// src/options/ipv4.tsx
|
|
2880
|
-
import { jsx as
|
|
2918
|
+
import { jsx as jsx43, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2881
2919
|
var forceIPv4 = false;
|
|
2882
|
-
var
|
|
2920
|
+
var cliFlag47 = "ipv4";
|
|
2883
2921
|
var ipv4Option = {
|
|
2884
2922
|
name: "IPv4",
|
|
2885
|
-
cliFlag:
|
|
2886
|
-
description: () => /* @__PURE__ */
|
|
2923
|
+
cliFlag: cliFlag47,
|
|
2924
|
+
description: () => /* @__PURE__ */ jsx43(Fragment43, {
|
|
2887
2925
|
children: "Forces Remotion to bind to an IPv4 interface for the Studio server."
|
|
2888
2926
|
}),
|
|
2889
2927
|
ssrName: null,
|
|
2890
2928
|
docLink: "https://www.remotion.dev/docs/cli/studio",
|
|
2891
2929
|
type: false,
|
|
2892
2930
|
getValue: ({ commandLine }) => {
|
|
2893
|
-
if (commandLine[
|
|
2931
|
+
if (commandLine[cliFlag47] !== undefined && commandLine[cliFlag47] !== null) {
|
|
2894
2932
|
return {
|
|
2895
|
-
value: commandLine[
|
|
2933
|
+
value: commandLine[cliFlag47],
|
|
2896
2934
|
source: "cli"
|
|
2897
2935
|
};
|
|
2898
2936
|
}
|
|
@@ -2904,25 +2942,25 @@ var ipv4Option = {
|
|
|
2904
2942
|
setConfig(value) {
|
|
2905
2943
|
forceIPv4 = value;
|
|
2906
2944
|
},
|
|
2907
|
-
id:
|
|
2945
|
+
id: cliFlag47
|
|
2908
2946
|
};
|
|
2909
2947
|
|
|
2910
2948
|
// src/options/is-production.tsx
|
|
2911
|
-
import { jsx as
|
|
2912
|
-
var
|
|
2949
|
+
import { jsx as jsx44, jsxs as jsxs32, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2950
|
+
var cliFlag48 = "is-production";
|
|
2913
2951
|
var currentIsProductionKey = null;
|
|
2914
2952
|
var isProductionOption = {
|
|
2915
2953
|
name: "Is Production",
|
|
2916
|
-
cliFlag:
|
|
2917
|
-
description: () => /* @__PURE__ */
|
|
2954
|
+
cliFlag: cliFlag48,
|
|
2955
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment44, {
|
|
2918
2956
|
children: [
|
|
2919
2957
|
"Pass ",
|
|
2920
|
-
/* @__PURE__ */
|
|
2958
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2921
2959
|
children: "false"
|
|
2922
2960
|
}),
|
|
2923
2961
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
2924
2962
|
" ",
|
|
2925
|
-
/* @__PURE__ */
|
|
2963
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2926
2964
|
children: "licenseKey"
|
|
2927
2965
|
}),
|
|
2928
2966
|
"."
|
|
@@ -2931,10 +2969,10 @@ var isProductionOption = {
|
|
|
2931
2969
|
ssrName: "isProduction",
|
|
2932
2970
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2933
2971
|
getValue: ({ commandLine }) => {
|
|
2934
|
-
if (commandLine[
|
|
2972
|
+
if (commandLine[cliFlag48] !== undefined && commandLine[cliFlag48] !== null) {
|
|
2935
2973
|
return {
|
|
2936
2974
|
source: "cli",
|
|
2937
|
-
value: commandLine[
|
|
2975
|
+
value: commandLine[cliFlag48]
|
|
2938
2976
|
};
|
|
2939
2977
|
}
|
|
2940
2978
|
if (currentIsProductionKey !== null) {
|
|
@@ -2952,11 +2990,11 @@ var isProductionOption = {
|
|
|
2952
2990
|
currentIsProductionKey = value;
|
|
2953
2991
|
},
|
|
2954
2992
|
type: false,
|
|
2955
|
-
id:
|
|
2993
|
+
id: cliFlag48
|
|
2956
2994
|
};
|
|
2957
2995
|
|
|
2958
2996
|
// src/options/jpeg-quality.tsx
|
|
2959
|
-
import { jsx as
|
|
2997
|
+
import { jsx as jsx45, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2960
2998
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
2961
2999
|
var quality = defaultValue;
|
|
2962
3000
|
var setJpegQuality = (q) => {
|
|
@@ -2967,11 +3005,11 @@ var setJpegQuality = (q) => {
|
|
|
2967
3005
|
}
|
|
2968
3006
|
quality = q;
|
|
2969
3007
|
};
|
|
2970
|
-
var
|
|
3008
|
+
var cliFlag49 = "jpeg-quality";
|
|
2971
3009
|
var jpegQualityOption = {
|
|
2972
3010
|
name: "JPEG Quality",
|
|
2973
|
-
cliFlag:
|
|
2974
|
-
description: () => /* @__PURE__ */
|
|
3011
|
+
cliFlag: cliFlag49,
|
|
3012
|
+
description: () => /* @__PURE__ */ jsx45(Fragment45, {
|
|
2975
3013
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
2976
3014
|
}),
|
|
2977
3015
|
ssrName: "jpegQuality",
|
|
@@ -2979,11 +3017,11 @@ var jpegQualityOption = {
|
|
|
2979
3017
|
type: 0,
|
|
2980
3018
|
setConfig: setJpegQuality,
|
|
2981
3019
|
getValue: ({ commandLine }) => {
|
|
2982
|
-
if (commandLine[
|
|
2983
|
-
validateJpegQuality(commandLine[
|
|
3020
|
+
if (commandLine[cliFlag49] !== undefined) {
|
|
3021
|
+
validateJpegQuality(commandLine[cliFlag49]);
|
|
2984
3022
|
return {
|
|
2985
3023
|
source: "cli",
|
|
2986
|
-
value: commandLine[
|
|
3024
|
+
value: commandLine[cliFlag49]
|
|
2987
3025
|
};
|
|
2988
3026
|
}
|
|
2989
3027
|
if (quality !== defaultValue) {
|
|
@@ -2997,26 +3035,26 @@ var jpegQualityOption = {
|
|
|
2997
3035
|
value: defaultValue
|
|
2998
3036
|
};
|
|
2999
3037
|
},
|
|
3000
|
-
id:
|
|
3038
|
+
id: cliFlag49
|
|
3001
3039
|
};
|
|
3002
3040
|
|
|
3003
3041
|
// src/options/keyboard-shortcuts.tsx
|
|
3004
|
-
import { jsx as
|
|
3042
|
+
import { jsx as jsx46, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
3005
3043
|
var keyboardShortcutsEnabled = true;
|
|
3006
3044
|
var configuredKeyboardShortcutsEnabled = null;
|
|
3007
|
-
var
|
|
3045
|
+
var cliFlag50 = "disable-keyboard-shortcuts";
|
|
3008
3046
|
var keyboardShortcutsOption = {
|
|
3009
3047
|
name: "Disable or Enable keyboard shortcuts",
|
|
3010
|
-
cliFlag:
|
|
3011
|
-
description: () => /* @__PURE__ */
|
|
3048
|
+
cliFlag: cliFlag50,
|
|
3049
|
+
description: () => /* @__PURE__ */ jsx46(Fragment46, {
|
|
3012
3050
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
3013
3051
|
}),
|
|
3014
3052
|
ssrName: null,
|
|
3015
3053
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
3016
3054
|
type: false,
|
|
3017
3055
|
getValue: ({ commandLine }) => {
|
|
3018
|
-
if (commandLine[
|
|
3019
|
-
keyboardShortcutsEnabled = commandLine[
|
|
3056
|
+
if (commandLine[cliFlag50] !== undefined && commandLine[cliFlag50] !== null) {
|
|
3057
|
+
keyboardShortcutsEnabled = commandLine[cliFlag50] === false;
|
|
3020
3058
|
return {
|
|
3021
3059
|
value: keyboardShortcutsEnabled,
|
|
3022
3060
|
source: "cli"
|
|
@@ -3036,42 +3074,42 @@ var keyboardShortcutsOption = {
|
|
|
3036
3074
|
keyboardShortcutsEnabled = true;
|
|
3037
3075
|
configuredKeyboardShortcutsEnabled = null;
|
|
3038
3076
|
},
|
|
3039
|
-
id:
|
|
3077
|
+
id: cliFlag50
|
|
3040
3078
|
};
|
|
3041
3079
|
|
|
3042
3080
|
// src/options/latency-hint.tsx
|
|
3043
|
-
import { jsx as
|
|
3044
|
-
var
|
|
3081
|
+
import { jsx as jsx47, jsxs as jsxs33, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3082
|
+
var cliFlag51 = "audio-latency-hint";
|
|
3045
3083
|
var value = null;
|
|
3046
3084
|
var audioLatencyHintOption = {
|
|
3047
3085
|
name: "Audio Latency Hint",
|
|
3048
|
-
cliFlag:
|
|
3049
|
-
description: () => /* @__PURE__ */
|
|
3086
|
+
cliFlag: cliFlag51,
|
|
3087
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment47, {
|
|
3050
3088
|
children: [
|
|
3051
3089
|
"Sets the",
|
|
3052
3090
|
" ",
|
|
3053
|
-
/* @__PURE__ */
|
|
3091
|
+
/* @__PURE__ */ jsx47("a", {
|
|
3054
3092
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
3055
3093
|
children: "audio latency"
|
|
3056
3094
|
}),
|
|
3057
3095
|
" ",
|
|
3058
3096
|
"hint for the global ",
|
|
3059
|
-
/* @__PURE__ */
|
|
3097
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3060
3098
|
children: "AudioContext"
|
|
3061
3099
|
}),
|
|
3062
3100
|
" context that Remotion uses to play audio.",
|
|
3063
|
-
/* @__PURE__ */
|
|
3101
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3064
3102
|
"Possible values: ",
|
|
3065
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3066
3104
|
children: "interactive"
|
|
3067
3105
|
}),
|
|
3068
3106
|
", ",
|
|
3069
|
-
/* @__PURE__ */
|
|
3107
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3070
3108
|
children: "balanced"
|
|
3071
3109
|
}),
|
|
3072
3110
|
",",
|
|
3073
3111
|
" ",
|
|
3074
|
-
/* @__PURE__ */
|
|
3112
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3075
3113
|
children: "playback"
|
|
3076
3114
|
})
|
|
3077
3115
|
]
|
|
@@ -3080,7 +3118,7 @@ var audioLatencyHintOption = {
|
|
|
3080
3118
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
3081
3119
|
type: "playback",
|
|
3082
3120
|
getValue: ({ commandLine }) => {
|
|
3083
|
-
const val = commandLine[
|
|
3121
|
+
const val = commandLine[cliFlag51];
|
|
3084
3122
|
if (typeof val !== "undefined") {
|
|
3085
3123
|
return { value: val, source: "cli" };
|
|
3086
3124
|
}
|
|
@@ -3096,21 +3134,21 @@ var audioLatencyHintOption = {
|
|
|
3096
3134
|
reset: () => {
|
|
3097
3135
|
value = null;
|
|
3098
3136
|
},
|
|
3099
|
-
id:
|
|
3137
|
+
id: cliFlag51
|
|
3100
3138
|
};
|
|
3101
3139
|
|
|
3102
3140
|
// src/options/license-key.tsx
|
|
3103
|
-
import { jsx as
|
|
3141
|
+
import { jsx as jsx48, jsxs as jsxs34, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3104
3142
|
var currentLicenseKey = null;
|
|
3105
|
-
var
|
|
3143
|
+
var cliFlag52 = "license-key";
|
|
3106
3144
|
var licenseKeyOption = {
|
|
3107
3145
|
name: "License key",
|
|
3108
|
-
cliFlag:
|
|
3109
|
-
description: () => /* @__PURE__ */
|
|
3146
|
+
cliFlag: cliFlag52,
|
|
3147
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment48, {
|
|
3110
3148
|
children: [
|
|
3111
3149
|
"License key for sending a usage event using",
|
|
3112
3150
|
" ",
|
|
3113
|
-
/* @__PURE__ */
|
|
3151
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3114
3152
|
children: "@remotion/licensing"
|
|
3115
3153
|
}),
|
|
3116
3154
|
"."
|
|
@@ -3120,10 +3158,10 @@ var licenseKeyOption = {
|
|
|
3120
3158
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
3121
3159
|
type: null,
|
|
3122
3160
|
getValue: ({ commandLine }) => {
|
|
3123
|
-
if (commandLine[
|
|
3161
|
+
if (commandLine[cliFlag52] !== undefined) {
|
|
3124
3162
|
return {
|
|
3125
3163
|
source: "cli",
|
|
3126
|
-
value: commandLine[
|
|
3164
|
+
value: commandLine[cliFlag52]
|
|
3127
3165
|
};
|
|
3128
3166
|
}
|
|
3129
3167
|
return {
|
|
@@ -3134,48 +3172,48 @@ var licenseKeyOption = {
|
|
|
3134
3172
|
setConfig: (value2) => {
|
|
3135
3173
|
currentLicenseKey = value2;
|
|
3136
3174
|
},
|
|
3137
|
-
id:
|
|
3175
|
+
id: cliFlag52
|
|
3138
3176
|
};
|
|
3139
3177
|
|
|
3140
3178
|
// src/options/log-level.tsx
|
|
3141
|
-
import { jsx as
|
|
3179
|
+
import { jsx as jsx49, jsxs as jsxs35, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
3142
3180
|
var logLevel = "info";
|
|
3143
3181
|
var configuredLogLevel = null;
|
|
3144
|
-
var
|
|
3182
|
+
var cliFlag53 = "log";
|
|
3145
3183
|
var logLevelOption = {
|
|
3146
|
-
cliFlag:
|
|
3184
|
+
cliFlag: cliFlag53,
|
|
3147
3185
|
name: "Log Level",
|
|
3148
3186
|
ssrName: "logLevel",
|
|
3149
|
-
description: () => /* @__PURE__ */
|
|
3187
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment49, {
|
|
3150
3188
|
children: [
|
|
3151
3189
|
"One of ",
|
|
3152
|
-
/* @__PURE__ */
|
|
3190
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3153
3191
|
children: "trace"
|
|
3154
3192
|
}),
|
|
3155
3193
|
", ",
|
|
3156
|
-
/* @__PURE__ */
|
|
3194
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3157
3195
|
children: "verbose"
|
|
3158
3196
|
}),
|
|
3159
3197
|
", ",
|
|
3160
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3161
3199
|
children: "info"
|
|
3162
3200
|
}),
|
|
3163
3201
|
",",
|
|
3164
3202
|
" ",
|
|
3165
|
-
/* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3166
3204
|
children: "warn"
|
|
3167
3205
|
}),
|
|
3168
3206
|
", ",
|
|
3169
|
-
/* @__PURE__ */
|
|
3207
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3170
3208
|
children: "error"
|
|
3171
3209
|
}),
|
|
3172
3210
|
".",
|
|
3173
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ jsx49("br", {}),
|
|
3174
3212
|
" Determines how much info is being logged to the console.",
|
|
3175
|
-
/* @__PURE__ */
|
|
3176
|
-
/* @__PURE__ */
|
|
3213
|
+
/* @__PURE__ */ jsx49("br", {}),
|
|
3214
|
+
/* @__PURE__ */ jsx49("br", {}),
|
|
3177
3215
|
" Default ",
|
|
3178
|
-
/* @__PURE__ */
|
|
3216
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3179
3217
|
children: "info"
|
|
3180
3218
|
}),
|
|
3181
3219
|
"."
|
|
@@ -3183,11 +3221,11 @@ var logLevelOption = {
|
|
|
3183
3221
|
}),
|
|
3184
3222
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
3185
3223
|
getValue: ({ commandLine }) => {
|
|
3186
|
-
if (commandLine[
|
|
3187
|
-
if (!isValidLogLevel(commandLine[
|
|
3224
|
+
if (commandLine[cliFlag53]) {
|
|
3225
|
+
if (!isValidLogLevel(commandLine[cliFlag53])) {
|
|
3188
3226
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
3189
3227
|
}
|
|
3190
|
-
return { value: commandLine[
|
|
3228
|
+
return { value: commandLine[cliFlag53], source: "cli" };
|
|
3191
3229
|
}
|
|
3192
3230
|
if (logLevel !== "info") {
|
|
3193
3231
|
return { value: logLevel, source: "config" };
|
|
@@ -3204,23 +3242,23 @@ var logLevelOption = {
|
|
|
3204
3242
|
configuredLogLevel = null;
|
|
3205
3243
|
},
|
|
3206
3244
|
type: "error",
|
|
3207
|
-
id:
|
|
3245
|
+
id: cliFlag53
|
|
3208
3246
|
};
|
|
3209
3247
|
|
|
3210
3248
|
// src/options/metadata.tsx
|
|
3211
|
-
import { jsx as
|
|
3249
|
+
import { jsx as jsx50, jsxs as jsxs36, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3212
3250
|
var metadata = {};
|
|
3213
|
-
var
|
|
3251
|
+
var cliFlag54 = "metadata";
|
|
3214
3252
|
var metadataOption = {
|
|
3215
3253
|
name: "Metadata",
|
|
3216
|
-
cliFlag:
|
|
3254
|
+
cliFlag: cliFlag54,
|
|
3217
3255
|
description: (mode) => {
|
|
3218
3256
|
if (mode === "ssr") {
|
|
3219
|
-
return /* @__PURE__ */
|
|
3257
|
+
return /* @__PURE__ */ jsxs36(Fragment50, {
|
|
3220
3258
|
children: [
|
|
3221
3259
|
"An object containing metadata to be embedded in the video. See",
|
|
3222
3260
|
" ",
|
|
3223
|
-
/* @__PURE__ */
|
|
3261
|
+
/* @__PURE__ */ jsx50("a", {
|
|
3224
3262
|
href: "/docs/metadata",
|
|
3225
3263
|
children: "here"
|
|
3226
3264
|
}),
|
|
@@ -3228,18 +3266,18 @@ var metadataOption = {
|
|
|
3228
3266
|
]
|
|
3229
3267
|
});
|
|
3230
3268
|
}
|
|
3231
|
-
return /* @__PURE__ */
|
|
3269
|
+
return /* @__PURE__ */ jsxs36(Fragment50, {
|
|
3232
3270
|
children: [
|
|
3233
3271
|
"Metadata to be embedded in the video. See",
|
|
3234
3272
|
" ",
|
|
3235
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ jsx50("a", {
|
|
3236
3274
|
href: "/docs/metadata",
|
|
3237
3275
|
children: "here"
|
|
3238
3276
|
}),
|
|
3239
3277
|
" for which metadata is accepted.",
|
|
3240
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsx50("br", {}),
|
|
3241
3279
|
"The parameter must be in the format of ",
|
|
3242
|
-
/* @__PURE__ */
|
|
3280
|
+
/* @__PURE__ */ jsx50("code", {
|
|
3243
3281
|
children: "--metadata key=value"
|
|
3244
3282
|
}),
|
|
3245
3283
|
" ",
|
|
@@ -3250,8 +3288,8 @@ var metadataOption = {
|
|
|
3250
3288
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
3251
3289
|
type: {},
|
|
3252
3290
|
getValue: ({ commandLine }) => {
|
|
3253
|
-
if (commandLine[
|
|
3254
|
-
const val = commandLine[
|
|
3291
|
+
if (commandLine[cliFlag54] !== undefined) {
|
|
3292
|
+
const val = commandLine[cliFlag54];
|
|
3255
3293
|
const array = typeof val === "string" ? [val] : val;
|
|
3256
3294
|
const keyValues = array.map((a) => {
|
|
3257
3295
|
if (!a.includes("=")) {
|
|
@@ -3278,28 +3316,28 @@ var metadataOption = {
|
|
|
3278
3316
|
metadata = newMetadata;
|
|
3279
3317
|
},
|
|
3280
3318
|
ssrName: "metadata",
|
|
3281
|
-
id:
|
|
3319
|
+
id: cliFlag54
|
|
3282
3320
|
};
|
|
3283
3321
|
|
|
3284
3322
|
// src/options/mute.tsx
|
|
3285
|
-
import { jsx as
|
|
3323
|
+
import { jsx as jsx51, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3286
3324
|
var DEFAULT_MUTED_STATE = false;
|
|
3287
3325
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
3288
|
-
var
|
|
3326
|
+
var cliFlag55 = "muted";
|
|
3289
3327
|
var mutedOption = {
|
|
3290
3328
|
name: "Muted",
|
|
3291
|
-
cliFlag:
|
|
3292
|
-
description: () => /* @__PURE__ */
|
|
3329
|
+
cliFlag: cliFlag55,
|
|
3330
|
+
description: () => /* @__PURE__ */ jsx51(Fragment51, {
|
|
3293
3331
|
children: "The Audio of the video will be omitted."
|
|
3294
3332
|
}),
|
|
3295
3333
|
ssrName: "muted",
|
|
3296
3334
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
3297
3335
|
type: false,
|
|
3298
3336
|
getValue: ({ commandLine }) => {
|
|
3299
|
-
if (commandLine[
|
|
3337
|
+
if (commandLine[cliFlag55] !== null) {
|
|
3300
3338
|
return {
|
|
3301
3339
|
source: "cli",
|
|
3302
|
-
value: commandLine[
|
|
3340
|
+
value: commandLine[cliFlag55]
|
|
3303
3341
|
};
|
|
3304
3342
|
}
|
|
3305
3343
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -3319,17 +3357,17 @@ var mutedOption = {
|
|
|
3319
3357
|
reset: () => {
|
|
3320
3358
|
mutedState = DEFAULT_MUTED_STATE;
|
|
3321
3359
|
},
|
|
3322
|
-
id:
|
|
3360
|
+
id: cliFlag55
|
|
3323
3361
|
};
|
|
3324
3362
|
|
|
3325
3363
|
// src/options/no-open.tsx
|
|
3326
|
-
import { jsx as
|
|
3364
|
+
import { jsx as jsx52, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3327
3365
|
var shouldOpenBrowser = true;
|
|
3328
|
-
var
|
|
3366
|
+
var cliFlag56 = "no-open";
|
|
3329
3367
|
var noOpenOption = {
|
|
3330
3368
|
name: "Disable browser auto-open",
|
|
3331
|
-
cliFlag:
|
|
3332
|
-
description: () => /* @__PURE__ */
|
|
3369
|
+
cliFlag: cliFlag56,
|
|
3370
|
+
description: () => /* @__PURE__ */ jsx52(Fragment52, {
|
|
3333
3371
|
children: "If specified, Remotion will not open a browser window when starting the Studio."
|
|
3334
3372
|
}),
|
|
3335
3373
|
ssrName: null,
|
|
@@ -3351,54 +3389,54 @@ var noOpenOption = {
|
|
|
3351
3389
|
reset: () => {
|
|
3352
3390
|
shouldOpenBrowser = true;
|
|
3353
3391
|
},
|
|
3354
|
-
id:
|
|
3392
|
+
id: cliFlag56
|
|
3355
3393
|
};
|
|
3356
3394
|
|
|
3357
3395
|
// src/options/number-of-gif-loops.tsx
|
|
3358
|
-
import { jsx as
|
|
3396
|
+
import { jsx as jsx53, jsxs as jsxs37, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3359
3397
|
var currentLoop = null;
|
|
3360
3398
|
var validate = (newLoop) => {
|
|
3361
3399
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
3362
3400
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
3363
3401
|
}
|
|
3364
3402
|
};
|
|
3365
|
-
var
|
|
3403
|
+
var cliFlag57 = "number-of-gif-loops";
|
|
3366
3404
|
var numberOfGifLoopsOption = {
|
|
3367
3405
|
name: "Number of GIF loops",
|
|
3368
|
-
cliFlag:
|
|
3406
|
+
cliFlag: cliFlag57,
|
|
3369
3407
|
description: () => {
|
|
3370
|
-
return /* @__PURE__ */
|
|
3408
|
+
return /* @__PURE__ */ jsxs37(Fragment53, {
|
|
3371
3409
|
children: [
|
|
3372
3410
|
"Allows you to set the number of loops as follows:",
|
|
3373
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ jsxs37("ul", {
|
|
3374
3412
|
children: [
|
|
3375
|
-
/* @__PURE__ */
|
|
3413
|
+
/* @__PURE__ */ jsxs37("li", {
|
|
3376
3414
|
children: [
|
|
3377
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3378
3416
|
children: "null"
|
|
3379
3417
|
}),
|
|
3380
3418
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
3381
3419
|
]
|
|
3382
3420
|
}),
|
|
3383
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ jsxs37("li", {
|
|
3384
3422
|
children: [
|
|
3385
|
-
/* @__PURE__ */
|
|
3423
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3386
3424
|
children: "0"
|
|
3387
3425
|
}),
|
|
3388
3426
|
" disables looping"
|
|
3389
3427
|
]
|
|
3390
3428
|
}),
|
|
3391
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ jsxs37("li", {
|
|
3392
3430
|
children: [
|
|
3393
|
-
/* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3394
3432
|
children: "1"
|
|
3395
3433
|
}),
|
|
3396
3434
|
" loops the GIF once (plays twice in total)"
|
|
3397
3435
|
]
|
|
3398
3436
|
}),
|
|
3399
|
-
/* @__PURE__ */
|
|
3437
|
+
/* @__PURE__ */ jsxs37("li", {
|
|
3400
3438
|
children: [
|
|
3401
|
-
/* @__PURE__ */
|
|
3439
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3402
3440
|
children: "2"
|
|
3403
3441
|
}),
|
|
3404
3442
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -3413,10 +3451,10 @@ var numberOfGifLoopsOption = {
|
|
|
3413
3451
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
3414
3452
|
type: 0,
|
|
3415
3453
|
getValue: ({ commandLine }) => {
|
|
3416
|
-
if (commandLine[
|
|
3417
|
-
validate(commandLine[
|
|
3454
|
+
if (commandLine[cliFlag57] !== undefined) {
|
|
3455
|
+
validate(commandLine[cliFlag57]);
|
|
3418
3456
|
return {
|
|
3419
|
-
value: commandLine[
|
|
3457
|
+
value: commandLine[cliFlag57],
|
|
3420
3458
|
source: "cli"
|
|
3421
3459
|
};
|
|
3422
3460
|
}
|
|
@@ -3435,22 +3473,22 @@ var numberOfGifLoopsOption = {
|
|
|
3435
3473
|
validate(newLoop);
|
|
3436
3474
|
currentLoop = newLoop;
|
|
3437
3475
|
},
|
|
3438
|
-
id:
|
|
3476
|
+
id: cliFlag57
|
|
3439
3477
|
};
|
|
3440
3478
|
|
|
3441
3479
|
// src/options/number-of-shared-audio-tags.tsx
|
|
3442
|
-
import { jsx as
|
|
3480
|
+
import { jsx as jsx54, jsxs as jsxs38, Fragment as Fragment54 } from "react/jsx-runtime";
|
|
3443
3481
|
var numberOfSharedAudioTags = 0;
|
|
3444
3482
|
var configuredNumberOfSharedAudioTags = null;
|
|
3445
|
-
var
|
|
3483
|
+
var cliFlag58 = "number-of-shared-audio-tags";
|
|
3446
3484
|
var numberOfSharedAudioTagsOption = {
|
|
3447
3485
|
name: "Number of shared audio tags",
|
|
3448
|
-
cliFlag:
|
|
3449
|
-
description: () => /* @__PURE__ */
|
|
3486
|
+
cliFlag: cliFlag58,
|
|
3487
|
+
description: () => /* @__PURE__ */ jsxs38(Fragment54, {
|
|
3450
3488
|
children: [
|
|
3451
3489
|
"Set number of shared audio tags. See",
|
|
3452
3490
|
" ",
|
|
3453
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ jsx54("a", {
|
|
3454
3492
|
href: "https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop",
|
|
3455
3493
|
children: "Using the numberOfSharedAudioTags prop"
|
|
3456
3494
|
}),
|
|
@@ -3462,9 +3500,9 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3462
3500
|
docLink: "https://www.remotion.dev/docs/config#setnumberofsharedaudiotags",
|
|
3463
3501
|
type: 0,
|
|
3464
3502
|
getValue: ({ commandLine }) => {
|
|
3465
|
-
if (commandLine[
|
|
3503
|
+
if (commandLine[cliFlag58] !== undefined) {
|
|
3466
3504
|
return {
|
|
3467
|
-
value: commandLine[
|
|
3505
|
+
value: commandLine[cliFlag58],
|
|
3468
3506
|
source: "cli"
|
|
3469
3507
|
};
|
|
3470
3508
|
}
|
|
@@ -3482,39 +3520,39 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3482
3520
|
numberOfSharedAudioTags = 0;
|
|
3483
3521
|
configuredNumberOfSharedAudioTags = null;
|
|
3484
3522
|
},
|
|
3485
|
-
id:
|
|
3523
|
+
id: cliFlag58
|
|
3486
3524
|
};
|
|
3487
3525
|
|
|
3488
3526
|
// src/options/offthreadvideo-cache-size.tsx
|
|
3489
|
-
import { jsx as
|
|
3527
|
+
import { jsx as jsx55, jsxs as jsxs39, Fragment as Fragment55 } from "react/jsx-runtime";
|
|
3490
3528
|
var offthreadVideoCacheSizeInBytes = null;
|
|
3491
|
-
var
|
|
3529
|
+
var cliFlag59 = "offthreadvideo-cache-size-in-bytes";
|
|
3492
3530
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
3493
3531
|
name: "OffthreadVideo cache size",
|
|
3494
|
-
cliFlag:
|
|
3495
|
-
description: () => /* @__PURE__ */
|
|
3532
|
+
cliFlag: cliFlag59,
|
|
3533
|
+
description: () => /* @__PURE__ */ jsxs39(Fragment55, {
|
|
3496
3534
|
children: [
|
|
3497
3535
|
"From v4.0, Remotion has a cache for",
|
|
3498
3536
|
" ",
|
|
3499
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ jsx55("a", {
|
|
3500
3538
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3501
|
-
children: /* @__PURE__ */
|
|
3539
|
+
children: /* @__PURE__ */ jsx55("code", {
|
|
3502
3540
|
children: "<OffthreadVideo>"
|
|
3503
3541
|
})
|
|
3504
3542
|
}),
|
|
3505
3543
|
" ",
|
|
3506
3544
|
"frames. The default is ",
|
|
3507
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ jsx55("code", {
|
|
3508
3546
|
children: "null"
|
|
3509
3547
|
}),
|
|
3510
3548
|
", corresponding to half of the system memory available when the render starts.",
|
|
3511
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ jsx55("br", {}),
|
|
3512
3550
|
" This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.",
|
|
3513
|
-
/* @__PURE__ */
|
|
3551
|
+
/* @__PURE__ */ jsx55("br", {}),
|
|
3514
3552
|
"The used value will be printed when running in verbose mode.",
|
|
3515
|
-
/* @__PURE__ */
|
|
3553
|
+
/* @__PURE__ */ jsx55("br", {}),
|
|
3516
3554
|
"Default: ",
|
|
3517
|
-
/* @__PURE__ */
|
|
3555
|
+
/* @__PURE__ */ jsx55("code", {
|
|
3518
3556
|
children: "null"
|
|
3519
3557
|
})
|
|
3520
3558
|
]
|
|
@@ -3523,10 +3561,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3523
3561
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3524
3562
|
type: 0,
|
|
3525
3563
|
getValue: ({ commandLine }) => {
|
|
3526
|
-
if (commandLine[
|
|
3564
|
+
if (commandLine[cliFlag59] !== undefined) {
|
|
3527
3565
|
return {
|
|
3528
3566
|
source: "cli",
|
|
3529
|
-
value: commandLine[
|
|
3567
|
+
value: commandLine[cliFlag59]
|
|
3530
3568
|
};
|
|
3531
3569
|
}
|
|
3532
3570
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -3543,22 +3581,22 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3543
3581
|
setConfig: (size) => {
|
|
3544
3582
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
3545
3583
|
},
|
|
3546
|
-
id:
|
|
3584
|
+
id: cliFlag59
|
|
3547
3585
|
};
|
|
3548
3586
|
|
|
3549
3587
|
// src/options/offthreadvideo-threads.tsx
|
|
3550
|
-
import { jsx as
|
|
3588
|
+
import { jsx as jsx56, jsxs as jsxs40, Fragment as Fragment56 } from "react/jsx-runtime";
|
|
3551
3589
|
var value2 = null;
|
|
3552
|
-
var
|
|
3590
|
+
var cliFlag60 = "offthreadvideo-video-threads";
|
|
3553
3591
|
var offthreadVideoThreadsOption = {
|
|
3554
3592
|
name: "OffthreadVideo threads",
|
|
3555
|
-
cliFlag:
|
|
3556
|
-
description: () => /* @__PURE__ */
|
|
3593
|
+
cliFlag: cliFlag60,
|
|
3594
|
+
description: () => /* @__PURE__ */ jsxs40(Fragment56, {
|
|
3557
3595
|
children: [
|
|
3558
3596
|
"The number of threads that",
|
|
3559
|
-
/* @__PURE__ */
|
|
3597
|
+
/* @__PURE__ */ jsx56("a", {
|
|
3560
3598
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3561
|
-
children: /* @__PURE__ */
|
|
3599
|
+
children: /* @__PURE__ */ jsx56("code", {
|
|
3562
3600
|
children: "<OffthreadVideo>"
|
|
3563
3601
|
})
|
|
3564
3602
|
}),
|
|
@@ -3573,10 +3611,10 @@ var offthreadVideoThreadsOption = {
|
|
|
3573
3611
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3574
3612
|
type: 0,
|
|
3575
3613
|
getValue: ({ commandLine }) => {
|
|
3576
|
-
if (commandLine[
|
|
3614
|
+
if (commandLine[cliFlag60] !== undefined) {
|
|
3577
3615
|
return {
|
|
3578
3616
|
source: "cli",
|
|
3579
|
-
value: commandLine[
|
|
3617
|
+
value: commandLine[cliFlag60]
|
|
3580
3618
|
};
|
|
3581
3619
|
}
|
|
3582
3620
|
if (value2 !== null) {
|
|
@@ -3593,21 +3631,21 @@ var offthreadVideoThreadsOption = {
|
|
|
3593
3631
|
setConfig: (size) => {
|
|
3594
3632
|
value2 = size ?? null;
|
|
3595
3633
|
},
|
|
3596
|
-
id:
|
|
3634
|
+
id: cliFlag60
|
|
3597
3635
|
};
|
|
3598
3636
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
3599
3637
|
|
|
3600
3638
|
// src/options/on-browser-download.tsx
|
|
3601
|
-
import { jsx as
|
|
3602
|
-
var
|
|
3639
|
+
import { jsx as jsx57, jsxs as jsxs41, Fragment as Fragment57 } from "react/jsx-runtime";
|
|
3640
|
+
var cliFlag61 = "on-browser-download";
|
|
3603
3641
|
var onBrowserDownloadOption = {
|
|
3604
3642
|
name: "Browser download callback function",
|
|
3605
|
-
cliFlag:
|
|
3606
|
-
description: () => /* @__PURE__ */
|
|
3643
|
+
cliFlag: cliFlag61,
|
|
3644
|
+
description: () => /* @__PURE__ */ jsxs41(Fragment57, {
|
|
3607
3645
|
children: [
|
|
3608
3646
|
"Gets called when no compatible local browser is detected on the system and this API needs to download a browser. Return a callback to observe progress.",
|
|
3609
3647
|
" ",
|
|
3610
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ jsx57("a", {
|
|
3611
3649
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
3612
3650
|
children: "See here for how to use this option."
|
|
3613
3651
|
})
|
|
@@ -3622,26 +3660,26 @@ var onBrowserDownloadOption = {
|
|
|
3622
3660
|
setConfig: () => {
|
|
3623
3661
|
throw new Error("does not support config file");
|
|
3624
3662
|
},
|
|
3625
|
-
id:
|
|
3663
|
+
id: cliFlag61
|
|
3626
3664
|
};
|
|
3627
3665
|
|
|
3628
3666
|
// src/options/out-dir.tsx
|
|
3629
|
-
import { jsx as
|
|
3630
|
-
var
|
|
3667
|
+
import { jsx as jsx58, jsxs as jsxs42, Fragment as Fragment58 } from "react/jsx-runtime";
|
|
3668
|
+
var cliFlag62 = "out-dir";
|
|
3631
3669
|
var currentOutDir = null;
|
|
3632
3670
|
var outDirOption = {
|
|
3633
3671
|
name: "Output Directory",
|
|
3634
|
-
cliFlag:
|
|
3672
|
+
cliFlag: cliFlag62,
|
|
3635
3673
|
description: () => {
|
|
3636
|
-
return /* @__PURE__ */
|
|
3674
|
+
return /* @__PURE__ */ jsxs42(Fragment58, {
|
|
3637
3675
|
children: [
|
|
3638
3676
|
"Define the location of the resulting bundle. By default it is a folder called ",
|
|
3639
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ jsx58("code", {
|
|
3640
3678
|
children: "build"
|
|
3641
3679
|
}),
|
|
3642
3680
|
", adjacent to the",
|
|
3643
3681
|
" ",
|
|
3644
|
-
/* @__PURE__ */
|
|
3682
|
+
/* @__PURE__ */ jsx58("a", {
|
|
3645
3683
|
href: "/docs/terminology/remotion-root",
|
|
3646
3684
|
children: "Remotion Root"
|
|
3647
3685
|
}),
|
|
@@ -3652,10 +3690,10 @@ var outDirOption = {
|
|
|
3652
3690
|
ssrName: "outDir",
|
|
3653
3691
|
docLink: "https://www.remotion.dev/docs/cli/bundle#--out-dir",
|
|
3654
3692
|
getValue: ({ commandLine }) => {
|
|
3655
|
-
if (commandLine[
|
|
3693
|
+
if (commandLine[cliFlag62] !== undefined) {
|
|
3656
3694
|
return {
|
|
3657
3695
|
source: "cli",
|
|
3658
|
-
value: commandLine[
|
|
3696
|
+
value: commandLine[cliFlag62]
|
|
3659
3697
|
};
|
|
3660
3698
|
}
|
|
3661
3699
|
if (currentOutDir !== null) {
|
|
@@ -3673,7 +3711,7 @@ var outDirOption = {
|
|
|
3673
3711
|
currentOutDir = value3;
|
|
3674
3712
|
},
|
|
3675
3713
|
type: "",
|
|
3676
|
-
id:
|
|
3714
|
+
id: cliFlag62
|
|
3677
3715
|
};
|
|
3678
3716
|
|
|
3679
3717
|
// src/validate.ts
|
|
@@ -3683,21 +3721,21 @@ var validateDimension = NoReactInternals3.validateDimension;
|
|
|
3683
3721
|
var validateDurationInFrames = NoReactInternals3.validateDurationInFrames;
|
|
3684
3722
|
|
|
3685
3723
|
// src/options/override-duration.tsx
|
|
3686
|
-
import { jsx as
|
|
3724
|
+
import { jsx as jsx59, Fragment as Fragment59 } from "react/jsx-runtime";
|
|
3687
3725
|
var currentDuration = null;
|
|
3688
|
-
var
|
|
3726
|
+
var cliFlag63 = "duration";
|
|
3689
3727
|
var overrideDurationOption = {
|
|
3690
3728
|
name: "Override Duration",
|
|
3691
|
-
cliFlag:
|
|
3692
|
-
description: () => /* @__PURE__ */
|
|
3729
|
+
cliFlag: cliFlag63,
|
|
3730
|
+
description: () => /* @__PURE__ */ jsx59(Fragment59, {
|
|
3693
3731
|
children: "Overrides the duration in frames of the composition."
|
|
3694
3732
|
}),
|
|
3695
3733
|
ssrName: null,
|
|
3696
3734
|
docLink: "https://www.remotion.dev/docs/config#overrideduration",
|
|
3697
3735
|
type: null,
|
|
3698
3736
|
getValue: ({ commandLine }) => {
|
|
3699
|
-
if (commandLine[
|
|
3700
|
-
const value3 = commandLine[
|
|
3737
|
+
if (commandLine[cliFlag63] !== undefined) {
|
|
3738
|
+
const value3 = commandLine[cliFlag63];
|
|
3701
3739
|
validateDurationInFrames(value3, {
|
|
3702
3740
|
component: "in --duration flag",
|
|
3703
3741
|
allowFloats: false
|
|
@@ -3728,25 +3766,25 @@ var overrideDurationOption = {
|
|
|
3728
3766
|
reset: () => {
|
|
3729
3767
|
currentDuration = null;
|
|
3730
3768
|
},
|
|
3731
|
-
id:
|
|
3769
|
+
id: cliFlag63
|
|
3732
3770
|
};
|
|
3733
3771
|
|
|
3734
3772
|
// src/options/override-fps.tsx
|
|
3735
|
-
import { jsx as
|
|
3773
|
+
import { jsx as jsx60, Fragment as Fragment60 } from "react/jsx-runtime";
|
|
3736
3774
|
var currentFps = null;
|
|
3737
|
-
var
|
|
3775
|
+
var cliFlag64 = "fps";
|
|
3738
3776
|
var overrideFpsOption = {
|
|
3739
3777
|
name: "Override FPS",
|
|
3740
|
-
cliFlag:
|
|
3741
|
-
description: () => /* @__PURE__ */
|
|
3778
|
+
cliFlag: cliFlag64,
|
|
3779
|
+
description: () => /* @__PURE__ */ jsx60(Fragment60, {
|
|
3742
3780
|
children: "Overrides the frames per second of the composition."
|
|
3743
3781
|
}),
|
|
3744
3782
|
ssrName: null,
|
|
3745
3783
|
docLink: "https://www.remotion.dev/docs/config#overridefps",
|
|
3746
3784
|
type: null,
|
|
3747
|
-
getValue: ({ commandLine }) => {
|
|
3748
|
-
if (commandLine[
|
|
3749
|
-
const value3 = commandLine[
|
|
3785
|
+
getValue: ({ commandLine }) => {
|
|
3786
|
+
if (commandLine[cliFlag64] !== undefined) {
|
|
3787
|
+
const value3 = commandLine[cliFlag64];
|
|
3750
3788
|
validateFps(value3, "in --fps flag", false);
|
|
3751
3789
|
return {
|
|
3752
3790
|
source: "cli",
|
|
@@ -3771,25 +3809,25 @@ var overrideFpsOption = {
|
|
|
3771
3809
|
reset: () => {
|
|
3772
3810
|
currentFps = null;
|
|
3773
3811
|
},
|
|
3774
|
-
id:
|
|
3812
|
+
id: cliFlag64
|
|
3775
3813
|
};
|
|
3776
3814
|
|
|
3777
3815
|
// src/options/override-height.tsx
|
|
3778
|
-
import { jsx as
|
|
3816
|
+
import { jsx as jsx61, Fragment as Fragment61 } from "react/jsx-runtime";
|
|
3779
3817
|
var currentHeight = null;
|
|
3780
|
-
var
|
|
3818
|
+
var cliFlag65 = "height";
|
|
3781
3819
|
var overrideHeightOption = {
|
|
3782
3820
|
name: "Override Height",
|
|
3783
|
-
cliFlag:
|
|
3784
|
-
description: () => /* @__PURE__ */
|
|
3821
|
+
cliFlag: cliFlag65,
|
|
3822
|
+
description: () => /* @__PURE__ */ jsx61(Fragment61, {
|
|
3785
3823
|
children: "Overrides the height of the composition."
|
|
3786
3824
|
}),
|
|
3787
3825
|
ssrName: null,
|
|
3788
3826
|
docLink: "https://www.remotion.dev/docs/config#overrideheight",
|
|
3789
3827
|
type: null,
|
|
3790
3828
|
getValue: ({ commandLine }) => {
|
|
3791
|
-
if (commandLine[
|
|
3792
|
-
const value3 = commandLine[
|
|
3829
|
+
if (commandLine[cliFlag65] !== undefined) {
|
|
3830
|
+
const value3 = commandLine[cliFlag65];
|
|
3793
3831
|
validateDimension(value3, "height", "in --height flag");
|
|
3794
3832
|
return {
|
|
3795
3833
|
source: "cli",
|
|
@@ -3814,25 +3852,25 @@ var overrideHeightOption = {
|
|
|
3814
3852
|
reset: () => {
|
|
3815
3853
|
currentHeight = null;
|
|
3816
3854
|
},
|
|
3817
|
-
id:
|
|
3855
|
+
id: cliFlag65
|
|
3818
3856
|
};
|
|
3819
3857
|
|
|
3820
3858
|
// src/options/override-width.tsx
|
|
3821
|
-
import { jsx as
|
|
3859
|
+
import { jsx as jsx62, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
3822
3860
|
var currentWidth = null;
|
|
3823
|
-
var
|
|
3861
|
+
var cliFlag66 = "width";
|
|
3824
3862
|
var overrideWidthOption = {
|
|
3825
3863
|
name: "Override Width",
|
|
3826
|
-
cliFlag:
|
|
3827
|
-
description: () => /* @__PURE__ */
|
|
3864
|
+
cliFlag: cliFlag66,
|
|
3865
|
+
description: () => /* @__PURE__ */ jsx62(Fragment62, {
|
|
3828
3866
|
children: "Overrides the width of the composition."
|
|
3829
3867
|
}),
|
|
3830
3868
|
ssrName: null,
|
|
3831
3869
|
docLink: "https://www.remotion.dev/docs/config#overridewidth",
|
|
3832
3870
|
type: null,
|
|
3833
3871
|
getValue: ({ commandLine }) => {
|
|
3834
|
-
if (commandLine[
|
|
3835
|
-
const value3 = commandLine[
|
|
3872
|
+
if (commandLine[cliFlag66] !== undefined) {
|
|
3873
|
+
const value3 = commandLine[cliFlag66];
|
|
3836
3874
|
validateDimension(value3, "width", "in --width flag");
|
|
3837
3875
|
return {
|
|
3838
3876
|
source: "cli",
|
|
@@ -3857,13 +3895,13 @@ var overrideWidthOption = {
|
|
|
3857
3895
|
reset: () => {
|
|
3858
3896
|
currentWidth = null;
|
|
3859
3897
|
},
|
|
3860
|
-
id:
|
|
3898
|
+
id: cliFlag66
|
|
3861
3899
|
};
|
|
3862
3900
|
|
|
3863
3901
|
// src/options/overwrite.tsx
|
|
3864
|
-
import { jsx as
|
|
3902
|
+
import { jsx as jsx63, jsxs as jsxs43, Fragment as Fragment63 } from "react/jsx-runtime";
|
|
3865
3903
|
var shouldOverwrite = null;
|
|
3866
|
-
var
|
|
3904
|
+
var cliFlag67 = "overwrite";
|
|
3867
3905
|
var validate2 = (value3) => {
|
|
3868
3906
|
if (typeof value3 !== "boolean") {
|
|
3869
3907
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -3871,15 +3909,15 @@ var validate2 = (value3) => {
|
|
|
3871
3909
|
};
|
|
3872
3910
|
var overwriteOption = {
|
|
3873
3911
|
name: "Overwrite output",
|
|
3874
|
-
cliFlag:
|
|
3875
|
-
description: () => /* @__PURE__ */
|
|
3912
|
+
cliFlag: cliFlag67,
|
|
3913
|
+
description: () => /* @__PURE__ */ jsxs43(Fragment63, {
|
|
3876
3914
|
children: [
|
|
3877
3915
|
"If set to ",
|
|
3878
|
-
/* @__PURE__ */
|
|
3916
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3879
3917
|
children: "false"
|
|
3880
3918
|
}),
|
|
3881
3919
|
", will prevent rendering to a path that already exists. Default is ",
|
|
3882
|
-
/* @__PURE__ */
|
|
3920
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3883
3921
|
children: "true"
|
|
3884
3922
|
}),
|
|
3885
3923
|
"."
|
|
@@ -3889,11 +3927,11 @@ var overwriteOption = {
|
|
|
3889
3927
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
3890
3928
|
type: false,
|
|
3891
3929
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
3892
|
-
if (commandLine[
|
|
3893
|
-
validate2(commandLine[
|
|
3930
|
+
if (commandLine[cliFlag67] !== undefined && commandLine[cliFlag67] !== null) {
|
|
3931
|
+
validate2(commandLine[cliFlag67]);
|
|
3894
3932
|
return {
|
|
3895
3933
|
source: "cli",
|
|
3896
|
-
value: commandLine[
|
|
3934
|
+
value: commandLine[cliFlag67]
|
|
3897
3935
|
};
|
|
3898
3936
|
}
|
|
3899
3937
|
if (shouldOverwrite !== null) {
|
|
@@ -3914,36 +3952,36 @@ var overwriteOption = {
|
|
|
3914
3952
|
reset: () => {
|
|
3915
3953
|
shouldOverwrite = null;
|
|
3916
3954
|
},
|
|
3917
|
-
id:
|
|
3955
|
+
id: cliFlag67
|
|
3918
3956
|
};
|
|
3919
3957
|
|
|
3920
3958
|
// src/options/package-manager.tsx
|
|
3921
|
-
import { jsx as
|
|
3922
|
-
var
|
|
3959
|
+
import { jsx as jsx64, jsxs as jsxs44, Fragment as Fragment64 } from "react/jsx-runtime";
|
|
3960
|
+
var cliFlag68 = "package-manager";
|
|
3923
3961
|
var currentPackageManager = null;
|
|
3924
3962
|
var packageManagerOption = {
|
|
3925
3963
|
name: "Package Manager",
|
|
3926
|
-
cliFlag:
|
|
3964
|
+
cliFlag: cliFlag68,
|
|
3927
3965
|
description: () => {
|
|
3928
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ jsxs44(Fragment64, {
|
|
3929
3967
|
children: [
|
|
3930
3968
|
"Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
|
|
3931
|
-
/* @__PURE__ */
|
|
3969
|
+
/* @__PURE__ */ jsx64("br", {}),
|
|
3932
3970
|
"Acceptable values are ",
|
|
3933
|
-
/* @__PURE__ */
|
|
3971
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3934
3972
|
children: "npm"
|
|
3935
3973
|
}),
|
|
3936
3974
|
", ",
|
|
3937
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3938
3976
|
children: "yarn"
|
|
3939
3977
|
}),
|
|
3940
3978
|
",",
|
|
3941
3979
|
" ",
|
|
3942
|
-
/* @__PURE__ */
|
|
3980
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3943
3981
|
children: "pnpm"
|
|
3944
3982
|
}),
|
|
3945
3983
|
" and ",
|
|
3946
|
-
/* @__PURE__ */
|
|
3984
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3947
3985
|
children: "bun"
|
|
3948
3986
|
}),
|
|
3949
3987
|
"."
|
|
@@ -3953,10 +3991,10 @@ var packageManagerOption = {
|
|
|
3953
3991
|
ssrName: "packageManager",
|
|
3954
3992
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--package-manager",
|
|
3955
3993
|
getValue: ({ commandLine }) => {
|
|
3956
|
-
if (commandLine[
|
|
3994
|
+
if (commandLine[cliFlag68] !== undefined) {
|
|
3957
3995
|
return {
|
|
3958
3996
|
source: "cli",
|
|
3959
|
-
value: commandLine[
|
|
3997
|
+
value: commandLine[cliFlag68]
|
|
3960
3998
|
};
|
|
3961
3999
|
}
|
|
3962
4000
|
if (currentPackageManager !== null) {
|
|
@@ -3974,7 +4012,7 @@ var packageManagerOption = {
|
|
|
3974
4012
|
currentPackageManager = value3;
|
|
3975
4013
|
},
|
|
3976
4014
|
type: "",
|
|
3977
|
-
id:
|
|
4015
|
+
id: cliFlag68
|
|
3978
4016
|
};
|
|
3979
4017
|
|
|
3980
4018
|
// src/pixel-format.ts
|
|
@@ -3997,17 +4035,17 @@ var validPixelFormatsForCodec = (codec) => {
|
|
|
3997
4035
|
};
|
|
3998
4036
|
|
|
3999
4037
|
// src/options/pixel-format.tsx
|
|
4000
|
-
import { jsx as
|
|
4038
|
+
import { jsx as jsx65, jsxs as jsxs45, Fragment as Fragment65 } from "react/jsx-runtime";
|
|
4001
4039
|
var currentPixelFormat = DEFAULT_PIXEL_FORMAT;
|
|
4002
|
-
var
|
|
4040
|
+
var cliFlag69 = "pixel-format";
|
|
4003
4041
|
var pixelFormatOption = {
|
|
4004
4042
|
name: "Pixel format",
|
|
4005
|
-
cliFlag:
|
|
4006
|
-
description: () => /* @__PURE__ */
|
|
4043
|
+
cliFlag: cliFlag69,
|
|
4044
|
+
description: () => /* @__PURE__ */ jsxs45(Fragment65, {
|
|
4007
4045
|
children: [
|
|
4008
4046
|
"Sets the pixel format in FFmpeg. See",
|
|
4009
4047
|
" ",
|
|
4010
|
-
/* @__PURE__ */
|
|
4048
|
+
/* @__PURE__ */ jsx65("a", {
|
|
4011
4049
|
href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling",
|
|
4012
4050
|
children: "the FFmpeg docs for an explanation"
|
|
4013
4051
|
}),
|
|
@@ -4026,10 +4064,10 @@ var pixelFormatOption = {
|
|
|
4026
4064
|
value: options.uiPixelFormat
|
|
4027
4065
|
};
|
|
4028
4066
|
}
|
|
4029
|
-
if (commandLine[
|
|
4067
|
+
if (commandLine[cliFlag69] !== undefined) {
|
|
4030
4068
|
return {
|
|
4031
4069
|
source: "from --pixel-format flag",
|
|
4032
|
-
value: commandLine[
|
|
4070
|
+
value: commandLine[cliFlag69]
|
|
4033
4071
|
};
|
|
4034
4072
|
}
|
|
4035
4073
|
if (options && options.compositionDefaultPixelFormat !== null) {
|
|
@@ -4055,26 +4093,26 @@ var pixelFormatOption = {
|
|
|
4055
4093
|
}
|
|
4056
4094
|
currentPixelFormat = value3;
|
|
4057
4095
|
},
|
|
4058
|
-
id:
|
|
4096
|
+
id: cliFlag69
|
|
4059
4097
|
};
|
|
4060
4098
|
|
|
4061
4099
|
// src/options/port.tsx
|
|
4062
|
-
import { jsx as
|
|
4063
|
-
var
|
|
4100
|
+
import { jsx as jsx66, Fragment as Fragment66 } from "react/jsx-runtime";
|
|
4101
|
+
var cliFlag70 = "port";
|
|
4064
4102
|
var currentPort = null;
|
|
4065
4103
|
var portOption = {
|
|
4066
4104
|
name: "Port",
|
|
4067
|
-
cliFlag:
|
|
4068
|
-
description: () => /* @__PURE__ */
|
|
4105
|
+
cliFlag: cliFlag70,
|
|
4106
|
+
description: () => /* @__PURE__ */ jsx66(Fragment66, {
|
|
4069
4107
|
children: "Set a custom HTTP server port for the Studio or the render process. If not defined, Remotion will try to find a free port."
|
|
4070
4108
|
}),
|
|
4071
4109
|
ssrName: null,
|
|
4072
4110
|
docLink: "https://www.remotion.dev/docs/config#setstudioport",
|
|
4073
4111
|
getValue: ({ commandLine }) => {
|
|
4074
|
-
if (commandLine[
|
|
4112
|
+
if (commandLine[cliFlag70] !== undefined) {
|
|
4075
4113
|
return {
|
|
4076
4114
|
source: "cli",
|
|
4077
|
-
value: commandLine[
|
|
4115
|
+
value: commandLine[cliFlag70]
|
|
4078
4116
|
};
|
|
4079
4117
|
}
|
|
4080
4118
|
if (currentPort !== null) {
|
|
@@ -4092,25 +4130,25 @@ var portOption = {
|
|
|
4092
4130
|
currentPort = value3;
|
|
4093
4131
|
},
|
|
4094
4132
|
type: 0,
|
|
4095
|
-
id:
|
|
4133
|
+
id: cliFlag70
|
|
4096
4134
|
};
|
|
4097
4135
|
|
|
4098
4136
|
// src/options/prefer-lossless.tsx
|
|
4099
|
-
import { jsx as
|
|
4100
|
-
var
|
|
4137
|
+
import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
|
|
4138
|
+
var cliFlag71 = "prefer-lossless";
|
|
4101
4139
|
var input = false;
|
|
4102
4140
|
var preferLosslessAudioOption = {
|
|
4103
4141
|
name: "Prefer lossless",
|
|
4104
|
-
cliFlag:
|
|
4105
|
-
description: () => /* @__PURE__ */
|
|
4142
|
+
cliFlag: cliFlag71,
|
|
4143
|
+
description: () => /* @__PURE__ */ jsxs46(Fragment67, {
|
|
4106
4144
|
children: [
|
|
4107
4145
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
4108
|
-
/* @__PURE__ */
|
|
4146
|
+
/* @__PURE__ */ jsx67("code", {
|
|
4109
4147
|
children: "audioCodec"
|
|
4110
4148
|
}),
|
|
4111
4149
|
", it takes priority over",
|
|
4112
4150
|
" ",
|
|
4113
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ jsx67("code", {
|
|
4114
4152
|
children: "preferLossless"
|
|
4115
4153
|
}),
|
|
4116
4154
|
"."
|
|
@@ -4120,7 +4158,7 @@ var preferLosslessAudioOption = {
|
|
|
4120
4158
|
type: false,
|
|
4121
4159
|
ssrName: "preferLossless",
|
|
4122
4160
|
getValue: ({ commandLine }) => {
|
|
4123
|
-
if (commandLine[
|
|
4161
|
+
if (commandLine[cliFlag71]) {
|
|
4124
4162
|
return { value: true, source: "cli" };
|
|
4125
4163
|
}
|
|
4126
4164
|
if (input === true) {
|
|
@@ -4131,20 +4169,20 @@ var preferLosslessAudioOption = {
|
|
|
4131
4169
|
setConfig: (val) => {
|
|
4132
4170
|
input = val;
|
|
4133
4171
|
},
|
|
4134
|
-
id:
|
|
4172
|
+
id: cliFlag71
|
|
4135
4173
|
};
|
|
4136
4174
|
|
|
4137
4175
|
// src/options/preview-sample-rate.tsx
|
|
4138
|
-
import { jsx as
|
|
4139
|
-
var
|
|
4176
|
+
import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
|
|
4177
|
+
var cliFlag72 = "preview-sample-rate";
|
|
4140
4178
|
var currentPreviewSampleRate = null;
|
|
4141
4179
|
var previewSampleRateOption = {
|
|
4142
4180
|
name: "Preview Sample Rate",
|
|
4143
|
-
cliFlag:
|
|
4144
|
-
description: () => /* @__PURE__ */
|
|
4181
|
+
cliFlag: cliFlag72,
|
|
4182
|
+
description: () => /* @__PURE__ */ jsxs47(Fragment68, {
|
|
4145
4183
|
children: [
|
|
4146
4184
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4147
|
-
/* @__PURE__ */
|
|
4185
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4148
4186
|
children: "48000"
|
|
4149
4187
|
}),
|
|
4150
4188
|
" Hz."
|
|
@@ -4154,8 +4192,8 @@ var previewSampleRateOption = {
|
|
|
4154
4192
|
docLink: "https://www.remotion.dev/docs/config#setpreviewsamplerate",
|
|
4155
4193
|
type: null,
|
|
4156
4194
|
getValue: ({ commandLine }) => {
|
|
4157
|
-
if (commandLine[
|
|
4158
|
-
return { value: commandLine[
|
|
4195
|
+
if (commandLine[cliFlag72] !== undefined) {
|
|
4196
|
+
return { value: commandLine[cliFlag72], source: "cli" };
|
|
4159
4197
|
}
|
|
4160
4198
|
if (currentPreviewSampleRate !== null) {
|
|
4161
4199
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4165,19 +4203,19 @@ var previewSampleRateOption = {
|
|
|
4165
4203
|
setConfig: (value3) => {
|
|
4166
4204
|
currentPreviewSampleRate = value3;
|
|
4167
4205
|
},
|
|
4168
|
-
id:
|
|
4206
|
+
id: cliFlag72
|
|
4169
4207
|
};
|
|
4170
4208
|
|
|
4171
4209
|
// src/options/props.tsx
|
|
4172
|
-
import { jsx as
|
|
4173
|
-
var
|
|
4210
|
+
import { jsx as jsx69, jsxs as jsxs48, Fragment as Fragment69 } from "react/jsx-runtime";
|
|
4211
|
+
var cliFlag73 = "props";
|
|
4174
4212
|
var propsOption = {
|
|
4175
4213
|
name: "Input Props",
|
|
4176
|
-
cliFlag:
|
|
4177
|
-
description: () => /* @__PURE__ */
|
|
4214
|
+
cliFlag: cliFlag73,
|
|
4215
|
+
description: () => /* @__PURE__ */ jsxs48(Fragment69, {
|
|
4178
4216
|
children: [
|
|
4179
4217
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4180
|
-
/* @__PURE__ */
|
|
4218
|
+
/* @__PURE__ */ jsxs48("code", {
|
|
4181
4219
|
children: [
|
|
4182
4220
|
"--props='",
|
|
4183
4221
|
"{",
|
|
@@ -4187,7 +4225,7 @@ var propsOption = {
|
|
|
4187
4225
|
]
|
|
4188
4226
|
}),
|
|
4189
4227
|
") or a path to a JSON file (",
|
|
4190
|
-
/* @__PURE__ */
|
|
4228
|
+
/* @__PURE__ */ jsx69("code", {
|
|
4191
4229
|
children: "./path/to/props.json"
|
|
4192
4230
|
}),
|
|
4193
4231
|
")."
|
|
@@ -4196,10 +4234,10 @@ var propsOption = {
|
|
|
4196
4234
|
ssrName: null,
|
|
4197
4235
|
docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
|
|
4198
4236
|
getValue: ({ commandLine }) => {
|
|
4199
|
-
if (commandLine[
|
|
4237
|
+
if (commandLine[cliFlag73] !== undefined) {
|
|
4200
4238
|
return {
|
|
4201
4239
|
source: "cli",
|
|
4202
|
-
value: commandLine[
|
|
4240
|
+
value: commandLine[cliFlag73]
|
|
4203
4241
|
};
|
|
4204
4242
|
}
|
|
4205
4243
|
return {
|
|
@@ -4211,11 +4249,11 @@ var propsOption = {
|
|
|
4211
4249
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4212
4250
|
},
|
|
4213
4251
|
type: "",
|
|
4214
|
-
id:
|
|
4252
|
+
id: cliFlag73
|
|
4215
4253
|
};
|
|
4216
4254
|
|
|
4217
4255
|
// src/options/prores-profile.tsx
|
|
4218
|
-
import { jsx as
|
|
4256
|
+
import { jsx as jsx70, jsxs as jsxs49, Fragment as Fragment70 } from "react/jsx-runtime";
|
|
4219
4257
|
var validProResProfiles = [
|
|
4220
4258
|
"4444-xq",
|
|
4221
4259
|
"4444",
|
|
@@ -4225,14 +4263,14 @@ var validProResProfiles = [
|
|
|
4225
4263
|
"proxy"
|
|
4226
4264
|
];
|
|
4227
4265
|
var proResProfile;
|
|
4228
|
-
var
|
|
4266
|
+
var cliFlag74 = "prores-profile";
|
|
4229
4267
|
var proResProfileOption = {
|
|
4230
4268
|
name: "ProRes profile",
|
|
4231
|
-
cliFlag:
|
|
4232
|
-
description: () => /* @__PURE__ */
|
|
4269
|
+
cliFlag: cliFlag74,
|
|
4270
|
+
description: () => /* @__PURE__ */ jsxs49(Fragment70, {
|
|
4233
4271
|
children: [
|
|
4234
4272
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4235
|
-
/* @__PURE__ */
|
|
4273
|
+
/* @__PURE__ */ jsx70("code", {
|
|
4236
4274
|
children: "prores"
|
|
4237
4275
|
}),
|
|
4238
4276
|
". Possible values:",
|
|
@@ -4240,12 +4278,12 @@ var proResProfileOption = {
|
|
|
4240
4278
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4241
4279
|
". Default:",
|
|
4242
4280
|
" ",
|
|
4243
|
-
/* @__PURE__ */
|
|
4281
|
+
/* @__PURE__ */ jsx70("code", {
|
|
4244
4282
|
children: '"hq"'
|
|
4245
4283
|
}),
|
|
4246
4284
|
". See",
|
|
4247
4285
|
" ",
|
|
4248
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ jsx70("a", {
|
|
4249
4287
|
href: "https://video.stackexchange.com/a/14715",
|
|
4250
4288
|
children: "here"
|
|
4251
4289
|
}),
|
|
@@ -4262,10 +4300,10 @@ var proResProfileOption = {
|
|
|
4262
4300
|
value: options.uiProResProfile
|
|
4263
4301
|
};
|
|
4264
4302
|
}
|
|
4265
|
-
if (commandLine[
|
|
4303
|
+
if (commandLine[cliFlag74] !== undefined) {
|
|
4266
4304
|
return {
|
|
4267
4305
|
source: "from --prores-profile flag",
|
|
4268
|
-
value: String(commandLine[
|
|
4306
|
+
value: String(commandLine[cliFlag74])
|
|
4269
4307
|
};
|
|
4270
4308
|
}
|
|
4271
4309
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4288,24 +4326,24 @@ var proResProfileOption = {
|
|
|
4288
4326
|
setConfig: (value3) => {
|
|
4289
4327
|
proResProfile = value3;
|
|
4290
4328
|
},
|
|
4291
|
-
id:
|
|
4329
|
+
id: cliFlag74
|
|
4292
4330
|
};
|
|
4293
4331
|
|
|
4294
4332
|
// src/options/public-dir.tsx
|
|
4295
|
-
import { jsx as
|
|
4296
|
-
var
|
|
4333
|
+
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4334
|
+
var cliFlag75 = "public-dir";
|
|
4297
4335
|
var currentPublicDir = null;
|
|
4298
4336
|
var publicDirOption = {
|
|
4299
4337
|
name: "Public Directory",
|
|
4300
|
-
cliFlag:
|
|
4338
|
+
cliFlag: cliFlag75,
|
|
4301
4339
|
description: () => {
|
|
4302
|
-
return /* @__PURE__ */
|
|
4340
|
+
return /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4303
4341
|
children: [
|
|
4304
4342
|
"Define the location of the",
|
|
4305
4343
|
" ",
|
|
4306
|
-
/* @__PURE__ */
|
|
4344
|
+
/* @__PURE__ */ jsx71("a", {
|
|
4307
4345
|
href: "/docs/terminology/public-dir",
|
|
4308
|
-
children: /* @__PURE__ */
|
|
4346
|
+
children: /* @__PURE__ */ jsx71("code", {
|
|
4309
4347
|
children: "public/ directory"
|
|
4310
4348
|
})
|
|
4311
4349
|
}),
|
|
@@ -4316,10 +4354,10 @@ var publicDirOption = {
|
|
|
4316
4354
|
ssrName: "publicDir",
|
|
4317
4355
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
4318
4356
|
getValue: ({ commandLine }) => {
|
|
4319
|
-
if (commandLine[
|
|
4357
|
+
if (commandLine[cliFlag75] !== undefined) {
|
|
4320
4358
|
return {
|
|
4321
4359
|
source: "cli",
|
|
4322
|
-
value: commandLine[
|
|
4360
|
+
value: commandLine[cliFlag75]
|
|
4323
4361
|
};
|
|
4324
4362
|
}
|
|
4325
4363
|
if (currentPublicDir !== null) {
|
|
@@ -4337,20 +4375,20 @@ var publicDirOption = {
|
|
|
4337
4375
|
currentPublicDir = value3;
|
|
4338
4376
|
},
|
|
4339
4377
|
type: "",
|
|
4340
|
-
id:
|
|
4378
|
+
id: cliFlag75
|
|
4341
4379
|
};
|
|
4342
4380
|
|
|
4343
4381
|
// src/options/public-license-key.tsx
|
|
4344
|
-
import { jsx as
|
|
4345
|
-
var
|
|
4382
|
+
import { jsx as jsx72, jsxs as jsxs51, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4383
|
+
var cliFlag76 = "public-license-key";
|
|
4346
4384
|
var currentPublicLicenseKey = null;
|
|
4347
4385
|
var publicLicenseKeyOption = {
|
|
4348
4386
|
name: "Public License Key",
|
|
4349
|
-
cliFlag:
|
|
4350
|
-
description: () => /* @__PURE__ */
|
|
4387
|
+
cliFlag: cliFlag76,
|
|
4388
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment72, {
|
|
4351
4389
|
children: [
|
|
4352
4390
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4353
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsx72("a", {
|
|
4354
4392
|
href: "https://remotion.pro/dashboard",
|
|
4355
4393
|
children: "remotion.pro"
|
|
4356
4394
|
}),
|
|
@@ -4360,10 +4398,10 @@ var publicLicenseKeyOption = {
|
|
|
4360
4398
|
ssrName: "publicLicenseKey",
|
|
4361
4399
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
4362
4400
|
getValue: ({ commandLine }) => {
|
|
4363
|
-
if (commandLine[
|
|
4401
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4364
4402
|
return {
|
|
4365
4403
|
source: "cli",
|
|
4366
|
-
value: commandLine[
|
|
4404
|
+
value: commandLine[cliFlag76]
|
|
4367
4405
|
};
|
|
4368
4406
|
}
|
|
4369
4407
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4384,25 +4422,25 @@ var publicLicenseKeyOption = {
|
|
|
4384
4422
|
currentPublicLicenseKey = value3;
|
|
4385
4423
|
},
|
|
4386
4424
|
type: null,
|
|
4387
|
-
id:
|
|
4425
|
+
id: cliFlag76
|
|
4388
4426
|
};
|
|
4389
4427
|
|
|
4390
4428
|
// src/options/public-path.tsx
|
|
4391
|
-
import { jsx as
|
|
4392
|
-
var
|
|
4429
|
+
import { jsx as jsx73, jsxs as jsxs52, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4430
|
+
var cliFlag77 = "public-path";
|
|
4393
4431
|
var currentPublicPath = null;
|
|
4394
4432
|
var publicPathOption = {
|
|
4395
4433
|
name: "Public Path",
|
|
4396
|
-
cliFlag:
|
|
4434
|
+
cliFlag: cliFlag77,
|
|
4397
4435
|
description: () => {
|
|
4398
|
-
return /* @__PURE__ */
|
|
4436
|
+
return /* @__PURE__ */ jsxs52(Fragment73, {
|
|
4399
4437
|
children: [
|
|
4400
4438
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4401
|
-
/* @__PURE__ */
|
|
4439
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4402
4440
|
children: "./"
|
|
4403
4441
|
}),
|
|
4404
4442
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4405
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4406
4444
|
children: "/sites/my-site/"
|
|
4407
4445
|
}),
|
|
4408
4446
|
" to host the bundle at a fixed location."
|
|
@@ -4412,10 +4450,10 @@ var publicPathOption = {
|
|
|
4412
4450
|
ssrName: "publicPath",
|
|
4413
4451
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
4414
4452
|
getValue: ({ commandLine }) => {
|
|
4415
|
-
if (commandLine[
|
|
4453
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4416
4454
|
return {
|
|
4417
4455
|
source: "cli",
|
|
4418
|
-
value: commandLine[
|
|
4456
|
+
value: commandLine[cliFlag77]
|
|
4419
4457
|
};
|
|
4420
4458
|
}
|
|
4421
4459
|
if (currentPublicPath !== null) {
|
|
@@ -4433,29 +4471,29 @@ var publicPathOption = {
|
|
|
4433
4471
|
currentPublicPath = value3;
|
|
4434
4472
|
},
|
|
4435
4473
|
type: "",
|
|
4436
|
-
id:
|
|
4474
|
+
id: cliFlag77
|
|
4437
4475
|
};
|
|
4438
4476
|
|
|
4439
4477
|
// src/options/repro.tsx
|
|
4440
|
-
import { jsx as
|
|
4478
|
+
import { jsx as jsx74, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4441
4479
|
var enableRepro = false;
|
|
4442
4480
|
var setRepro = (should) => {
|
|
4443
4481
|
enableRepro = should;
|
|
4444
4482
|
};
|
|
4445
|
-
var
|
|
4483
|
+
var cliFlag78 = "repro";
|
|
4446
4484
|
var reproOption = {
|
|
4447
4485
|
name: "Create reproduction",
|
|
4448
|
-
cliFlag:
|
|
4449
|
-
description: () => /* @__PURE__ */
|
|
4486
|
+
cliFlag: cliFlag78,
|
|
4487
|
+
description: () => /* @__PURE__ */ jsx74(Fragment74, {
|
|
4450
4488
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4451
4489
|
}),
|
|
4452
4490
|
ssrName: "repro",
|
|
4453
4491
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
4454
4492
|
type: false,
|
|
4455
4493
|
getValue: ({ commandLine }) => {
|
|
4456
|
-
if (commandLine[
|
|
4494
|
+
if (commandLine[cliFlag78] !== undefined && commandLine[cliFlag78] !== null) {
|
|
4457
4495
|
return {
|
|
4458
|
-
value: commandLine[
|
|
4496
|
+
value: commandLine[cliFlag78],
|
|
4459
4497
|
source: "cli"
|
|
4460
4498
|
};
|
|
4461
4499
|
}
|
|
@@ -4471,27 +4509,27 @@ var reproOption = {
|
|
|
4471
4509
|
};
|
|
4472
4510
|
},
|
|
4473
4511
|
setConfig: setRepro,
|
|
4474
|
-
id:
|
|
4512
|
+
id: cliFlag78
|
|
4475
4513
|
};
|
|
4476
4514
|
|
|
4477
4515
|
// src/options/rspack.tsx
|
|
4478
|
-
import { jsx as
|
|
4516
|
+
import { jsx as jsx75, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4479
4517
|
var rspackEnabled = false;
|
|
4480
4518
|
var configuredRspackEnabled = null;
|
|
4481
|
-
var
|
|
4519
|
+
var cliFlag79 = "rspack";
|
|
4482
4520
|
var rspackOption = {
|
|
4483
4521
|
name: "Rspack",
|
|
4484
|
-
cliFlag:
|
|
4485
|
-
description: () => /* @__PURE__ */
|
|
4522
|
+
cliFlag: cliFlag79,
|
|
4523
|
+
description: () => /* @__PURE__ */ jsx75(Fragment75, {
|
|
4486
4524
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4487
4525
|
}),
|
|
4488
4526
|
ssrName: null,
|
|
4489
4527
|
docLink: null,
|
|
4490
4528
|
type: false,
|
|
4491
4529
|
getValue: ({ commandLine }) => {
|
|
4492
|
-
if (commandLine[
|
|
4530
|
+
if (commandLine[cliFlag79] !== undefined && commandLine[cliFlag79] !== null) {
|
|
4493
4531
|
return {
|
|
4494
|
-
value: commandLine[
|
|
4532
|
+
value: commandLine[cliFlag79],
|
|
4495
4533
|
source: "cli"
|
|
4496
4534
|
};
|
|
4497
4535
|
}
|
|
@@ -4509,21 +4547,21 @@ var rspackOption = {
|
|
|
4509
4547
|
rspackEnabled = false;
|
|
4510
4548
|
configuredRspackEnabled = null;
|
|
4511
4549
|
},
|
|
4512
|
-
id:
|
|
4550
|
+
id: cliFlag79
|
|
4513
4551
|
};
|
|
4514
4552
|
|
|
4515
4553
|
// src/options/runs.tsx
|
|
4516
|
-
import { jsx as
|
|
4554
|
+
import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4517
4555
|
var DEFAULT_RUNS = 3;
|
|
4518
4556
|
var currentRuns = DEFAULT_RUNS;
|
|
4519
|
-
var
|
|
4557
|
+
var cliFlag80 = "runs";
|
|
4520
4558
|
var runsOption = {
|
|
4521
4559
|
name: "Benchmark runs",
|
|
4522
|
-
cliFlag:
|
|
4523
|
-
description: () => /* @__PURE__ */
|
|
4560
|
+
cliFlag: cliFlag80,
|
|
4561
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment76, {
|
|
4524
4562
|
children: [
|
|
4525
4563
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4526
|
-
/* @__PURE__ */
|
|
4564
|
+
/* @__PURE__ */ jsx76("code", {
|
|
4527
4565
|
children: DEFAULT_RUNS
|
|
4528
4566
|
}),
|
|
4529
4567
|
"."
|
|
@@ -4533,10 +4571,10 @@ var runsOption = {
|
|
|
4533
4571
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
|
|
4534
4572
|
type: DEFAULT_RUNS,
|
|
4535
4573
|
getValue: ({ commandLine }) => {
|
|
4536
|
-
if (commandLine[
|
|
4537
|
-
const value3 = Number(commandLine[
|
|
4574
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4575
|
+
const value3 = Number(commandLine[cliFlag80]);
|
|
4538
4576
|
if (isNaN(value3) || value3 < 1) {
|
|
4539
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
4577
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag80]}`);
|
|
4540
4578
|
}
|
|
4541
4579
|
return { value: value3, source: "cli" };
|
|
4542
4580
|
}
|
|
@@ -4551,21 +4589,21 @@ var runsOption = {
|
|
|
4551
4589
|
}
|
|
4552
4590
|
currentRuns = value3;
|
|
4553
4591
|
},
|
|
4554
|
-
id:
|
|
4592
|
+
id: cliFlag80
|
|
4555
4593
|
};
|
|
4556
4594
|
|
|
4557
4595
|
// src/options/sample-rate.tsx
|
|
4558
|
-
import { jsx as
|
|
4559
|
-
var
|
|
4596
|
+
import { jsx as jsx77, jsxs as jsxs54, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4597
|
+
var cliFlag81 = "sample-rate";
|
|
4560
4598
|
var currentSampleRate = 48000;
|
|
4561
4599
|
var sampleRateOption = {
|
|
4562
4600
|
name: "Sample Rate",
|
|
4563
|
-
cliFlag:
|
|
4564
|
-
description: () => /* @__PURE__ */
|
|
4601
|
+
cliFlag: cliFlag81,
|
|
4602
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment77, {
|
|
4565
4603
|
children: [
|
|
4566
4604
|
"Controls the sample rate of the output audio. The default is",
|
|
4567
4605
|
" ",
|
|
4568
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4569
4607
|
children: "48000"
|
|
4570
4608
|
}),
|
|
4571
4609
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4575,8 +4613,8 @@ var sampleRateOption = {
|
|
|
4575
4613
|
docLink: "https://www.remotion.dev/docs/sample-rate",
|
|
4576
4614
|
type: 48000,
|
|
4577
4615
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4578
|
-
if (commandLine[
|
|
4579
|
-
return { value: commandLine[
|
|
4616
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4617
|
+
return { value: commandLine[cliFlag81], source: "cli" };
|
|
4580
4618
|
}
|
|
4581
4619
|
if (currentSampleRate !== 48000) {
|
|
4582
4620
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -4592,13 +4630,13 @@ var sampleRateOption = {
|
|
|
4592
4630
|
setConfig: (value3) => {
|
|
4593
4631
|
currentSampleRate = value3;
|
|
4594
4632
|
},
|
|
4595
|
-
id:
|
|
4633
|
+
id: cliFlag81
|
|
4596
4634
|
};
|
|
4597
4635
|
|
|
4598
4636
|
// src/options/scale.tsx
|
|
4599
|
-
import { jsx as
|
|
4637
|
+
import { jsx as jsx78, jsxs as jsxs55, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4600
4638
|
var currentScale = 1;
|
|
4601
|
-
var
|
|
4639
|
+
var cliFlag82 = "scale";
|
|
4602
4640
|
var validateScale = (value3) => {
|
|
4603
4641
|
if (typeof value3 !== "number") {
|
|
4604
4642
|
throw new Error("scale must be a number.");
|
|
@@ -4606,15 +4644,15 @@ var validateScale = (value3) => {
|
|
|
4606
4644
|
};
|
|
4607
4645
|
var scaleOption = {
|
|
4608
4646
|
name: "Scale",
|
|
4609
|
-
cliFlag:
|
|
4610
|
-
description: () => /* @__PURE__ */
|
|
4647
|
+
cliFlag: cliFlag82,
|
|
4648
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment78, {
|
|
4611
4649
|
children: [
|
|
4612
4650
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
4613
|
-
/* @__PURE__ */
|
|
4651
|
+
/* @__PURE__ */ jsx78("code", {
|
|
4614
4652
|
children: "1.5"
|
|
4615
4653
|
}),
|
|
4616
4654
|
". See ",
|
|
4617
|
-
/* @__PURE__ */
|
|
4655
|
+
/* @__PURE__ */ jsx78("a", {
|
|
4618
4656
|
href: "https://www.remotion.dev/docs/scaling",
|
|
4619
4657
|
children: "Scaling"
|
|
4620
4658
|
}),
|
|
@@ -4625,11 +4663,11 @@ var scaleOption = {
|
|
|
4625
4663
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
4626
4664
|
type: 0,
|
|
4627
4665
|
getValue: ({ commandLine }) => {
|
|
4628
|
-
if (commandLine[
|
|
4629
|
-
validateScale(commandLine[
|
|
4666
|
+
if (commandLine[cliFlag82] !== undefined) {
|
|
4667
|
+
validateScale(commandLine[cliFlag82]);
|
|
4630
4668
|
return {
|
|
4631
4669
|
source: "cli",
|
|
4632
|
-
value: commandLine[
|
|
4670
|
+
value: commandLine[cliFlag82]
|
|
4633
4671
|
};
|
|
4634
4672
|
}
|
|
4635
4673
|
if (currentScale !== null) {
|
|
@@ -4646,22 +4684,22 @@ var scaleOption = {
|
|
|
4646
4684
|
setConfig: (scale) => {
|
|
4647
4685
|
currentScale = scale;
|
|
4648
4686
|
},
|
|
4649
|
-
id:
|
|
4687
|
+
id: cliFlag82
|
|
4650
4688
|
};
|
|
4651
4689
|
|
|
4652
4690
|
// src/options/skip-skills.tsx
|
|
4653
|
-
import { jsx as
|
|
4654
|
-
var
|
|
4691
|
+
import { jsx as jsx79, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4692
|
+
var cliFlag83 = "skip-skills";
|
|
4655
4693
|
var skipSkillsOption = {
|
|
4656
4694
|
name: "Skip Skills",
|
|
4657
|
-
cliFlag:
|
|
4658
|
-
description: () => /* @__PURE__ */
|
|
4695
|
+
cliFlag: cliFlag83,
|
|
4696
|
+
description: () => /* @__PURE__ */ jsx79(Fragment79, {
|
|
4659
4697
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
4660
4698
|
}),
|
|
4661
4699
|
ssrName: null,
|
|
4662
4700
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--skip-skills",
|
|
4663
4701
|
getValue: ({ commandLine }) => {
|
|
4664
|
-
if (commandLine[
|
|
4702
|
+
if (commandLine[cliFlag83]) {
|
|
4665
4703
|
return {
|
|
4666
4704
|
source: "cli",
|
|
4667
4705
|
value: true
|
|
@@ -4676,13 +4714,13 @@ var skipSkillsOption = {
|
|
|
4676
4714
|
throw new Error("Cannot skip updating skills via config file");
|
|
4677
4715
|
},
|
|
4678
4716
|
type: false,
|
|
4679
|
-
id:
|
|
4717
|
+
id: cliFlag83
|
|
4680
4718
|
};
|
|
4681
4719
|
|
|
4682
4720
|
// src/options/still-frame.tsx
|
|
4683
4721
|
import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
|
|
4684
|
-
import { jsx as
|
|
4685
|
-
var
|
|
4722
|
+
import { jsx as jsx80, jsxs as jsxs56, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4723
|
+
var cliFlag84 = "frame";
|
|
4686
4724
|
var currentFrame = null;
|
|
4687
4725
|
var validate3 = (frame) => {
|
|
4688
4726
|
NoReactInternals4.validateFrame({
|
|
@@ -4693,17 +4731,17 @@ var validate3 = (frame) => {
|
|
|
4693
4731
|
};
|
|
4694
4732
|
var stillFrameOption = {
|
|
4695
4733
|
name: "Frame",
|
|
4696
|
-
cliFlag:
|
|
4697
|
-
description: () => /* @__PURE__ */
|
|
4734
|
+
cliFlag: cliFlag84,
|
|
4735
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment80, {
|
|
4698
4736
|
children: [
|
|
4699
4737
|
"Which frame should be rendered when rendering a still. Default",
|
|
4700
4738
|
" ",
|
|
4701
|
-
/* @__PURE__ */
|
|
4739
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4702
4740
|
children: "0"
|
|
4703
4741
|
}),
|
|
4704
4742
|
". From v3.2.27, negative values are allowed, with",
|
|
4705
4743
|
" ",
|
|
4706
|
-
/* @__PURE__ */
|
|
4744
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4707
4745
|
children: "-1"
|
|
4708
4746
|
}),
|
|
4709
4747
|
" being the last frame."
|
|
@@ -4712,8 +4750,8 @@ var stillFrameOption = {
|
|
|
4712
4750
|
ssrName: "frame",
|
|
4713
4751
|
docLink: "https://www.remotion.dev/docs/cli/still#--frame",
|
|
4714
4752
|
getValue: ({ commandLine }) => {
|
|
4715
|
-
if (commandLine[
|
|
4716
|
-
const frame = Number(commandLine[
|
|
4753
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
4754
|
+
const frame = Number(commandLine[cliFlag84]);
|
|
4717
4755
|
validate3(frame);
|
|
4718
4756
|
return {
|
|
4719
4757
|
source: "cli",
|
|
@@ -4738,24 +4776,24 @@ var stillFrameOption = {
|
|
|
4738
4776
|
currentFrame = value3;
|
|
4739
4777
|
},
|
|
4740
4778
|
type: 0,
|
|
4741
|
-
id:
|
|
4779
|
+
id: cliFlag84
|
|
4742
4780
|
};
|
|
4743
4781
|
|
|
4744
4782
|
// src/options/still-image-format.tsx
|
|
4745
|
-
import { jsx as
|
|
4783
|
+
import { jsx as jsx81, jsxs as jsxs57, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
4746
4784
|
var currentStillImageFormat = null;
|
|
4747
|
-
var
|
|
4785
|
+
var cliFlag85 = "image-format";
|
|
4748
4786
|
var stillImageFormatOption = {
|
|
4749
4787
|
name: "Still Image Format",
|
|
4750
|
-
cliFlag:
|
|
4751
|
-
description: () => /* @__PURE__ */
|
|
4788
|
+
cliFlag: cliFlag85,
|
|
4789
|
+
description: () => /* @__PURE__ */ jsxs57(Fragment81, {
|
|
4752
4790
|
children: [
|
|
4753
4791
|
"The image format to use when rendering a still. Must be one of",
|
|
4754
4792
|
" ",
|
|
4755
4793
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4756
4794
|
". Default:",
|
|
4757
4795
|
" ",
|
|
4758
|
-
/* @__PURE__ */
|
|
4796
|
+
/* @__PURE__ */ jsx81("code", {
|
|
4759
4797
|
children: '"png"'
|
|
4760
4798
|
}),
|
|
4761
4799
|
"."
|
|
@@ -4765,8 +4803,8 @@ var stillImageFormatOption = {
|
|
|
4765
4803
|
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
4766
4804
|
type: null,
|
|
4767
4805
|
getValue: ({ commandLine }) => {
|
|
4768
|
-
if (commandLine[
|
|
4769
|
-
const value3 = commandLine[
|
|
4806
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
4807
|
+
const value3 = commandLine[cliFlag85];
|
|
4770
4808
|
if (!validStillImageFormats.includes(value3)) {
|
|
4771
4809
|
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
4772
4810
|
}
|
|
@@ -4804,16 +4842,16 @@ var stillImageFormatOption = {
|
|
|
4804
4842
|
|
|
4805
4843
|
// src/options/throw-if-site-exists.tsx
|
|
4806
4844
|
var DEFAULT5 = false;
|
|
4807
|
-
var
|
|
4845
|
+
var cliFlag86 = "throw-if-site-exists";
|
|
4808
4846
|
var throwIfSiteExistsOption = {
|
|
4809
|
-
cliFlag:
|
|
4847
|
+
cliFlag: cliFlag86,
|
|
4810
4848
|
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.`,
|
|
4811
4849
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
4812
4850
|
getValue: ({ commandLine }) => {
|
|
4813
|
-
if (commandLine[
|
|
4851
|
+
if (commandLine[cliFlag86]) {
|
|
4814
4852
|
return {
|
|
4815
4853
|
source: "cli",
|
|
4816
|
-
value: commandLine[
|
|
4854
|
+
value: commandLine[cliFlag86]
|
|
4817
4855
|
};
|
|
4818
4856
|
}
|
|
4819
4857
|
return {
|
|
@@ -4827,41 +4865,41 @@ var throwIfSiteExistsOption = {
|
|
|
4827
4865
|
},
|
|
4828
4866
|
ssrName: "throwIfSiteExists",
|
|
4829
4867
|
type: false,
|
|
4830
|
-
id:
|
|
4868
|
+
id: cliFlag86
|
|
4831
4869
|
};
|
|
4832
4870
|
|
|
4833
4871
|
// src/options/timeout.tsx
|
|
4834
|
-
import { jsx as
|
|
4872
|
+
import { jsx as jsx82, jsxs as jsxs58, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
4835
4873
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
4836
4874
|
var validate4 = (value3) => {
|
|
4837
4875
|
if (typeof value3 !== "number") {
|
|
4838
4876
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
4839
4877
|
}
|
|
4840
4878
|
};
|
|
4841
|
-
var
|
|
4879
|
+
var cliFlag87 = "timeout";
|
|
4842
4880
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
4843
4881
|
name: "delayRender() timeout",
|
|
4844
|
-
cliFlag:
|
|
4845
|
-
description: () => /* @__PURE__ */
|
|
4882
|
+
cliFlag: cliFlag87,
|
|
4883
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment82, {
|
|
4846
4884
|
children: [
|
|
4847
4885
|
"A number describing how long the render may take to resolve all",
|
|
4848
4886
|
" ",
|
|
4849
|
-
/* @__PURE__ */
|
|
4887
|
+
/* @__PURE__ */ jsx82("a", {
|
|
4850
4888
|
href: "https://remotion.dev/docs/delay-render",
|
|
4851
|
-
children: /* @__PURE__ */
|
|
4889
|
+
children: /* @__PURE__ */ jsx82("code", {
|
|
4852
4890
|
children: "delayRender()"
|
|
4853
4891
|
})
|
|
4854
4892
|
}),
|
|
4855
4893
|
" ",
|
|
4856
4894
|
"calls",
|
|
4857
4895
|
" ",
|
|
4858
|
-
/* @__PURE__ */
|
|
4896
|
+
/* @__PURE__ */ jsx82("a", {
|
|
4859
4897
|
style: { fontSize: "inherit" },
|
|
4860
4898
|
href: "https://remotion.dev/docs/timeout",
|
|
4861
4899
|
children: "before it times out"
|
|
4862
4900
|
}),
|
|
4863
4901
|
". Default: ",
|
|
4864
|
-
/* @__PURE__ */
|
|
4902
|
+
/* @__PURE__ */ jsx82("code", {
|
|
4865
4903
|
children: "30000"
|
|
4866
4904
|
})
|
|
4867
4905
|
]
|
|
@@ -4870,10 +4908,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4870
4908
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
4871
4909
|
type: 0,
|
|
4872
4910
|
getValue: ({ commandLine }) => {
|
|
4873
|
-
if (commandLine[
|
|
4911
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
4874
4912
|
return {
|
|
4875
4913
|
source: "cli",
|
|
4876
|
-
value: commandLine[
|
|
4914
|
+
value: commandLine[cliFlag87]
|
|
4877
4915
|
};
|
|
4878
4916
|
}
|
|
4879
4917
|
if (currentTimeout !== null) {
|
|
@@ -4892,27 +4930,27 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4892
4930
|
validate4(value3);
|
|
4893
4931
|
currentTimeout = value3;
|
|
4894
4932
|
},
|
|
4895
|
-
id:
|
|
4933
|
+
id: cliFlag87
|
|
4896
4934
|
};
|
|
4897
4935
|
|
|
4898
4936
|
// src/options/user-agent.tsx
|
|
4899
|
-
import { jsx as
|
|
4937
|
+
import { jsx as jsx83, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
4900
4938
|
var userAgent = null;
|
|
4901
|
-
var
|
|
4939
|
+
var cliFlag88 = "user-agent";
|
|
4902
4940
|
var userAgentOption = {
|
|
4903
4941
|
name: "User agent",
|
|
4904
|
-
cliFlag:
|
|
4905
|
-
description: () => /* @__PURE__ */
|
|
4942
|
+
cliFlag: cliFlag88,
|
|
4943
|
+
description: () => /* @__PURE__ */ jsx83(Fragment83, {
|
|
4906
4944
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
4907
4945
|
}),
|
|
4908
4946
|
ssrName: "userAgent",
|
|
4909
4947
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
|
|
4910
4948
|
type: null,
|
|
4911
4949
|
getValue: ({ commandLine }) => {
|
|
4912
|
-
if (commandLine[
|
|
4950
|
+
if (commandLine[cliFlag88] !== undefined) {
|
|
4913
4951
|
return {
|
|
4914
4952
|
source: "cli",
|
|
4915
|
-
value: commandLine[
|
|
4953
|
+
value: commandLine[cliFlag88]
|
|
4916
4954
|
};
|
|
4917
4955
|
}
|
|
4918
4956
|
if (userAgent !== null) {
|
|
@@ -4929,25 +4967,25 @@ var userAgentOption = {
|
|
|
4929
4967
|
setConfig: (value3) => {
|
|
4930
4968
|
userAgent = value3;
|
|
4931
4969
|
},
|
|
4932
|
-
id:
|
|
4970
|
+
id: cliFlag88
|
|
4933
4971
|
};
|
|
4934
4972
|
|
|
4935
4973
|
// src/options/version-flag.tsx
|
|
4936
|
-
import { jsx as
|
|
4937
|
-
var
|
|
4974
|
+
import { jsx as jsx84, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
4975
|
+
var cliFlag89 = "version";
|
|
4938
4976
|
var versionFlagOption = {
|
|
4939
4977
|
name: "Version",
|
|
4940
|
-
cliFlag:
|
|
4941
|
-
description: () => /* @__PURE__ */
|
|
4978
|
+
cliFlag: cliFlag89,
|
|
4979
|
+
description: () => /* @__PURE__ */ jsx84(Fragment84, {
|
|
4942
4980
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
4943
4981
|
}),
|
|
4944
4982
|
ssrName: null,
|
|
4945
4983
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
|
|
4946
4984
|
getValue: ({ commandLine }) => {
|
|
4947
|
-
if (commandLine[
|
|
4985
|
+
if (commandLine[cliFlag89] !== undefined) {
|
|
4948
4986
|
return {
|
|
4949
4987
|
source: "cli",
|
|
4950
|
-
value: String(commandLine[
|
|
4988
|
+
value: String(commandLine[cliFlag89])
|
|
4951
4989
|
};
|
|
4952
4990
|
}
|
|
4953
4991
|
return {
|
|
@@ -4959,30 +4997,30 @@ var versionFlagOption = {
|
|
|
4959
4997
|
throw new Error("Cannot set version via config file");
|
|
4960
4998
|
},
|
|
4961
4999
|
type: "",
|
|
4962
|
-
id:
|
|
5000
|
+
id: cliFlag89
|
|
4963
5001
|
};
|
|
4964
5002
|
|
|
4965
5003
|
// src/options/video-bitrate.tsx
|
|
4966
|
-
import { jsx as
|
|
5004
|
+
import { jsx as jsx85, jsxs as jsxs59, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
4967
5005
|
var videoBitrate = null;
|
|
4968
|
-
var
|
|
5006
|
+
var cliFlag90 = "video-bitrate";
|
|
4969
5007
|
var videoBitrateOption = {
|
|
4970
5008
|
name: "Video Bitrate",
|
|
4971
|
-
cliFlag:
|
|
4972
|
-
description: () => /* @__PURE__ */
|
|
5009
|
+
cliFlag: cliFlag90,
|
|
5010
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment85, {
|
|
4973
5011
|
children: [
|
|
4974
5012
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
4975
5013
|
"'",
|
|
4976
5014
|
"s",
|
|
4977
|
-
/* @__PURE__ */
|
|
5015
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4978
5016
|
children: "-b:v"
|
|
4979
5017
|
}),
|
|
4980
5018
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
4981
|
-
/* @__PURE__ */
|
|
5019
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4982
5020
|
children: "512K"
|
|
4983
5021
|
}),
|
|
4984
5022
|
" for 512 kbps, ",
|
|
4985
|
-
/* @__PURE__ */
|
|
5023
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4986
5024
|
children: "1M"
|
|
4987
5025
|
}),
|
|
4988
5026
|
" for 1 Mbps."
|
|
@@ -4992,10 +5030,10 @@ var videoBitrateOption = {
|
|
|
4992
5030
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
4993
5031
|
type: "",
|
|
4994
5032
|
getValue: ({ commandLine }) => {
|
|
4995
|
-
if (commandLine[
|
|
5033
|
+
if (commandLine[cliFlag90] !== undefined) {
|
|
4996
5034
|
return {
|
|
4997
5035
|
source: "cli",
|
|
4998
|
-
value: commandLine[
|
|
5036
|
+
value: commandLine[cliFlag90]
|
|
4999
5037
|
};
|
|
5000
5038
|
}
|
|
5001
5039
|
if (videoBitrate !== null) {
|
|
@@ -5012,34 +5050,34 @@ var videoBitrateOption = {
|
|
|
5012
5050
|
setConfig: (bitrate) => {
|
|
5013
5051
|
videoBitrate = bitrate;
|
|
5014
5052
|
},
|
|
5015
|
-
id:
|
|
5053
|
+
id: cliFlag90
|
|
5016
5054
|
};
|
|
5017
5055
|
|
|
5018
5056
|
// src/options/video-cache-size.tsx
|
|
5019
|
-
import { jsx as
|
|
5057
|
+
import { jsx as jsx86, jsxs as jsxs60, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5020
5058
|
var mediaCacheSizeInBytes = null;
|
|
5021
|
-
var
|
|
5059
|
+
var cliFlag91 = "media-cache-size-in-bytes";
|
|
5022
5060
|
var mediaCacheSizeInBytesOption = {
|
|
5023
5061
|
name: "@remotion/media cache size",
|
|
5024
|
-
cliFlag:
|
|
5025
|
-
description: () => /* @__PURE__ */
|
|
5062
|
+
cliFlag: cliFlag91,
|
|
5063
|
+
description: () => /* @__PURE__ */ jsxs60(Fragment86, {
|
|
5026
5064
|
children: [
|
|
5027
5065
|
"Specify the memory budget for decoded media cached by",
|
|
5028
5066
|
" ",
|
|
5029
|
-
/* @__PURE__ */
|
|
5067
|
+
/* @__PURE__ */ jsx86("code", {
|
|
5030
5068
|
children: "<Video>"
|
|
5031
5069
|
}),
|
|
5032
5070
|
" and ",
|
|
5033
|
-
/* @__PURE__ */
|
|
5071
|
+
/* @__PURE__ */ jsx86("code", {
|
|
5034
5072
|
children: "<Audio>"
|
|
5035
5073
|
}),
|
|
5036
5074
|
" from",
|
|
5037
5075
|
" ",
|
|
5038
|
-
/* @__PURE__ */
|
|
5076
|
+
/* @__PURE__ */ jsx86("code", {
|
|
5039
5077
|
children: "@remotion/media"
|
|
5040
5078
|
}),
|
|
5041
5079
|
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
5042
|
-
/* @__PURE__ */
|
|
5080
|
+
/* @__PURE__ */ jsx86("br", {}),
|
|
5043
5081
|
"The default is half of the available system memory when the render starts."
|
|
5044
5082
|
]
|
|
5045
5083
|
}),
|
|
@@ -5047,10 +5085,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5047
5085
|
docLink: "https://www.remotion.dev/docs/media/cache",
|
|
5048
5086
|
type: 0,
|
|
5049
5087
|
getValue: ({ commandLine }) => {
|
|
5050
|
-
if (commandLine[
|
|
5088
|
+
if (commandLine[cliFlag91] !== undefined) {
|
|
5051
5089
|
return {
|
|
5052
5090
|
source: "cli",
|
|
5053
|
-
value: commandLine[
|
|
5091
|
+
value: commandLine[cliFlag91]
|
|
5054
5092
|
};
|
|
5055
5093
|
}
|
|
5056
5094
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -5067,7 +5105,7 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5067
5105
|
setConfig: (size) => {
|
|
5068
5106
|
mediaCacheSizeInBytes = size ?? null;
|
|
5069
5107
|
},
|
|
5070
|
-
id:
|
|
5108
|
+
id: cliFlag91
|
|
5071
5109
|
};
|
|
5072
5110
|
|
|
5073
5111
|
// src/path-normalize.ts
|
|
@@ -5186,7 +5224,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
5186
5224
|
};
|
|
5187
5225
|
|
|
5188
5226
|
// src/options/video-codec.tsx
|
|
5189
|
-
import { jsx as
|
|
5227
|
+
import { jsx as jsx87, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5190
5228
|
var codec;
|
|
5191
5229
|
var setCodec = (newCodec) => {
|
|
5192
5230
|
if (newCodec === undefined) {
|
|
@@ -5210,11 +5248,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5210
5248
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
5211
5249
|
};
|
|
5212
5250
|
};
|
|
5213
|
-
var
|
|
5251
|
+
var cliFlag92 = "codec";
|
|
5214
5252
|
var videoCodecOption = {
|
|
5215
5253
|
name: "Codec",
|
|
5216
|
-
cliFlag:
|
|
5217
|
-
description: () => /* @__PURE__ */
|
|
5254
|
+
cliFlag: cliFlag92,
|
|
5255
|
+
description: () => /* @__PURE__ */ jsx87(Fragment87, {
|
|
5218
5256
|
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."
|
|
5219
5257
|
}),
|
|
5220
5258
|
ssrName: "codec",
|
|
@@ -5237,7 +5275,7 @@ var videoCodecOption = {
|
|
|
5237
5275
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5238
5276
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5239
5277
|
}
|
|
5240
|
-
const cliArgument = commandLine[
|
|
5278
|
+
const cliArgument = commandLine[cliFlag92];
|
|
5241
5279
|
if (cliArgument) {
|
|
5242
5280
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5243
5281
|
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.`);
|
|
@@ -5286,24 +5324,24 @@ var videoCodecOption = {
|
|
|
5286
5324
|
reset: () => {
|
|
5287
5325
|
codec = undefined;
|
|
5288
5326
|
},
|
|
5289
|
-
id:
|
|
5327
|
+
id: cliFlag92
|
|
5290
5328
|
};
|
|
5291
5329
|
|
|
5292
5330
|
// src/options/video-image-format.tsx
|
|
5293
|
-
import { jsx as
|
|
5331
|
+
import { jsx as jsx88, jsxs as jsxs61, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5294
5332
|
var currentVideoImageFormat = null;
|
|
5295
|
-
var
|
|
5333
|
+
var cliFlag93 = "image-format";
|
|
5296
5334
|
var videoImageFormatOption = {
|
|
5297
5335
|
name: "Video Image Format",
|
|
5298
|
-
cliFlag:
|
|
5299
|
-
description: () => /* @__PURE__ */
|
|
5336
|
+
cliFlag: cliFlag93,
|
|
5337
|
+
description: () => /* @__PURE__ */ jsxs61(Fragment88, {
|
|
5300
5338
|
children: [
|
|
5301
5339
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5302
5340
|
" ",
|
|
5303
5341
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5304
5342
|
". Default:",
|
|
5305
5343
|
" ",
|
|
5306
|
-
/* @__PURE__ */
|
|
5344
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5307
5345
|
children: '"jpeg"'
|
|
5308
5346
|
}),
|
|
5309
5347
|
". JPEG is faster, but does not support transparency."
|
|
@@ -5319,8 +5357,8 @@ var videoImageFormatOption = {
|
|
|
5319
5357
|
value: options.uiVideoImageFormat
|
|
5320
5358
|
};
|
|
5321
5359
|
}
|
|
5322
|
-
if (commandLine[
|
|
5323
|
-
const value3 = commandLine[
|
|
5360
|
+
if (commandLine[cliFlag93] !== undefined) {
|
|
5361
|
+
const value3 = commandLine[cliFlag93];
|
|
5324
5362
|
if (!validVideoImageFormats.includes(value3)) {
|
|
5325
5363
|
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5326
5364
|
}
|
|
@@ -5384,12 +5422,12 @@ var videoImageFormatOption = {
|
|
|
5384
5422
|
};
|
|
5385
5423
|
|
|
5386
5424
|
// src/options/webhook-custom-data.tsx
|
|
5387
|
-
import { jsxs as
|
|
5388
|
-
var
|
|
5425
|
+
import { jsxs as jsxs62, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5426
|
+
var cliFlag94 = "webhook-custom-data";
|
|
5389
5427
|
var webhookCustomDataOption = {
|
|
5390
5428
|
name: "Webhook custom data",
|
|
5391
|
-
cliFlag:
|
|
5392
|
-
description: (type) => /* @__PURE__ */
|
|
5429
|
+
cliFlag: cliFlag94,
|
|
5430
|
+
description: (type) => /* @__PURE__ */ jsxs62(Fragment89, {
|
|
5393
5431
|
children: [
|
|
5394
5432
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5395
5433
|
" ",
|
|
@@ -5405,24 +5443,24 @@ var webhookCustomDataOption = {
|
|
|
5405
5443
|
setConfig: () => {
|
|
5406
5444
|
throw new Error("Not implemented");
|
|
5407
5445
|
},
|
|
5408
|
-
id:
|
|
5446
|
+
id: cliFlag94
|
|
5409
5447
|
};
|
|
5410
5448
|
|
|
5411
5449
|
// src/options/webpack-poll.tsx
|
|
5412
|
-
import { jsx as
|
|
5413
|
-
var
|
|
5450
|
+
import { jsx as jsx89, Fragment as Fragment90 } from "react/jsx-runtime";
|
|
5451
|
+
var cliFlag95 = "webpack-poll";
|
|
5414
5452
|
var webpackPolling = null;
|
|
5415
5453
|
var webpackPollOption = {
|
|
5416
5454
|
name: "Webpack Polling",
|
|
5417
|
-
cliFlag:
|
|
5418
|
-
description: () => /* @__PURE__ */
|
|
5455
|
+
cliFlag: cliFlag95,
|
|
5456
|
+
description: () => /* @__PURE__ */ jsx89(Fragment90, {
|
|
5419
5457
|
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."
|
|
5420
5458
|
}),
|
|
5421
5459
|
ssrName: null,
|
|
5422
5460
|
docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
|
|
5423
5461
|
getValue: ({ commandLine }) => {
|
|
5424
|
-
if (commandLine[
|
|
5425
|
-
const val = commandLine[
|
|
5462
|
+
if (commandLine[cliFlag95] !== undefined) {
|
|
5463
|
+
const val = commandLine[cliFlag95];
|
|
5426
5464
|
if (typeof val !== "number") {
|
|
5427
5465
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5428
5466
|
}
|
|
@@ -5449,11 +5487,11 @@ var webpackPollOption = {
|
|
|
5449
5487
|
webpackPolling = value3;
|
|
5450
5488
|
},
|
|
5451
5489
|
type: 0,
|
|
5452
|
-
id:
|
|
5490
|
+
id: cliFlag95
|
|
5453
5491
|
};
|
|
5454
5492
|
|
|
5455
5493
|
// src/options/x264-preset.tsx
|
|
5456
|
-
import { jsx as
|
|
5494
|
+
import { jsx as jsx90, jsxs as jsxs63, Fragment as Fragment91 } from "react/jsx-runtime";
|
|
5457
5495
|
var x264PresetOptions = [
|
|
5458
5496
|
"ultrafast",
|
|
5459
5497
|
"superfast",
|
|
@@ -5467,63 +5505,63 @@ var x264PresetOptions = [
|
|
|
5467
5505
|
"placebo"
|
|
5468
5506
|
];
|
|
5469
5507
|
var preset = null;
|
|
5470
|
-
var
|
|
5508
|
+
var cliFlag96 = "x264-preset";
|
|
5471
5509
|
var DEFAULT_PRESET = "medium";
|
|
5472
5510
|
var x264Option = {
|
|
5473
5511
|
name: "x264 Preset",
|
|
5474
|
-
cliFlag:
|
|
5475
|
-
description: () => /* @__PURE__ */
|
|
5512
|
+
cliFlag: cliFlag96,
|
|
5513
|
+
description: () => /* @__PURE__ */ jsxs63(Fragment91, {
|
|
5476
5514
|
children: [
|
|
5477
5515
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5478
5516
|
" ",
|
|
5479
|
-
/* @__PURE__ */
|
|
5517
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5480
5518
|
children: "h264"
|
|
5481
5519
|
}),
|
|
5482
5520
|
" codec.",
|
|
5483
|
-
/* @__PURE__ */
|
|
5521
|
+
/* @__PURE__ */ jsx90("br", {}),
|
|
5484
5522
|
"Possible values: ",
|
|
5485
|
-
/* @__PURE__ */
|
|
5523
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5486
5524
|
children: "superfast"
|
|
5487
5525
|
}),
|
|
5488
5526
|
", ",
|
|
5489
|
-
/* @__PURE__ */
|
|
5527
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5490
5528
|
children: "veryfast"
|
|
5491
5529
|
}),
|
|
5492
5530
|
",",
|
|
5493
5531
|
" ",
|
|
5494
|
-
/* @__PURE__ */
|
|
5532
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5495
5533
|
children: "faster"
|
|
5496
5534
|
}),
|
|
5497
5535
|
", ",
|
|
5498
|
-
/* @__PURE__ */
|
|
5536
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5499
5537
|
children: "fast"
|
|
5500
5538
|
}),
|
|
5501
5539
|
", ",
|
|
5502
|
-
/* @__PURE__ */
|
|
5540
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5503
5541
|
children: "medium"
|
|
5504
5542
|
}),
|
|
5505
5543
|
",",
|
|
5506
5544
|
" ",
|
|
5507
|
-
/* @__PURE__ */
|
|
5545
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5508
5546
|
children: "slow"
|
|
5509
5547
|
}),
|
|
5510
5548
|
", ",
|
|
5511
|
-
/* @__PURE__ */
|
|
5549
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5512
5550
|
children: "slower"
|
|
5513
5551
|
}),
|
|
5514
5552
|
", ",
|
|
5515
|
-
/* @__PURE__ */
|
|
5553
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5516
5554
|
children: "veryslow"
|
|
5517
5555
|
}),
|
|
5518
5556
|
",",
|
|
5519
5557
|
" ",
|
|
5520
|
-
/* @__PURE__ */
|
|
5558
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5521
5559
|
children: "placebo"
|
|
5522
5560
|
}),
|
|
5523
5561
|
".",
|
|
5524
|
-
/* @__PURE__ */
|
|
5562
|
+
/* @__PURE__ */ jsx90("br", {}),
|
|
5525
5563
|
"Default: ",
|
|
5526
|
-
/* @__PURE__ */
|
|
5564
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5527
5565
|
children: DEFAULT_PRESET
|
|
5528
5566
|
})
|
|
5529
5567
|
]
|
|
@@ -5532,7 +5570,7 @@ var x264Option = {
|
|
|
5532
5570
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
5533
5571
|
type: "fast",
|
|
5534
5572
|
getValue: ({ commandLine }) => {
|
|
5535
|
-
const value3 = commandLine[
|
|
5573
|
+
const value3 = commandLine[cliFlag96];
|
|
5536
5574
|
if (typeof value3 !== "undefined") {
|
|
5537
5575
|
return { value: value3, source: "cli" };
|
|
5538
5576
|
}
|
|
@@ -5544,7 +5582,7 @@ var x264Option = {
|
|
|
5544
5582
|
setConfig: (profile) => {
|
|
5545
5583
|
preset = profile;
|
|
5546
5584
|
},
|
|
5547
|
-
id:
|
|
5585
|
+
id: cliFlag96
|
|
5548
5586
|
};
|
|
5549
5587
|
|
|
5550
5588
|
// src/options/index.tsx
|
|
@@ -5571,6 +5609,7 @@ var allOptions = {
|
|
|
5571
5609
|
disableWebSecurityOption,
|
|
5572
5610
|
disallowParallelEncodingOption,
|
|
5573
5611
|
folderExpiryOption,
|
|
5612
|
+
enableCancellationOption,
|
|
5574
5613
|
enableMultiprocessOnLinuxOption,
|
|
5575
5614
|
glOption,
|
|
5576
5615
|
gopSizeOption,
|