VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get extra info from MP3 file

by David Filipovic (4 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Explains which bytes are used, and how, to store info about bit-rate, frequency, channels...

Rate Get extra info from MP3 file




Untitled Document

  div {font-family:Verdana; font-size:8pt} .dejvi {font-family:Verdana; font-size:8pt; color:red} 




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 




No 

None 

No 




No 

50/15 microsec 

No 




No 

Invalid 

No 




No 

CITT j. 17 

No 




Yes 

None 

No 




Yes 

50/15 microsec 

No 




Yes 

Invalid 

No 




Yes 

CITT j. 17 

No 




No 

None 

Yes 




No 

50/15 microsec 

Yes 




No 

Invalid 

Yes 




No 

CITT j. 17 

Yes 




Yes 

None 

Yes 




Yes 

50/15 microsec 

Yes 




Yes 

Invalid 

Yes 




Yes 

CITT j. 17 

Yes 







Value (x) 

Channels 


[0,3] 

Stereo 


[4,7] 

Joint Stereo 


[8,B] 

2 Channels 


[C,F] 

Mono 






Download this snippet    Add to My Saved Code

Get extra info from MP3 file Comments

No comments have been posted about Get extra info from MP3 file. Why not be the first to post a comment about Get extra info from MP3 file.

Post your comment

Subject:
Message:
0/1000 characters


Active Server Pages
Coding Standards
Complete Applications
Custom Controls/Forms/Menus
Data Structures
Databases/Data Access/DAO/ADO
DDE
Debugging and Error Handling
DirectX
Encryption
Files/File Controls/Input/Output
Games
Graphics
Internet/HTML
Jokes/Humor
Libraries
Math/Dates
Microsoft Office Apps/VBA
Miscellaneous
Object Oriented Programming (OOP)
OLE/COM/DCOM/Active-X
Registry
Sound/MP3
String Manipulation
VB function enhancement
Windows API Call/Explanation
Windows CE
Windows System Services

Difficulty

Beginner
Intermediate
Advanced
Unknown Difficulty