|
-
July 8th, 2009, 12:20 PM
#1
MP3 properties
I have 1000's of MP3 files whose properties (title, artist, etc) need standardization.
The files are stored in different folders according to genre, and the file name reflects the name of piece and the artist. So the task is easy once the address of each property is located.
I searched this site and found that MP3 properties occupy the last 128 bytes of the file, and the data look like this:
' magic 3 chars (always set to 'TAG')
' title 30 chars
' artist 30 chars
' album 30 chars
' year 4 chars
' comment 28 chars
' termination 1 byte (always 0)
' track 1 byte
' genre 1 byte
However, I used W-Explorer to manually set the genre of one MP3 file to "Reading". Surely, the word "Reading" appears in the list view along with Pop, Country, etc.
So much for 1-byte Genre at the very EOF!
I inspected that file for the word "Reading", and found it at th 120th byte, not within the !ast 128 byte!
Some education, please!
-
July 9th, 2009, 12:04 AM
#2
-
July 9th, 2009, 01:24 AM
#3
Re: MP3 properties
Thanks for the reply!
I now know that there are two ID3 versions:
v1 at the end of the file (128 bytes)
v2 at the beginning of the file (up to 256MB!)
Obviously, v1 tags are fixed-length, while those in v2 are variable-length.
And I have just downloaded a little vb6 program by the name MP3_IDV2
It includes 4 functions to read and write both versions of tags.
Recommended!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|