Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: what does the "--max-delay" switch in opusenc do? (Read 1265 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

what does the "--max-delay" switch in opusenc do?

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

Re: what does the "--max-delay" switch in opusenc do?

Reply #1
AFAICT it only affects how many ogg pages 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.

Re: what does the "--max-delay" switch in opusenc do?

Reply #2
AFAICT it only affects how many ogg pages 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!

 

Re: what does the "--max-delay" switch in opusenc do?

Reply #3
I wonder if that option was supposed to be named "--mux-delay" instead, since it controls the Ogg muxer delay.