Tuesday, November 14, 2006

converts bitrates for mp3s

#!/bin/bash -
# mp32mp3

FILES=`ls *.mp3`

for i in $FILES; do
OUT=`echo $i | sed -e 's/.mp3//'`
lame -h -b 32 $i $OUT.mp3a
done


converts the bitrate to 32kbs for all the mp3s in a directory.

Rename files

#!/bin/bash -
# mp3a to mp3

FILES=`ls *.mp3a`

for i in $FILES; do
OUT=`echo $i | sed -e 's/.mp3a//'`
mv $i $OUT.mp3
done


renames files from mp3 to mp3a

Download WAX files using mplayer

mplayer -playlist http://linkto.wax -ao pcm:file=/home/username/filename`date +%b%d_%H%M%P_%Y`.wav -vc dummy -vo null ;

Will save the file as filename(with date).wav