Skip to content

🎥 Make videos programmatically with React

Change title to rendering transparent videos

JonnyBurgerf8e0500939c9
diff --git a/packages/docs/docs/transparent-videos.mdx b/packages/docs/docs/transparent-videos.mdx
index 82d0926fa9..4fd2542b62 100644
--- a/packages/docs/docs/transparent-videos.mdx
+++ b/packages/docs/docs/transparent-videos.mdx
@@ -1,11 +1,12 @@
---
image: /generated/articles-docs-transparent-videos.png
id: transparent-videos
-title: Transparent videos
-crumb: "Techniques"
+title: Rendering transparent videos
+sidebar_label: Transparent videos
+crumb: 'Techniques'
---
-import { TransparentVideoDemo } from "../components/TransparentVideoDemo";
+import {TransparentVideoDemo} from '../components/TransparentVideoDemo';
```twoslash include example
const MyVideo: React.FC<{
@@ -37,11 +38,11 @@ In order to create a transparent video, you need at least version 1.4 of Remotio
If you want to set these options and persist them, add this to your `remotion.config.ts` file (create it if you don't yet have one);
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
-Config.setVideoImageFormat("png");
-Config.setPixelFormat("yuva420p");
-Config.setCodec("vp8");
+Config.setVideoImageFormat('png');
+Config.setPixelFormat('yuva420p');
+Config.setCodec('vp8');
```
You can also set the settings on the command line:
@@ -58,12 +59,12 @@ ProRes is supported by Final Cut Pro, Adobe Premiere and Davinci Resolve.
Supported since v2.1.7, you can set the codec to `prores` and choose a ProRes profile with alpha support: Either: `4444` or `hq`. The pixel format must be `yuva444p10le`.
```tsx twoslash
-import { Config } from "@remotion/cli/config";
+import {Config} from '@remotion/cli/config';
-Config.setVideoImageFormat("png");
-Config.setPixelFormat("yuva444p10le");
-Config.setCodec("prores");
-Config.setProResProfile("4444");
+Config.setVideoImageFormat('png');
+Config.setPixelFormat('yuva444p10le');
+Config.setCodec('prores');
+Config.setProResProfile('4444');
```
You can also set the settings on the command line:
@@ -89,7 +90,7 @@ Given the poor browser support, consider making two versions of a video, one wit
It's a good practice to set a default when defining the composition:
```tsx twoslash {7-9}
-import { Composition } from "remotion";
+import {Composition} from 'remotion';
// @include: example-MyVideo
// ---cut---
<Composition