HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: darkalex on 2023-04-28 09:30:10

Title: what does the "--max-delay" switch in opusenc do?
Post by: darkalex on 2023-04-28 09:30:10
I have searched the internet upside down but I am unable to get an explanation about what exactly does the --max-delay switch in opusenc do to the encoded file?

Does it have any effect on the encoding quality or bitrate?

Any insights would be really appreciated
Title: Re: what does the "--max-delay" switch in opusenc do?
Post by: danadam on 2023-04-28 09:53:36
AFAICT it only affects how many ogg pages (https://en.wikipedia.org/wiki/Ogg_page) are created. I ran opusenc 3 times, with max-delay 0, 500 and 1000:
Code: [Select]
Wrote: 369876 bytes, 1501 packets, 1503 pages
Overhead: 11.6% (container+metadata)
...
Wrote: 330996 bytes, 1501 packets, 63 pages
Overhead: 1.21% (container+metadata)
...
Wrote: 330186 bytes, 1501 packets, 33 pages
Overhead: 0.963% (container+metadata)
After decoding, all 3 files produced the same PCM data.
Title: Re: what does the "--max-delay" switch in opusenc do?
Post by: darkalex on 2023-04-28 17:30:36
AFAICT it only affects how many ogg pages (https://en.wikipedia.org/wiki/Ogg_page) are created. I ran opusenc 3 times, with max-delay 0, 500 and 1000:
Code: [Select]
Wrote: 369876 bytes, 1501 packets, 1503 pages
Overhead: 11.6% (container+metadata)
...
Wrote: 330996 bytes, 1501 packets, 63 pages
Overhead: 1.21% (container+metadata)
...
Wrote: 330186 bytes, 1501 packets, 33 pages
Overhead: 0.963% (container+metadata)
After decoding, all 3 files produced the same PCM data.

Thank you so much for solving my query!
Title: Re: what does the "--max-delay" switch in opusenc do?
Post by: Octocontrabass on 2023-04-28 23:04:02
I wonder if that option was supposed to be named "--mux-delay" instead, since it controls the Ogg muxer delay.