It seems normal, for packet time 20ms, IP+UDP+RTP overhead is about 16 kbps, CMIIW. You can change the packet time (with multiplication of 20ms) by specifying --ptime param of pjsua. Btw, you can also analyse the bandwidth usage (payload & payload+overhead) using command 'dq' in pjsua prompt. Regards, nanang On Tue, Oct 7, 2008 at 6:14 PM, Gergely Juh?sz <jg.svins at gmail.com> wrote: > Thank you for your answer! > I am monitoring the network trafic between 2 pjsua application with > p2p connection. > > I am using speex/8000 quality=2, 5.9kbit/sec, but the bandwidth usage > is ~20 kbit/sec. Is this overhead normal? > > > 2008/10/7 Nanang Izzuddin <nanang at pjsip.org>: >> Hi, >> >> In pjsua app, Speex bitrate can be set using param --quality=N, >> quality-bitrate mapping can be found here: >> http://speex.org/docs/manual/speex-manual/node10.html#cap:quality_vs_bps >> >> If you are developing your own app using pjsua-lib, you can set the >> media quality via pjsua media config >> (http://www.pjsip.org/pjsip/docs/html/structpjsua__media__config.htm#4cada00a781ce06cd536c4e56a522065). >> Please note that the media quality setting may affect other media >> components (not just codec quality), e.g: resampling quality, you can >> avoid this by just setting the Speex codec quality via API >> pjmedia_codec_speex_set_param(). >> >> AFAIK, Speex codec uses CBR by default. >> >> Regards, >> nanang >> >> >> On Tue, Oct 7, 2008 at 2:49 PM, Gergely Juh?sz <jg.svins at gmail.com> wrote: >>> Hello! >>> >>> I would like to use Speex codec with small bit rates. ( 2, 4 kbit/sec ) >>> How can i set it in PJSUA ? How can i use it in CBR operation? >>> >>> Best Regards >>> svins >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip at lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >