ffmpeg -i input.wav -c:a libopus -b:a 96k output.opus

Category: Media & Conversion

ffmpeg -i input.wav -c:a libopus -b:a 96k output.opus

Encode audio as Opus at a target bitrate

Encodes audio with the Opus codec at a target bitrate of 96 kbps. Opus beats MP3 at low bitrates and is the default for web audio and many chat apps. -b:a sets the bitrate, so higher values mean better quality and bigger files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.