Changing sound volume or bitrate of mp3 files with lame
Last modified on July 24, 2026 • 1 min read • 119 wordsSometimes the recording level of mp3 files is very low.
#!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn="${infn%%.mp3}_3x.mp3"echo $outfnlame --mp3input -v --scale=3 $infn $outfnshift 1doneThe only problem is that filnames with blank spaces make this script to collapse. Have to figure out something else. Also the bitrate can be modified in this way:#!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn="${infn%%.mp3}_LQ.mp3"echo $outfnlame --mp3input -V 9 $infn $outfnshift 1done-V 9 is the lowest bitrate/quality -V 0 is the highest.