ID3V1 歌曲信息存储在歌曲最后的128个字节,是固定长度的。
128个字节具体的结构如下:
名称 | 位置 | 长度 | 备注 |
header | 0~2 | 3 | 始终是“TAG”,可以以此来判断是否是ID3V1 |
title | 3~32 | 30 | 歌曲标题 |
artist | 33~62 | 30 | 歌手 |
album | 63~92 | 30 | 专辑 |
year | 93~96 | 4 | 年代 |
comment | 97~124 | 28 | 备注 |
reserve | 125 | 1 | 保留字段 |
track | 126 | 1 | 歌曲在专辑中的位置 |
genre | 127 | 1 | 歌曲风格的索引值,该索引使用原码表示, 需要将此字节的8位2进制转化为10进制的数进行计算 |
ID3V1的各项信息的长度是固定的,如果真是长度不足,则以 '\0' 填充。
genre的索引值和风格对照如下:
0="Blues"; 1="ClassicRock"; 2="Country"; 3="Dance"; 4="Disco"; 5="Funk"; 6="Grunge"; 7="Hip-Hop"; 8="Jazz"; 9="Metal"; 10="NewAge"; 11="Oldies"; 12="Other"; 13="Pop"; 14="R&B"; 15="Rap"; 16="Reggae"; 17="Rock"; 18="Techno"; 19="Industrial"; 20="Alternative"; 21="Ska"; 22="DeathMetal"; 23="Pranks"; 24="Soundtrack"; 25="Euro-Techno"; 26="Ambient"; 27="Trip-Hop"; 28="Vocal"; 29="Jazz+Funk"; 30="Fusion"; 31="Trance"; 32="Classical"; 33="Instrumental"; 34="Acid"; 35="House"; 36="Game"; 37="SoundClip"; 38="Gospel"; 39="Noise"; 40="AlternRock"; 41="Bass"; 42="Soul"; 43="Punk"; 44="Space"; 45="Meditative"; 46="InstrumentalPop"; 47="InstrumentalRock"; 48="Ethnic"; 49="Gothic"; 50="Darkwave"; 51="Techno-Industrial"; 52="Electronic"; 53="Pop-Folk"; 54="Eurodance"; 55="Dream"; 56="SouthernRock"; 57="Comedy"; 58="Cult"; 59="Gangsta"; 60="Top40"; 61="ChristianRap"; 62="Pop/Funk"; 63="Jungle"; 64="NativeAmerican"; 65="Cabaret"; 66="NewWave"; 67="Psychadelic"; 68="Rave"; 69="Showtunes"; 70="Trailer"; 71="Lo-Fi"; 72="Tribal"; 73="AcidPunk"; 74="AcidJazz"; 75="Polka"; 76="Retro"; 77="Musical"; 78="Rock&Roll"; 79="HardRock"; /* Extended genres */ 80="Folk"; 81="Folk-Rock"; 82="NationalFolk"; 83="Swing"; 84="FastFusion"; 85="Bebob"; 86="Latin"; 87="Revival"; 88="Celtic"; 89="Bluegrass"; 90="Avantgarde"; 91="GothicRock"; 92="ProgessiveRock"; 93="PsychedelicRock"; 94="SymphonicRock"; 95="SlowRock"; 96="BigBand"; 97="Chorus"; 98="EasyListening"; 99="Acoustic"; 100="Humour"; 101="Speech"; 102="Chanson"; 103="Opera"; 104="ChamberMusic"; 105="Sonata"; 106="Symphony"; 107="BootyBass"; 108="Primus"; 109="PornGroove"; 110="Satire"; 111="SlowJam"; 112="Club"; 113="Tango"; 114="Samba"; 115="Folklore"; 116="Ballad"; 117="PowerBallad"; 118="RhythmicSoul"; 119="Freestyle"; 120="Duet"; 121="PunkRock"; 122="DrumSolo"; 123="Acapella"; 124="Euro-House"; 125="DanceHall"; 126="Goa"; 127="Drum&Bass"; 128="Club-House"; 129="Hardcore"; 130="Terror"; 131="Indie"; 132="BritPop"; 133="Negerpunk"; 134="PolskPunk"; 135="Beat"; 136="ChristianGangstaRap"; 137="HeavyMetal"; 138="BlackMetal"; 139="Crossover"; 140="ContemporaryChristian"; 141="ChristianRock"; 142="Merengue"; 143="Salsa"; 144="TrashMetal"; 145="Anime"; 146="JPop"; 147="Synthpop";