On Mon, 22 Sep 2003 15:15:21 +0100
"David Turner" <[EMAIL PROTECTED]> wrote:

> Can i detect the bitrate in lame? and if do, how do i return the value? and
> act upon it? The server side encoding will be done a windoze machine. I am
> guessing i will need to use a scripting language... any suggestions....

Use the unix "file" command (it's available either in the cygwin tools
for windows, or try to compile it yourself), or do the same what "file"
does (look at the file in question and print some information based upon
values at specific offsets) on your own.

Here's the MPEG 1 Layer 3 bitrate specific part of the "magic" file (the
name of the config file) of "file":
---snip---
# MPEG 1.0 Layer 3
0       beshort&0xfffe  =0xfffa         \bMP3
>2      byte&0xf0       =0x10           \b,  32 kBits
>2      byte&0xf0       =0x20           \b,  40 kBits
>2      byte&0xf0       =0x30           \b,  48 kBits
>2      byte&0xf0       =0x40           \b,  56 kBits
>2      byte&0xf0       =0x50           \b,  64 kBits
>2      byte&0xf0       =0x60           \b,  80 kBits
>2      byte&0xf0       =0x70           \b,  96 kBits
>2      byte&0xf0       =0x80           \b, 112 kBits
>2      byte&0xf0       =0x90           \b, 128 kBits
>2      byte&0xf0       =0xA0           \b, 160 kBits
>2      byte&0xf0       =0xB0           \b, 192 kBits
>2      byte&0xf0       =0xC0           \b, 224 kBits
>2      byte&0xf0       =0xD0           \b, 256 kBits
>2      byte&0xf0       =0xE0           \b, 320 kBits
---snip---

Bye,
Alexander.

-- 
                Where do you think you're going today?

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to