A part of my plan is to backup all my mp3's to dvd, and then maybe even delete some of them such that I can play them from the dvd I've been busy converting from flac to mp3 and wav to mp3.
flac to mp3
First, flac to mp3, is done at the command line by cd'ing in to the directory in the terminal, and then use this command -
for file in *.flac; do flac -cd "$file" | lame -h - "${file%.flac}.mp3"; done
then sit back and watch the fun. Once its completed you can either listen to the resulting mp3s or just delete the flac's straight away.
wavs to mp3
With the wavs to mp3s, you create a 'wav2mp3.sh' program in your cron directory which contains the following
#!/bin/sh
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
if [ -e "$i" ]; then
file=`basename "$i" .wav`
lame -h -b 192 "$i" "$file.mp3"
fi
done
Once this is saved and made executable by running the command
chmod 777 wav2mp3.sh
Then its copied and pasted to the directory where the wav files are and run as wav2mp3.sh, where it will continue to convert all the wav files to mp3s. Again you can listen to them before deletion if you so desire.
Note
One thing you must be careful of though in both cases is that the directories are correctly named, in other words they dont contain these characters >= &, space, - . Any spaces should be renamed as underscores, which should make life simpler for you.
Comments
comments powered by Disqus