krunal09 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

Popping Noise [HTC Hero] #301

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Make a call

What is the expected output? What do you see instead?
The sound has frequent popping noise. 

What version of the product are you using? On what operating system?
HERO CDMA with CSipSimple 0.00-15

Please provide any additional information below.
The log was flooded with the following:
W/AudioFlinger(  205): RecordThread: buffer overflow

with some messages like the following in between,
V/libpjsip(26638):  15:26:02.851   strm0x515cb4  Discarding frame #1426: eff=10
disc=0 orig:1416 seq_delta:45

Tried with both the PCMU and GSM codec.

Sipdroid does not show this issue.

Original issue reported on code.google.com by jac...@gmail.com on 23 Oct 2010 at 7:29

GoogleCodeExporter commented 9 years ago
More from the log,

V/libpjsip(26638):  15:34:30.557   strm0x5993b4  Jitter buffer empty 
(prefetch=0), plc invoked
W/AudioFlinger(  205): RecordThread: buffer overflow
W/AudioFlinger(  205): RecordThread: buffer overflow
V/libpjsip(26638):  15:34:30.610   strm0x5993b4  Jitter buffer starts returning 
normal frames (after 1 empty/lost)

Original comment by jac...@gmail.com on 23 Oct 2010 at 7:35

GoogleCodeExporter commented 9 years ago
You should try 0.00-15-04 dev version available on this website (download 
section). I've improved things for my HTC magic, maybe it will help for the 
Hero too.

Let me know.

Original comment by r3gis...@gmail.com on 23 Oct 2010 at 7:59

GoogleCodeExporter commented 9 years ago
Just tried the 0.00-15-04 version. Seems not much improvement. The little 
popping noise only pops out when the other party is saying something, but not 
during silence. Hope this helps.

Original comment by jac...@gmail.com on 23 Oct 2010 at 8:37

GoogleCodeExporter commented 9 years ago
Ok, I'll try as soon as possible on a HTC hero to see if I can reproduce and 
debug the problem.

Original comment by r3gis...@gmail.com on 6 Nov 2010 at 6:09

GoogleCodeExporter commented 9 years ago
I tried a couple of things, e.g. lock the CPU clock of CDMA HERO at max 768MHz 
and min 768MHz to prevent possible underpower of the CPU, tried it with a GSM 
Mytouch 3G, both on WiFi and 3G data. The results are the same. The attached is 
a recorded sample. Looks like some bits are missing here and there that results 
in very short popping of decoding or buffer error.

Original comment by jac...@gmail.com on 6 Nov 2010 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
I also have the exactly same problem on my HTC Hero GSM Villain Rom 12.0.0. 
Using PCMU.
Weirdly, all the other softphones have the same symptom except for Sipdroid.
I tried 3CXPhone, Linphone, Csipsimple, and a few other softphones that I 
deleted. Oh I forgot to mention that even Fring has this popping sound. But I 
don't know why Sipdroid is free from this problem. I'm pretty sure it's not a 
CPU issue because I tried running multiple apps while using Sipdroid and sound 
was just fine. Probably not the Power save polling because I tried pinging my 
mobile when using Sipdroid, Csipsimple, Linphone and all results were the same.
Is this only HTC Hero's problem?

Original comment by mike....@gmail.com on 30 Nov 2010 at 9:11

GoogleCodeExporter commented 9 years ago
Could you try with latest 0.00-16 (or 0.00-16-00)?

If you can also test with 8kHz / 16kHz as media frequency (settings > media > 
frequency).

Original comment by r3gis...@gmail.com on 8 Dec 2010 at 10:59

GoogleCodeExporter commented 9 years ago
I've just tested on a galaxy Teos and switching to 8k make things really better.

You can also play with media quality (in expert setting mode) and IO Queue for 
media and thread count
Let me know with which settings give the best results.

Original comment by r3gis...@gmail.com on 10 Dec 2010 at 1:19

GoogleCodeExporter commented 9 years ago
Can someone test revision 422 :

http://nightlies.csipsimple.com/trunk/CSipSimple-r422-trunk.apk

I've re-worked the audio "driver" I'd so really appreciate any feedback on this 
new version.

Original comment by r3gis...@gmail.com on 10 Dec 2010 at 3:49

GoogleCodeExporter commented 9 years ago
Sorry revision 422 was broken
http://nightlies.csipsimple.com/trunk/CSipSimple-r427-trunk.apk

revision 427 should be ok.

Original comment by r3gis...@gmail.com on 11 Dec 2010 at 5:34

