PDA

View Full Version : ID3 tags, iTunes, AIFF files and perl



Iain Donaldson (Mailing Lists)
2004-12-04, 13:47
Right folks, am struggling here.

I'm trying to write a script to take a lossless library and deliver a
copy in a lossy format. My lossless library is in AIFF for a whole
range of reasons, not least that I use iTunes to import and tag CDs and
I quite like it that way. I'd prefer to use AppleLossless, but since my
slimserver is FedoraCore2 that's not working at the moment.

Anyway, what I've seen is that Apple add ID3 tags to AIFF files, but
not to WAV (hence my choice of AIFF). However, i can't find a way to
extract these in Perl - neither MP3::Tag nor MP3::Info can see them.

Anyone any ideas how to get at these from perl in a simple way (or at
least from the Un•x command line) ? The script will be running on
Fedora, but I'm testing at present on OS X.

Am running out of ideas at the moment so thought some help might be in
order!

Thanks in advance for any help.

Cheers

...Iain
--
Iain Donaldson
iain-at-seatofthepants-dot-net

dean
2004-12-05, 00:14
Hi Iain,

Our slightly modified version of MP3::Info() should be able to read the
ID3 tags embedded in AIFF files by iTunes using
MP3::Info::get_mp3tag(). I know that Dan Sully submitted our changes
back to the author(s) via CPAN, but I'm not sure if they are in the
latest version there.

The version in our CVS tree:

<http://cvs.slimdevices.com/~cvs/viewcvs_0.9.2/cgi/viewcvs.cgi/
*checkout*/slim/server/CPAN/MP3/Info.pm?rev=HEAD&content-type=text/
plain>

Further discussion should probably move to the developers list....

-dean

On Dec 4, 2004, at 12:47 PM, Iain Donaldson (Mailing Lists) wrote:

> Right folks, am struggling here.
>
> I'm trying to write a script to take a lossless library and deliver a
> copy in a lossy format. My lossless library is in AIFF for a whole
> range of reasons, not least that I use iTunes to import and tag CDs
> and I quite like it that way. I'd prefer to use AppleLossless, but
> since my slimserver is FedoraCore2 that's not working at the moment.
>
> Anyway, what I've seen is that Apple add ID3 tags to AIFF files, but
> not to WAV (hence my choice of AIFF). However, i can't find a way to
> extract these in Perl - neither MP3::Tag nor MP3::Info can see them.
>
> Anyone any ideas how to get at these from perl in a simple way (or at
> least from the Un•x command line) ? The script will be running on
> Fedora, but I'm testing at present on OS X.
>
> Am running out of ideas at the moment so thought some help might be in
> order!
>
> Thanks in advance for any help.
>
> Cheers
>
> ..Iain
> --
> Iain Donaldson
> iain-at-seatofthepants-dot-net
>
>

leping
2006-07-16, 12:25
Script to Transfer iTunes CDDB CD tags to WAVE/AIFF/AAC/MP3 Library tracks:

http://forums.slimdevices.com/showthread.php?t=25333&page=2