Skip to main content

getDefaultVideoCodec()

Part of the @remotion/webcodecs package.

warning

Unstable API: This package is experimental. We might change the API at any time, until we remove this notice.

Gets the default video codec for a container that @remotion/webcodecs uses if no other audio codec was specified.

Get the default video codec for a container
tsx
import {getDefaultVideoCodec} from '@remotion/webcodecs';
 
getDefaultVideoCodec({container: 'webm'}); // 'vp8'
Get the default video codec for a container
tsx
import {getDefaultVideoCodec} from '@remotion/webcodecs';
 
getDefaultVideoCodec({container: 'webm'}); // 'vp8'

Currently, the only supported container is webm, for which the default video codec is vp8.

See also