article

Get extra info from MP3 file

Email
Submitted on: 1/18/2015 10:36:00 PM
By: David Filipovic (from psc cd)  
Level: Beginner
User Rating: By 2 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 427
 
     Explains which bytes are used, and how, to store info about bit-rate, frequency, channels...

 
				


Untitled Document


2nd byte has to be in between [F2,F7] or [FA,FF],
and the info extracted from 2nd byte is as follows:

Value
MPEG, Layer
CRC
F2
MPEG 2.0, Layer 3
Yes
F3
MPEG 2.0, Layer 3
No
F4
MPEG 2.0, Layer 2
Yes
F5
MPEG 2.0, Layer 2
No
F6
MPEG 2.0, Layer 1
Yes
F7
MPEG 2.0, Layer 1
No
 
Value
MPEG, Layer
CRC
FA
MPEG 1.0, Layer 3
Yes
FB
MPEG 1.0, Layer 3
No
FC
MPEG 1.0, Layer 3
Yes
FD
MPEG 1.0, Layer 3
No
FE
MPEG 1.0, Layer 3
Yes
FF
MPEG 1.0, Layer 3
No

3rd byte has to be in between [1x,Fx] (Where x is between [0,B]),
and the info extracted from 3rd byte is as follows:

Value (x)
MPEG 1.0 Frequency
MPEG 2.0 Frequency
[0,3]
44 KHz
22 KHz
[4,7]
48 KHz
24 KHz
[8,B]
32 KHz
16 KHz

Value
MPEG 1.0 Bit-rate
MPEG 2.0 Bit-rate
1x
32 Kbit
8 Kbit
2x
40 Kbit
16 Kbit
3x
48 Kbit
24 Kbit
4x
56 Kbit
32 Kbit
5x
64 Kbit
40 Kbit
6x
80 Kbit
48 Kbit
7x
96 Kbit
56 Kbit
8x
112 Kbit
64 Kbit
9x
128 Kbit
80 Kbit
Ax
160 Kbit
96 Kbit
Bx
192 Kbit
112 Kbit
Cx
224 Kbit
128 Kbit
Dx
256 Kbit
144 Kbit
Ex
320 Kbit
160 Kbit

4rd byte is of type ax(hex), where a is between [0,F], and x is between [0,F],
and the info extracted from 3rd byte is as follows:

Value (a)
Original
Emphasis
Copyright
0
No
None
No
1
No
50/15 microsec
No
2
No
Invalid
No
3
No
CITT j. 17
No
4
Yes
None
No
5
Yes
50/15 microsec
No
6
Yes
Invalid
No
7
Yes
CITT j. 17
No
8
No
None
Yes
9
No
50/15 microsec
Yes
A
No
Invalid
Yes
B
No
CITT j. 17
Yes
C
Yes
None
Yes
D
Yes
50/15 microsec
Yes
E
Yes
Invalid
Yes
F
Yes
CITT j. 17
Yes

Value (x)
Channels
[0,3]
Stereo
[4,7]
Joint Stereo
[8,B]
2 Channels
[C,F]
Mono


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.