Skip to main content

getAvailableAudioCodecs()

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.

import {getAvailableAudioCodecs} from '@remotion/webcodecs';

getAvailableAudioCodecs({container: 'webm'}); // ['opus']

See also