Latency tweaks for Windows Mobile 6

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

 



Hi Jerry,

I don't think ec_tail should be included in the calculation, honestly,
not really sure how ec_tail works, just logically it buffers some
playout frames for echo reference without necessarily delaying the
playout (as much as ec_tail). Moreover, also not really sure whether
rec_latency will really affect latency as much (any audio device
expert could clarify this?).

Some people did experience high end-to-end latency on WM, and this has
been discussed before.

BR,
nanang


On Tue, Jan 12, 2010 at 5:11 AM, Jerry Monteiro
<jerrym at matrixconsultants.com.au> wrote:
> ?hi Johan & Benny
>
> Thanks for the replies.
> Ok if we use what Benny is suggesting the PLAY Latency=160; based on the
> below settings I will have a minimum latency in the app of 540ms (being the
> total of frame_ptime+ec_tail+rec latency+play latency).
> Is my calculations correct? If my calculations are correct, I think the
> latency will be very high once the sound gets to the remote party on an
> actual call. Benny what do you recommend for the RECORD Latency value?
>
> media_cfg.clock_rate = 8000;
> media_cfg.ptime = 20; //default codec ptime
> media_cfg.audio_frame_ptime = 20; //
> media_cfg.ec_tail_len = 200; // 0
> media_cfg.snd_rec_latency = 160; // original 100
> media_cfg.snd_play_latency = 160; // original 100
> media_cfg.ec_options = PJMEDIA_ECHO_SIMPLE; // default = 0
>
> Best regards
> jerry
> ------------------------------
>
> Message: 4
> Date: Mon, 11 Jan 2010 09:54:09 +0100
> From: Johan Lantz <johan.lantz@xxxxxxxxxxx>
> To: pjsip at lists.pjsip.org
> Subject: Re: Latency tweaks for Windows Mobile 6 (Jerry
> ? ? ? ?Monteiro)
> Message-ID: <4B4AE731.1010008 at genaker.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Jerry
>
> I have only done measurments with ptime 80 and 100 and these are ok.
>
> One thing that caused me a lot of problems was that some of my phones was
> not able to produce frames fast enough when
> PJMEDIA_SND_DEFAULT_REC_LATENCY
> ?was 100 i.e. the old setting. I think Benny changed this to a higher value
> later on but I still have 200 on some old devices like HTC 3600 while more
> powerful devices like Motorola Symbol can handle 100.
>
> I have never played with the
> PJMEDIA_CODEC_MAX_SILENCE_PERIOD
>
>
> /Johan
>
> Jerry wrote:
> Hi all
>
> I am hoping someone could advise some of the optimal settings you have found
> to work well for windows mobile 6 and above.
>
> Reading through the mailing lists, I have found some people that have used
> the settings below, but would like if you could post the Values you have
> used and perhaps other settings apart from the ones below.
>
>
>
> #define PJMEDIA_SND_DEFAULT_REC_LATENCY ?= ?
>
> #define PJMEDIA_SND_DEFAULT_PLAY_LATENCY = ?
>
> PJMEDIA_CODEC_MAX_SILENCE_PERIOD = ?
>
> frame ptime = ?
>
> ------------------------------
>
>
> Message: 8
> Date: Mon, 11 Jan 2010 16:22:29 +0000
> From: Benny Prijono <bennylp@xxxxxxxxx>
> To: pjsip list <pjsip at lists.pjsip.org>
> Subject: Re: Latency tweaks for Windows Mobile 6 (Jerry
> ? ? ? ?Monteiro)
> Message-ID:
> ? ? ? ?<49a4be81001110822t6bd263e4se372863b01f7ec15 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Thanks for the info, Johan.
>
> Actually I changed PJMEDIA_SND_DEFAULT_PLAY_LATENCY (i.e. not REC)
> from 100ms to 160ms for WM and to 140 on Win32, on release 1.5 (see
> ticket #983).
>
> Cheers
> ?Benny
>
> On Mon, Jan 11, 2010 at 8:54 AM, Johan Lantz <johan.lantz at genaker.net>
> wrote:
>> Hi Jerry
>>
>> I have only done measurments with ptime 80 and 100 and these are ok.
>>
>> One thing that caused me a lot of problems was that some of my phones was
>> not able to produce frames fast enough when
> PJMEDIA_SND_DEFAULT_REC_LATENCY
>> was 100 i.e. the old setting. I think Benny changed this to a higher value
>> later on but I still have 200 on some old devices like HTC 3600 while more
>> powerful devices like Motorola Symbol can handle 100.
>>
>> I have never played with the PJMEDIA_CODEC_MAX_SILENCE_PERIOD
>>
>>
>> /Johan
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> End of pjsip Digest, Vol 29, Issue 14
> *************************************
>
>
> _______________________________________________
> 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
>



[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