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'

Default video codecs

ContainerDefault video codec
webm"vp8"
mp4"h264"
wavnull

See also