[FFmpeg-soc] BFI

Sisir Koppaka sisir.koppaka at gmail.com
Sat Mar 22 20:01:49 CET 2008


>
> Oh wow, this is wrong in, like, 9 different ways. :) The colloquial
> phrase here is, "too smart by half". Maybe I gave you too much
> information to work with.
>
> The PCM page mentions that weird formula, yes. But it only applies to
> specs that store Sound Blaster frequency divisors (see VOC and C93 as
> examples). The BFI spec does not say that it stores a Sound Blaster
> frequency divisor. Here's what the BFI spec says:
>
>  bytes 828-831  (+33C) audio sample rate
>
> Open 2287.bfi in a hex editor. Travel to offset 0x33C. What 4 bytes live
> there?
>

The four bytes I see in order are : 11 2b 00 00
So accounting for the little endianness, the sample rate appears to be 2b11
= 11025 hz.
So, I guess the formula and the freq. divisor stuff was unnecessary :) I got
misled by referring some other demuxer's code which must have needed the
freq_div.
Now, I get it! We have a perfectly sane frequency :)

The modemish sound persists though, and it's showing the following(This must
be archived for posterity :) ) :
 Duration: 00:00:00.0, start: 0.090000, bitrate: -2147483 kb/s
    Stream #0.0: Video: bfi, pal8, 320x140, 100.00 tb(r)
    Stream #0.1: Audio: pcm_u8, 1396790857 Hz, mono, -1710575 kb/s
Guess it's reading the wrong byte....looking into that...
-- 
-----------------
Sisir Koppaka



More information about the FFmpeg-soc mailing list