Back to Remotion

getAvailableAudioCodecs()

packages/docs/docs/webcodecs/get-available-audio-codecs.mdx

4.0.465837 B
Original Source

:::warning We are phasing out Remotion WebCodecs and are moving to Mediabunny! :::

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.

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

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

See also