Skip to main content

getAvailableContainers()

Returns an array of available containers that can be used with the convertMedia function.

Getting available containers
tsx
import {getAvailableContainers} from '@remotion/webcodecs';
 
const containers = getAvailableContainers();
console.log(containers);
Getting available containers
tsx
import {getAvailableContainers} from '@remotion/webcodecs';
 
const containers = getAvailableContainers();
console.log(containers);
note

New containers may be added to this function and it will not be considered a breaking change.

As a type

If you need a TypeScript type that covers the available output containers, you can import the type definition:

Type definition
tsx
import type {ConvertMediaContainer} from '@remotion/webcodecs';
(alias) type ConvertMediaContainer = "webm" | "mp4" | "wav" import ConvertMediaContainer
Type definition
tsx
import type {ConvertMediaContainer} from '@remotion/webcodecs';
(alias) type ConvertMediaContainer = "webm" | "mp4" | "wav" import ConvertMediaContainer

See also