Hi, Is there an easy way to get the size in samples of a Speex packet, without decoding the packet? If I receive a "narrowband packet" with - Zero or more wideband frames (must be skipped apparently) - Zero or more Speex inband requests - Zero or more user inband requests - One or more narrowband frames I need to know how much samples the packet contains to calculate jitter buffer values (e.g. how much samples are available in the jitter buffer). I cannot decode the packet prematurely, because packets may need to be reordered first. How is this (multiple frames in one packet) handled by the Speex jitter buffer? -- Best regards, Chris
Chris Flerackers wrote:> Hi, > > Is there an easy way to get the size in samples of a Speex packet, > without decoding the packet? > > If I receive a "narrowband packet" with > - Zero or more wideband frames (must be skipped apparently) > - Zero or more Speex inband requests > - Zero or more user inband requests > - One or more narrowband frames > I need to know how much samples the packet contains to calculate > jitter buffer values (e.g. how much samples are available in the > jitter buffer). > > I cannot decode the packet prematurely, because packets may need to be > reordered first. > > How is this (multiple frames in one packet) handled by the Speex > jitter buffer? >See http://lists.xiph.org/pipermail/speex-dev/2007-March/005428.html -SteveK
Hi Steve, Steve Kann wrote:> Chris Flerackers wrote: >> Hi, >> >> Is there an easy way to get the size in samples of a Speex packet, >> without decoding the packet? >> >> If I receive a "narrowband packet" with >> - Zero or more wideband frames (must be skipped apparently) >> - Zero or more Speex inband requests >> - Zero or more user inband requests >> - One or more narrowband frames >> I need to know how much samples the packet contains to calculate >> jitter buffer values (e.g. how much samples are available in the >> jitter buffer). >> >> I cannot decode the packet prematurely, because packets may need to be >> reordered first. >> >> How is this (multiple frames in one packet) handled by the Speex >> jitter buffer? >> > See http://lists.xiph.org/pipermail/speex-dev/2007-March/005428.htmlThanks for the reference. This is actually what I did for the moment. But I was wondering if such a function shouldn't be part of the official Speex implementation? -- Best regards, Chris