Skip to main content

Prefer lossless

Uses a lossless audio codec, if one is available for the codec. If you setaudioCodec, it takes priority over preferLossless.

CLI flag​

--prefer-lossless

The following CLI commands accept this option:

APIs that have this option​

The following APIs accept this option:

Config file​

remotion.config.ts
Config.setPreferLosslessAudio(true);

See also​