Hi,<br>
<br>
How can you be able to automatically detect the mode (narrowband/wb..) of the RTP stream?<br>
<br>
I have looked through the decoder source and find it is difficult to do so.<br>
Although the mode information NB/WB/UWB is identified by 0x/10/11 somewhere, but it's hard<br>
to know it before you do decoder intial.<br>
<br>
Any ideas?<br>
<br>
Lianghu<br><br><div><span class="gmail_quote">On 12/6/06, <b class="gmail_sendername">Aymeric Moizard</b> <<a href="mailto:jack@atosc.org">jack@atosc.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>On Wed, 6 Dec 2006, lianghu xu wrote:<br><br>> Hi Jean-Marc,<br>><br>> I remember you said that the SDP tells the mode information.<br><br>Right.<br><br>But a decoder like speex can always be configured from information
<br>contained in the incoming stream.<br><br>That makes your application more interroperable.<br><br>Aymeric MOIZARD / ANTISIP<br>amsip - <a href="http://www.antisip.com">http://www.antisip.com</a><br>osip2 - <a href="http://www.osip.org">
http://www.osip.org</a><br>eXosip2 - <a href="http://savannah.nongnu.org/projects/exosip/">http://savannah.nongnu.org/projects/exosip/</a><br><br>> Is SDP what you called in-band signalling?<br><br>> Lianghu<br>>
<br>> On 12/6/06, Jean-Marc Valin <<a href="mailto:jean-marc.valin@usherbrooke.ca">jean-marc.valin@usherbrooke.ca</a>> wrote:<br>>><br>>> In a "normal" frame that doesn't have in-band signalling (which nobody
<br>>> seems to use anyway), the frame starts with the narrowband information.<br>>> If the frame is in wideband, then this will be followed by a bit of<br>>> wideband information that starts with a bit set to 1 (narrowband starts
<br>>> with a bit set to 0). Have a look at what the Speex decoder does. You<br>>> may actually want to have similar code in a "null decoder".<br>>><br>>> Jean-Marc<br>>><br>
>> Aymeric Moizard a écrit :<br>>> ><br>>> > Hi speexers,<br>>> ><br>>> > I want to be able to automatically detect the mode (narrowband/wb..)<br>>> > of the RTP stream I'm receiving.
<br>>> ><br>>> > I guess this information is included in frames? Isn'it?<br>>> > How can I read it?<br>>> ><br>>> > tks,<br>>> > Aymeric MOIZARD / ANTISIP<br>>> > amsip -
<a href="http://www.antisip.com">http://www.antisip.com</a><br>>> > osip2 - <a href="http://www.osip.org">http://www.osip.org</a><br>>> > eXosip2 - <a href="http://savannah.nongnu.org/projects/exosip/">http://savannah.nongnu.org/projects/exosip/
</a><br>>> ><br>>> > _______________________________________________<br>>> > Speex-dev mailing list<br>>> > <a href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>>> > <a href="http://lists.xiph.org/mailman/listinfo/speex-dev">
http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>>> ><br>>> ><br>>> _______________________________________________<br>>> Speex-dev mailing list<br>>> <a href="mailto:Speex-dev@xiph.org">
Speex-dev@xiph.org</a><br>>> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br>>><br>><br></blockquote></div><br>