On Fri, Dec 24, 2010 at 5:37 PM, Julien Claassen <julien@xxxxxxxx> wrote: > Hello Mark! > ÂYou can batch convert the aac files to mp3. If you directory structure is > very consistent, you can do even the complete structure in one script. I > thik there is a direct aac decoder, but if you don't find one or someone > else can point you at it, mplayer will do the trick. For one directory this > would be: > for F in *.aac; do > Âmplayer -ao pcm:file=$F.wav $F > Âlame -h $F.wav $F.mp3; > done > ÂSo in a bigger context, say you have all the albums resting in one place, > you might pack this loop into another: > for D in *; do > Âcd $D > Âfor F in *.aac; do > Â[what you've seen before...] > Âmkdir /new/directory/$D > Âmv *.mp3 /new/directory/$d > Ârm *.wav > Âcd ..; > done > ÂNOTE: This only works, if the directories and files don't have spaces in > them. You can usually quote the variables you use like "$D" and that should > help. But there were some cases - and please excuse me, if I don't remember > them right now, being late and having partied -, where even this didn't work > correctly. Mind you, I think this was using "find" somewhere in the > euqation. > ÂIf you have artist/album, you wrap the for D in * loop in another saying: > for A in *; do > Âcd A > Âmkdir /new/directory/$A > Âfor D in *; do; > Â... > Âcd ..; > done > ÂNOTE2: You will losse the tags this way. > ÂOh and if you want to correct the filenames to not end in .aac.mp3 you can > use mmv: > mmv "*.aac.mp3" "#1.mp3" > Âin the for F in *.aac; do loop, as the last line. Don't forget to add the > semicolon. > ÂSorry, if this mail was rather upside down and round and round. I am a bit > fuzzy. Yet still I hope, that I could be of some assistence. > ÂKindly yours > Â Â Â Â ÂJulien Wow Julien! Thanks. Basically woke up and got an early Christmas present. Thanks! Lots to think about. Basically, I have a Roku Netflix player that has a special plugin that will stream my iTunes library to the home theater system. Problem is there isn't an AAC decoder on the Roku so currently it only works for mp3 or (I think) wave files. If I can convert the library correctly then the family can listen to my library instead of just me. Problem is I think the tags have to be retained or iTunes isn't going to tell the Roku what the songs are called, etc. Time to maybe create a small library copy and do some scripting based on your inputs. Thanks! Cheers, Mark _______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/listinfo/linux-audio-user