Back to Remotion

getDefaultVideoCodec()

packages/docs/docs/webcodecs/get-default-video-codec.mdx

4.0.462925 B
Original Source

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

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.

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

getDefaultVideoCodec({container: 'webm'}); // 'vp8'

import {DefaultVideoCodecs} from './DefaultVideoCodecs';

Default video codecs

<DefaultVideoCodecs />

See also