#2228 G.722 shift bug not quite fixed yet?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello PJSIP List,

I have made a simple test to validate the G.722 shift fix from
    https://trac.pjsip.org/repos/ticket/2228  :

My device produces a perfect sine at 440 Hz and 0dB (float 1.0).
With a G.711a encoder, I get the exact expected output.

But with the G.722 encoder, I get a sine of -6dB (float 0.5) initially, and only after a varying delay - I have seen 0.26 sec upto 9 seconds - it suddenly jumps up to 0dB (float 1.0). Screenshot from Audacity is attached. I have used ffmpeg version 2.8.15-0ubuntu0.16.04.1 to decode the stream:

ffmpeg -f g722 -i agcb_0dB_sinus_g722dc.raw -acodec pcm_s16le -ar 16000 agcb_0dB_sinus_g722dc.wav

I can provide the Wireshark pcap / RTP raw / wav if needed. To me, this behavior is quite undesirable because it may produce a sudden jump in volume on the receiving end. Can this be the expected behavior, or am I looking at a defect?

Thanks a lot for your consideration!
Martin

Attachment: pjsip_g722_bug.png
Description: PNG image

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux