Skip to main content

getAvailableVideoCodecs()

给定一个容器,获取该容器可以包含的视频编码列表。 这并不意味着任何该编码的视频流都可以放入该容器。 使用 canReencodeVideoTrack()canCopyVideoTrack() 来确定这一点。

🌐 Given a container, get a list of video codecs that the container can hold.
This does not mean that a any video stream of this codec can be put into the container.
Use canReencodeVideoTrack() and canCopyVideoTrack() to determine this.

Get available video codecs for a container
import {getAvailableVideoCodecs} from '@remotion/webcodecs'; getAvailableVideoCodecs({container: 'webm'}); // ['vp8', 'vp9']

另请参阅

🌐 See also