pjsip中加入G729A 等音频编码

 

加入的编码如下:

Codec

Bitrates (Kbps)

Clock rate/
samples per frame

default
frames/pkt

default
bitrate

VAD/DTX

PLC

Note

AMR NB

4.75 to 12.2

8000/160

4

5900

internal

internal

 

AMR WB

6.6 to 23.85

16000/320

1

15850

internal

internal

 

G.722.1

16, 24, 32, 40

16000/320

1

16000

pjmedia

internal

 

G.723.1

5.3, 6.3

8000/240

1

5300

internal

internal

 

G.726

16, 24, 32, 40

8000/80

2

-

pjmedia

pjmedia

The bitrate is negotiated in SDP

G.728

16

8000/80

2

16000

pjmedia

internal

 

G.729A

8

8000/80

2

8000

internal

internal

1) Annex D and Annex E is supported for receive direction.

 

.    下载并安装 IPP and IPP samples

1.从intel官方下载

http://www.intel.com/cd/software/products/asmo-na/eng/302910.htm

或者直接从下面下

http://registrationcenter-download.intel.com/irc_nas/1103/w_ipp_ia32_p_5.3.3.082.exe

http://registrationcenter-download.intel.com/irc_nas/1103/w_ipp-samples_p_5.3.095.zip

      2.安装ipp_ia32,比如安装到C:/Program Files/Intel/IPP/5.3.3.082 文件夹下,

这里要用到破解文件可以从这个网址下载

http://www.4x4y.com/113454_CrackDown_Intel.IPP.v5.3.059.html

另外安装的时候有个注册环境变量的选项,一定要勾选,否则编译不过去

      3.安装ipp_samples ,比如安装到C:/ ipp-samples 文件夹下

 

. 编译 ipp_samples

编译最低要求vs2003环境,

到文件夹c:/ ipp-samples/speech-codecs下运行buildxxx.bat

编译成功会在c:/ ipp-samples/speech-codecs/bin/win32_cl9/lib 下出现usc.lib文件

 

三.配置vs环境

Include目录加入:

C:/Program Files/Intel/IPP/5.3.3.082/ia32/include

C:/ipp-samples/speech-codecs/core/usc/include

Lib目录加入:

C:/Program Files/Intel/IPP/5.3.3.082/ia32/lib

C:/Program Files/Intel/IPP/5.3.3.082/ia32/stublib

C:/ipp-samples/speech-codecs/bin/win32_cl9/lib

以上目录放在其他目录的最顶端

 

四.在pjsip工程中加入编译条件

打开/pjproject-1.4/pjlib/include/pj/config_site.h文件加入宏定义

#define PJMEDIA_HAS_INTEL_IPP   1

 

五.重新编译pjsip

你可能感兴趣的:(c,include,破解,Codec)