@remotion/renderer 4.0.419 → 4.0.421
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/assets/inline-audio-mixing.js +19 -3
- package/dist/browser/BrowserFetcher.js +20 -9
- package/dist/browser/get-chrome-download-url.d.ts +1 -0
- package/dist/browser/get-chrome-download-url.js +8 -2
- package/dist/client.d.ts +15 -0
- package/dist/esm/client.mjs +305 -274
- package/dist/esm/error-handling.mjs +1 -1
- package/dist/esm/index.mjs +63 -20
- package/dist/get-port.d.ts +7 -1
- package/dist/get-port.js +27 -7
- package/dist/index.d.ts +7 -1
- package/dist/options/force-new-studio.d.ts +15 -0
- package/dist/options/force-new-studio.js +29 -0
- package/dist/options/index.d.ts +15 -0
- package/dist/options/index.js +2 -0
- package/dist/print-useful-error-message.js +1 -1
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -1471,8 +1471,38 @@ var forSeamlessAacConcatenationOption = {
|
|
|
1471
1471
|
type: false
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
|
+
// src/options/force-new-studio.tsx
|
|
1475
|
+
import { jsx as jsx21, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
1476
|
+
var forceNewEnabled = false;
|
|
1477
|
+
var cliFlag24 = "force-new";
|
|
1478
|
+
var forceNewStudioOption = {
|
|
1479
|
+
name: "Force New Studio",
|
|
1480
|
+
cliFlag: cliFlag24,
|
|
1481
|
+
description: () => /* @__PURE__ */ jsx21(Fragment21, {
|
|
1482
|
+
children: "Forces starting a new Studio instance even if one is already running on the same port for the same project."
|
|
1483
|
+
}),
|
|
1484
|
+
ssrName: null,
|
|
1485
|
+
docLink: "https://www.remotion.dev/docs/config#setforcenewstudioenabled",
|
|
1486
|
+
type: false,
|
|
1487
|
+
getValue: ({ commandLine }) => {
|
|
1488
|
+
if (commandLine[cliFlag24] !== undefined) {
|
|
1489
|
+
return {
|
|
1490
|
+
value: commandLine[cliFlag24],
|
|
1491
|
+
source: "cli"
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
return {
|
|
1495
|
+
value: forceNewEnabled,
|
|
1496
|
+
source: "config"
|
|
1497
|
+
};
|
|
1498
|
+
},
|
|
1499
|
+
setConfig(value) {
|
|
1500
|
+
forceNewEnabled = value;
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1474
1504
|
// src/options/gl.tsx
|
|
1475
|
-
import { jsx as
|
|
1505
|
+
import { jsx as jsx22, jsxs as jsxs15, Fragment as Fragment22 } from "react/jsx-runtime";
|
|
1476
1506
|
var validOpenGlRenderers = [
|
|
1477
1507
|
"swangle",
|
|
1478
1508
|
"angle",
|
|
@@ -1487,7 +1517,7 @@ var AngleChangelog = () => {
|
|
|
1487
1517
|
return /* @__PURE__ */ jsxs15("details", {
|
|
1488
1518
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
1489
1519
|
children: [
|
|
1490
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ jsx22("summary", {
|
|
1491
1521
|
children: "Changelog"
|
|
1492
1522
|
}),
|
|
1493
1523
|
/* @__PURE__ */ jsxs15("ul", {
|
|
@@ -1496,12 +1526,12 @@ var AngleChangelog = () => {
|
|
|
1496
1526
|
children: [
|
|
1497
1527
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
1498
1528
|
" ",
|
|
1499
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1500
1530
|
children: "swiftshader"
|
|
1501
1531
|
}),
|
|
1502
1532
|
", but from v3.0.8 the default is",
|
|
1503
1533
|
" ",
|
|
1504
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1505
1535
|
children: "swangle"
|
|
1506
1536
|
}),
|
|
1507
1537
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
@@ -1510,7 +1540,7 @@ var AngleChangelog = () => {
|
|
|
1510
1540
|
/* @__PURE__ */ jsxs15("li", {
|
|
1511
1541
|
children: [
|
|
1512
1542
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
1513
|
-
/* @__PURE__ */
|
|
1543
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1514
1544
|
children: "angle"
|
|
1515
1545
|
}),
|
|
1516
1546
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
@@ -1521,53 +1551,53 @@ var AngleChangelog = () => {
|
|
|
1521
1551
|
]
|
|
1522
1552
|
});
|
|
1523
1553
|
};
|
|
1524
|
-
var
|
|
1554
|
+
var cliFlag25 = "gl";
|
|
1525
1555
|
var glOption = {
|
|
1526
|
-
cliFlag:
|
|
1556
|
+
cliFlag: cliFlag25,
|
|
1527
1557
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
1528
1558
|
name: "OpenGL renderer",
|
|
1529
1559
|
type: "angle",
|
|
1530
1560
|
ssrName: "gl",
|
|
1531
1561
|
description: () => {
|
|
1532
|
-
return /* @__PURE__ */ jsxs15(
|
|
1562
|
+
return /* @__PURE__ */ jsxs15(Fragment22, {
|
|
1533
1563
|
children: [
|
|
1534
|
-
/* @__PURE__ */
|
|
1564
|
+
/* @__PURE__ */ jsx22(AngleChangelog, {}),
|
|
1535
1565
|
/* @__PURE__ */ jsxs15("p", {
|
|
1536
1566
|
children: [
|
|
1537
1567
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
1538
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ jsx22("br", {}),
|
|
1539
1569
|
"Accepted values:"
|
|
1540
1570
|
]
|
|
1541
1571
|
}),
|
|
1542
1572
|
/* @__PURE__ */ jsxs15("ul", {
|
|
1543
1573
|
children: [
|
|
1544
|
-
/* @__PURE__ */
|
|
1545
|
-
children: /* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ jsx22("li", {
|
|
1575
|
+
children: /* @__PURE__ */ jsx22("code", {
|
|
1546
1576
|
children: '"angle"'
|
|
1547
1577
|
})
|
|
1548
1578
|
}),
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
children: /* @__PURE__ */
|
|
1579
|
+
/* @__PURE__ */ jsx22("li", {
|
|
1580
|
+
children: /* @__PURE__ */ jsx22("code", {
|
|
1551
1581
|
children: '"egl"'
|
|
1552
1582
|
})
|
|
1553
1583
|
}),
|
|
1554
|
-
/* @__PURE__ */
|
|
1555
|
-
children: /* @__PURE__ */
|
|
1584
|
+
/* @__PURE__ */ jsx22("li", {
|
|
1585
|
+
children: /* @__PURE__ */ jsx22("code", {
|
|
1556
1586
|
children: '"swiftshader"'
|
|
1557
1587
|
})
|
|
1558
1588
|
}),
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
children: /* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ jsx22("li", {
|
|
1590
|
+
children: /* @__PURE__ */ jsx22("code", {
|
|
1561
1591
|
children: '"swangle"'
|
|
1562
1592
|
})
|
|
1563
1593
|
}),
|
|
1564
1594
|
/* @__PURE__ */ jsxs15("li", {
|
|
1565
1595
|
children: [
|
|
1566
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1567
1597
|
children: '"vulkan"'
|
|
1568
1598
|
}),
|
|
1569
1599
|
" (",
|
|
1570
|
-
/* @__PURE__ */
|
|
1600
|
+
/* @__PURE__ */ jsx22("em", {
|
|
1571
1601
|
children: "from Remotion v4.0.41"
|
|
1572
1602
|
}),
|
|
1573
1603
|
")"
|
|
@@ -1575,11 +1605,11 @@ var glOption = {
|
|
|
1575
1605
|
}),
|
|
1576
1606
|
/* @__PURE__ */ jsxs15("li", {
|
|
1577
1607
|
children: [
|
|
1578
|
-
/* @__PURE__ */
|
|
1608
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1579
1609
|
children: '"angle-egl"'
|
|
1580
1610
|
}),
|
|
1581
1611
|
" (",
|
|
1582
|
-
/* @__PURE__ */
|
|
1612
|
+
/* @__PURE__ */ jsx22("em", {
|
|
1583
1613
|
children: "from Remotion v4.0.51"
|
|
1584
1614
|
}),
|
|
1585
1615
|
")"
|
|
@@ -1590,11 +1620,11 @@ var glOption = {
|
|
|
1590
1620
|
/* @__PURE__ */ jsxs15("p", {
|
|
1591
1621
|
children: [
|
|
1592
1622
|
"The default is ",
|
|
1593
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1594
1624
|
children: "null"
|
|
1595
1625
|
}),
|
|
1596
1626
|
", letting Chrome decide, except on Lambda where the default is ",
|
|
1597
|
-
/* @__PURE__ */
|
|
1627
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1598
1628
|
children: '"swangle"'
|
|
1599
1629
|
})
|
|
1600
1630
|
]
|
|
@@ -1603,10 +1633,10 @@ var glOption = {
|
|
|
1603
1633
|
});
|
|
1604
1634
|
},
|
|
1605
1635
|
getValue: ({ commandLine }) => {
|
|
1606
|
-
if (commandLine[
|
|
1607
|
-
validateOpenGlRenderer(commandLine[
|
|
1636
|
+
if (commandLine[cliFlag25]) {
|
|
1637
|
+
validateOpenGlRenderer(commandLine[cliFlag25]);
|
|
1608
1638
|
return {
|
|
1609
|
-
value: commandLine[
|
|
1639
|
+
value: commandLine[cliFlag25],
|
|
1610
1640
|
source: "cli"
|
|
1611
1641
|
};
|
|
1612
1642
|
}
|
|
@@ -1642,11 +1672,11 @@ var hardwareAccelerationOptions = [
|
|
|
1642
1672
|
"if-possible",
|
|
1643
1673
|
"required"
|
|
1644
1674
|
];
|
|
1645
|
-
var
|
|
1675
|
+
var cliFlag26 = "hardware-acceleration";
|
|
1646
1676
|
var currentValue = null;
|
|
1647
1677
|
var hardwareAccelerationOption = {
|
|
1648
1678
|
name: "Hardware Acceleration",
|
|
1649
|
-
cliFlag:
|
|
1679
|
+
cliFlag: cliFlag26,
|
|
1650
1680
|
description: () => `
|
|
1651
1681
|
One of
|
|
1652
1682
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -1658,10 +1688,10 @@ var hardwareAccelerationOption = {
|
|
|
1658
1688
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
1659
1689
|
type: "disable",
|
|
1660
1690
|
getValue: ({ commandLine }) => {
|
|
1661
|
-
if (commandLine[
|
|
1662
|
-
const value = commandLine[
|
|
1691
|
+
if (commandLine[cliFlag26] !== undefined) {
|
|
1692
|
+
const value = commandLine[cliFlag26];
|
|
1663
1693
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1664
|
-
throw new Error(`Invalid value for --${
|
|
1694
|
+
throw new Error(`Invalid value for --${cliFlag26}: ${value}`);
|
|
1665
1695
|
}
|
|
1666
1696
|
return {
|
|
1667
1697
|
source: "cli",
|
|
@@ -1681,31 +1711,31 @@ var hardwareAccelerationOption = {
|
|
|
1681
1711
|
},
|
|
1682
1712
|
setConfig: (value) => {
|
|
1683
1713
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
1684
|
-
throw new Error(`Invalid value for --${
|
|
1714
|
+
throw new Error(`Invalid value for --${cliFlag26}: ${value}`);
|
|
1685
1715
|
}
|
|
1686
1716
|
currentValue = value;
|
|
1687
1717
|
}
|
|
1688
1718
|
};
|
|
1689
1719
|
|
|
1690
1720
|
// src/options/headless.tsx
|
|
1691
|
-
import { jsx as
|
|
1721
|
+
import { jsx as jsx23, jsxs as jsxs16, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1692
1722
|
var DEFAULT4 = true;
|
|
1693
1723
|
var headlessMode = DEFAULT4;
|
|
1694
|
-
var
|
|
1724
|
+
var cliFlag27 = "disable-headless";
|
|
1695
1725
|
var headlessOption = {
|
|
1696
1726
|
name: "Disable Headless Mode",
|
|
1697
|
-
cliFlag:
|
|
1698
|
-
description: () => /* @__PURE__ */ jsxs16(
|
|
1727
|
+
cliFlag: cliFlag27,
|
|
1728
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment23, {
|
|
1699
1729
|
children: [
|
|
1700
1730
|
"Deprecated - will be removed in 5.0.0. With the migration to",
|
|
1701
1731
|
" ",
|
|
1702
|
-
/* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ jsx23("a", {
|
|
1703
1733
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
1704
1734
|
children: "Chrome Headless Shell"
|
|
1705
1735
|
}),
|
|
1706
1736
|
", this option is not functional anymore.",
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsx23("br", {}),
|
|
1738
|
+
/* @__PURE__ */ jsx23("br", {}),
|
|
1709
1739
|
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
|
|
1710
1740
|
]
|
|
1711
1741
|
}),
|
|
@@ -1713,10 +1743,10 @@ var headlessOption = {
|
|
|
1713
1743
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
1714
1744
|
type: false,
|
|
1715
1745
|
getValue: ({ commandLine }) => {
|
|
1716
|
-
if (commandLine[
|
|
1746
|
+
if (commandLine[cliFlag27] !== undefined) {
|
|
1717
1747
|
return {
|
|
1718
1748
|
source: "cli",
|
|
1719
|
-
value: !commandLine[
|
|
1749
|
+
value: !commandLine[cliFlag27]
|
|
1720
1750
|
};
|
|
1721
1751
|
}
|
|
1722
1752
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -1736,21 +1766,21 @@ var headlessOption = {
|
|
|
1736
1766
|
};
|
|
1737
1767
|
|
|
1738
1768
|
// src/options/image-sequence-pattern.tsx
|
|
1739
|
-
import { jsx as
|
|
1740
|
-
var
|
|
1769
|
+
import { jsx as jsx24, jsxs as jsxs17, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1770
|
+
var cliFlag28 = "image-sequence-pattern";
|
|
1741
1771
|
var currentImageSequencePattern = null;
|
|
1742
1772
|
var imageSequencePatternOption = {
|
|
1743
1773
|
name: "Image Sequence Pattern",
|
|
1744
|
-
cliFlag:
|
|
1774
|
+
cliFlag: cliFlag28,
|
|
1745
1775
|
ssrName: "imageSequencePattern",
|
|
1746
|
-
description: () => /* @__PURE__ */ jsxs17(
|
|
1776
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment24, {
|
|
1747
1777
|
children: [
|
|
1748
1778
|
"Pattern for naming image sequence files. Supports ",
|
|
1749
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1750
1780
|
children: "[frame]"
|
|
1751
1781
|
}),
|
|
1752
1782
|
" for the zero-padded frame number and ",
|
|
1753
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1754
1784
|
children: "[ext]"
|
|
1755
1785
|
}),
|
|
1756
1786
|
" for the file extension."
|
|
@@ -1766,7 +1796,7 @@ var imageSequencePatternOption = {
|
|
|
1766
1796
|
};
|
|
1767
1797
|
}
|
|
1768
1798
|
return {
|
|
1769
|
-
value: commandLine[
|
|
1799
|
+
value: commandLine[cliFlag28],
|
|
1770
1800
|
source: "cli"
|
|
1771
1801
|
};
|
|
1772
1802
|
},
|
|
@@ -1776,21 +1806,21 @@ var imageSequencePatternOption = {
|
|
|
1776
1806
|
};
|
|
1777
1807
|
|
|
1778
1808
|
// src/options/is-production.tsx
|
|
1779
|
-
import { jsx as
|
|
1780
|
-
var
|
|
1809
|
+
import { jsx as jsx25, jsxs as jsxs18, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1810
|
+
var cliFlag29 = "is-production";
|
|
1781
1811
|
var currentIsProductionKey = null;
|
|
1782
1812
|
var isProductionOption = {
|
|
1783
1813
|
name: "Is Production",
|
|
1784
|
-
cliFlag:
|
|
1785
|
-
description: () => /* @__PURE__ */ jsxs18(
|
|
1814
|
+
cliFlag: cliFlag29,
|
|
1815
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment25, {
|
|
1786
1816
|
children: [
|
|
1787
1817
|
"Pass ",
|
|
1788
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1789
1819
|
children: "false"
|
|
1790
1820
|
}),
|
|
1791
1821
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
1792
1822
|
" ",
|
|
1793
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1794
1824
|
children: "licenseKey"
|
|
1795
1825
|
}),
|
|
1796
1826
|
"."
|
|
@@ -1799,10 +1829,10 @@ var isProductionOption = {
|
|
|
1799
1829
|
ssrName: "isProduction",
|
|
1800
1830
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
1801
1831
|
getValue: ({ commandLine }) => {
|
|
1802
|
-
if (commandLine[
|
|
1832
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1803
1833
|
return {
|
|
1804
1834
|
source: "cli",
|
|
1805
|
-
value: commandLine[
|
|
1835
|
+
value: commandLine[cliFlag29]
|
|
1806
1836
|
};
|
|
1807
1837
|
}
|
|
1808
1838
|
if (currentIsProductionKey !== null) {
|
|
@@ -1823,7 +1853,7 @@ var isProductionOption = {
|
|
|
1823
1853
|
};
|
|
1824
1854
|
|
|
1825
1855
|
// src/options/jpeg-quality.tsx
|
|
1826
|
-
import { jsx as
|
|
1856
|
+
import { jsx as jsx26, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1827
1857
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
1828
1858
|
var quality = defaultValue;
|
|
1829
1859
|
var setJpegQuality = (q) => {
|
|
@@ -1834,11 +1864,11 @@ var setJpegQuality = (q) => {
|
|
|
1834
1864
|
}
|
|
1835
1865
|
quality = q;
|
|
1836
1866
|
};
|
|
1837
|
-
var
|
|
1867
|
+
var cliFlag30 = "jpeg-quality";
|
|
1838
1868
|
var jpegQualityOption = {
|
|
1839
1869
|
name: "JPEG Quality",
|
|
1840
|
-
cliFlag:
|
|
1841
|
-
description: () => /* @__PURE__ */
|
|
1870
|
+
cliFlag: cliFlag30,
|
|
1871
|
+
description: () => /* @__PURE__ */ jsx26(Fragment26, {
|
|
1842
1872
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
1843
1873
|
}),
|
|
1844
1874
|
ssrName: "jpegQuality",
|
|
@@ -1846,11 +1876,11 @@ var jpegQualityOption = {
|
|
|
1846
1876
|
type: 0,
|
|
1847
1877
|
setConfig: setJpegQuality,
|
|
1848
1878
|
getValue: ({ commandLine }) => {
|
|
1849
|
-
if (commandLine[
|
|
1850
|
-
validateJpegQuality(commandLine[
|
|
1879
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
1880
|
+
validateJpegQuality(commandLine[cliFlag30]);
|
|
1851
1881
|
return {
|
|
1852
1882
|
source: "cli",
|
|
1853
|
-
value: commandLine[
|
|
1883
|
+
value: commandLine[cliFlag30]
|
|
1854
1884
|
};
|
|
1855
1885
|
}
|
|
1856
1886
|
if (quality !== defaultValue) {
|
|
@@ -1867,21 +1897,21 @@ var jpegQualityOption = {
|
|
|
1867
1897
|
};
|
|
1868
1898
|
|
|
1869
1899
|
// src/options/keyboard-shortcuts.tsx
|
|
1870
|
-
import { jsx as
|
|
1900
|
+
import { jsx as jsx27, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1871
1901
|
var keyboardShortcutsEnabled = true;
|
|
1872
|
-
var
|
|
1902
|
+
var cliFlag31 = "disable-keyboard-shortcuts";
|
|
1873
1903
|
var keyboardShortcutsOption = {
|
|
1874
1904
|
name: "Disable or Enable keyboard shortcuts",
|
|
1875
|
-
cliFlag:
|
|
1876
|
-
description: () => /* @__PURE__ */
|
|
1905
|
+
cliFlag: cliFlag31,
|
|
1906
|
+
description: () => /* @__PURE__ */ jsx27(Fragment27, {
|
|
1877
1907
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
1878
1908
|
}),
|
|
1879
1909
|
ssrName: null,
|
|
1880
1910
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
1881
1911
|
type: false,
|
|
1882
1912
|
getValue: ({ commandLine }) => {
|
|
1883
|
-
if (commandLine[
|
|
1884
|
-
keyboardShortcutsEnabled = commandLine[
|
|
1913
|
+
if (commandLine[cliFlag31] !== undefined) {
|
|
1914
|
+
keyboardShortcutsEnabled = commandLine[cliFlag31] === false;
|
|
1885
1915
|
return {
|
|
1886
1916
|
value: keyboardShortcutsEnabled,
|
|
1887
1917
|
source: "cli"
|
|
@@ -1898,38 +1928,38 @@ var keyboardShortcutsOption = {
|
|
|
1898
1928
|
};
|
|
1899
1929
|
|
|
1900
1930
|
// src/options/latency-hint.tsx
|
|
1901
|
-
import { jsx as
|
|
1902
|
-
var
|
|
1931
|
+
import { jsx as jsx28, jsxs as jsxs19, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1932
|
+
var cliFlag32 = "audio-latency-hint";
|
|
1903
1933
|
var value = null;
|
|
1904
1934
|
var audioLatencyHintOption = {
|
|
1905
1935
|
name: "Audio Latency Hint",
|
|
1906
|
-
cliFlag:
|
|
1907
|
-
description: () => /* @__PURE__ */ jsxs19(
|
|
1936
|
+
cliFlag: cliFlag32,
|
|
1937
|
+
description: () => /* @__PURE__ */ jsxs19(Fragment28, {
|
|
1908
1938
|
children: [
|
|
1909
1939
|
"Sets the",
|
|
1910
1940
|
" ",
|
|
1911
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx28("a", {
|
|
1912
1942
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
1913
1943
|
children: "audio latency"
|
|
1914
1944
|
}),
|
|
1915
1945
|
" ",
|
|
1916
1946
|
"hint for the global ",
|
|
1917
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1918
1948
|
children: "AudioContext"
|
|
1919
1949
|
}),
|
|
1920
1950
|
" context that Remotion uses to play audio.",
|
|
1921
|
-
/* @__PURE__ */
|
|
1951
|
+
/* @__PURE__ */ jsx28("br", {}),
|
|
1922
1952
|
"Possible values: ",
|
|
1923
|
-
/* @__PURE__ */
|
|
1953
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1924
1954
|
children: "interactive"
|
|
1925
1955
|
}),
|
|
1926
1956
|
", ",
|
|
1927
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1928
1958
|
children: "balanced"
|
|
1929
1959
|
}),
|
|
1930
1960
|
",",
|
|
1931
1961
|
" ",
|
|
1932
|
-
/* @__PURE__ */
|
|
1962
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1933
1963
|
children: "playback"
|
|
1934
1964
|
})
|
|
1935
1965
|
]
|
|
@@ -1938,7 +1968,7 @@ var audioLatencyHintOption = {
|
|
|
1938
1968
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
1939
1969
|
type: "interactive",
|
|
1940
1970
|
getValue: ({ commandLine }) => {
|
|
1941
|
-
const val = commandLine[
|
|
1971
|
+
const val = commandLine[cliFlag32];
|
|
1942
1972
|
if (typeof val !== "undefined") {
|
|
1943
1973
|
return { value: val, source: "cli" };
|
|
1944
1974
|
}
|
|
@@ -1953,17 +1983,17 @@ var audioLatencyHintOption = {
|
|
|
1953
1983
|
};
|
|
1954
1984
|
|
|
1955
1985
|
// src/options/license-key.tsx
|
|
1956
|
-
import { jsx as
|
|
1986
|
+
import { jsx as jsx29, jsxs as jsxs20, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1957
1987
|
var currentLicenseKey = null;
|
|
1958
|
-
var
|
|
1988
|
+
var cliFlag33 = "license-key";
|
|
1959
1989
|
var licenseKeyOption = {
|
|
1960
1990
|
name: "License key",
|
|
1961
|
-
cliFlag:
|
|
1962
|
-
description: () => /* @__PURE__ */ jsxs20(
|
|
1991
|
+
cliFlag: cliFlag33,
|
|
1992
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment29, {
|
|
1963
1993
|
children: [
|
|
1964
1994
|
"License key for sending a usage event using",
|
|
1965
1995
|
" ",
|
|
1966
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1967
1997
|
children: "@remotion/licensing"
|
|
1968
1998
|
}),
|
|
1969
1999
|
"."
|
|
@@ -1973,10 +2003,10 @@ var licenseKeyOption = {
|
|
|
1973
2003
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
1974
2004
|
type: null,
|
|
1975
2005
|
getValue: ({ commandLine }) => {
|
|
1976
|
-
if (commandLine[
|
|
2006
|
+
if (commandLine[cliFlag33] !== undefined) {
|
|
1977
2007
|
return {
|
|
1978
2008
|
source: "cli",
|
|
1979
|
-
value: commandLine[
|
|
2009
|
+
value: commandLine[cliFlag33]
|
|
1980
2010
|
};
|
|
1981
2011
|
}
|
|
1982
2012
|
return {
|
|
@@ -1990,43 +2020,43 @@ var licenseKeyOption = {
|
|
|
1990
2020
|
};
|
|
1991
2021
|
|
|
1992
2022
|
// src/options/log-level.tsx
|
|
1993
|
-
import { jsx as
|
|
2023
|
+
import { jsx as jsx30, jsxs as jsxs21, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
1994
2024
|
var logLevel = "info";
|
|
1995
|
-
var
|
|
2025
|
+
var cliFlag34 = "log";
|
|
1996
2026
|
var logLevelOption = {
|
|
1997
|
-
cliFlag:
|
|
2027
|
+
cliFlag: cliFlag34,
|
|
1998
2028
|
name: "Log Level",
|
|
1999
2029
|
ssrName: "logLevel",
|
|
2000
|
-
description: () => /* @__PURE__ */ jsxs21(
|
|
2030
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment30, {
|
|
2001
2031
|
children: [
|
|
2002
2032
|
"One of ",
|
|
2003
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2004
2034
|
children: "trace"
|
|
2005
2035
|
}),
|
|
2006
2036
|
", ",
|
|
2007
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2008
2038
|
children: "verbose"
|
|
2009
2039
|
}),
|
|
2010
2040
|
", ",
|
|
2011
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2012
2042
|
children: "info"
|
|
2013
2043
|
}),
|
|
2014
2044
|
",",
|
|
2015
2045
|
" ",
|
|
2016
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2017
2047
|
children: "warn"
|
|
2018
2048
|
}),
|
|
2019
2049
|
", ",
|
|
2020
|
-
/* @__PURE__ */
|
|
2050
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2021
2051
|
children: "error"
|
|
2022
2052
|
}),
|
|
2023
2053
|
".",
|
|
2024
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ jsx30("br", {}),
|
|
2025
2055
|
" Determines how much info is being logged to the console.",
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2056
|
+
/* @__PURE__ */ jsx30("br", {}),
|
|
2057
|
+
/* @__PURE__ */ jsx30("br", {}),
|
|
2028
2058
|
" Default ",
|
|
2029
|
-
/* @__PURE__ */
|
|
2059
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2030
2060
|
children: "info"
|
|
2031
2061
|
}),
|
|
2032
2062
|
"."
|
|
@@ -2034,11 +2064,11 @@ var logLevelOption = {
|
|
|
2034
2064
|
}),
|
|
2035
2065
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
2036
2066
|
getValue: ({ commandLine }) => {
|
|
2037
|
-
if (commandLine[
|
|
2038
|
-
if (!isValidLogLevel(commandLine[
|
|
2067
|
+
if (commandLine[cliFlag34]) {
|
|
2068
|
+
if (!isValidLogLevel(commandLine[cliFlag34])) {
|
|
2039
2069
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
2040
2070
|
}
|
|
2041
|
-
return { value: commandLine[
|
|
2071
|
+
return { value: commandLine[cliFlag34], source: "cli" };
|
|
2042
2072
|
}
|
|
2043
2073
|
if (logLevel !== "info") {
|
|
2044
2074
|
return { value: logLevel, source: "config" };
|
|
@@ -2052,19 +2082,19 @@ var logLevelOption = {
|
|
|
2052
2082
|
};
|
|
2053
2083
|
|
|
2054
2084
|
// src/options/metadata.tsx
|
|
2055
|
-
import { jsx as
|
|
2085
|
+
import { jsx as jsx31, jsxs as jsxs22, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
2056
2086
|
var metadata = {};
|
|
2057
|
-
var
|
|
2087
|
+
var cliFlag35 = "metadata";
|
|
2058
2088
|
var metadataOption = {
|
|
2059
2089
|
name: "Metadata",
|
|
2060
|
-
cliFlag:
|
|
2090
|
+
cliFlag: cliFlag35,
|
|
2061
2091
|
description: (mode) => {
|
|
2062
2092
|
if (mode === "ssr") {
|
|
2063
|
-
return /* @__PURE__ */ jsxs22(
|
|
2093
|
+
return /* @__PURE__ */ jsxs22(Fragment31, {
|
|
2064
2094
|
children: [
|
|
2065
2095
|
"An object containing metadata to be embedded in the video. See",
|
|
2066
2096
|
" ",
|
|
2067
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ jsx31("a", {
|
|
2068
2098
|
href: "/docs/metadata",
|
|
2069
2099
|
children: "here"
|
|
2070
2100
|
}),
|
|
@@ -2072,18 +2102,18 @@ var metadataOption = {
|
|
|
2072
2102
|
]
|
|
2073
2103
|
});
|
|
2074
2104
|
}
|
|
2075
|
-
return /* @__PURE__ */ jsxs22(
|
|
2105
|
+
return /* @__PURE__ */ jsxs22(Fragment31, {
|
|
2076
2106
|
children: [
|
|
2077
2107
|
"Metadata to be embedded in the video. See",
|
|
2078
2108
|
" ",
|
|
2079
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ jsx31("a", {
|
|
2080
2110
|
href: "/docs/metadata",
|
|
2081
2111
|
children: "here"
|
|
2082
2112
|
}),
|
|
2083
2113
|
" for which metadata is accepted.",
|
|
2084
|
-
/* @__PURE__ */
|
|
2114
|
+
/* @__PURE__ */ jsx31("br", {}),
|
|
2085
2115
|
"The parameter must be in the format of ",
|
|
2086
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2087
2117
|
children: "--metadata key=value"
|
|
2088
2118
|
}),
|
|
2089
2119
|
" ",
|
|
@@ -2094,8 +2124,8 @@ var metadataOption = {
|
|
|
2094
2124
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
2095
2125
|
type: {},
|
|
2096
2126
|
getValue: ({ commandLine }) => {
|
|
2097
|
-
if (commandLine[
|
|
2098
|
-
const val = commandLine[
|
|
2127
|
+
if (commandLine[cliFlag35] !== undefined) {
|
|
2128
|
+
const val = commandLine[cliFlag35];
|
|
2099
2129
|
const array = typeof val === "string" ? [val] : val;
|
|
2100
2130
|
const keyValues = array.map((a) => {
|
|
2101
2131
|
if (!a.includes("=")) {
|
|
@@ -2125,24 +2155,24 @@ var metadataOption = {
|
|
|
2125
2155
|
};
|
|
2126
2156
|
|
|
2127
2157
|
// src/options/mute.tsx
|
|
2128
|
-
import { jsx as
|
|
2158
|
+
import { jsx as jsx32, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2129
2159
|
var DEFAULT_MUTED_STATE = false;
|
|
2130
2160
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
2131
|
-
var
|
|
2161
|
+
var cliFlag36 = "muted";
|
|
2132
2162
|
var mutedOption = {
|
|
2133
2163
|
name: "Muted",
|
|
2134
|
-
cliFlag:
|
|
2135
|
-
description: () => /* @__PURE__ */
|
|
2164
|
+
cliFlag: cliFlag36,
|
|
2165
|
+
description: () => /* @__PURE__ */ jsx32(Fragment32, {
|
|
2136
2166
|
children: "The Audio of the video will be omitted."
|
|
2137
2167
|
}),
|
|
2138
2168
|
ssrName: "muted",
|
|
2139
2169
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
2140
2170
|
type: false,
|
|
2141
2171
|
getValue: ({ commandLine }) => {
|
|
2142
|
-
if (commandLine[
|
|
2172
|
+
if (commandLine[cliFlag36] !== null) {
|
|
2143
2173
|
return {
|
|
2144
2174
|
source: "cli",
|
|
2145
|
-
value: commandLine[
|
|
2175
|
+
value: commandLine[cliFlag36]
|
|
2146
2176
|
};
|
|
2147
2177
|
}
|
|
2148
2178
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -2162,26 +2192,26 @@ var mutedOption = {
|
|
|
2162
2192
|
};
|
|
2163
2193
|
|
|
2164
2194
|
// src/options/number-of-gif-loops.tsx
|
|
2165
|
-
import { jsx as
|
|
2195
|
+
import { jsx as jsx33, jsxs as jsxs23, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2166
2196
|
var currentLoop = null;
|
|
2167
2197
|
var validate = (newLoop) => {
|
|
2168
2198
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
2169
2199
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
2170
2200
|
}
|
|
2171
2201
|
};
|
|
2172
|
-
var
|
|
2202
|
+
var cliFlag37 = "number-of-gif-loops";
|
|
2173
2203
|
var numberOfGifLoopsOption = {
|
|
2174
2204
|
name: "Number of GIF loops",
|
|
2175
|
-
cliFlag:
|
|
2205
|
+
cliFlag: cliFlag37,
|
|
2176
2206
|
description: () => {
|
|
2177
|
-
return /* @__PURE__ */ jsxs23(
|
|
2207
|
+
return /* @__PURE__ */ jsxs23(Fragment33, {
|
|
2178
2208
|
children: [
|
|
2179
2209
|
"Allows you to set the number of loops as follows:",
|
|
2180
2210
|
/* @__PURE__ */ jsxs23("ul", {
|
|
2181
2211
|
children: [
|
|
2182
2212
|
/* @__PURE__ */ jsxs23("li", {
|
|
2183
2213
|
children: [
|
|
2184
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2185
2215
|
children: "null"
|
|
2186
2216
|
}),
|
|
2187
2217
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
@@ -2189,7 +2219,7 @@ var numberOfGifLoopsOption = {
|
|
|
2189
2219
|
}),
|
|
2190
2220
|
/* @__PURE__ */ jsxs23("li", {
|
|
2191
2221
|
children: [
|
|
2192
|
-
/* @__PURE__ */
|
|
2222
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2193
2223
|
children: "0"
|
|
2194
2224
|
}),
|
|
2195
2225
|
" disables looping"
|
|
@@ -2197,7 +2227,7 @@ var numberOfGifLoopsOption = {
|
|
|
2197
2227
|
}),
|
|
2198
2228
|
/* @__PURE__ */ jsxs23("li", {
|
|
2199
2229
|
children: [
|
|
2200
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2201
2231
|
children: "1"
|
|
2202
2232
|
}),
|
|
2203
2233
|
" loops the GIF once (plays twice in total)"
|
|
@@ -2205,7 +2235,7 @@ var numberOfGifLoopsOption = {
|
|
|
2205
2235
|
}),
|
|
2206
2236
|
/* @__PURE__ */ jsxs23("li", {
|
|
2207
2237
|
children: [
|
|
2208
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ jsx33("code", {
|
|
2209
2239
|
children: "2"
|
|
2210
2240
|
}),
|
|
2211
2241
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -2220,10 +2250,10 @@ var numberOfGifLoopsOption = {
|
|
|
2220
2250
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
2221
2251
|
type: 0,
|
|
2222
2252
|
getValue: ({ commandLine }) => {
|
|
2223
|
-
if (commandLine[
|
|
2224
|
-
validate(commandLine[
|
|
2253
|
+
if (commandLine[cliFlag37] !== undefined) {
|
|
2254
|
+
validate(commandLine[cliFlag37]);
|
|
2225
2255
|
return {
|
|
2226
|
-
value: commandLine[
|
|
2256
|
+
value: commandLine[cliFlag37],
|
|
2227
2257
|
source: "cli"
|
|
2228
2258
|
};
|
|
2229
2259
|
}
|
|
@@ -2245,35 +2275,35 @@ var numberOfGifLoopsOption = {
|
|
|
2245
2275
|
};
|
|
2246
2276
|
|
|
2247
2277
|
// src/options/offthreadvideo-cache-size.tsx
|
|
2248
|
-
import { jsx as
|
|
2278
|
+
import { jsx as jsx34, jsxs as jsxs24, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2249
2279
|
var offthreadVideoCacheSizeInBytes = null;
|
|
2250
|
-
var
|
|
2280
|
+
var cliFlag38 = "offthreadvideo-cache-size-in-bytes";
|
|
2251
2281
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
2252
2282
|
name: "OffthreadVideo cache size",
|
|
2253
|
-
cliFlag:
|
|
2254
|
-
description: () => /* @__PURE__ */ jsxs24(
|
|
2283
|
+
cliFlag: cliFlag38,
|
|
2284
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment34, {
|
|
2255
2285
|
children: [
|
|
2256
2286
|
"From v4.0, Remotion has a cache for",
|
|
2257
2287
|
" ",
|
|
2258
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ jsx34("a", {
|
|
2259
2289
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2260
|
-
children: /* @__PURE__ */
|
|
2290
|
+
children: /* @__PURE__ */ jsx34("code", {
|
|
2261
2291
|
children: "<OffthreadVideo>"
|
|
2262
2292
|
})
|
|
2263
2293
|
}),
|
|
2264
2294
|
" ",
|
|
2265
2295
|
"frames. The default is ",
|
|
2266
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2267
2297
|
children: "null"
|
|
2268
2298
|
}),
|
|
2269
2299
|
", corresponding to half of the system memory available when the render starts.",
|
|
2270
|
-
/* @__PURE__ */
|
|
2300
|
+
/* @__PURE__ */ jsx34("br", {}),
|
|
2271
2301
|
" 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.",
|
|
2272
|
-
/* @__PURE__ */
|
|
2302
|
+
/* @__PURE__ */ jsx34("br", {}),
|
|
2273
2303
|
"The used value will be printed when running in verbose mode.",
|
|
2274
|
-
/* @__PURE__ */
|
|
2304
|
+
/* @__PURE__ */ jsx34("br", {}),
|
|
2275
2305
|
"Default: ",
|
|
2276
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2277
2307
|
children: "null"
|
|
2278
2308
|
})
|
|
2279
2309
|
]
|
|
@@ -2282,10 +2312,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2282
2312
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2283
2313
|
type: 0,
|
|
2284
2314
|
getValue: ({ commandLine }) => {
|
|
2285
|
-
if (commandLine[
|
|
2315
|
+
if (commandLine[cliFlag38] !== undefined) {
|
|
2286
2316
|
return {
|
|
2287
2317
|
source: "cli",
|
|
2288
|
-
value: commandLine[
|
|
2318
|
+
value: commandLine[cliFlag38]
|
|
2289
2319
|
};
|
|
2290
2320
|
}
|
|
2291
2321
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -2305,18 +2335,18 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
2305
2335
|
};
|
|
2306
2336
|
|
|
2307
2337
|
// src/options/offthreadvideo-threads.tsx
|
|
2308
|
-
import { jsx as
|
|
2338
|
+
import { jsx as jsx35, jsxs as jsxs25, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2309
2339
|
var value2 = null;
|
|
2310
|
-
var
|
|
2340
|
+
var cliFlag39 = "offthreadvideo-video-threads";
|
|
2311
2341
|
var offthreadVideoThreadsOption = {
|
|
2312
2342
|
name: "OffthreadVideo threads",
|
|
2313
|
-
cliFlag:
|
|
2314
|
-
description: () => /* @__PURE__ */ jsxs25(
|
|
2343
|
+
cliFlag: cliFlag39,
|
|
2344
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment35, {
|
|
2315
2345
|
children: [
|
|
2316
2346
|
"The number of threads that",
|
|
2317
|
-
/* @__PURE__ */
|
|
2347
|
+
/* @__PURE__ */ jsx35("a", {
|
|
2318
2348
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
2319
|
-
children: /* @__PURE__ */
|
|
2349
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2320
2350
|
children: "<OffthreadVideo>"
|
|
2321
2351
|
})
|
|
2322
2352
|
}),
|
|
@@ -2331,10 +2361,10 @@ var offthreadVideoThreadsOption = {
|
|
|
2331
2361
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
2332
2362
|
type: 0,
|
|
2333
2363
|
getValue: ({ commandLine }) => {
|
|
2334
|
-
if (commandLine[
|
|
2364
|
+
if (commandLine[cliFlag39] !== undefined) {
|
|
2335
2365
|
return {
|
|
2336
2366
|
source: "cli",
|
|
2337
|
-
value: commandLine[
|
|
2367
|
+
value: commandLine[cliFlag39]
|
|
2338
2368
|
};
|
|
2339
2369
|
}
|
|
2340
2370
|
if (value2 !== null) {
|
|
@@ -2355,16 +2385,16 @@ var offthreadVideoThreadsOption = {
|
|
|
2355
2385
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
2356
2386
|
|
|
2357
2387
|
// src/options/on-browser-download.tsx
|
|
2358
|
-
import { jsx as
|
|
2359
|
-
var
|
|
2388
|
+
import { jsx as jsx36, jsxs as jsxs26, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2389
|
+
var cliFlag40 = "on-browser-download";
|
|
2360
2390
|
var onBrowserDownloadOption = {
|
|
2361
2391
|
name: "Browser download callback function",
|
|
2362
|
-
cliFlag:
|
|
2363
|
-
description: () => /* @__PURE__ */ jsxs26(
|
|
2392
|
+
cliFlag: cliFlag40,
|
|
2393
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment36, {
|
|
2364
2394
|
children: [
|
|
2365
2395
|
"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.",
|
|
2366
2396
|
" ",
|
|
2367
|
-
/* @__PURE__ */
|
|
2397
|
+
/* @__PURE__ */ jsx36("a", {
|
|
2368
2398
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
2369
2399
|
children: "See here for how to use this option."
|
|
2370
2400
|
})
|
|
@@ -2382,9 +2412,9 @@ var onBrowserDownloadOption = {
|
|
|
2382
2412
|
};
|
|
2383
2413
|
|
|
2384
2414
|
// src/options/overwrite.tsx
|
|
2385
|
-
import { jsx as
|
|
2415
|
+
import { jsx as jsx37, jsxs as jsxs27, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2386
2416
|
var shouldOverwrite = null;
|
|
2387
|
-
var
|
|
2417
|
+
var cliFlag41 = "overwrite";
|
|
2388
2418
|
var validate2 = (value3) => {
|
|
2389
2419
|
if (typeof value3 !== "boolean") {
|
|
2390
2420
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -2392,15 +2422,15 @@ var validate2 = (value3) => {
|
|
|
2392
2422
|
};
|
|
2393
2423
|
var overwriteOption = {
|
|
2394
2424
|
name: "Overwrite output",
|
|
2395
|
-
cliFlag:
|
|
2396
|
-
description: () => /* @__PURE__ */ jsxs27(
|
|
2425
|
+
cliFlag: cliFlag41,
|
|
2426
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment37, {
|
|
2397
2427
|
children: [
|
|
2398
2428
|
"If set to ",
|
|
2399
|
-
/* @__PURE__ */
|
|
2429
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2400
2430
|
children: "false"
|
|
2401
2431
|
}),
|
|
2402
2432
|
", will prevent rendering to a path that already exists. Default is ",
|
|
2403
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ jsx37("code", {
|
|
2404
2434
|
children: "true"
|
|
2405
2435
|
}),
|
|
2406
2436
|
"."
|
|
@@ -2410,11 +2440,11 @@ var overwriteOption = {
|
|
|
2410
2440
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
2411
2441
|
type: false,
|
|
2412
2442
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
2413
|
-
if (commandLine[
|
|
2414
|
-
validate2(commandLine[
|
|
2443
|
+
if (commandLine[cliFlag41] !== undefined) {
|
|
2444
|
+
validate2(commandLine[cliFlag41]);
|
|
2415
2445
|
return {
|
|
2416
2446
|
source: "cli",
|
|
2417
|
-
value: commandLine[
|
|
2447
|
+
value: commandLine[cliFlag41]
|
|
2418
2448
|
};
|
|
2419
2449
|
}
|
|
2420
2450
|
if (shouldOverwrite !== null) {
|
|
@@ -2435,21 +2465,21 @@ var overwriteOption = {
|
|
|
2435
2465
|
};
|
|
2436
2466
|
|
|
2437
2467
|
// src/options/prefer-lossless.tsx
|
|
2438
|
-
import { jsx as
|
|
2439
|
-
var
|
|
2468
|
+
import { jsx as jsx38, jsxs as jsxs28, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2469
|
+
var cliFlag42 = "prefer-lossless";
|
|
2440
2470
|
var input = false;
|
|
2441
2471
|
var preferLosslessAudioOption = {
|
|
2442
2472
|
name: "Prefer lossless",
|
|
2443
|
-
cliFlag:
|
|
2444
|
-
description: () => /* @__PURE__ */ jsxs28(
|
|
2473
|
+
cliFlag: cliFlag42,
|
|
2474
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment38, {
|
|
2445
2475
|
children: [
|
|
2446
2476
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
2447
|
-
/* @__PURE__ */
|
|
2477
|
+
/* @__PURE__ */ jsx38("code", {
|
|
2448
2478
|
children: "audioCodec"
|
|
2449
2479
|
}),
|
|
2450
2480
|
", it takes priority over",
|
|
2451
2481
|
" ",
|
|
2452
|
-
/* @__PURE__ */
|
|
2482
|
+
/* @__PURE__ */ jsx38("code", {
|
|
2453
2483
|
children: "preferLossless"
|
|
2454
2484
|
}),
|
|
2455
2485
|
"."
|
|
@@ -2459,7 +2489,7 @@ var preferLosslessAudioOption = {
|
|
|
2459
2489
|
type: false,
|
|
2460
2490
|
ssrName: "preferLossless",
|
|
2461
2491
|
getValue: ({ commandLine }) => {
|
|
2462
|
-
if (commandLine[
|
|
2492
|
+
if (commandLine[cliFlag42]) {
|
|
2463
2493
|
return { value: true, source: "cli" };
|
|
2464
2494
|
}
|
|
2465
2495
|
if (input === true) {
|
|
@@ -2473,20 +2503,20 @@ var preferLosslessAudioOption = {
|
|
|
2473
2503
|
};
|
|
2474
2504
|
|
|
2475
2505
|
// src/options/public-dir.tsx
|
|
2476
|
-
import { jsx as
|
|
2477
|
-
var
|
|
2506
|
+
import { jsx as jsx39, jsxs as jsxs29, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2507
|
+
var cliFlag43 = "public-dir";
|
|
2478
2508
|
var currentPublicDir = null;
|
|
2479
2509
|
var publicDirOption = {
|
|
2480
2510
|
name: "Public Directory",
|
|
2481
|
-
cliFlag:
|
|
2511
|
+
cliFlag: cliFlag43,
|
|
2482
2512
|
description: () => {
|
|
2483
|
-
return /* @__PURE__ */ jsxs29(
|
|
2513
|
+
return /* @__PURE__ */ jsxs29(Fragment39, {
|
|
2484
2514
|
children: [
|
|
2485
2515
|
"Define the location of the",
|
|
2486
2516
|
" ",
|
|
2487
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx39("a", {
|
|
2488
2518
|
href: "/docs/terminology/public-dir",
|
|
2489
|
-
children: /* @__PURE__ */
|
|
2519
|
+
children: /* @__PURE__ */ jsx39("code", {
|
|
2490
2520
|
children: "public/ directory"
|
|
2491
2521
|
})
|
|
2492
2522
|
}),
|
|
@@ -2497,10 +2527,10 @@ var publicDirOption = {
|
|
|
2497
2527
|
ssrName: "publicDir",
|
|
2498
2528
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
2499
2529
|
getValue: ({ commandLine }) => {
|
|
2500
|
-
if (commandLine[
|
|
2530
|
+
if (commandLine[cliFlag43] !== undefined) {
|
|
2501
2531
|
return {
|
|
2502
2532
|
source: "cli",
|
|
2503
|
-
value: commandLine[
|
|
2533
|
+
value: commandLine[cliFlag43]
|
|
2504
2534
|
};
|
|
2505
2535
|
}
|
|
2506
2536
|
if (currentPublicDir !== null) {
|
|
@@ -2521,16 +2551,16 @@ var publicDirOption = {
|
|
|
2521
2551
|
};
|
|
2522
2552
|
|
|
2523
2553
|
// src/options/public-license-key.tsx
|
|
2524
|
-
import { jsx as
|
|
2525
|
-
var
|
|
2554
|
+
import { jsx as jsx40, jsxs as jsxs30, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2555
|
+
var cliFlag44 = "public-license-key";
|
|
2526
2556
|
var currentPublicLicenseKey = null;
|
|
2527
2557
|
var publicLicenseKeyOption = {
|
|
2528
2558
|
name: "Public License Key",
|
|
2529
|
-
cliFlag:
|
|
2530
|
-
description: () => /* @__PURE__ */ jsxs30(
|
|
2559
|
+
cliFlag: cliFlag44,
|
|
2560
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment40, {
|
|
2531
2561
|
children: [
|
|
2532
2562
|
'The public license key for your company license, obtained from the "Usage" tab on ',
|
|
2533
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ jsx40("a", {
|
|
2534
2564
|
href: "https://remotion.pro/dashboard",
|
|
2535
2565
|
children: "remotion.pro"
|
|
2536
2566
|
}),
|
|
@@ -2540,10 +2570,10 @@ var publicLicenseKeyOption = {
|
|
|
2540
2570
|
ssrName: "publicLicenseKey",
|
|
2541
2571
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2542
2572
|
getValue: ({ commandLine }) => {
|
|
2543
|
-
if (commandLine[
|
|
2573
|
+
if (commandLine[cliFlag44] !== undefined) {
|
|
2544
2574
|
return {
|
|
2545
2575
|
source: "cli",
|
|
2546
|
-
value: commandLine[
|
|
2576
|
+
value: commandLine[cliFlag44]
|
|
2547
2577
|
};
|
|
2548
2578
|
}
|
|
2549
2579
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -2567,25 +2597,25 @@ var publicLicenseKeyOption = {
|
|
|
2567
2597
|
};
|
|
2568
2598
|
|
|
2569
2599
|
// src/options/public-path.tsx
|
|
2570
|
-
import { jsx as
|
|
2571
|
-
var
|
|
2600
|
+
import { jsx as jsx41, jsxs as jsxs31, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2601
|
+
var cliFlag45 = "public-path";
|
|
2572
2602
|
var currentPublicPath = null;
|
|
2573
2603
|
var publicPathOption = {
|
|
2574
2604
|
name: "Public Path",
|
|
2575
|
-
cliFlag:
|
|
2605
|
+
cliFlag: cliFlag45,
|
|
2576
2606
|
description: () => {
|
|
2577
|
-
return /* @__PURE__ */ jsxs31(
|
|
2607
|
+
return /* @__PURE__ */ jsxs31(Fragment41, {
|
|
2578
2608
|
children: [
|
|
2579
2609
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
2580
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx41("code", {
|
|
2581
2611
|
children: "/"
|
|
2582
2612
|
}),
|
|
2583
2613
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
2584
|
-
/* @__PURE__ */
|
|
2614
|
+
/* @__PURE__ */ jsx41("code", {
|
|
2585
2615
|
children: "https://localhost:3000/"
|
|
2586
2616
|
}),
|
|
2587
2617
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
2588
|
-
/* @__PURE__ */
|
|
2618
|
+
/* @__PURE__ */ jsx41("code", {
|
|
2589
2619
|
children: "/sites/my-site/"
|
|
2590
2620
|
}),
|
|
2591
2621
|
"), you should set this to the subdirectory."
|
|
@@ -2595,10 +2625,10 @@ var publicPathOption = {
|
|
|
2595
2625
|
ssrName: "publicPath",
|
|
2596
2626
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
2597
2627
|
getValue: ({ commandLine }) => {
|
|
2598
|
-
if (commandLine[
|
|
2628
|
+
if (commandLine[cliFlag45] !== undefined) {
|
|
2599
2629
|
return {
|
|
2600
2630
|
source: "cli",
|
|
2601
|
-
value: commandLine[
|
|
2631
|
+
value: commandLine[cliFlag45]
|
|
2602
2632
|
};
|
|
2603
2633
|
}
|
|
2604
2634
|
if (currentPublicPath !== null) {
|
|
@@ -2619,25 +2649,25 @@ var publicPathOption = {
|
|
|
2619
2649
|
};
|
|
2620
2650
|
|
|
2621
2651
|
// src/options/repro.tsx
|
|
2622
|
-
import { jsx as
|
|
2652
|
+
import { jsx as jsx42, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2623
2653
|
var enableRepro = false;
|
|
2624
2654
|
var setRepro = (should) => {
|
|
2625
2655
|
enableRepro = should;
|
|
2626
2656
|
};
|
|
2627
|
-
var
|
|
2657
|
+
var cliFlag46 = "repro";
|
|
2628
2658
|
var reproOption = {
|
|
2629
2659
|
name: "Create reproduction",
|
|
2630
|
-
cliFlag:
|
|
2631
|
-
description: () => /* @__PURE__ */
|
|
2660
|
+
cliFlag: cliFlag46,
|
|
2661
|
+
description: () => /* @__PURE__ */ jsx42(Fragment42, {
|
|
2632
2662
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
2633
2663
|
}),
|
|
2634
2664
|
ssrName: "repro",
|
|
2635
2665
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
2636
2666
|
type: false,
|
|
2637
2667
|
getValue: ({ commandLine }) => {
|
|
2638
|
-
if (commandLine[
|
|
2668
|
+
if (commandLine[cliFlag46] !== undefined) {
|
|
2639
2669
|
return {
|
|
2640
|
-
value: commandLine[
|
|
2670
|
+
value: commandLine[cliFlag46],
|
|
2641
2671
|
source: "cli"
|
|
2642
2672
|
};
|
|
2643
2673
|
}
|
|
@@ -2656,9 +2686,9 @@ var reproOption = {
|
|
|
2656
2686
|
};
|
|
2657
2687
|
|
|
2658
2688
|
// src/options/scale.tsx
|
|
2659
|
-
import { jsx as
|
|
2689
|
+
import { jsx as jsx43, jsxs as jsxs32, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2660
2690
|
var currentScale = 1;
|
|
2661
|
-
var
|
|
2691
|
+
var cliFlag47 = "scale";
|
|
2662
2692
|
var validateScale = (value3) => {
|
|
2663
2693
|
if (typeof value3 !== "number") {
|
|
2664
2694
|
throw new Error("scale must be a number.");
|
|
@@ -2666,15 +2696,15 @@ var validateScale = (value3) => {
|
|
|
2666
2696
|
};
|
|
2667
2697
|
var scaleOption = {
|
|
2668
2698
|
name: "Scale",
|
|
2669
|
-
cliFlag:
|
|
2670
|
-
description: () => /* @__PURE__ */ jsxs32(
|
|
2699
|
+
cliFlag: cliFlag47,
|
|
2700
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment43, {
|
|
2671
2701
|
children: [
|
|
2672
2702
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
2673
|
-
/* @__PURE__ */
|
|
2703
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2674
2704
|
children: "1.5"
|
|
2675
2705
|
}),
|
|
2676
2706
|
". See ",
|
|
2677
|
-
/* @__PURE__ */
|
|
2707
|
+
/* @__PURE__ */ jsx43("a", {
|
|
2678
2708
|
href: "https://www.remotion.dev/docs/scaling",
|
|
2679
2709
|
children: "Scaling"
|
|
2680
2710
|
}),
|
|
@@ -2685,11 +2715,11 @@ var scaleOption = {
|
|
|
2685
2715
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
2686
2716
|
type: 0,
|
|
2687
2717
|
getValue: ({ commandLine }) => {
|
|
2688
|
-
if (commandLine[
|
|
2689
|
-
validateScale(commandLine[
|
|
2718
|
+
if (commandLine[cliFlag47] !== undefined) {
|
|
2719
|
+
validateScale(commandLine[cliFlag47]);
|
|
2690
2720
|
return {
|
|
2691
2721
|
source: "cli",
|
|
2692
|
-
value: commandLine[
|
|
2722
|
+
value: commandLine[cliFlag47]
|
|
2693
2723
|
};
|
|
2694
2724
|
}
|
|
2695
2725
|
if (currentScale !== null) {
|
|
@@ -2710,16 +2740,16 @@ var scaleOption = {
|
|
|
2710
2740
|
|
|
2711
2741
|
// src/options/throw-if-site-exists.tsx
|
|
2712
2742
|
var DEFAULT5 = false;
|
|
2713
|
-
var
|
|
2743
|
+
var cliFlag48 = "throw-if-site-exists";
|
|
2714
2744
|
var throwIfSiteExistsOption = {
|
|
2715
|
-
cliFlag:
|
|
2745
|
+
cliFlag: cliFlag48,
|
|
2716
2746
|
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.`,
|
|
2717
2747
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
2718
2748
|
getValue: ({ commandLine }) => {
|
|
2719
|
-
if (commandLine[
|
|
2749
|
+
if (commandLine[cliFlag48]) {
|
|
2720
2750
|
return {
|
|
2721
2751
|
source: "cli",
|
|
2722
|
-
value: commandLine[
|
|
2752
|
+
value: commandLine[cliFlag48]
|
|
2723
2753
|
};
|
|
2724
2754
|
}
|
|
2725
2755
|
return {
|
|
@@ -2736,37 +2766,37 @@ var throwIfSiteExistsOption = {
|
|
|
2736
2766
|
};
|
|
2737
2767
|
|
|
2738
2768
|
// src/options/timeout.tsx
|
|
2739
|
-
import { jsx as
|
|
2769
|
+
import { jsx as jsx44, jsxs as jsxs33, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2740
2770
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
2741
2771
|
var validate3 = (value3) => {
|
|
2742
2772
|
if (typeof value3 !== "number") {
|
|
2743
2773
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
2744
2774
|
}
|
|
2745
2775
|
};
|
|
2746
|
-
var
|
|
2776
|
+
var cliFlag49 = "timeout";
|
|
2747
2777
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
2748
2778
|
name: "delayRender() timeout",
|
|
2749
|
-
cliFlag:
|
|
2750
|
-
description: () => /* @__PURE__ */ jsxs33(
|
|
2779
|
+
cliFlag: cliFlag49,
|
|
2780
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment44, {
|
|
2751
2781
|
children: [
|
|
2752
2782
|
"A number describing how long the render may take to resolve all",
|
|
2753
2783
|
" ",
|
|
2754
|
-
/* @__PURE__ */
|
|
2784
|
+
/* @__PURE__ */ jsx44("a", {
|
|
2755
2785
|
href: "https://remotion.dev/docs/delay-render",
|
|
2756
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ jsx44("code", {
|
|
2757
2787
|
children: "delayRender()"
|
|
2758
2788
|
})
|
|
2759
2789
|
}),
|
|
2760
2790
|
" ",
|
|
2761
2791
|
"calls",
|
|
2762
2792
|
" ",
|
|
2763
|
-
/* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ jsx44("a", {
|
|
2764
2794
|
style: { fontSize: "inherit" },
|
|
2765
2795
|
href: "https://remotion.dev/docs/timeout",
|
|
2766
2796
|
children: "before it times out"
|
|
2767
2797
|
}),
|
|
2768
2798
|
". Default: ",
|
|
2769
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2770
2800
|
children: "30000"
|
|
2771
2801
|
})
|
|
2772
2802
|
]
|
|
@@ -2775,10 +2805,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2775
2805
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
2776
2806
|
type: 0,
|
|
2777
2807
|
getValue: ({ commandLine }) => {
|
|
2778
|
-
if (commandLine[
|
|
2808
|
+
if (commandLine[cliFlag49] !== undefined) {
|
|
2779
2809
|
return {
|
|
2780
2810
|
source: "cli",
|
|
2781
|
-
value: commandLine[
|
|
2811
|
+
value: commandLine[cliFlag49]
|
|
2782
2812
|
};
|
|
2783
2813
|
}
|
|
2784
2814
|
if (currentTimeout !== null) {
|
|
@@ -2800,26 +2830,26 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
2800
2830
|
};
|
|
2801
2831
|
|
|
2802
2832
|
// src/options/video-bitrate.tsx
|
|
2803
|
-
import { jsx as
|
|
2833
|
+
import { jsx as jsx45, jsxs as jsxs34, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2804
2834
|
var videoBitrate = null;
|
|
2805
|
-
var
|
|
2835
|
+
var cliFlag50 = "video-bitrate";
|
|
2806
2836
|
var videoBitrateOption = {
|
|
2807
2837
|
name: "Video Bitrate",
|
|
2808
|
-
cliFlag:
|
|
2809
|
-
description: () => /* @__PURE__ */ jsxs34(
|
|
2838
|
+
cliFlag: cliFlag50,
|
|
2839
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment45, {
|
|
2810
2840
|
children: [
|
|
2811
2841
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
2812
2842
|
"'",
|
|
2813
2843
|
"s",
|
|
2814
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2815
2845
|
children: "-b:v"
|
|
2816
2846
|
}),
|
|
2817
2847
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
2818
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2819
2849
|
children: "512K"
|
|
2820
2850
|
}),
|
|
2821
2851
|
" for 512 kbps, ",
|
|
2822
|
-
/* @__PURE__ */
|
|
2852
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2823
2853
|
children: "1M"
|
|
2824
2854
|
}),
|
|
2825
2855
|
" for 1 Mbps."
|
|
@@ -2829,10 +2859,10 @@ var videoBitrateOption = {
|
|
|
2829
2859
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
2830
2860
|
type: "",
|
|
2831
2861
|
getValue: ({ commandLine }) => {
|
|
2832
|
-
if (commandLine[
|
|
2862
|
+
if (commandLine[cliFlag50] !== undefined) {
|
|
2833
2863
|
return {
|
|
2834
2864
|
source: "cli",
|
|
2835
|
-
value: commandLine[
|
|
2865
|
+
value: commandLine[cliFlag50]
|
|
2836
2866
|
};
|
|
2837
2867
|
}
|
|
2838
2868
|
if (videoBitrate !== null) {
|
|
@@ -2852,29 +2882,29 @@ var videoBitrateOption = {
|
|
|
2852
2882
|
};
|
|
2853
2883
|
|
|
2854
2884
|
// src/options/video-cache-size.tsx
|
|
2855
|
-
import { jsx as
|
|
2885
|
+
import { jsx as jsx46, jsxs as jsxs35, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2856
2886
|
var mediaCacheSizeInBytes = null;
|
|
2857
|
-
var
|
|
2887
|
+
var cliFlag51 = "media-cache-size-in-bytes";
|
|
2858
2888
|
var mediaCacheSizeInBytesOption = {
|
|
2859
2889
|
name: "@remotion/media cache size",
|
|
2860
|
-
cliFlag:
|
|
2861
|
-
description: () => /* @__PURE__ */ jsxs35(
|
|
2890
|
+
cliFlag: cliFlag51,
|
|
2891
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment46, {
|
|
2862
2892
|
children: [
|
|
2863
2893
|
"Specify the maximum size of the cache that ",
|
|
2864
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2865
2895
|
children: "<Video>"
|
|
2866
2896
|
}),
|
|
2867
2897
|
" and",
|
|
2868
2898
|
" ",
|
|
2869
|
-
/* @__PURE__ */
|
|
2899
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2870
2900
|
children: "<Audio>"
|
|
2871
2901
|
}),
|
|
2872
2902
|
" from ",
|
|
2873
|
-
/* @__PURE__ */
|
|
2903
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2874
2904
|
children: "@remotion/media"
|
|
2875
2905
|
}),
|
|
2876
2906
|
" may use combined, in bytes. ",
|
|
2877
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__PURE__ */ jsx46("br", {}),
|
|
2878
2908
|
"The default is half of the available system memory when the render starts."
|
|
2879
2909
|
]
|
|
2880
2910
|
}),
|
|
@@ -2882,10 +2912,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
2882
2912
|
docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
|
|
2883
2913
|
type: 0,
|
|
2884
2914
|
getValue: ({ commandLine }) => {
|
|
2885
|
-
if (commandLine[
|
|
2915
|
+
if (commandLine[cliFlag51] !== undefined) {
|
|
2886
2916
|
return {
|
|
2887
2917
|
source: "cli",
|
|
2888
|
-
value: commandLine[
|
|
2918
|
+
value: commandLine[cliFlag51]
|
|
2889
2919
|
};
|
|
2890
2920
|
}
|
|
2891
2921
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -3020,7 +3050,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
3020
3050
|
};
|
|
3021
3051
|
|
|
3022
3052
|
// src/options/video-codec.tsx
|
|
3023
|
-
import { jsx as
|
|
3053
|
+
import { jsx as jsx47, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3024
3054
|
var codec;
|
|
3025
3055
|
var setCodec = (newCodec) => {
|
|
3026
3056
|
if (newCodec === undefined) {
|
|
@@ -3044,11 +3074,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
3044
3074
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
3045
3075
|
};
|
|
3046
3076
|
};
|
|
3047
|
-
var
|
|
3077
|
+
var cliFlag52 = "codec";
|
|
3048
3078
|
var videoCodecOption = {
|
|
3049
3079
|
name: "Codec",
|
|
3050
|
-
cliFlag:
|
|
3051
|
-
description: () => /* @__PURE__ */
|
|
3080
|
+
cliFlag: cliFlag52,
|
|
3081
|
+
description: () => /* @__PURE__ */ jsx47(Fragment47, {
|
|
3052
3082
|
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."
|
|
3053
3083
|
}),
|
|
3054
3084
|
ssrName: "codec",
|
|
@@ -3071,7 +3101,7 @@ var videoCodecOption = {
|
|
|
3071
3101
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
3072
3102
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
3073
3103
|
}
|
|
3074
|
-
const cliArgument = commandLine[
|
|
3104
|
+
const cliArgument = commandLine[cliFlag52];
|
|
3075
3105
|
if (cliArgument) {
|
|
3076
3106
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
3077
3107
|
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.`);
|
|
@@ -3120,12 +3150,12 @@ var videoCodecOption = {
|
|
|
3120
3150
|
};
|
|
3121
3151
|
|
|
3122
3152
|
// src/options/webhook-custom-data.tsx
|
|
3123
|
-
import { jsxs as jsxs36, Fragment as
|
|
3124
|
-
var
|
|
3153
|
+
import { jsxs as jsxs36, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3154
|
+
var cliFlag53 = "webhook-custom-data";
|
|
3125
3155
|
var webhookCustomDataOption = {
|
|
3126
3156
|
name: "Webhook custom data",
|
|
3127
|
-
cliFlag:
|
|
3128
|
-
description: (type) => /* @__PURE__ */ jsxs36(
|
|
3157
|
+
cliFlag: cliFlag53,
|
|
3158
|
+
description: (type) => /* @__PURE__ */ jsxs36(Fragment48, {
|
|
3129
3159
|
children: [
|
|
3130
3160
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
3131
3161
|
" ",
|
|
@@ -3144,7 +3174,7 @@ var webhookCustomDataOption = {
|
|
|
3144
3174
|
};
|
|
3145
3175
|
|
|
3146
3176
|
// src/options/x264-preset.tsx
|
|
3147
|
-
import { jsx as
|
|
3177
|
+
import { jsx as jsx48, jsxs as jsxs37, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
3148
3178
|
var x264PresetOptions = [
|
|
3149
3179
|
"ultrafast",
|
|
3150
3180
|
"superfast",
|
|
@@ -3158,63 +3188,63 @@ var x264PresetOptions = [
|
|
|
3158
3188
|
"placebo"
|
|
3159
3189
|
];
|
|
3160
3190
|
var preset = null;
|
|
3161
|
-
var
|
|
3191
|
+
var cliFlag54 = "x264-preset";
|
|
3162
3192
|
var DEFAULT_PRESET = "medium";
|
|
3163
3193
|
var x264Option = {
|
|
3164
3194
|
name: "x264 Preset",
|
|
3165
|
-
cliFlag:
|
|
3166
|
-
description: () => /* @__PURE__ */ jsxs37(
|
|
3195
|
+
cliFlag: cliFlag54,
|
|
3196
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment49, {
|
|
3167
3197
|
children: [
|
|
3168
3198
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
3169
3199
|
" ",
|
|
3170
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3171
3201
|
children: "h264"
|
|
3172
3202
|
}),
|
|
3173
3203
|
" codec.",
|
|
3174
|
-
/* @__PURE__ */
|
|
3204
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3175
3205
|
"Possible values: ",
|
|
3176
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3177
3207
|
children: "superfast"
|
|
3178
3208
|
}),
|
|
3179
3209
|
", ",
|
|
3180
|
-
/* @__PURE__ */
|
|
3210
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3181
3211
|
children: "veryfast"
|
|
3182
3212
|
}),
|
|
3183
3213
|
",",
|
|
3184
3214
|
" ",
|
|
3185
|
-
/* @__PURE__ */
|
|
3215
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3186
3216
|
children: "faster"
|
|
3187
3217
|
}),
|
|
3188
3218
|
", ",
|
|
3189
|
-
/* @__PURE__ */
|
|
3219
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3190
3220
|
children: "fast"
|
|
3191
3221
|
}),
|
|
3192
3222
|
", ",
|
|
3193
|
-
/* @__PURE__ */
|
|
3223
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3194
3224
|
children: "medium"
|
|
3195
3225
|
}),
|
|
3196
3226
|
",",
|
|
3197
3227
|
" ",
|
|
3198
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3199
3229
|
children: "slow"
|
|
3200
3230
|
}),
|
|
3201
3231
|
", ",
|
|
3202
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3203
3233
|
children: "slower"
|
|
3204
3234
|
}),
|
|
3205
3235
|
", ",
|
|
3206
|
-
/* @__PURE__ */
|
|
3236
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3207
3237
|
children: "veryslow"
|
|
3208
3238
|
}),
|
|
3209
3239
|
",",
|
|
3210
3240
|
" ",
|
|
3211
|
-
/* @__PURE__ */
|
|
3241
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3212
3242
|
children: "placebo"
|
|
3213
3243
|
}),
|
|
3214
3244
|
".",
|
|
3215
|
-
/* @__PURE__ */
|
|
3245
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3216
3246
|
"Default: ",
|
|
3217
|
-
/* @__PURE__ */
|
|
3247
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3218
3248
|
children: DEFAULT_PRESET
|
|
3219
3249
|
})
|
|
3220
3250
|
]
|
|
@@ -3223,7 +3253,7 @@ var x264Option = {
|
|
|
3223
3253
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
3224
3254
|
type: "fast",
|
|
3225
3255
|
getValue: ({ commandLine }) => {
|
|
3226
|
-
const value3 = commandLine[
|
|
3256
|
+
const value3 = commandLine[cliFlag54];
|
|
3227
3257
|
if (typeof value3 !== "undefined") {
|
|
3228
3258
|
return { value: value3, source: "cli" };
|
|
3229
3259
|
}
|
|
@@ -3291,7 +3321,8 @@ var allOptions = {
|
|
|
3291
3321
|
isProductionOption,
|
|
3292
3322
|
askAIOption,
|
|
3293
3323
|
experimentalClientSideRenderingOption,
|
|
3294
|
-
keyboardShortcutsOption
|
|
3324
|
+
keyboardShortcutsOption,
|
|
3325
|
+
forceNewStudioOption
|
|
3295
3326
|
};
|
|
3296
3327
|
|
|
3297
3328
|
// src/options/options-map.ts
|