-
June 17th, 2010, 07:40 AM #1Junior Member
- Join Date
- Jun 2010
- Posts
- 1
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?
R
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Renaming Picture files (bundle)
By roosta21 in forum General Tech DiscussionReplies: 1Last Post: November 15th, 2006, 04:10 PM -
MP3 TAGS
By Blazer06 in forum Multimedia and AudioReplies: 5Last Post: March 27th, 2004, 09:04 AM -
Can I automatically rename MP3 files using ID3 tags?
By KnickNut3 in forum Applications and Operating SystemsReplies: 5Last Post: January 21st, 2004, 04:35 PM -
Mass renaming of files
By psppsp in forum Applications and Operating SystemsReplies: 4Last Post: December 23rd, 2002, 05:52 PM -
MP3 Tags...
By kramerica in forum Multimedia and AudioReplies: 2Last Post: August 14th, 2002, 02:02 AM



LinkBack URL
About LinkBacks



Reply With Quote

This is certainly not a film for the easily-offended. Some may brand it puerile and self-indulgent and let them do so. This is razor-sharp comedy filled with cutting one-liners and some brilliant...
This is certainly not a film