[ale] MP3-to-OggVorbis for GNOME (Was: Re: [Slightly OT] Help with a quick sh
Brian D. Pitts
bpitts at LearnLink.Emory.Edu
Wed Aug 16 13:50:58 EDT 2006
It's not particularly elegant, but here's a script I use to do the opposite
conversion.
#!/bin/bash
for i in *.m4a
do
base=`basename "$i" .m4a`
info=`faad -i "$i" 2>&1`
artist=`echo "$info" | grep artist: | sed s/artist:\ //g`
album=`echo "$info" | grep album: | sed s/album:\ //g`
song=`echo "$info" | grep title: | sed s/title:\ //g`
track=`echo "$info" | grep track: | sed s/track:\ //g`
year=`echo "$info" | grep date: | sed s/date:\ //g`
genre=`echo "$info" | grep genre: | sed s/genre:\ //g`
faad -w "$i"| lame -h -b 128 - "$base.mp3"
#id3 -a "$artist" -A "$album" -t "$song" -T "$track" -y "$year" -g "$genre"
"$base.mp3"
id3v2 -a "$artist" -A "$album" -t "$song" -T "$track" -y "$year" -g "$genre"
"$base.mp3"
done
-Brian
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ale
mailing list