Skip to content

🎥 Make videos programmatically with React

Docs: Inline video matting model in example

Jonny Burgerb9ecba5f1414
diff --git a/packages/docs/docs/video-matting/index.mdx b/packages/docs/docs/video-matting/index.mdx
index cf494e9379..688d4c7088 100644
--- a/packages/docs/docs/video-matting/index.mdx
+++ b/packages/docs/docs/video-matting/index.mdx
@@ -20,14 +20,13 @@ import {TableOfContents} from './table-of-contents';
import {downloadVideoMattingModel, separateVideoLayers} from '@remotion/video-matting';
export const matteVideo = async (file: File) => {
- const model = 'modnet';
await downloadVideoMattingModel({
- model,
+ model: 'modnet',
onProgress: ({progress}) => console.log('Downloading model:', progress),
});
await using layers = await separateVideoLayers({
src: file,
- model,
+ model: 'modnet',
onProgress: ({progress}) => console.log('Separating layers:', progress),
});