GoogleCodeExporter commented 9 years ago
Thanks for the effort. I tried to change settings. The situation seems to not 
getting much better. Version 0.00-16 force closes on start on CDMA HERO. 
Version r427-trunk only force closes in account settings. 16K clock rate sounds 
better than 8K because it softens the noise and makes it not so annoying. 
Shorter ptime seems to improve things a little but there is no obvious pattern.

Original comment by jac...@gmail.com on 12 Dec 2010 at 2:26

GoogleCodeExporter commented 9 years ago
In latest nightlies build force close should be fixed.

As for the popping noise, something has just been fixed in pjsip :
https://trac.pjsip.org/repos/ticket/1189

I'll report that in csipsimple as soon as possible.

Original comment by r3gis...@gmail.com on 14 Dec 2010 at 10:11

GoogleCodeExporter commented 9 years ago
r438 still force closes in advanced and expert account settings.

Original comment by jac...@gmail.com on 14 Dec 2010 at 10:25

GoogleCodeExporter commented 9 years ago
I had the exact same problem until I reduced the echo cancellation window from 
200ms down to 150ms and the problem went away.

Original comment by mastercatsby@gmail.com on 23 Dec 2010 at 9:05

GoogleCodeExporter commented 9 years ago
No luck here. BTW, the latest trunks seems to ignor the colon in the 
"registrar:port" , i.e. calls were unable to connect and call records showed 
the calls being sent as "1234@xxx.com5080" where 5080 is the port number. 
However, registration is fine.

Original comment by jac...@gmail.com on 23 Dec 2010 at 9:41

GoogleCodeExporter commented 9 years ago
@jack99 : oups. You're right regression :) I've fixed it : revision 501.
In r502 I've added a min buffer size for the audio track.

@mastercastsby : thx, interesting tip. Indeed, removing or reducing echo 
cancellation can help to have better performance.

Original comment by r3gis...@gmail.com on 23 Dec 2010 at 10:51

GoogleCodeExporter commented 9 years ago
Issue 362 has been merged into this issue.

Original comment by r3gis...@gmail.com on 23 Jan 2011 at 9:50

GoogleCodeExporter commented 9 years ago
How about an option to let the user configure the base offset size of the 
jitter buffer? I noticed the jitter buffer was adjusting too fast and running 
low often.

Original comment by jac...@gmail.com on 28 Jan 2011 at 6:35

GoogleCodeExporter commented 9 years ago
Hello,

I want to report my Acer Liquid Metal meet similar problem like this issue. 
Once the program open a outgoing call to my SIP vendor, I can hear the popping 
noise in the background. My callees said they are very difficult to identify my 
voice from their side. The combinations of 3G, WiFI, G.711, G.729 & ILBC were 
tried, all bad. I tried to OC my phone to 1.6GHz, got little improvement but 
overal is still bad. I believe it's not a problem on processor speed. 

I like csipsimple, hope somebody can help me.

Original comment by billy...@gmail.com on 21 Feb 2011 at 3:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
On my Samsung Galaxy S the person I'm calling also get these click and pop 
sounds, but on my end audio is perfect. I've tried different settings, and am 
currently at G.729 8KHz and sampling at 8KHz since, partly since that is 
supported by the provider, and partly because I saw that the app would be 
support bluetooth on 8KHz. What to do?

I notice I get this problem using MobileVoip and Sipdroid too.

Original comment by mikael.f...@gmail.com on 13 Mar 2011 at 1:27

GoogleCodeExporter commented 9 years ago
This is a known problem with Samsung Galaxy S phones. See issue 362 which has 
been merged into issue 301 and closed.
There is a workaround - get the person to call you back. The popping noises 
only occur when you call someone - they then hear the popping noises. 
If they call you, the audio is clear both ends.

Original comment by pcvan...@gmail.com on 13 Mar 2011 at 11:27

GoogleCodeExporter commented 9 years ago
The same situation with LG Optimus One. When I call using JustVoIP account to 
other JustVoip account - I hear high noise, and very low valued voice of my 
opponent. But he hear me clear.
Attacment writed by last version from trunk.

Original comment by Anton.Bu...@gmail.com on 14 Apr 2011 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
This issue seems fixed. I still has the MyTouch 3G. And this issue was also 
happening on the EVO 4G. Now both of the phones have very good sound quality. 
Not sure from which version it was fixed. 

Original comment by jac...@gmail.com on 6 Sep 2012 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by r3gis...@gmail.com on 13 May 2013 at 5:31