Skip to main content

getDefaultVideoCodec()

属于 @remotion/webcodecs 软件包的一部分.

🌐 Part of the @remotion/webcodecs package.

warning

不稳定的 API:此软件包处于实验阶段。在我们移除此提示之前,API 可能随时更改。

如果未指定其他音频编解码器,则获取 @remotion/webcodecs 使用的容器的默认视频编解码器。

🌐 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
import {getDefaultVideoCodec} from '@remotion/webcodecs'; getDefaultVideoCodec({container: 'webm'}); // 'vp8'

默认视频编解码器

🌐 Default video codecs

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

另请参阅

🌐 See also