getAvailableAudioCodecs()
给定一个容器,获取该容器可以包含的音频编解码器列表。
这并不意味着任何此编解码器的音频流都可以放入该容器。
使用 canReencodeAudioTrack() 和 canCopyAudioTrack() 来确定这一点。
🌐 Given a container, get a list of audio codecs that the container can hold.
This does not mean that a any audio stream of this codec can be put into the container.
Use canReencodeAudioTrack() and canCopyAudioTrack() to determine this.
Get available audio codecs for a containerimport {getAvailableAudioCodecs } from '@remotion/webcodecs';getAvailableAudioCodecs ({container : 'webm'}); // ['opus']
另请参阅
🌐 See also