Skip to main content

getAvailableVideoCodecs()

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.

Get available video codecs for a container
tsx
import {getAvailableVideoCodecs} from '@remotion/webcodecs';
 
getAvailableVideoCodecs({container: 'webm'}); // ['vp8', 'vp9']
Get available video codecs for a container
tsx
import {getAvailableVideoCodecs} from '@remotion/webcodecs';
 
getAvailableVideoCodecs({container: 'webm'}); // ['vp8', 'vp9']

See also