Dear Sir,
I have downloaded a Perl Script to record mp3 stream from ShoutCast server. Now my task is need to determine the property of the mp3 stream:
1) whether it is stereo, joint-stereo or mono 2) whether it is a 11kHz, 22kHz, or 44kHz sampling rate stream 3) whether the bit rate is 16KHz, 32kHz, 64kHZ or 128kHz
The problem is there are a lot of junk before the stream begin, and there is so many consecutive 12 or 11 1's in the program ( for those who dont understand what I mean, please see document of mpeg header). I have trouble determining the begin of of MP3 stream!! Some decoder does not have this ability and I must tell it the begin of MP3 stream.
Can any one point out where I can find the C/C++ source code to do that?
Yick