Steve Kann
2008-Feb-08 05:37 UTC
[Speex-dev] Determine number of 20ms frames in packet - without decoding
Jean-Marc Valin wrote:> David Hogan wrote: > >> Does anyone know a practical way to determine the number of 20ms speex >> frames in a given speex packet without actually looping on speex_decode* ? >> > > There's no ready-made function for that. You'd have to write a function > that inspects the bits, determines what mode is involved, and jump the > right number of bits until a terminator is found or there's no more > bytes. The narrowband decoder already does something similar when it > encounters wideband data it doesn't want to decode. >We've written code to do just this, actually. It's included in iaxclient and asterisk in the speex codec modules. I've also written about it to this list (probably with code excerpts). Google is your friend. http://mlblog.osdir.com/audio.compression.speex.devel/2006-01/index.shtml Someone's even ported it to Java, it seems, here: http://www.koders.com/java/fidAEF1846C82020C9EDC1E49EF2C3F2663BC99A242.aspx -SteveK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080208/96296708/attachment.html
Alexander Chemeris
2008-Feb-08 10:39 UTC
[Speex-dev] Determine number of 20ms frames in packet - without decoding
Hi Jean-Marc, Is your proposition that ever this code will be written in terms of internal Speex bits it will be included into libspeex still in force? -- Regards, Alexander Chemeris. SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000
Jean-Marc Valin
2008-Feb-08 13:03 UTC
[Speex-dev] Determine number of 20ms frames in packet - without decoding
Alexander Chemeris a ?crit :> Hi Jean-Marc, > Is your proposition that ever this code will be written in terms > of internal Speex bits it will be included into libspeex still in force?yes. I'd like to include that if someone writes it using SpeexBits. Cheers, Jean-Marc
Maybe Matching Threads
- Determine number of 20ms frames in packet - without decoding
- Determine number of 20ms frames in packet - without decoding
- Determine number of 20ms frames in packet - without decoding
- Determine number of 20ms frames in packet - without decoding
- Determine number of 20ms frames in packet - without decoding