getID3 vs AIFF & ISRC's

Locked
Hartleigh
User
Posts: 8
Joined: Thu Apr 05, 2007 4:49 am
Location: Brisbane, Australia

getID3 vs AIFF & ISRC's

Post by Hartleigh » Thu Apr 05, 2007 5:44 am

Hi,

getID3 looks to be the most powerful ID3 tag reader/writer class available in the PHP community that I can see. We are looking at storing uncompressed masters/AIFF files in a database as a catalogue manager for our iTune's tracks. As much reading as I do I am finding it hard to work out exactly if AIFF's store ID3 tag information such as artist & track. Some people out there have said yes they do, some say no, some say yes they do but not in the standard position that an mp3 would use. I was hoping that someone here may be able to clarify this for me.

On another note, a user on this forum was asking about ISRC's being stored with MP3's, and apparently they are yet when i use getID3 (have tried both v2.0.0.b4 & v1.7.8.b1) I can not see any reference to ISRC or TSRC. Is this feature currently built into getID3 and if not, is it in the pipeline?

I greatly appreciate any information provided. ;)


Hartz.

James Heinrich
getID3() v1 developer
Posts: 1477
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Thu Apr 05, 2007 11:27 am

AIFF can store comments (including things such as Artist and Title), but does so using its own tagging format, not ID3 as is used on MP3s.

ID3v2 is capable of storing ISRC data (as well as a large number of other possible values), but you will only find that data present if the person who tagged that file chose to include it (and used a program that can write ISRC in ID3v2). getID3 is capable of retrieving the data if it's there.

Hartleigh
User
Posts: 8
Joined: Thu Apr 05, 2007 4:49 am
Location: Brisbane, Australia

Post by Hartleigh » Mon Apr 09, 2007 11:14 pm

Hi James,

Thank you very much for the information. Are you aware of any PHP classes available that are capable of reading AIFF comments?

James Heinrich
getID3() v1 developer
Posts: 1477
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Tue Apr 10, 2007 1:03 am

Yes, getID3()

:)

Hartleigh
User
Posts: 8
Joined: Thu Apr 05, 2007 4:49 am
Location: Brisbane, Australia

Post by Hartleigh » Wed Apr 11, 2007 4:32 am

Hi James,

So I have been doing some more testing to see if I can get a foundation going for this catalogue manager. The progress is coming along but was wondering if you (or anyone else) has any suggestions as to why the ID3v2 data that is being read is not accurate... I have received pretty much the same results with both current versions of getID3.

The results of the test can be viewed at http://www.mraentertainment.com/temp/ge ... _test.html

My concern is... with the id3v2 -> comments -> band/title/artist/isrc etc, each of these data fields is missing the last character. An example is with regards to the ISRC...

id3v2 -> comments -> isrc = 1234 (123 is what is displayed)
id3v2 -> TSRC -> data = 1234 (��1�2�3�4� is displayed, getID3v3178b1 shows a slightly different value;

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Apr 11, 2007 7:41 am

The missing last character in ID3v2 is a confirmed bug in 2.0.0b4 and 1.7.8b1.

There is a patch for 2.0.0b4 here:
http://www.getid3.org/phpBB2/viewtopic.php?t=743

Hartleigh
User
Posts: 8
Joined: Thu Apr 05, 2007 4:49 am
Location: Brisbane, Australia

Post by Hartleigh » Wed Apr 11, 2007 11:50 pm

Thank'n'you ;)

Locked