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