As a software developer you often faces the task of reading out information from binaries.
In the present video tutorial I show you how to program a class that the MP3 tags (ID3v1.1) extracted from MP3 files and then provides the software developer in the form of classes properties conveniently available.
ID3-Tags
MP3 files contain additional information (ID3 tags), the information on the artist, song title u. Ä include..
"ID3" stands for "Id entify at MP 3" ("Identify an MP3 file"), the word "day" means as much as label or tag.
ID3v1.1 Format
In the present example, I show you how to read from ID3v1.1 tags.
ID3 tags of this format consist of 128 strictly defined bytes, they are at the end of a file and are structured as follows:
Offset | Long | Meaning |
---|---|---|
0 | 3 | TAG identifier for identifying an ID3v1 block |
3 | 30 | Song Title |
33 | 30 | Artist / Performer |
63 | 30 | Album |
93 | 4 | Year of publication |
97 | 28 | Any comment |
125 | 1 | NULL |
126 | 1 | Track Number |
127 | 1 | Genre |
The byte 126 is a NULL byte (ASCII "0") and is intended as a separator between comment and track number.
Since the previous format ID3v1 no track number stored, this separator was eingführt to characterize the track number.
So much for the tag structure, but finally to the tutorial:
https://www.youtube.com/watch?v=kfp5ndnihVc
And here the second part, in which I demonstrate the inclusion of the programmed class.
https://www.youtube.com/watch?v=uhXekN7D3-Q
The tutorial has become rather long, I hope you liked it anyway, right?
Have you perhaps suggestions for further tutorials?
0 comments:
Post a Comment