@remotion/renderer 4.0.409 → 4.0.410
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 +20 -5
- package/dist/esm/client.mjs +269 -221
- package/dist/esm/index.mjs +22 -14
- package/dist/index.d.ts +4 -3
- package/dist/options/index.d.ts +16 -1
- package/dist/options/index.js +2 -0
- package/dist/options/is-production.d.ts +15 -0
- package/dist/options/is-production.js +38 -0
- package/dist/options/license-key.d.ts +1 -1
- package/dist/options/license-key.js +1 -1
- package/dist/options/options-map.d.ts +4 -4
- package/dist/render-media.d.ts +5 -2
- package/dist/render-media.js +6 -3
- package/dist/render-still.d.ts +9 -2
- package/dist/render-still.js +10 -8
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -1775,8 +1775,55 @@ var imageSequencePatternOption = {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
};
|
|
1777
1777
|
|
|
1778
|
+
// src/options/is-production.tsx
|
|
1779
|
+
import { jsx as jsx24, jsxs as jsxs18, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1780
|
+
var cliFlag28 = "is-production";
|
|
1781
|
+
var currentIsProductionKey = null;
|
|
1782
|
+
var isProductionOption = {
|
|
1783
|
+
name: "Is Production",
|
|
1784
|
+
cliFlag: cliFlag28,
|
|
1785
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment24, {
|
|
1786
|
+
children: [
|
|
1787
|
+
"Pass ",
|
|
1788
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1789
|
+
children: "false"
|
|
1790
|
+
}),
|
|
1791
|
+
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
1792
|
+
" ",
|
|
1793
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1794
|
+
children: "licenseKey"
|
|
1795
|
+
}),
|
|
1796
|
+
"."
|
|
1797
|
+
]
|
|
1798
|
+
}),
|
|
1799
|
+
ssrName: "isProduction",
|
|
1800
|
+
docLink: "https://www.remotion.dev/docs/licensing",
|
|
1801
|
+
getValue: ({ commandLine }) => {
|
|
1802
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1803
|
+
return {
|
|
1804
|
+
source: "cli",
|
|
1805
|
+
value: commandLine[cliFlag28]
|
|
1806
|
+
};
|
|
1807
|
+
}
|
|
1808
|
+
if (currentIsProductionKey !== null) {
|
|
1809
|
+
return {
|
|
1810
|
+
source: "config",
|
|
1811
|
+
value: currentIsProductionKey
|
|
1812
|
+
};
|
|
1813
|
+
}
|
|
1814
|
+
return {
|
|
1815
|
+
source: "default",
|
|
1816
|
+
value: null
|
|
1817
|
+
};
|
|
1818
|
+
},
|
|
1819
|
+
setConfig: (value) => {
|
|
1820
|
+
currentIsProductionKey = value;
|
|
1821
|
+
},
|
|
1822
|
+
type: false
|
|
1823
|
+
};
|
|
1824
|
+
|
|
1778
1825
|
// src/options/jpeg-quality.tsx
|
|
1779
|
-
import { jsx as
|
|
1826
|
+
import { jsx as jsx25, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1780
1827
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
1781
1828
|
var quality = defaultValue;
|
|
1782
1829
|
var setJpegQuality = (q) => {
|
|
@@ -1787,11 +1834,11 @@ var setJpegQuality = (q) => {
|
|
|
1787
1834
|
}
|
|
1788
1835
|
quality = q;
|
|
1789
1836
|
};
|
|
1790
|
-
var
|
|
1837
|
+
var cliFlag29 = "jpeg-quality";
|
|
1791
1838
|
var jpegQualityOption = {
|
|
1792
1839
|
name: "JPEG Quality",
|
|
1793
|
-
cliFlag:
|
|
1794
|
-
description: () => /* @__PURE__ */
|
|
1840
|
+
cliFlag: cliFlag29,
|
|
1841
|
+
description: () => /* @__PURE__ */ jsx25(Fragment25, {
|
|
1795
1842
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
1796
1843
|
}),
|
|
1797
1844
|
ssrName: "jpegQuality",
|
|
@@ -1799,11 +1846,11 @@ var jpegQualityOption = {
|
|
|
1799
1846
|
type: 0,
|
|
1800
1847
|
setConfig: setJpegQuality,
|
|
1801
1848
|
getValue: ({ commandLine }) => {
|
|
1802
|
-
if (commandLine[
|
|
1803
|
-
validateJpegQuality(commandLine[
|
|
1849
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1850
|
+
validateJpegQuality(commandLine[cliFlag29]);
|
|
1804
1851
|
return {
|
|
1805
1852
|
source: "cli",
|
|
1806
|
-
value: commandLine[
|
|
1853
|
+
value: commandLine[cliFlag29]
|
|
1807
1854
|
};
|
|
1808
1855
|
}
|
|
1809
1856
|
if (quality !== defaultValue) {
|
|
@@ -1820,21 +1867,21 @@ var jpegQualityOption = {
|
|
|
1820
1867
|
};
|
|
1821
1868
|
|
|
1822
1869
|
// src/options/keyboard-shortcuts.tsx
|
|
1823
|
-
import { jsx as
|
|
1870
|
+
import { jsx as jsx26, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1824
1871
|
var keyboardShortcutsEnabled = true;
|
|
1825
|
-
var
|
|
1872
|
+
var cliFlag30 = "disable-keyboard-shortcuts";
|
|
1826
1873
|
var keyboardShortcutsOption = {
|
|
1827
1874
|
name: "Disable or Enable keyboard shortcuts",
|
|
1828
|
-
cliFlag:
|
|
1829
|
-
description: () => /* @__PURE__ */
|
|
1875
|
+
cliFlag: cliFlag30,
|
|
1876
|
+
description: () => /* @__PURE__ */ jsx26(Fragment26, {
|
|
1830
1877
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
1831
1878
|
}),
|
|
1832
1879
|
ssrName: null,
|
|
1833
1880
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
1834
1881
|
type: false,
|
|
1835
1882
|
getValue: ({ commandLine }) => {
|
|
1836
|
-
if (commandLine[
|
|
1837
|
-
keyboardShortcutsEnabled = commandLine[
|
|
1883
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
1884
|
+
keyboardShortcutsEnabled = commandLine[cliFlag30] === false;
|
|
1838
1885
|
return {
|
|
1839
1886
|
value: keyboardShortcutsEnabled,
|
|
1840
1887
|
source: "cli"
|
|
@@ -1851,38 +1898,38 @@ var keyboardShortcutsOption = {
|
|
|
1851
1898
|
};
|
|
1852
1899
|
|
|
1853
1900
|
// src/options/latency-hint.tsx
|
|
1854
|
-
import { jsx as
|
|
1855
|
-
var
|
|
1901
|
+
import { jsx as jsx27, jsxs as jsxs19, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1902
|
+
var cliFlag31 = "audio-latency-hint";
|
|
1856
1903
|
var value = null;
|
|
1857
1904
|
var audioLatencyHintOption = {
|
|
1858
1905
|
name: "Audio Latency Hint",
|
|
1859
|
-
cliFlag:
|
|
1860
|
-
description: () => /* @__PURE__ */
|
|
1906
|
+
cliFlag: cliFlag31,
|
|
1907
|
+
description: () => /* @__PURE__ */ jsxs19(Fragment27, {
|
|
1861
1908
|
children: [
|
|
1862
1909
|
"Sets the",
|
|
1863
1910
|
" ",
|
|
1864
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ jsx27("a", {
|
|
1865
1912
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
1866
1913
|
children: "audio latency"
|
|
1867
1914
|
}),
|
|
1868
1915
|
" ",
|
|
1869
1916
|
"hint for the global ",
|
|
1870
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1871
1918
|
children: "AudioContext"
|
|
1872
1919
|
}),
|
|
1873
1920
|
" context that Remotion uses to play audio.",
|
|
1874
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ jsx27("br", {}),
|
|
1875
1922
|
"Possible values: ",
|
|
1876
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1877
1924
|
children: "interactive"
|
|
1878
1925
|
}),
|
|
1879
1926
|
", ",
|
|
1880
|
-
/* @__PURE__ */
|
|
1927
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1881
1928
|
children: "balanced"
|
|
1882
1929
|
}),
|
|
1883
1930
|
",",
|
|
1884
1931
|
" ",
|
|
1885
|
-
/* @__PURE__ */
|
|
1932
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1886
1933
|
children: "playback"
|
|
1887
1934
|
})
|
|
1888
1935
|
]
|
|
@@ -1891,7 +1938,7 @@ var audioLatencyHintOption = {
|
|
|
1891
1938
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
1892
1939
|
type: "interactive",
|
|
1893
1940
|
getValue: ({ commandLine }) => {
|
|
1894
|
-
const val = commandLine[
|
|
1941
|
+
const val = commandLine[cliFlag31];
|
|
1895
1942
|
if (typeof val !== "undefined") {
|
|
1896
1943
|
return { value: val, source: "cli" };
|
|
1897
1944
|
}
|
|
@@ -1906,17 +1953,17 @@ var audioLatencyHintOption = {
|
|
|
1906
1953
|
};
|
|
1907
1954
|
|
|
1908
1955
|
// src/options/license-key.tsx
|
|
1909
|
-
import { jsx as
|
|
1956
|
+
import { jsx as jsx28, jsxs as jsxs20, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1910
1957
|
var currentLicenseKey = null;
|
|
1911
|
-
var
|
|
1958
|
+
var cliFlag32 = "license-key";
|
|
1912
1959
|
var licenseKeyOption = {
|
|
1913
1960
|
name: "License key",
|
|
1914
|
-
cliFlag:
|
|
1915
|
-
description: () => /* @__PURE__ */
|
|
1961
|
+
cliFlag: cliFlag32,
|
|
1962
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment28, {
|
|
1916
1963
|
children: [
|
|
1917
1964
|
"License key for sending a usage event using",
|
|
1918
1965
|
" ",
|
|
1919
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1920
1967
|
children: "@remotion/licensing"
|
|
1921
1968
|
}),
|
|
1922
1969
|
"."
|
|
@@ -1926,10 +1973,10 @@ var licenseKeyOption = {
|
|
|
1926
1973
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
1927
1974
|
type: null,
|
|
1928
1975
|
getValue: ({ commandLine }) => {
|
|
1929
|
-
if (commandLine[
|
|
1976
|
+
if (commandLine[cliFlag32] !== undefined) {
|
|
1930
1977
|
return {
|
|
1931
1978
|
source: "cli",
|
|
1932
|
-
value: commandLine[
|
|
1979
|
+
value: commandLine[cliFlag32]
|
|
1933
1980
|
};
|
|
1934
1981
|
}
|
|
1935
1982
|
return {
|
|
@@ -1943,43 +1990,43 @@ var licenseKeyOption = {
|
|
|
1943
1990
|
};
|
|
1944
1991
|
|
|
1945
1992
|
// src/options/log-level.tsx
|
|
1946
|
-
import { jsx as
|
|
1993
|
+
import { jsx as jsx29, jsxs as jsxs21, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1947
1994
|
var logLevel = "info";
|
|
1948
|
-
var
|
|
1995
|
+
var cliFlag33 = "log";
|
|
1949
1996
|
var logLevelOption = {
|
|
1950
|
-
cliFlag:
|
|
1997
|
+
cliFlag: cliFlag33,
|
|
1951
1998
|
name: "Log Level",
|
|
1952
1999
|
ssrName: "logLevel",
|
|
1953
|
-
description: () => /* @__PURE__ */
|
|
2000
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment29, {
|
|
1954
2001
|
children: [
|
|
1955
2002
|
"One of ",
|
|
1956
|
-
/* @__PURE__ */
|
|
2003
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1957
2004
|
children: "trace"
|
|
1958
2005
|
}),
|
|
1959
2006
|
", ",
|
|
1960
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1961
2008
|
children: "verbose"
|
|
1962
2009
|
}),
|
|
1963
2010
|
", ",
|
|
1964
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1965
2012
|
children: "info"
|
|
1966
2013
|
}),
|
|
1967
2014
|
",",
|
|
1968
2015
|
" ",
|
|
1969
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1970
2017
|
children: "warn"
|
|
1971
2018
|
}),
|
|
1972
2019
|
", ",
|
|
1973
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1974
2021
|
children: "error"
|
|
1975
2022
|
}),
|
|
1976
2023
|
".",
|
|
1977
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx29("br", {}),
|
|
1978
2025
|
" Determines how much info is being logged to the console.",
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
2026
|
+
/* @__PURE__ */ jsx29("br", {}),
|
|
2027
|
+
/* @__PURE__ */ jsx29("br", {}),
|
|
1981
2028
|
" Default ",
|
|
1982
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1983
2030
|
children: "info"
|
|
1984
2031
|
}),
|
|
1985
2032
|
"."
|
|
@@ -1987,11 +2034,11 @@ var logLevelOption = {
|
|
|
1987
2034
|
}),
|
|
1988
2035
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
1989
2036
|
getValue: ({ commandLine }) => {
|
|
1990
|
-
if (commandLine[
|
|
1991
|
-
if (!isValidLogLevel(commandLine[
|
|
2037
|
+
if (commandLine[cliFlag33]) {
|
|
2038
|
+
if (!isValidLogLevel(commandLine[cliFlag33])) {
|
|
1992
2039
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
1993
2040
|
}
|
|
1994
|
-
return { value: commandLine[
|
|
2041
|
+
return { value: commandLine[cliFlag33], source: "cli" };
|
|
1995
2042
|
}
|
|
1996
2043
|
if (logLevel !== "info") {
|
|
1997
2044
|
return { value: logLevel, source: "config" };
|
|
@@ -2005,19 +2052,19 @@ var logLevelOption = {
|
|
|
2005
2052
|
};
|
|
2006
2053
|
|
|
2007
2054
|
// src/options/metadata.tsx
|
|
2008
|
-
import { jsx as
|
|
2055
|
+
import { jsx as jsx30, jsxs as jsxs22, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
2009
2056
|
var metadata = {};
|
|
2010
|
-
var
|
|
2057
|
+
var cliFlag34 = "metadata";
|
|
2011
2058
|
var metadataOption = {
|
|
2012
2059
|
name: "Metadata",
|
|
2013
|
-
cliFlag:
|
|
2060
|
+
cliFlag: cliFlag34,
|
|
2014
2061
|
description: (mode) => {
|
|
2015
2062
|
if (mode === "ssr") {
|
|
2016
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ jsxs22(Fragment30, {
|
|
2017
2064
|
children: [
|
|
2018
2065
|
"An object containing metadata to be embedded in the video. See",
|
|
2019
2066
|
" ",
|
|
2020
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx30("a", {
|
|
2021
2068
|
href: "/docs/metadata",
|
|
2022
2069
|
children: "here"
|
|
2023
2070
|
}),
|
|
@@ -2025,18 +2072,18 @@ var metadataOption = {
|
|
|
2025
2072
|
]
|
|
2026
2073
|
});
|
|
2027
2074
|
}
|
|
2028
|
-
return /* @__PURE__ */
|
|
2075
|
+
return /* @__PURE__ */ jsxs22(Fragment30, {
|
|
2029
2076
|
children: [
|
|
2030
2077
|
"Metadata to be embedded in the video. See",
|
|
2031
2078
|
" ",
|
|
2032
|
-
/* @__PURE__ */
|
|
2079
|
+
/* @__PURE__ */ jsx30("a", {
|
|
2033
2080
|
href: "/docs/metadata",
|
|
2034
2081
|
children: "here"
|
|
2035
2082
|
}),
|
|
2036
2083
|
" for which metadata is accepted.",
|
|
2037
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ jsx30("br", {}),
|
|
2038
2085
|
"The parameter must be in the format of ",
|
|
2039
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2040
2087
|
children: "--metadata key=value"
|
|
2041
2088
|
}),
|
|
2042
2089
|
" ",
|
|
@@ -2047,8 +2094,8 @@ var metadataOption = {
|
|
|
2047
2094
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
2048
2095
|
type: {},
|
|
2049
2096
|
getValue: ({ commandLine }) => {
|
|
2050
|
-
if (commandLine[
|
|
2051
|
-
const val = commandLine[
|
|
2097
|
+
if (commandLine[cliFlag34] !== undefined) {
|
|
2098
|
+
const val = commandLine[cliFlag34];
|
|
2052
2099
|
const array = typeof val === "string" ? [val] : val;
|
|
2053
2100
|
const keyValues = array.map((a) => {
|
|
2054
2101
|
if (!a.includes("=")) {
|
|
@@ -2078,24 +2125,24 @@ var metadataOption = {
|
|
|
2078
2125
|
};
|
|
2079
2126
|
|
|
2080
2127
|
// src/options/mute.tsx
|
|
2081
|
-
import { jsx as
|
|
2128
|
+
import { jsx as jsx31, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
2082
2129
|
var DEFAULT_MUTED_STATE = false;
|
|
2083
2130
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
2084
|
-
var
|
|
2131
|
+
var cliFlag35 = "muted";
|
|
2085
2132
|
var mutedOption = {
|
|
2086
2133
|
name: "Muted",
|
|
2087
|
-
cliFlag:
|
|
2088
|
-
description: () => /* @__PURE__ */
|
|
2134
|
+
cliFlag: cliFlag35,
|
|
2135
|
+
description: () => /* @__PURE__ */ jsx31(Fragment31, {
|
|
2089
2136
|
children: "The Audio of the video will be omitted."
|
|
2090
2137
|
}),
|
|
2091
2138
|
ssrName: "muted",
|
|
2092
2139
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
2093
2140
|
type: false,
|
|
2094
2141
|
getValue: ({ commandLine }) => {
|
|
2095
|
-
if (commandLine[
|
|
2142
|
+
if (commandLine[cliFlag35] !== null) {
|
|
2096
2143
|
return {
|
|
2097
2144
|
source: "cli",
|
|
2098
|
-
value: commandLine[
|
|
2145
|
+
value: commandLine[cliFlag35]
|
|
2099
2146
|
};
|
|
2100
2147
|
}
|
|
2101
2148
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -2115,50 +2162,50 @@ var mutedOption = {
|
|
|
2115
2162
|
};
|
|
2116
2163
|
|
|
2117
2164
|
// src/options/number-of-gif-loops.tsx
|
|
2118
|
-
import { jsx as
|
|
2165
|
+
import { jsx as jsx32, jsxs as jsxs23, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2119
2166
|
var currentLoop = null;
|
|
2120
2167
|
var validate = (newLoop) => {
|
|
2121
2168
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
2122
2169
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
2123
2170
|
}
|
|
2124
2171
|
};
|
|
2125
|
-
var
|
|
2172
|
+
var cliFlag36 = "number-of-gif-loops";
|
|
2126
2173
|
var numberOfGifLoopsOption = {
|
|
2127
2174
|
name: "Number of GIF loops",
|
|
2128
|
-
cliFlag:
|
|
2175
|
+
cliFlag: cliFlag36,
|
|
2129
2176
|
description: () => {
|
|
2130
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ jsxs23(Fragment32, {
|
|
2131
2178
|
children: [
|
|
2132
2179
|
"Allows you to set the number of loops as follows:",
|
|
2133
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ jsxs23("ul", {
|
|
2134
2181
|
children: [
|
|
2135
|
-
/* @__PURE__ */
|
|
2182
|
+
/* @__PURE__ */ jsxs23("li", {
|
|
2136
2183
|
children: [
|
|
2137
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2138
2185
|
children: "null"
|
|
2139
2186
|
}),
|
|
2140
2187
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
2141
2188
|
]
|
|
2142
2189
|
}),
|
|
2143
|
-
/* @__PURE__ */
|
|
2190
|
+
/* @__PURE__ */ jsxs23("li", {
|
|
2144
2191
|
children: [
|
|
2145
|
-
/* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2146
2193
|
children: "0"
|
|
2147
2194
|
}),
|
|
2148
2195
|
" disables looping"
|
|
2149
2196
|
]
|
|
2150
2197
|
}),
|
|
2151
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ jsxs23("li", {
|
|
2152
2199
|
children: [
|
|
2153
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2154
2201
|
children: "1"
|
|
2155
2202
|
}),
|
|
2156
2203
|
" loops the GIF once (plays twice in total)"
|
|
2157
2204
|
]
|
|
2158
2205
|
}),
|
|
2159
|
-
/* @__PURE__ */
|
|
2206
|
+
/* @__PURE__ */ jsxs23("li", {
|
|
2160
2207
|
children: [
|
|
2161
|
-
/* @__PURE__ */
|
|
2208
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2162
2209
|
children: "2"
|
|
2163
2210
|
}),
|
|
2164
2211
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -2173,10 +2220,10 @@ var numberOfGifLoopsOption = {
|
|
|
2173
2220
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
2174
2221
|
type: 0,
|
|
2175
2222
|
getValue: ({ commandLine }) => {
|
|
2176
|
-
if (commandLine[
|
|
2177
|
-
validate(commandLine[
|
|
2223
|
+
if (commandLine[cliFlag36] !== undefined) {
|
|
2224
|
+
validate(commandLine[cliFlag36]);
|
|
2178
2225
|
return {
|
|
2179
|
-
value: commandLine[
|
|
2226
|
+
value: commandLine[cliFlag36],
|
|
2180
2227
|
source: "cli"
|
|
2181
2228
|
};
|
|
2182
2229
|
}
|
|
@@ -2198,35 +2245,35 @@ var numberOfGifLoopsOption = {
|
|
|
2198
2245
|
};
|
|
2199
2246
|
|
|
2200
2247
|
// src/options/offthreadvideo-cache-size.tsx
|
|
2201
|
-
import { jsx as
|
|
2248
|
+
import { jsx as jsx33, jsxs as jsxs24, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2202
2249
|
var offthreadVideoCacheSizeInBytes = null;
|
|
2203
|
-
var
|
|
2250
|
+
var cliFlag37 = "offthreadvideo-cache-size-in-bytes";
|
|
2204
2251
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
2205
2252
|
name: "OffthreadVideo cache size",
|
|
2206
|
-
cliFlag:
|
|
2207
|
-
description: () => /* @__PURE__ */
|
|
2253
|
+
cliFlag: cliFlag37,
|
|
2254
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment33, {
|
|
2208
2255
|
children: [
|
|
2209
2256
|
"From v4.0, Remotion has a cache for",
|
|
2210
2257
|
" ",
|
|
2211
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ jsx33("a", {
|
|
2212
2259
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2213
|
-
children: /* @__PURE__ */
|
|
2260
|
+
children: /* @__PURE__ */ jsx33("code", {
|
|
2214
2261
|
children: "<OffthreadVideo>"
|
|
2215
2262
|
})
|
|
2216
2263
|
}),
|
|
2217
2264
|
" ",
|
|
2218
2265
|
"frames. The default is ",
|
|
2219
|
-
/* @__PURE__ */
|
|
2266
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2220
2267
|
children: "null"
|
|
2221
2268
|
}),
|
|
2222
2269
|
", corresponding to half of the system memory available when the render starts.",
|
|
2223
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2224
2271
|
" 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.",
|
|
2225
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2226
2273
|
"The used value will be printed when running in verbose mode.",
|
|
2227
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2228
2275
|
"Default: ",
|
|
2229
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2230
2277
|
children: "null"
|
|
2231
2278
|
})
|
|
2232
2279
|
]
|
|
@@ -2235,10 +2282,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2235
2282
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2236
2283
|
type: 0,
|
|
2237
2284
|
getValue: ({ commandLine }) => {
|
|
2238
|
-
if (commandLine[
|
|
2285
|
+
if (commandLine[cliFlag37] !== undefined) {
|
|
2239
2286
|
return {
|
|
2240
2287
|
source: "cli",
|
|
2241
|
-
value: commandLine[
|
|
2288
|
+
value: commandLine[cliFlag37]
|
|
2242
2289
|
};
|
|
2243
2290
|
}
|
|
2244
2291
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -2258,18 +2305,18 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2258
2305
|
};
|
|
2259
2306
|
|
|
2260
2307
|
// src/options/offthreadvideo-threads.tsx
|
|
2261
|
-
import { jsx as
|
|
2308
|
+
import { jsx as jsx34, jsxs as jsxs25, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2262
2309
|
var value2 = null;
|
|
2263
|
-
var
|
|
2310
|
+
var cliFlag38 = "offthreadvideo-video-threads";
|
|
2264
2311
|
var offthreadVideoThreadsOption = {
|
|
2265
2312
|
name: "OffthreadVideo threads",
|
|
2266
|
-
cliFlag:
|
|
2267
|
-
description: () => /* @__PURE__ */
|
|
2313
|
+
cliFlag: cliFlag38,
|
|
2314
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment34, {
|
|
2268
2315
|
children: [
|
|
2269
2316
|
"The number of threads that",
|
|
2270
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ jsx34("a", {
|
|
2271
2318
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2272
|
-
children: /* @__PURE__ */
|
|
2319
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2273
2320
|
children: "<OffthreadVideo>"
|
|
2274
2321
|
})
|
|
2275
2322
|
}),
|
|
@@ -2284,10 +2331,10 @@ var offthreadVideoThreadsOption = {
|
|
|
2284
2331
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2285
2332
|
type: 0,
|
|
2286
2333
|
getValue: ({ commandLine }) => {
|
|
2287
|
-
if (commandLine[
|
|
2334
|
+
if (commandLine[cliFlag38] !== undefined) {
|
|
2288
2335
|
return {
|
|
2289
2336
|
source: "cli",
|
|
2290
|
-
value: commandLine[
|
|
2337
|
+
value: commandLine[cliFlag38]
|
|
2291
2338
|
};
|
|
2292
2339
|
}
|
|
2293
2340
|
if (value2 !== null) {
|
|
@@ -2308,16 +2355,16 @@ var offthreadVideoThreadsOption = {
|
|
|
2308
2355
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
2309
2356
|
|
|
2310
2357
|
// src/options/on-browser-download.tsx
|
|
2311
|
-
import { jsx as
|
|
2312
|
-
var
|
|
2358
|
+
import { jsx as jsx35, jsxs as jsxs26, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2359
|
+
var cliFlag39 = "on-browser-download";
|
|
2313
2360
|
var onBrowserDownloadOption = {
|
|
2314
2361
|
name: "Browser download callback function",
|
|
2315
|
-
cliFlag:
|
|
2316
|
-
description: () => /* @__PURE__ */
|
|
2362
|
+
cliFlag: cliFlag39,
|
|
2363
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment35, {
|
|
2317
2364
|
children: [
|
|
2318
2365
|
"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.",
|
|
2319
2366
|
" ",
|
|
2320
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ jsx35("a", {
|
|
2321
2368
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
2322
2369
|
children: "See here for how to use this option."
|
|
2323
2370
|
})
|
|
@@ -2335,9 +2382,9 @@ var onBrowserDownloadOption = {
|
|
|
2335
2382
|
};
|
|
2336
2383
|
|
|
2337
2384
|
// src/options/overwrite.tsx
|
|
2338
|
-
import { jsx as
|
|
2385
|
+
import { jsx as jsx36, jsxs as jsxs27, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2339
2386
|
var shouldOverwrite = null;
|
|
2340
|
-
var
|
|
2387
|
+
var cliFlag40 = "overwrite";
|
|
2341
2388
|
var validate2 = (value3) => {
|
|
2342
2389
|
if (typeof value3 !== "boolean") {
|
|
2343
2390
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -2345,15 +2392,15 @@ var validate2 = (value3) => {
|
|
|
2345
2392
|
};
|
|
2346
2393
|
var overwriteOption = {
|
|
2347
2394
|
name: "Overwrite output",
|
|
2348
|
-
cliFlag:
|
|
2349
|
-
description: () => /* @__PURE__ */
|
|
2395
|
+
cliFlag: cliFlag40,
|
|
2396
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment36, {
|
|
2350
2397
|
children: [
|
|
2351
2398
|
"If set to ",
|
|
2352
|
-
/* @__PURE__ */
|
|
2399
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2353
2400
|
children: "false"
|
|
2354
2401
|
}),
|
|
2355
2402
|
", will prevent rendering to a path that already exists. Default is ",
|
|
2356
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2357
2404
|
children: "true"
|
|
2358
2405
|
}),
|
|
2359
2406
|
"."
|
|
@@ -2363,11 +2410,11 @@ var overwriteOption = {
|
|
|
2363
2410
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
2364
2411
|
type: false,
|
|
2365
2412
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
2366
|
-
if (commandLine[
|
|
2367
|
-
validate2(commandLine[
|
|
2413
|
+
if (commandLine[cliFlag40] !== undefined) {
|
|
2414
|
+
validate2(commandLine[cliFlag40]);
|
|
2368
2415
|
return {
|
|
2369
2416
|
source: "cli",
|
|
2370
|
-
value: commandLine[
|
|
2417
|
+
value: commandLine[cliFlag40]
|
|
2371
2418
|
};
|
|
2372
2419
|
}
|
|
2373
2420
|
if (shouldOverwrite !== null) {
|
|
@@ -2388,21 +2435,21 @@ var overwriteOption = {
|
|
|
2388
2435
|
};
|
|
2389
2436
|
|
|
2390
2437
|
// src/options/prefer-lossless.tsx
|
|
2391
|
-
import { jsx as
|
|
2392
|
-
var
|
|
2438
|
+
import { jsx as jsx37, jsxs as jsxs28, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2439
|
+
var cliFlag41 = "prefer-lossless";
|
|
2393
2440
|
var input = false;
|
|
2394
2441
|
var preferLosslessAudioOption = {
|
|
2395
2442
|
name: "Prefer lossless",
|
|
2396
|
-
cliFlag:
|
|
2397
|
-
description: () => /* @__PURE__ */
|
|
2443
|
+
cliFlag: cliFlag41,
|
|
2444
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment37, {
|
|
2398
2445
|
children: [
|
|
2399
2446
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
2400
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2401
2448
|
children: "audioCodec"
|
|
2402
2449
|
}),
|
|
2403
2450
|
", it takes priority over",
|
|
2404
2451
|
" ",
|
|
2405
|
-
/* @__PURE__ */
|
|
2452
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2406
2453
|
children: "preferLossless"
|
|
2407
2454
|
}),
|
|
2408
2455
|
"."
|
|
@@ -2412,7 +2459,7 @@ var preferLosslessAudioOption = {
|
|
|
2412
2459
|
type: false,
|
|
2413
2460
|
ssrName: "preferLossless",
|
|
2414
2461
|
getValue: ({ commandLine }) => {
|
|
2415
|
-
if (commandLine[
|
|
2462
|
+
if (commandLine[cliFlag41]) {
|
|
2416
2463
|
return { value: true, source: "cli" };
|
|
2417
2464
|
}
|
|
2418
2465
|
if (input === true) {
|
|
@@ -2426,20 +2473,20 @@ var preferLosslessAudioOption = {
|
|
|
2426
2473
|
};
|
|
2427
2474
|
|
|
2428
2475
|
// src/options/public-dir.tsx
|
|
2429
|
-
import { jsx as
|
|
2430
|
-
var
|
|
2476
|
+
import { jsx as jsx38, jsxs as jsxs29, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2477
|
+
var cliFlag42 = "public-dir";
|
|
2431
2478
|
var currentPublicDir = null;
|
|
2432
2479
|
var publicDirOption = {
|
|
2433
2480
|
name: "Public Directory",
|
|
2434
|
-
cliFlag:
|
|
2481
|
+
cliFlag: cliFlag42,
|
|
2435
2482
|
description: () => {
|
|
2436
|
-
return /* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ jsxs29(Fragment38, {
|
|
2437
2484
|
children: [
|
|
2438
2485
|
"Define the location of the",
|
|
2439
2486
|
" ",
|
|
2440
|
-
/* @__PURE__ */
|
|
2487
|
+
/* @__PURE__ */ jsx38("a", {
|
|
2441
2488
|
href: "/docs/terminology/public-dir",
|
|
2442
|
-
children: /* @__PURE__ */
|
|
2489
|
+
children: /* @__PURE__ */ jsx38("code", {
|
|
2443
2490
|
children: "public/ directory"
|
|
2444
2491
|
})
|
|
2445
2492
|
}),
|
|
@@ -2450,10 +2497,10 @@ var publicDirOption = {
|
|
|
2450
2497
|
ssrName: "publicDir",
|
|
2451
2498
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
2452
2499
|
getValue: ({ commandLine }) => {
|
|
2453
|
-
if (commandLine[
|
|
2500
|
+
if (commandLine[cliFlag42] !== undefined) {
|
|
2454
2501
|
return {
|
|
2455
2502
|
source: "cli",
|
|
2456
|
-
value: commandLine[
|
|
2503
|
+
value: commandLine[cliFlag42]
|
|
2457
2504
|
};
|
|
2458
2505
|
}
|
|
2459
2506
|
if (currentPublicDir !== null) {
|
|
@@ -2474,16 +2521,16 @@ var publicDirOption = {
|
|
|
2474
2521
|
};
|
|
2475
2522
|
|
|
2476
2523
|
// src/options/public-license-key.tsx
|
|
2477
|
-
import { jsx as
|
|
2478
|
-
var
|
|
2524
|
+
import { jsx as jsx39, jsxs as jsxs30, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2525
|
+
var cliFlag43 = "public-license-key";
|
|
2479
2526
|
var currentPublicLicenseKey = null;
|
|
2480
2527
|
var publicLicenseKeyOption = {
|
|
2481
2528
|
name: "Public License Key",
|
|
2482
|
-
cliFlag:
|
|
2483
|
-
description: () => /* @__PURE__ */
|
|
2529
|
+
cliFlag: cliFlag43,
|
|
2530
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment39, {
|
|
2484
2531
|
children: [
|
|
2485
2532
|
'The public license key for your company license, obtained from the "Usage" tab on ',
|
|
2486
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx39("a", {
|
|
2487
2534
|
href: "https://remotion.pro/dashboard",
|
|
2488
2535
|
children: "remotion.pro"
|
|
2489
2536
|
}),
|
|
@@ -2493,10 +2540,10 @@ var publicLicenseKeyOption = {
|
|
|
2493
2540
|
ssrName: "publicLicenseKey",
|
|
2494
2541
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2495
2542
|
getValue: ({ commandLine }) => {
|
|
2496
|
-
if (commandLine[
|
|
2543
|
+
if (commandLine[cliFlag43] !== undefined) {
|
|
2497
2544
|
return {
|
|
2498
2545
|
source: "cli",
|
|
2499
|
-
value: commandLine[
|
|
2546
|
+
value: commandLine[cliFlag43]
|
|
2500
2547
|
};
|
|
2501
2548
|
}
|
|
2502
2549
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -2520,25 +2567,25 @@ var publicLicenseKeyOption = {
|
|
|
2520
2567
|
};
|
|
2521
2568
|
|
|
2522
2569
|
// src/options/public-path.tsx
|
|
2523
|
-
import { jsx as
|
|
2524
|
-
var
|
|
2570
|
+
import { jsx as jsx40, jsxs as jsxs31, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2571
|
+
var cliFlag44 = "public-path";
|
|
2525
2572
|
var currentPublicPath = null;
|
|
2526
2573
|
var publicPathOption = {
|
|
2527
2574
|
name: "Public Path",
|
|
2528
|
-
cliFlag:
|
|
2575
|
+
cliFlag: cliFlag44,
|
|
2529
2576
|
description: () => {
|
|
2530
|
-
return /* @__PURE__ */
|
|
2577
|
+
return /* @__PURE__ */ jsxs31(Fragment40, {
|
|
2531
2578
|
children: [
|
|
2532
2579
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
2533
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2534
2581
|
children: "/"
|
|
2535
2582
|
}),
|
|
2536
2583
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
2537
|
-
/* @__PURE__ */
|
|
2584
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2538
2585
|
children: "https://localhost:3000/"
|
|
2539
2586
|
}),
|
|
2540
2587
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
2541
|
-
/* @__PURE__ */
|
|
2588
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2542
2589
|
children: "/sites/my-site/"
|
|
2543
2590
|
}),
|
|
2544
2591
|
"), you should set this to the subdirectory."
|
|
@@ -2548,10 +2595,10 @@ var publicPathOption = {
|
|
|
2548
2595
|
ssrName: "publicPath",
|
|
2549
2596
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
2550
2597
|
getValue: ({ commandLine }) => {
|
|
2551
|
-
if (commandLine[
|
|
2598
|
+
if (commandLine[cliFlag44] !== undefined) {
|
|
2552
2599
|
return {
|
|
2553
2600
|
source: "cli",
|
|
2554
|
-
value: commandLine[
|
|
2601
|
+
value: commandLine[cliFlag44]
|
|
2555
2602
|
};
|
|
2556
2603
|
}
|
|
2557
2604
|
if (currentPublicPath !== null) {
|
|
@@ -2572,25 +2619,25 @@ var publicPathOption = {
|
|
|
2572
2619
|
};
|
|
2573
2620
|
|
|
2574
2621
|
// src/options/repro.tsx
|
|
2575
|
-
import { jsx as
|
|
2622
|
+
import { jsx as jsx41, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2576
2623
|
var enableRepro = false;
|
|
2577
2624
|
var setRepro = (should) => {
|
|
2578
2625
|
enableRepro = should;
|
|
2579
2626
|
};
|
|
2580
|
-
var
|
|
2627
|
+
var cliFlag45 = "repro";
|
|
2581
2628
|
var reproOption = {
|
|
2582
2629
|
name: "Create reproduction",
|
|
2583
|
-
cliFlag:
|
|
2584
|
-
description: () => /* @__PURE__ */
|
|
2630
|
+
cliFlag: cliFlag45,
|
|
2631
|
+
description: () => /* @__PURE__ */ jsx41(Fragment41, {
|
|
2585
2632
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
2586
2633
|
}),
|
|
2587
2634
|
ssrName: "repro",
|
|
2588
2635
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
2589
2636
|
type: false,
|
|
2590
2637
|
getValue: ({ commandLine }) => {
|
|
2591
|
-
if (commandLine[
|
|
2638
|
+
if (commandLine[cliFlag45] !== undefined) {
|
|
2592
2639
|
return {
|
|
2593
|
-
value: commandLine[
|
|
2640
|
+
value: commandLine[cliFlag45],
|
|
2594
2641
|
source: "cli"
|
|
2595
2642
|
};
|
|
2596
2643
|
}
|
|
@@ -2609,9 +2656,9 @@ var reproOption = {
|
|
|
2609
2656
|
};
|
|
2610
2657
|
|
|
2611
2658
|
// src/options/scale.tsx
|
|
2612
|
-
import { jsx as
|
|
2659
|
+
import { jsx as jsx42, jsxs as jsxs32, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2613
2660
|
var currentScale = 1;
|
|
2614
|
-
var
|
|
2661
|
+
var cliFlag46 = "scale";
|
|
2615
2662
|
var validateScale = (value3) => {
|
|
2616
2663
|
if (typeof value3 !== "number") {
|
|
2617
2664
|
throw new Error("scale must be a number.");
|
|
@@ -2619,15 +2666,15 @@ var validateScale = (value3) => {
|
|
|
2619
2666
|
};
|
|
2620
2667
|
var scaleOption = {
|
|
2621
2668
|
name: "Scale",
|
|
2622
|
-
cliFlag:
|
|
2623
|
-
description: () => /* @__PURE__ */
|
|
2669
|
+
cliFlag: cliFlag46,
|
|
2670
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment42, {
|
|
2624
2671
|
children: [
|
|
2625
2672
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
2626
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2627
2674
|
children: "1.5"
|
|
2628
2675
|
}),
|
|
2629
2676
|
". See ",
|
|
2630
|
-
/* @__PURE__ */
|
|
2677
|
+
/* @__PURE__ */ jsx42("a", {
|
|
2631
2678
|
href: "https://www.remotion.dev/docs/scaling",
|
|
2632
2679
|
children: "Scaling"
|
|
2633
2680
|
}),
|
|
@@ -2638,11 +2685,11 @@ var scaleOption = {
|
|
|
2638
2685
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
2639
2686
|
type: 0,
|
|
2640
2687
|
getValue: ({ commandLine }) => {
|
|
2641
|
-
if (commandLine[
|
|
2642
|
-
validateScale(commandLine[
|
|
2688
|
+
if (commandLine[cliFlag46] !== undefined) {
|
|
2689
|
+
validateScale(commandLine[cliFlag46]);
|
|
2643
2690
|
return {
|
|
2644
2691
|
source: "cli",
|
|
2645
|
-
value: commandLine[
|
|
2692
|
+
value: commandLine[cliFlag46]
|
|
2646
2693
|
};
|
|
2647
2694
|
}
|
|
2648
2695
|
if (currentScale !== null) {
|
|
@@ -2663,16 +2710,16 @@ var scaleOption = {
|
|
|
2663
2710
|
|
|
2664
2711
|
// src/options/throw-if-site-exists.tsx
|
|
2665
2712
|
var DEFAULT5 = false;
|
|
2666
|
-
var
|
|
2713
|
+
var cliFlag47 = "throw-if-site-exists";
|
|
2667
2714
|
var throwIfSiteExistsOption = {
|
|
2668
|
-
cliFlag:
|
|
2715
|
+
cliFlag: cliFlag47,
|
|
2669
2716
|
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.`,
|
|
2670
2717
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
2671
2718
|
getValue: ({ commandLine }) => {
|
|
2672
|
-
if (commandLine[
|
|
2719
|
+
if (commandLine[cliFlag47]) {
|
|
2673
2720
|
return {
|
|
2674
2721
|
source: "cli",
|
|
2675
|
-
value: commandLine[
|
|
2722
|
+
value: commandLine[cliFlag47]
|
|
2676
2723
|
};
|
|
2677
2724
|
}
|
|
2678
2725
|
return {
|
|
@@ -2689,37 +2736,37 @@ var throwIfSiteExistsOption = {
|
|
|
2689
2736
|
};
|
|
2690
2737
|
|
|
2691
2738
|
// src/options/timeout.tsx
|
|
2692
|
-
import { jsx as
|
|
2739
|
+
import { jsx as jsx43, jsxs as jsxs33, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2693
2740
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
2694
2741
|
var validate3 = (value3) => {
|
|
2695
2742
|
if (typeof value3 !== "number") {
|
|
2696
2743
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
2697
2744
|
}
|
|
2698
2745
|
};
|
|
2699
|
-
var
|
|
2746
|
+
var cliFlag48 = "timeout";
|
|
2700
2747
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
2701
2748
|
name: "delayRender() timeout",
|
|
2702
|
-
cliFlag:
|
|
2703
|
-
description: () => /* @__PURE__ */
|
|
2749
|
+
cliFlag: cliFlag48,
|
|
2750
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment43, {
|
|
2704
2751
|
children: [
|
|
2705
2752
|
"A number describing how long the render may take to resolve all",
|
|
2706
2753
|
" ",
|
|
2707
|
-
/* @__PURE__ */
|
|
2754
|
+
/* @__PURE__ */ jsx43("a", {
|
|
2708
2755
|
href: "https://remotion.dev/docs/delay-render",
|
|
2709
|
-
children: /* @__PURE__ */
|
|
2756
|
+
children: /* @__PURE__ */ jsx43("code", {
|
|
2710
2757
|
children: "delayRender()"
|
|
2711
2758
|
})
|
|
2712
2759
|
}),
|
|
2713
2760
|
" ",
|
|
2714
2761
|
"calls",
|
|
2715
2762
|
" ",
|
|
2716
|
-
/* @__PURE__ */
|
|
2763
|
+
/* @__PURE__ */ jsx43("a", {
|
|
2717
2764
|
style: { fontSize: "inherit" },
|
|
2718
2765
|
href: "https://remotion.dev/docs/timeout",
|
|
2719
2766
|
children: "before it times out"
|
|
2720
2767
|
}),
|
|
2721
2768
|
". Default: ",
|
|
2722
|
-
/* @__PURE__ */
|
|
2769
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2723
2770
|
children: "30000"
|
|
2724
2771
|
})
|
|
2725
2772
|
]
|
|
@@ -2728,10 +2775,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2728
2775
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
2729
2776
|
type: 0,
|
|
2730
2777
|
getValue: ({ commandLine }) => {
|
|
2731
|
-
if (commandLine[
|
|
2778
|
+
if (commandLine[cliFlag48] !== undefined) {
|
|
2732
2779
|
return {
|
|
2733
2780
|
source: "cli",
|
|
2734
|
-
value: commandLine[
|
|
2781
|
+
value: commandLine[cliFlag48]
|
|
2735
2782
|
};
|
|
2736
2783
|
}
|
|
2737
2784
|
if (currentTimeout !== null) {
|
|
@@ -2753,26 +2800,26 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2753
2800
|
};
|
|
2754
2801
|
|
|
2755
2802
|
// src/options/video-bitrate.tsx
|
|
2756
|
-
import { jsx as
|
|
2803
|
+
import { jsx as jsx44, jsxs as jsxs34, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2757
2804
|
var videoBitrate = null;
|
|
2758
|
-
var
|
|
2805
|
+
var cliFlag49 = "video-bitrate";
|
|
2759
2806
|
var videoBitrateOption = {
|
|
2760
2807
|
name: "Video Bitrate",
|
|
2761
|
-
cliFlag:
|
|
2762
|
-
description: () => /* @__PURE__ */
|
|
2808
|
+
cliFlag: cliFlag49,
|
|
2809
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment44, {
|
|
2763
2810
|
children: [
|
|
2764
2811
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
2765
2812
|
"'",
|
|
2766
2813
|
"s",
|
|
2767
|
-
/* @__PURE__ */
|
|
2814
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2768
2815
|
children: "-b:v"
|
|
2769
2816
|
}),
|
|
2770
2817
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
2771
|
-
/* @__PURE__ */
|
|
2818
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2772
2819
|
children: "512K"
|
|
2773
2820
|
}),
|
|
2774
2821
|
" for 512 kbps, ",
|
|
2775
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2776
2823
|
children: "1M"
|
|
2777
2824
|
}),
|
|
2778
2825
|
" for 1 Mbps."
|
|
@@ -2782,10 +2829,10 @@ var videoBitrateOption = {
|
|
|
2782
2829
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
2783
2830
|
type: "",
|
|
2784
2831
|
getValue: ({ commandLine }) => {
|
|
2785
|
-
if (commandLine[
|
|
2832
|
+
if (commandLine[cliFlag49] !== undefined) {
|
|
2786
2833
|
return {
|
|
2787
2834
|
source: "cli",
|
|
2788
|
-
value: commandLine[
|
|
2835
|
+
value: commandLine[cliFlag49]
|
|
2789
2836
|
};
|
|
2790
2837
|
}
|
|
2791
2838
|
if (videoBitrate !== null) {
|
|
@@ -2805,29 +2852,29 @@ var videoBitrateOption = {
|
|
|
2805
2852
|
};
|
|
2806
2853
|
|
|
2807
2854
|
// src/options/video-cache-size.tsx
|
|
2808
|
-
import { jsx as
|
|
2855
|
+
import { jsx as jsx45, jsxs as jsxs35, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2809
2856
|
var mediaCacheSizeInBytes = null;
|
|
2810
|
-
var
|
|
2857
|
+
var cliFlag50 = "media-cache-size-in-bytes";
|
|
2811
2858
|
var mediaCacheSizeInBytesOption = {
|
|
2812
2859
|
name: "@remotion/media cache size",
|
|
2813
|
-
cliFlag:
|
|
2814
|
-
description: () => /* @__PURE__ */
|
|
2860
|
+
cliFlag: cliFlag50,
|
|
2861
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment45, {
|
|
2815
2862
|
children: [
|
|
2816
2863
|
"Specify the maximum size of the cache that ",
|
|
2817
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2818
2865
|
children: "<Video>"
|
|
2819
2866
|
}),
|
|
2820
2867
|
" and",
|
|
2821
2868
|
" ",
|
|
2822
|
-
/* @__PURE__ */
|
|
2869
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2823
2870
|
children: "<Audio>"
|
|
2824
2871
|
}),
|
|
2825
2872
|
" from ",
|
|
2826
|
-
/* @__PURE__ */
|
|
2873
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2827
2874
|
children: "@remotion/media"
|
|
2828
2875
|
}),
|
|
2829
2876
|
" may use combined, in bytes. ",
|
|
2830
|
-
/* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2831
2878
|
"The default is half of the available system memory when the render starts."
|
|
2832
2879
|
]
|
|
2833
2880
|
}),
|
|
@@ -2835,10 +2882,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
2835
2882
|
docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
|
|
2836
2883
|
type: 0,
|
|
2837
2884
|
getValue: ({ commandLine }) => {
|
|
2838
|
-
if (commandLine[
|
|
2885
|
+
if (commandLine[cliFlag50] !== undefined) {
|
|
2839
2886
|
return {
|
|
2840
2887
|
source: "cli",
|
|
2841
|
-
value: commandLine[
|
|
2888
|
+
value: commandLine[cliFlag50]
|
|
2842
2889
|
};
|
|
2843
2890
|
}
|
|
2844
2891
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -2973,7 +3020,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
2973
3020
|
};
|
|
2974
3021
|
|
|
2975
3022
|
// src/options/video-codec.tsx
|
|
2976
|
-
import { jsx as
|
|
3023
|
+
import { jsx as jsx46, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2977
3024
|
var codec;
|
|
2978
3025
|
var setCodec = (newCodec) => {
|
|
2979
3026
|
if (newCodec === undefined) {
|
|
@@ -2997,11 +3044,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
2997
3044
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
2998
3045
|
};
|
|
2999
3046
|
};
|
|
3000
|
-
var
|
|
3047
|
+
var cliFlag51 = "codec";
|
|
3001
3048
|
var videoCodecOption = {
|
|
3002
3049
|
name: "Codec",
|
|
3003
|
-
cliFlag:
|
|
3004
|
-
description: () => /* @__PURE__ */
|
|
3050
|
+
cliFlag: cliFlag51,
|
|
3051
|
+
description: () => /* @__PURE__ */ jsx46(Fragment46, {
|
|
3005
3052
|
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."
|
|
3006
3053
|
}),
|
|
3007
3054
|
ssrName: "codec",
|
|
@@ -3024,7 +3071,7 @@ var videoCodecOption = {
|
|
|
3024
3071
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
3025
3072
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
3026
3073
|
}
|
|
3027
|
-
const cliArgument = commandLine[
|
|
3074
|
+
const cliArgument = commandLine[cliFlag51];
|
|
3028
3075
|
if (cliArgument) {
|
|
3029
3076
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
3030
3077
|
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.`);
|
|
@@ -3073,12 +3120,12 @@ var videoCodecOption = {
|
|
|
3073
3120
|
};
|
|
3074
3121
|
|
|
3075
3122
|
// src/options/webhook-custom-data.tsx
|
|
3076
|
-
import { jsxs as
|
|
3077
|
-
var
|
|
3123
|
+
import { jsxs as jsxs36, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3124
|
+
var cliFlag52 = "webhook-custom-data";
|
|
3078
3125
|
var webhookCustomDataOption = {
|
|
3079
3126
|
name: "Webhook custom data",
|
|
3080
|
-
cliFlag:
|
|
3081
|
-
description: (type) => /* @__PURE__ */
|
|
3127
|
+
cliFlag: cliFlag52,
|
|
3128
|
+
description: (type) => /* @__PURE__ */ jsxs36(Fragment47, {
|
|
3082
3129
|
children: [
|
|
3083
3130
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
3084
3131
|
" ",
|
|
@@ -3097,7 +3144,7 @@ var webhookCustomDataOption = {
|
|
|
3097
3144
|
};
|
|
3098
3145
|
|
|
3099
3146
|
// src/options/x264-preset.tsx
|
|
3100
|
-
import { jsx as
|
|
3147
|
+
import { jsx as jsx47, jsxs as jsxs37, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3101
3148
|
var x264PresetOptions = [
|
|
3102
3149
|
"ultrafast",
|
|
3103
3150
|
"superfast",
|
|
@@ -3111,63 +3158,63 @@ var x264PresetOptions = [
|
|
|
3111
3158
|
"placebo"
|
|
3112
3159
|
];
|
|
3113
3160
|
var preset = null;
|
|
3114
|
-
var
|
|
3161
|
+
var cliFlag53 = "x264-preset";
|
|
3115
3162
|
var DEFAULT_PRESET = "medium";
|
|
3116
3163
|
var x264Option = {
|
|
3117
3164
|
name: "x264 Preset",
|
|
3118
|
-
cliFlag:
|
|
3119
|
-
description: () => /* @__PURE__ */
|
|
3165
|
+
cliFlag: cliFlag53,
|
|
3166
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment48, {
|
|
3120
3167
|
children: [
|
|
3121
3168
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
3122
3169
|
" ",
|
|
3123
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3124
3171
|
children: "h264"
|
|
3125
3172
|
}),
|
|
3126
3173
|
" codec.",
|
|
3127
|
-
/* @__PURE__ */
|
|
3174
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3128
3175
|
"Possible values: ",
|
|
3129
|
-
/* @__PURE__ */
|
|
3176
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3130
3177
|
children: "superfast"
|
|
3131
3178
|
}),
|
|
3132
3179
|
", ",
|
|
3133
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3134
3181
|
children: "veryfast"
|
|
3135
3182
|
}),
|
|
3136
3183
|
",",
|
|
3137
3184
|
" ",
|
|
3138
|
-
/* @__PURE__ */
|
|
3185
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3139
3186
|
children: "faster"
|
|
3140
3187
|
}),
|
|
3141
3188
|
", ",
|
|
3142
|
-
/* @__PURE__ */
|
|
3189
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3143
3190
|
children: "fast"
|
|
3144
3191
|
}),
|
|
3145
3192
|
", ",
|
|
3146
|
-
/* @__PURE__ */
|
|
3193
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3147
3194
|
children: "medium"
|
|
3148
3195
|
}),
|
|
3149
3196
|
",",
|
|
3150
3197
|
" ",
|
|
3151
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3152
3199
|
children: "slow"
|
|
3153
3200
|
}),
|
|
3154
3201
|
", ",
|
|
3155
|
-
/* @__PURE__ */
|
|
3202
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3156
3203
|
children: "slower"
|
|
3157
3204
|
}),
|
|
3158
3205
|
", ",
|
|
3159
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3160
3207
|
children: "veryslow"
|
|
3161
3208
|
}),
|
|
3162
3209
|
",",
|
|
3163
3210
|
" ",
|
|
3164
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3165
3212
|
children: "placebo"
|
|
3166
3213
|
}),
|
|
3167
3214
|
".",
|
|
3168
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsx47("br", {}),
|
|
3169
3216
|
"Default: ",
|
|
3170
|
-
/* @__PURE__ */
|
|
3217
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3171
3218
|
children: DEFAULT_PRESET
|
|
3172
3219
|
})
|
|
3173
3220
|
]
|
|
@@ -3176,7 +3223,7 @@ var x264Option = {
|
|
|
3176
3223
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
3177
3224
|
type: "fast",
|
|
3178
3225
|
getValue: ({ commandLine }) => {
|
|
3179
|
-
const value3 = commandLine[
|
|
3226
|
+
const value3 = commandLine[cliFlag53];
|
|
3180
3227
|
if (typeof value3 !== "undefined") {
|
|
3181
3228
|
return { value: value3, source: "cli" };
|
|
3182
3229
|
}
|
|
@@ -3241,6 +3288,7 @@ var allOptions = {
|
|
|
3241
3288
|
mediaCacheSizeInBytesOption,
|
|
3242
3289
|
darkModeOption,
|
|
3243
3290
|
publicLicenseKeyOption,
|
|
3291
|
+
isProductionOption,
|
|
3244
3292
|
askAIOption,
|
|
3245
3293
|
experimentalClientSideRenderingOption,
|
|
3246
3294
|
keyboardShortcutsOption
|