本文主要是介绍ID3V1,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
ID3V1ID3V1 mp3信息的简单存储格式,它存储在mp3文件末尾,大小为128个字节,标签头为3个字节,标签头必须为“TAG”,否则认为没有ID3V1标签;
数据格式:
char Header[3]; /*标签头必须为 "TAG" 否则认为没有标签*/
char Title[30]; /*歌曲名称*/
char Artist[30]; /*作者*/
char Album[30]; /*专辑名称*/
char Year[4]; /*出品年代*/
char Comment[28]; /*备注*/
char reserve; /*保留(二进制存储,默认为0)*/
char track; /*音轨号(二进制存储,歌曲在专辑中的编号)*/
char Genre; /*流派(二进制存储,乐风)*/
ID3V1 各项信息都是顺序存储,没有任何标识将其分开,各个信息字节说是
固定的,字节数不足的需用 ‘\0’补充;
ID3V1 存储编码只能用 ISO-8859-1;
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="Vocel"; 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";
这篇关于ID3V1的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!