Back to Remotion

getAvailableVideoCodecs()

packages/docs/docs/webcodecs/get-available-video-codecs.mdx

4.0.460843 B
Original Source

:::warning We are phasing out Remotion WebCodecs and are moving to Mediabunny! :::

Given a container, get a list of video codecs that the container can hold.
This does not mean that a any video stream of this codec can be put into the container.
Use canReencodeVideoTrack() and canCopyVideoTrack() to determine this.

tsx
import {getAvailableVideoCodecs} from '@remotion/webcodecs';

getAvailableVideoCodecs({container: 'webm'}); // ['vp8', 'vp9']

See also