# Opus Conversion Test Testing is done with different allocation of maximum frame in milliseconds, with 192kbps VBR, maximum encoding complexity, with no expected packet loss during encode. According to ``opusenc`` help menu: ``` --framesize n Set maximum frame size in milliseconds (2.5, 5, 10, 20, 40, 60, default: 20) ``` ## --framesize 60 ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 --framesize 60 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (audio) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 60ms packets, 192kbit/sec VBR Preskip: 312 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.3 seconds Runtime: 7 seconds (43.47x realtime) Wrote: 7173916 bytes, 5072 packets, 319 pages Bitrate: 187.545kbit/s (without overhead) Instant rates: 0.666667kbit/s to 309.867kbit/s (5 to 2324 bytes per packet) Overhead: 0.56% (container+metadata) ``` ## --framesize 40 ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 --framesize 40 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (audio) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 40ms packets, 192kbit/sec VBR Preskip: 312 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.3 seconds Runtime: 7 seconds (43.47x realtime) Wrote: 7166367 bytes, 7608 packets, 307 pages Bitrate: 187.347kbit/s (without overhead) Instant rates: 0.6kbit/s to 336kbit/s (3 to 1680 bytes per packet) Overhead: 0.561% (container+metadata) ``` ## --framesize 20 (default option) Not passing --framesize will default to 20. ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (audio) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 20ms packets, 192kbit/sec VBR Preskip: 312 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.3 seconds Runtime: 7 seconds (43.47x realtime) Wrote: 7160829 bytes, 15215 packets, 307 pages Bitrate: 187.186kbit/s (without overhead) Instant rates: 1.2kbit/s to 380.4kbit/s (3 to 951 bytes per packet) Overhead: 0.569% (container+metadata) ``` ## --framesize 10 ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 --framesize 10 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (audio) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 10ms packets, 192kbit/sec VBR Preskip: 312 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.29 seconds Runtime: 7 seconds (43.47x realtime) Wrote: 7075587 bytes, 30429 packets, 307 pages Bitrate: 184.968kbit/s (without overhead) Instant rates: 2.4kbit/s to 378.4kbit/s (3 to 473 bytes per packet) Overhead: 0.567% (container+metadata) ``` ## --framesize 5 ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 --framesize 5 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (low-delay) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 5ms packets, 192kbit/sec VBR Preskip: 120 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.285 seconds Runtime: 9 seconds (33.81x realtime) Wrote: 7166066 bytes, 60857 packets, 307 pages Bitrate: 186.565kbit/s (without overhead) Instant rates: 4.8kbit/s to 374.4kbit/s (3 to 234 bytes per packet) Overhead: 0.976% (container+metadata) ``` ## --framesize 2.5 ```bash $ opusenc --vbr --bitrate 192 --comp 10 --expect-loss 0 --framesize 2.5 "01. DEAREST DROP.wav" "01. DEAREST DROP.ogg" ``` Result: ``` Encoding using libopus 1.2.1 (low-delay) ----------------------------------------------------- Input: 44.1kHz 2 channels Output: 2 channels (2 coupled) 2.5ms packets, 192kbit/sec VBR Preskip: 120 Encoding complete ----------------------------------------------------- Encoded: 5 minutes and 4.283 seconds Runtime: 10 seconds (30.43x realtime) Wrote: 7425244 bytes, 121713 packets, 480 pages Bitrate: 191.658kbit/s (without overhead) Instant rates: 9.6kbit/s to 352kbit/s (3 to 110 bytes per packet) Overhead: 1.82% (container+metadata) ```