본문 바로가기

컴퓨터/파일 분석

MP3 File header 및 ID3 tag 내용

ID3 TAG 분석

파일의 뒤에서부터 읽는 것이 더 빠르다!

Windows에서 값을 인식하기 위해서는 euc-kr로 디코딩을 해야 한다.

Header 3 "TAG"

title 30 "30 characters of the title"

artist 30 "30 characters of the artist name"

album 30 "30 characters of the album name"

year 4 A four-digit yeara

comment 28 or 30 The comment

zero-byte 1 If a track number is stored, this byte contains a binary 0.

track 1 The number of the track on the album, or 0.

genre 1 Index in a list of genres, or 255


MP3 File header 분석

AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM


A 11 Frame sync (all bits set)

B 2 MPEG Audio version ID

00 - MPEG Ver 2.5

01 - reserved

10 - MPEG Version 2 (ISO/IEC 13818-3)

11 - MPEG Version 1 (ISO/IEC 11172-3) ~> MP3

C 2 Layer desription

00 - reserved

01 - Layer III

10 - Layer II

11 - Layer I

D 1 Protection bit

0 - Protected by CRC (16bit crc follows header)

1 - Not portectedl

E 4 Bitrate index


F 2 Sampling rate frequency index


G 1 Padding bit

0 - frame is not padded

1 - frame is padded with one extra slot

H 1 private bit. you can use it freely.

I 2 CHannel Mode

00 - Stereo

01 - Joint stereo(Stereo)

10 - Dual channel (2 mono channels)

11 - Single channel (Mono)

J 2 Mode extension (Only used in Joint stereo)


K 1 Copyright

0 - Audio is not copyrighted

1 - Audio is copyrighted

L 1 Original

0 - Copy of original media

1 - Original media

M 2 Emphasis

00 - none

01 - 50/15 ms

10 - reserved

11 - CCIT J.17



'컴퓨터 > 파일 분석' 카테고리의 다른 글

MP3 File header 및 ID3 tag 내용  (0) 2016.01.31

태그