borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (I want to use "active movie" in making an ocx.)Next Topic (saving images) New Topic New Poll Post Reply
AndreaVB Forum : Multimedia : How to get kbps info from mp3 file
Poster Message
santhanam
Level: Guest


icon How to get kbps info from mp3 file

Hi,

I have planned to do mp3 cutting and merging in VB. But I don't know how to identify whether a mp3 file is of 128kbps or 64kbps or 96kbps or anyother else.

Please Help me how to identify.

Thank You.

10-02-2003 at 12:34 AM
| Quote Reply
joeisaceuk
Level: Guest

icon Re: How to get kbps info from mp3 file

Why not play the filein Windows Media player. Whilst playing, the status bar constantly updates telling you the data transfer rate such as 128kbps etc. The skin must be set to default however.

Visit http://joe.isgeeky.com

13-05-2003 at 01:34 PM
| Quote Reply
win_dir
Level: VB Guru

Registered: 04-08-2002
Posts: 390
icon Re: How to get kbps info from mp3 file

The method that "joeisaceuk" is not really programmatically sound, however if you add the windows media player activex control to one of your forms you will see that there is quite an easy way of getting the bitrate of each MP3. Just have a mess around with the methods and properties and you'll see what i mean. This is a good method because most windows computers will have a windows media player new enough to get MP3 info. Reply if you have any other questions and maybe give other people the code that you used with WMP in the end.

[Edited by win_dir on 15-05-2003 at 07:08 PM GMT]

____________________________
We have a Mustek 5 M/Pix GSm@rt USB Digital Camera
for just £74.03 , offer only on until 30th February!

<AllDuck.com>      

Enquiries/Sales: 0845 430 9862
Fax: 0870 950 4532

15-05-2003 at 07:07 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Nod
Level: Guest

icon Re: How to get kbps info from mp3 file

In a regular fixed bit rate MP3 (Identified by the first 2 bytes = $FF $FA) the indicated bitrate is found at bits 4-7 if the third byte of the header.
$7x = 96 kbs
$9x = 128 kbs
$Ax = 160 kbs
$Bx = 192 kbs .... ect...

Im' just looking into the MP3 PRO format.... more info to follow. I also have the WAV file header info' too if you need that.

I've found the ActiveX media player to be a bit unstable when you hit it with too many commands too quickly. ie when you open the control, get some info' then close it again.

06-07-2003 at 02:10 PM
| Quote Reply
AndreaVB Forum : Multimedia : How to get kbps info from mp3 file
Previous Topic (I want to use "active movie" in making an ocx.)Next Topic (saving images) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder