Gain adjustment in odr-audioenc?

175 views
Skip to first unread message

Peter Whisker

unread,
Mar 10, 2017, 9:52:09 AM3/10/17
to mmbtools
Hi

When encoding from a stream using -v, the input is processed through libvlc. I have tried unsuccessfully to alter the gain of the imput using the -L --norm-max-level, -L --compressor-rms-peak and -L --gain cvlc settings but none of them seem to have any effect on the level of audio passed through the encoder. Perhaps this is because these controls work on the output side in VLC and the part of libvlc used is only the input?

Is there any way to adjust the gain? I have one icecast feed I use which is at 0db and I would like to take adjust it down to -6dB.

Thanks
Peter

Matthias Brändli

unread,
Mar 10, 2017, 11:28:55 AM3/10/17
to crc-mm...@googlegroups.com
Hi,

From the ODR-AudioEnc usage screen:

-g, --vlc-gain=db Enable VLC audio compressor,
with given compressor-makeup value.
Use this as a workaround to
correct the gain for streams that are
much too loud.

Does that work?

mpb
> --
> You received this message because you are subscribed to the Google
> Groups "mmbtools" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crc-mmbtools...@googlegroups.com
> <mailto:crc-mmbtools...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Peter Whisker

unread,
Mar 10, 2017, 11:37:31 AM3/10/17
to mmbtools, matthias...@mpb.li
I've tried with -g=20 and -g=-20 and neither seems to make any difference. I am using your latest odr-audioenc with the samplerate fix.

Peter

Matthias Brändli

unread,
Mar 10, 2017, 11:51:29 AM3/10/17
to crc-mm...@googlegroups.com
and --vlc-gain=20 ?

I'm not sure if

-g=20

is equivalent to

-g 20

mpb
> > an email to crc-mmbtools...@googlegroups.com <javascript:>
> > <mailto:crc-mmbtools...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mmbtools" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to crc-mmbtools...@googlegroups.com
> <mailto:crc-mmbtools...@googlegroups.com>.

Matthias Brändli

unread,
Mar 10, 2017, 11:56:25 AM3/10/17
to crc-mm...@googlegroups.com
Yeah sorry, the option gets passed directly to VLC, so if you put -g=20,
VLC gets

--compressor-makeup==20

instead of

--compressor-makeup=20

With -g 20 I see an effect, with -g=20 I don't.

mpb

888...@gmail.com

unread,
Mar 10, 2017, 11:59:52 AM3/10/17
to mmbtools, matthias...@mpb.li
Option -g is compressor? how to change gain without use compression?
>>     > <mailto:crc-mmbtools+unsub...@googlegroups.com <javascript:>>.
>>     > For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "mmbtools" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to crc-mmbtools...@googlegroups.com

Peter Whisker

unread,
Mar 11, 2017, 11:37:57 AM3/11/17
to crc-mm...@googlegroups.com
Hi, thanks. -g -6 does what I need :-)

Peter

>>     > <mailto:crc-mmbtools+unsub...@googlegroups.com <javascript:>>.

>>     > For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "mmbtools" group.
>> To unsubscribe from this group and stop receiving emails from it, send

>> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "mmbtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crc-mmbtools+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages