opus-tools icon indicating copy to clipboard operation
opus-tools copied to clipboard

Option for opusenc to omit DTX/silence frames from output completely and provide options for controlling aggressivity of silence detection

Open vadimkantorov opened this issue 7 months ago • 0 comments

Hi @mark4o!

In https://stackoverflow.com/a/40699361/445810 you suggest to benefit from DTX-enabled smaller output size by omitting 2-byte-or-less packets from opusenc output as they encode exact silence.

I propose to graduate this feature from https://github.com/xiph/opus/blob/master/src/opus_demo.c to mainline opusenc. It's very useful to encode two-channel call recordings + in --channels discrete mode, where every channel contains a lot of silence. It would also be nice to be able to configure the silence detection and pass a speech-detection / silence threshold. It's nice to have an option to omit representing the sound of breath/sighs.

vadimkantorov avatar Dec 06 '23 23:12 vadimkantorov