June 17th, 2010, 07:40 AM #1
- Join Date
- Jun 2010
Identifying files before and after renaming - mp3 format finding end of id3v2 tags
Hi I am a newbie to the mp3 format.
I want to generate a CRC or SHA1 over the first music data section in an mp3 file so I can identify the file in a database; after both filename, path and internal id3v2 and id3v1 tags have been added, deleted and modified.
I believe the highlevel layout of an mp3 file looks like:
|0..n id3v2 tags...|0.n music sections|0..1 id3v1 tag|
I think the id3v2 tags optionally occupy many sections at the front of the file. I tried a sha1 at the end of the file, avoiding any id3v1 tag, but too many tracks had identical sha1 generated in the last 10,000 bytes of the file. These were tracks from the same album CD.
I am using perl and wish to programatically identify id3v2 sections and their length to skip over them. For consistency I need to always identify the first music section.
Has anyone done this or suggest a better way to do this?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By roosta21 in forum General Tech DiscussionReplies: 1Last Post: November 15th, 2006, 04:10 PM
By Blazer06 in forum Multimedia and AudioReplies: 5Last Post: March 27th, 2004, 09:04 AM
By KnickNut3 in forum Applications and Operating SystemsReplies: 5Last Post: January 21st, 2004, 04:35 PM
By psppsp in forum Applications and Operating SystemsReplies: 4Last Post: December 23rd, 2002, 05:52 PM
By kramerica in forum Multimedia and AudioReplies: 2Last Post: August 14th, 2002, 02:02 AM