Boosting volume - library vs. ffmpeg #1923
-
Hello, what is the better way or is there any difference between boosting volume over 100 % by the library (allow_boost=true, setVolume(2.0)) or boosting the volume using ffmpeg and setting the volume in the code to 100 %? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not sure what ffmpeg is doing exactly: but setting allow_boost to true is using the linear volume control so if you are setting a volume of 2.0 all the samples are multiplied by 2.0 (and clipped if they exheed the valid range). So, you will need to know the effective input volume range to avoid the distortions caused by the clipping! |
Beta Was this translation helpful? Give feedback.
Not sure what ffmpeg is doing exactly: but setting allow_boost to true is using the linear volume control so if you are setting a volume of 2.0 all the samples are multiplied by 2.0 (and clipped if they exheed the valid range).
So, you will need to know the effective input volume range to avoid the distortions caused by the clipping!
This could be determined with a VolumeMeter ...