To my way of thinking, to compress an mp3 music file, I need to reduce the weight in MB. You make mp3 portable so that it can be sent by email. You can make half MB by converting it from stereo to mono, you will throw out one audio track. On the small speakers of my PC computer, I honestly donβt hear the difference between stereo sound (4 Mb) and 128 Mb / s and mp3 file (1 MB) at 32 Kb / s. So, if you really want to compress the mp3 file, I would suggest the following ffmpeg, where -ac 1 means one audio channel (mono). exec ("ffmpeg -i inputfile.mp3 -ab 32k -ac 1 outputfile.mp3")
I noticed that my comment was rejected. No wonder. I forgot to say that 16 kbps monaural MP3 is much better than 16 kbps stereo. You may not compress MP3 by converting it from stereo to mono, but you maintain better sound quality, which allows you to compress MP3 further. I did this for many years, when I still had dial-up Internet access, I had to so that I could send an email in MP3. Sorry for the oversight, I just forgot ... it was many years ago.
dirk
source share