== test file: voice.wav (48 kHz stereo, 20 s, gated noise) == published: ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k voice.opus file: voice.wav to Opus at 96 kbps exit=0 published: ffmpeg -v error -i voice.wav -c:a libmp3lame -b:a 128k voice.mp3 file: voice.wav to MP3 at 128 kbps exit=0 published: ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k -vbr off voice-cbr.opus file: voice.wav to Opus at a constant 96 kbps exit=0 published: wc -c voice.opus voice-cbr.opus voice.mp3 file: sizes in bytes (Opus default 155,368; Opus constant 241,945; MP3 321,069) 155368 voice.opus 241945 voice-cbr.opus 321069 voice.mp3 718382 total exit=0 published: ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.opus file: voice.opus opus,48000,2 exit=0 published: ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.mp3 file: voice.mp3 mp3,48000,2 exit=0 edge: voice.wav is mono at 16 kHz (phone-style, 5 s). Opus comes out at 48 kHz, MP3 keeps 16 kHz published: ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k voice.opus file: phone-style voice.wav to Opus at 96 kbps exit=0 published: ffmpeg -v error -i voice.wav -c:a libmp3lame -b:a 128k voice.mp3 file: phone-style voice.wav to MP3 at 128 kbps exit=0 published: ffmpeg -v error -i voice.wav -c:a libopus -b:a 96k -vbr off voice-cbr.opus file: phone-style voice.wav to Opus at a constant 96 kbps exit=0 published: wc -c voice.opus voice-cbr.opus voice.mp3 file: sizes in bytes for the 5 s mono file 58833 voice.opus 60790 voice-cbr.opus 81837 voice.mp3 201460 total exit=0 published: ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.opus file: voice.opus (48000 Hz although the source was 16000) opus,48000,1 exit=0 published: ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of csv=p=0 voice.mp3 file: voice.mp3 (16000 Hz) mp3,16000,1 exit=0 edge: 64k on the 5 s mono 16 kHz voice-like file (added after verifier round 1; unseeded pink noise, sizes vary a little per run) published: ffmpeg -v error -i voice.wav -c:a libopus -b:a 64k voice.opus ; ffmpeg -v error -i voice.wav -c:a libmp3lame -b:a 64k voice.mp3 ; wc -c 38629 voice.opus 40941 voice.mp3 exit=0 (Opus 5.6% smaller) edge: 96 kHz stereo white noise, 3 s, MP3 at 128k published: ffmpeg -v error -i voice.wav -c:a libmp3lame -b:a 128k voice.mp3 ; ffprobe (published line) mp3,48000,2 exit=0 (MP3 does not keep a 96000 Hz source rate; it is resampled to 48000)