[Speex-dev] Determine number of 20ms frames in packet - without decoding

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Thu Feb 21 00:10:47 PST 2008

>> Oh, your table looked fine. I think it's mine that was wrong for the
>> "null mode" (which nobody ever uses I guess!).
> I'm not sure, but I guess it may be used in VBR or DTX mode?
> At least that's why I kept it.

Of course it *can* be used (and needs fixing). It just seems few people
did :-)

> So, what's the next step towards intergartion? I guess it should
> be somehow made available from Speex API level, e.g. with
> new speex_decoder_ctl() or speex_lib_ctl() request? I have
> no idea about the best way here, and would appreciate your
> advices.

I don't think it should be a _ctl() call because there's too much
potential for confusion. I would just keep it as a separate API call
like you have. I'd tend to put it in speex_bits.h, so I guess it should
be called speex_bits_get_number_of_frames() or something like that.

>>> Sure. But in SDP you specify mode and not bitrate. ;) So I want
>>> to operate with the same things as in SDP.
>> I see. BTW, you can ask the full bit-rate to the encoder or decoder.
>> It's only the mode that give you the layer's bit-rate (which we might
>> want to change).
> Sorry, not sure I follow you. What do you mean by "you can ask the full
> bit-rate to the encoder or decoder"?

I mean that SPEEX_GET_BITRATE will actually return the total bit-rate in
bits per second.



More information about the Speex-dev mailing list