Skip to content

🎥 Make videos programmatically with React

explain in docs

Jonny Burger6ef0ee5eba54
diff --git a/packages/dockerfiles/Dockerfile.al2023 b/packages/dockerfiles/Dockerfile.al2023
index bfc0f9dbea..15156c55d2 100644
--- a/packages/dockerfiles/Dockerfile.al2023
+++ b/packages/dockerfiles/Dockerfile.al2023
@@ -6,5 +6,19 @@ RUN git clone https://github.com/remotion-dev/template-helloworld /usr/app
RUN cd /usr/app
RUN yum install nodejs -y
RUN npm i
-RUN yum install mesa-libgbm libX11 libXrandr libdrm libXdamage libXfixes dbus-libs libXcomposite alsa-lib nss dbus at-spi2-core atk at-spi2-atk -y
+RUN yum install -y \
+ mesa-libgbm \
+ libX11 \
+ libXrandr\
+ libdrm \
+ libXdamage \
+ libXfixes \
+ dbus -libs\
+ libXcomposite \
+ alsa -lib \
+ nss \
+ dbus \
+ at-spi2-core \
+ atk \
+ at-spi2-atk
RUN npx remotion compositions
diff --git a/packages/docs/docs/cli/browser/ensure.mdx b/packages/docs/docs/cli/browser/ensure.mdx
index 87cf0eb81d..fe4c5b4ef6 100644
--- a/packages/docs/docs/cli/browser/ensure.mdx
+++ b/packages/docs/docs/cli/browser/ensure.mdx
@@ -5,6 +5,8 @@ crumb: "@remotion/cli"
sidebar_label: "ensure"
---
+# npx remotion browser ensure<AvailableFrom v="4.0.137" />
+
Ensures that Remotion has a browser it can use for rendering.
```
@@ -17,11 +19,12 @@ npx remotion browser ensure
[Path to a custom Chrome executable](/docs/config#setbrowserexecutable). If not specified and Remotion cannot find one, one will be downloaded by this command.
-### `--log`<AvailableFrom v="4.0.137" />
+### `--log`
<Options id="log" cli />
## See also
+- [Source code for this command](https://github.com/remotion-dev/remotion/blob/main/packages/cli/src/browser/ensure.ts)
- [Chrome Headless Shell](/docs/miscellaneous/chrome-headless-shell)
- [`ensureBrowser()`](/docs/renderer/ensure-browser)
diff --git a/packages/docs/docs/miscellaneous/linux-dependencies.mdx b/packages/docs/docs/miscellaneous/linux-dependencies.mdx
new file mode 100644
index 0000000000..64cd8d66d5
--- /dev/null
+++ b/packages/docs/docs/miscellaneous/linux-dependencies.mdx
@@ -0,0 +1,65 @@
+---
+sidebar_label: Linux Dependencies
+title: Linux Dependencies
+crumb: "FAQ"
+---
+
+If you are on Linux, Chrome requires some shared libraries to be installed.
+
+## Ubuntu
+
+```bash
+RUN apt install -y \
+ libnss3 \
+ libdbus-1-3 \
+ libatk1.0-0 \
+ libasound2 \
+ libxrandr2 \
+ libxkbcommon-dev \
+ libxfixes3 \
+ libxcomposite1 \
+ libxdamage1 \
+ libgbm-dev \
+ libatk-bridge2.0-0
+```
+
+## Debian
+
+```bash
+RUN apt install -y \
+ libnss3 \
+ libdbus-1-3 \
+ libatk1.0-0 \
+ libgbm-dev \
+ libasound2 \
+ libxrandr2 \
+ libxkbcommon-dev \
+ libxfixes3 \
+ libxcomposite1 \
+ libxdamage1 \
+ libatk-bridge2.0-0
+```
+
+## Amazon Linux 2023
+
+```bash
+RUN yum install -y \
+ mesa-libgbm \
+ libX11 \
+ libXrandr\
+ libdrm \
+ libXdamage \
+ libXfixes \
+ dbus -libs\
+ libXcomposite \
+ alsa -lib \
+ nss \
+ dbus \
+ at-spi2-core \
+ atk \
+ at-spi2-atk
+```
+
+## Alpine Linux
+
+Not supported due to to unsupported Libc symbols.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 731220629e..bd1c4e1aca 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -913,6 +913,7 @@ module.exports = {
"chromium-flags",
"miscellaneous/changing-temp-dir",
"miscellaneous/chrome-headless-shell",
+ "miscellaneous/linux-dependencies",
"gl-options",
"bun",
"standalone",