Skip to content

🎥 Make videos programmatically with React

alright

Jonny Burgeredab64387e3a
diff --git a/packages/docs/docs/troubleshooting/webgl2-context.mdx b/packages/docs/docs/troubleshooting/webgl2-context.mdx
index 0f06d985e4..bceb4211e8 100644
--- a/packages/docs/docs/troubleshooting/webgl2-context.mdx
+++ b/packages/docs/docs/troubleshooting/webgl2-context.mdx
@@ -38,12 +38,19 @@ Config.setChromiumOpenGlRenderer('angle');
Pass `gl: "angle"` in [`chromiumOptions`](/docs/renderer/render-media#gl):
```tsx twoslash
-import {renderMedia} from '@remotion/renderer';
+const serveUrl = '/path/to/bundle';
+
+import {renderMedia, selectComposition} from '@remotion/renderer';
+
+const composition = await selectComposition({
+ serveUrl,
+ id: 'MyComp',
+});
// ---cut---
await renderMedia({
- composition: 'MyComp',
- serveUrl: bundleLocation,
+ composition,
+ serveUrl,
codec: 'h264',
outputLocation: 'out/video.mp4',
chromiumOptions: {
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 843feb786f..bb298dc90f 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -6718,6 +6718,15 @@ export const articles = [
noAi: false,
slug: 'troubleshooting/video-has-no-sound',
},
+ {
+ id: 'troubleshooting/webgl2-context',
+ title: 'Failed to acquire WebGL2 context',
+ relativePath: 'docs/troubleshooting/webgl2-context.mdx',
+ compId: 'articles-docs-troubleshooting-webgl2-context',
+ crumb: 'Troubleshooting',
+ noAi: false,
+ slug: 'troubleshooting/webgl2-context',
+ },
{
id: 'upgrading',
title: 'Upgrading Remotion',
diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-webgl2-context.png b/packages/docs/static/generated/articles-docs-troubleshooting-webgl2-context.png
new file mode 100644
index 0000000000..8aa9c4f2b2
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-troubleshooting-webgl2-context.png differ