Re: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Koen Vos <koen.vos@skype.net> Mon, 18 April 2011 10:18 UTC

Return-Path: <koen.vos@skype.net>
X-Original-To: codec@ietfc.amsl.com
Delivered-To: codec@ietfc.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfc.amsl.com (Postfix) with ESMTP id 31C69E069D for <codec@ietfc.amsl.com>; Mon, 18 Apr 2011 03:18:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, J_BACKHAIR_33=1]
Received: from mail.ietf.org ([208.66.40.236]) by localhost (ietfc.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o8ZXUtkw5tHH for <codec@ietfc.amsl.com>; Mon, 18 Apr 2011 03:18:44 -0700 (PDT)
Received: from mx.skype.net (mx.skype.net [78.141.177.88]) by ietfc.amsl.com (Postfix) with ESMTP id C4C59E066A for <codec@ietf.org>; Mon, 18 Apr 2011 03:18:43 -0700 (PDT)
Received: from mx.skype.net (localhost [127.0.0.1]) by mx.skype.net (Postfix) with ESMTP id DF4E616F0; Mon, 18 Apr 2011 12:18:42 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=skype.net; h=date:from:to :cc:message-id:in-reply-to:subject:mime-version:content-type: content-transfer-encoding; s=mx; bh=M7QlxnPluaTxwtE+WCVxVrcOf0c= ; b=hj0a8ZPmrIRVHKpmqQIUROSABTqODX04e6X+KY7ujRY+pA5kDf0XNd/BPwIp FVaog8JXLcPo4H8VAVGpjWmB2Fys4E0PWJ7LbnrorsNZORs6+geQOhbEV6X0bzDD 39mOz+/jLBkjCwDuSCdwG5J2Cc+4dtdEXJ8o9F1hMfpK+tQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=skype.net; h=date:from:to:cc :message-id:in-reply-to:subject:mime-version:content-type: content-transfer-encoding; q=dns; s=mx; b=fZ83nh3w4nabCvFwDpOHgW LV0KUxZPu/Lu0C/uR7LEZrC9zgFH5dyZ6yPc/eao8P/Aw00XzaNjZtpdHvXyJN2O Pf7Rrg8JweFZkHqeQux3N81AFoW1jwV5rUvDmgfZUSqzvVf0Ak/n7LkCh3jkGxbm 8rSRkf5x07A0AJUFleKXM=
Received: from zimbra.skype.net (zimbra.skype.net [78.141.177.82]) by mx.skype.net (Postfix) with ESMTP id DD93E7F6; Mon, 18 Apr 2011 12:18:42 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1]) by zimbra.skype.net (Postfix) with ESMTP id C5CA23507CE8; Mon, 18 Apr 2011 12:18:42 +0200 (CEST)
X-Virus-Scanned: amavisd-new at lu2-zimbra.skype.net
Received: from zimbra.skype.net ([127.0.0.1]) by localhost (zimbra.skype.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PNr0rICxI5KT; Mon, 18 Apr 2011 12:18:37 +0200 (CEST)
Received: from zimbra.skype.net (lu2-zimbra.skype.net [78.141.177.82]) by zimbra.skype.net (Postfix) with ESMTP id C127B1672682; Mon, 18 Apr 2011 12:18:37 +0200 (CEST)
Date: Mon, 18 Apr 2011 12:18:37 +0200
From: Koen Vos <koen.vos@skype.net>
To: Keith Yan <Keithy@hz.webex.com>
Message-ID: <966179751.250385.1303121917498.JavaMail.root@lu2-zimbra>
In-Reply-To: <4B83CC1C4332D647B3CEC2FEA18518CD16A1A8E916@hzmail07.WebEx.HZ>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [69.181.192.115]
X-Mailer: Zimbra 6.0.9_GA_2686 (ZimbraWebClient - FF3.0 (Win)/6.0.9_GA_2686)
Cc: codec@ietf.org
Subject: Re: [codec] I-D Action:draft-ietf-codec-opus-05.txt
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Codec WG <codec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codec>, <mailto:codec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/codec>
List-Post: <mailto:codec@ietf.org>
List-Help: <mailto:codec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codec>, <mailto:codec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Apr 2011 10:18:48 -0000

Thanks Keith,
I'll take a look at that.
best,
koen.


----- Original Message -----
From: "Keith Yan" <Keithy@hz.webex.com>
To: "Koen Vos" <koen.vos@skype.net>
Cc: "Jean-Marc Valin" <jmvalin@jmvalin.ca>, codec@ietf.org
Sent: Monday, April 18, 2011 2:57:12 AM
Subject: RE: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Hi Koen,
Also I find that if call OPUS_SET_BANDWIDTH frequency during doing encode, encoder will enter into a while operation, and can't callback in function
static void ec_enc_normalize(ec_enc *_this){
  /*If the range is too small, output some bits and rescale it.*/
  while(_this->rng<=EC_CODE_BOT){
    ec_enc_carry_out(_this,(int)(_this->val>>EC_CODE_SHIFT));
    /*Move the next-to-high-order symbol into the high-order position.*/
    _this->val=_this->val<<EC_SYM_BITS&EC_CODE_TOP-1;
    _this->rng<<=EC_SYM_BITS;
    _this->nbits_total+=EC_SYM_BITS;
  }
}
And variable _this->rng is zero. After analyze, we think it's caused that internal sample rate is changed, but it doesn't update to encoder controller.

We find pitch_high_bits is not right after changed max internal sample rate. It will bigger than 32.
        if( encode_absolute_lagIndex ) {
            /* Absolute encoding */
            SKP_int32 pitch_high_bits, pitch_low_bits;
            pitch_high_bits = SKP_DIV32_16( psIndices->lagIndex, SKP_RSHIFT( psEncC->fs_kHz, 1 ) );
            pitch_low_bits = psIndices->lagIndex - SKP_SMULBB( pitch_high_bits, SKP_RSHIFT( psEncC->fs_kHz, 1 ) );
            SKP_assert( pitch_low_bits < psEncC->fs_kHz / 2 );
            SKP_assert( pitch_high_bits < 32 );
            ec_enc_icdf( psRangeEnc, pitch_high_bits, SKP_Silk_pitch_lag_iCDF, 8 );
            ec_enc_icdf( psRangeEnc, pitch_low_bits, psEncC->pitch_lag_low_bits_iCDF, 8 );
        }

Thanks
Keith

-----Original Message-----
From: Koen Vos [mailto:koen.vos@skype.net] 
Sent: 2011年4月18日 17:38
To: Keith Yan
Cc: Jean-Marc Valin; codec@ietf.org
Subject: Re: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Hi Keith,

Thanks for the report.  It's a known bug in 0.9.3 (and it also exists with 60 ms).  I've fixed it locally, which will be included in the upcoming version that also adds stereo Voice mode.

best,
koen.


----- Original Message -----
From: "Keith Yan" <Keithy@hz.webex.com>
To: "Jean-Marc Valin" <jmvalin@jmvalin.ca>, codec@ietf.org
Sent: Monday, April 18, 2011 2:33:41 AM
Subject: Re: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Hi Jean-Marc,
I just test V0.9.3 code of DTX feature. The test result shows that DTX works abnormally when input frame size is 40ms, but it works fine if input frame is 20ms. 
Can you help to have a look on it.

Thanks
Keith

-----Original Message-----
From: Keith Yan 
Sent: 2011年3月16日 11:33
To: 'Jean-Marc Valin'; codec@ietf.org
Subject: RE: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Dear Jean-Marc,
I have tested V0.9.2 code, and find if enable DTX, it will return from range checking, error code is Error: Range coder state mismatch between encoder and decoder.
And if not define OPUS_TEST_RANGE_CODER_STATE, the decoded file has sharp noise in the silence area. The left channel of test.wav is origin voice, and the right channel is encode/decode with DTX enabled.

Please check it.

Thanks
Keith
 

-----Original Message-----
From: Jean-Marc Valin [mailto:jmvalin@jmvalin.ca]
Sent: 2011年3月15日 13:16
To: codec@ietf.org
Subject: Re: [codec] I-D Action:draft-ietf-codec-opus-05.txt

Hi,

Just to let you know that the main change in that latest version is the ability to decode multi-frame packets. That code has received very little testing, so don't be surprised if it breaks. However, I did some amount of testing to at least make sure that random inputs do not cause buffer overruns and similar security issues.

Cheers,

	Jean-Marc

On 11-03-14 06:15 PM, Internet-Drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Internet Wideband Audio Codec Working Group of the IETF.
>
>
> 	Title           : Definition of the Opus Audio Codec
> 	Author(s)       : J. Valin, K. Vos
> 	Filename        : draft-ietf-codec-opus-05.txt
> 	Pages           : 199
> 	Date            : 2011-03-14
>
> This document describes the Opus codec, designed for interactive 
> speech and audio transmission over the Internet.
>
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-codec-opus-05.txt
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> Below is the data which will enable a MIME compliant mail reader 
> implementation to automatically retrieve the ASCII version of the 
> Internet-Draft.
>
>
>
> _______________________________________________
> codec mailing list
> codec@ietf.org
> https://www.ietf.org/mailman/listinfo/codec

_______________________________________________
codec mailing list
codec@ietf.org
https://www.ietf.org/mailman/listinfo/codec