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 containertsx
import {getDefaultVideoCodec } from '@remotion/webcodecs';getDefaultVideoCodec ({container : 'webm'}); // 'vp8'
Get the default video codec for a containertsx
import {getDefaultVideoCodec } from '@remotion/webcodecs';getDefaultVideoCodec ({container : 'webm'}); // 'vp8'
Default video codecs
Container | Default video codec |
---|---|
webm | "vp8" |
mp4 | "h264" |
wav | null |