How to reduce the size of mp3s in linux? [closed]
You can use lame
with the --mp3input
option.
For example you can do a downsampling
of the mp3 quality, specifing the a new lower bitrate
using the -b
option. For example if your starting mp3 has a quality of 256kbs
you can lower it's bitrate to 128kbs
:
lame --mp3input -b 128 input.mp3 output.mp3
Depending from the input file bitrate, the output.mp3
file has lower quality and so a file size reduction.
From the lame
manuale page:
--mp3input
Assume the input file is a MP3 file. Useful for downsampling from one mp3 to another. As an example, it can be useful for streaming through an IceCast server.
It depends on what you want to achieve. avconv (formerly ffmpeg) is a good tool, but there's no one size fits all solution pertaining the parameters, since it depends heavily on the type of audio data (music, speech, etc) and the original bitrate, etc. Try the different settings, maybe convert it to mono, see what produces still acceptable results for you.
As a general rule of thumb: Speech compresses really well, downsampling it to 11kHz may still give acceptable results, but music can also be downsized by decreasing the bitrate or switching to mono.