[ID3 Dev] Measuring the length of an id3v2 tag inside an mp3

Babak S. Hosseini babak.sayyid at gmail.com
Mon May 28 05:58:28 PDT 2007


Hello,
I'm trying to measure the length of the ID3v2 block inside an mp3 file.
In the specification a 257 bytes long tag is represented as $00 00 02 01.
How is that mapped? Can someone explain it in detail ?


Header:
ID3v2/file identifier   "ID3"
ID3v2 version           $03 00
ID3v2 flags             %abc00000
ID3v2 size              4 * %0xxxxxxx

The first 10 Bytes of my mp3 file have the following content:
0x49 0x44 0x33 0x03 0x00 0x00 0x00 0x04 0x3F 0x23

According to the specification, the length of the id3 block size is
encoded in:
0x00 0x04 0x3F 0x23

How many bytes does this encode?

Thanks.

-- 
ttyl.

Babak Sayyid Hosseini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.id3.org/pipermail/id3v2/attachments/20070528/f5e50b42/attachment.html>


More information about the ID3v2 mailing list