> Francois du Toit wrote:
>
> Where can I get the frame analyzer for a Win98 platform?
> I am no programmer and I have no idea how to compile the sourcecode
The following is a quick and dirty Python
utility to try and find frame headers.
It also finds non-frame-headers where the byte
combo "FFE0" occurs.
I think I just assumed MP1 Layer 3 - don't
recall at the moment, but if you have the
frame specs, you can probably verify this
easily.
You can find PythonWin at www.python.org
Bill
---------------------------------------------------------------------------
#!/usr/bin/python
# (C) 1999 under GPL, hack away. Bill Eldridge
import sys
#myin=open('MAN00.mp3','r')
myin=open(sys.argv[1],'r')
mybuf=myin.read(4)
fpos=0
print "Pos","b1","ver","lay","prot","bit","samp","pad\n"
while 1:
if ((ord(mybuf[0]) & 0xFF == 0xFF) and (ord(mybuf[1]) & 0xE0 ==
0xE0)):
print fpos,ord(mybuf[1]),(ord(mybuf[1]) & 0x18) >>
3,(ord(mybuf[1]) & 0x06) >> 1,ord(mybuf[1]) & 0x01,(ord(mybuf[2]) &
0xF0) >> 4,(ord(mybuf[2]) & 0x0C) >> 2,(ord(mybuf[2]) & 0x02) >> 1
fpos=fpos+1
myin.seek(fpos)
mybuf=myin.read(4)
--
Bill Eldridge
Radio Free Asia
[EMAIL PROTECTED]
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )