[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] MP3-to-OggVorbis for GNOME (Was: Re: [Slightly OT] Help with a quick sh
- Subject: [ale] MP3-to-OggVorbis for GNOME (Was: Re: [Slightly OT] Help with a quick sh
- From: bpitts at LearnLink.Emory.Edu (Brian D. Pitts)
- Date: Wed, 16 Aug 2006 13:50:58 -0400
- In-reply-to: <1155740740.5307.26.camel@localhost>
- References: <1155737606.5307.12.camel@localhost>< ><4a89f25f0608160720x6ac71 [email protected]>< ><4a89f25f0608160732t3b9d09b6m49489b9 [email protected]>< ><1155739395.5307.21.camel@localhost>< ><4a89f25 [email protected]><1155740740.5307.26.cam el@localhost>
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...