Skip to content

How to change the volume level

If one or a few of your sound sources have higher or lower volume level than the others you might want to adjust it (feature available in version 21.04 of Flussonic). To change the volume level of the transcoded stream in Flussonic Media Server you have to add that option (avol) in the description of the stream in the configuration file (/etc/flussonic/flussonic.conf) as follows:


stream example {
  url udp://239.0.0.1:1234;
  transcoder vb=copy ab=128k acodec=aac avol=2;
}

The value can be specified either in decibels (dB) or it can be an integer/float (3, 0.5, etc.). By default avol=1.

  • If it is just an integer or a float, the output audio volume is calculated by this formula:
    output_volume = avol * input_volume
    Thus, in the previous example we increased the volume level by 2: avol=2. Then if you specify avol=0.5, it will be decreased by 2:

stream example {
  url udp://239.0.0.1:1234;
  transcoder vb=copy ab=128k acodec=aac avol=0.5;
}

  • If specified in decibels (dB), the output audio volume is calculated by slightly different formula:
    output_volume = input_volume +/- avol,
    depending whether it is a positive or a negative value:

stream example {
  url udp://239.0.0.1:1234;
  transcoder vb=copy ab=128k acodec=aac avol=-6dB;
}  

Now you know how to change the volume of the transcoded stream in Flussonic Media Server.

Note

Feature is available in version 21.04 of Flussonic.