Interface: VolumeOptions
Defined in: packages/player/src/filters.ts:692
AudioFilters.volume options.
Properties
gainDb
readonly gainDb: number;
Defined in: packages/player/src/filters.ts:704
Gain in dB. Negative values buy headroom ahead of an EQ boost.
The ±100 dB bound is ours, not ffmpeg's. volume's only gain option
is an expression string (af_volume.c:67-68, AV_OPT_TYPE_STRING
defaulting to "1.0") evaluated by av_expr_eval, so libavfilter imposes
no numeric range at all. We write <n>dB, which libavutil's expression
parser understands natively and — importantly — parses sign-first, so
-6dB is −6 dB and not -(6dB) (libavutil/eval.c:120-123 and the
parse_dB special case at :574-587).