Rob Leslie ([EMAIL PROTECTED]) wrote:
> A more complete implementation can be found in the MAD distribution:
>
> http://www.mars.org/home/rob/proj/mpeg/
Ooooh! I like! :-D
In fact, I just hacked up TekNap (a curses-based Napster client clone, see
http://www.teknap.com/) to use this for bitrate detection of VBR files.
(TekNap normally uses the mpg123 bitrate detection code, which always
reports 64 kbps for LAME-created VBR files. This gives very misleading
results on VBR files that I'm sharing, and has bothered me for quite a
while now.)
My changes are pretty messy at this point, and not well tested yet --
but the shared.dat file looks good, and the OpenNap servers seem to
tolerate the nonstandard bitrate numbers.
Does anyone know offhand whether the Napster protocol permits a client to
report a bitrate that's not an integer? It would be nice to designate
VBR files as something like "NNNv" or "~NNN" where NNN is the average
bitrate -- this would avoid some confusion, at least IMHO. (For now,
I'm just going to report the average bitrate, rounded to the nearest
1 kbps, just like madtime.c does.)
It's a bit soon for me to try to submit my changes to the TekNap
maintainer, especially since there is no TekNap mailing list or official
contact address of any sort. :-{ But if this seems stable after a while
I may contact you (Rob) about licensing issues. (TekNap isn't under
the GPL, so I don't think I can legally distribute my changes.)
I know this is a bit offtopic for this mailing list (for which I
apologize) but I think there may be some interest in this code once
it's ready.
--
Greg Wooledge | "Truth belongs to everybody."
[EMAIL PROTECTED] | Red Hot Chili Peppers
http://www.kellnet.com/wooledge/ |
PGP signature