lame

Changing sound volume or bitrate of mp3 files with lame

Sometimes the recording level of mp3 files is very low. If I do some jogging next to a busy road, I cannot hear anything even when the sound volume is on the max. Therefore I have to increase the volume of the mp3 file. Using lame you can do it with the following script:

#!/bin/bash
while [ $# -ge 1 ]; do
infn=$1
outfn="${infn%%.mp3}_3x.mp3"
echo $outfn
lame --mp3input -v --scale=3 $infn $outfn
shift 1
done

Re-encoding mp3 files into smaller files with lame

My old mp3 player broke quite a while ago and now I am using a very primitive one that has only 128 MB and which refused to play some mp3s. In order to fit more podcasts into the memory and to play back those unplayable mp3 files I re-encode them with lame:
lame --mp3input -V 3 --strictly-enforce-ISO --resample 12 original.mp3 reencoded.mp3

Shell script to downsample podcasts

I have a very basic mp3 player with only 128 MB memory. I mostly listen to podcasts which are automatically downloaded by Amarok into the folder ~/.kde/share/apps/amarok/podcasts/data. In order to fit many of them to the limited memory and to have them available from anywhere, I have been writing a script that automatically downsamples them as they arrive and puts them online to my web server. The script is executed hourly by the crontab. The relevant files look like this:

Pages