fdk-aac API编程实现pcm2aac

fdk-aac API编程实现pcm2aac


1、源码下载

 点击打开链接

2、交叉编译


# ./configure --prefix=$PWD/out --host=arm-hisiv100nptl-linux

# make 

# make install


3、API应用

 aacEncOpen 

allocate encoder instance with required configuration

 aacEncoder_SetParam

each parameter to be set. AOT, samplingrate, channelMode, bitrate
and transport type are mandatory.


 aacEncEncode

with NULL parameters to initialize encoder instance with present parameter
set.

aacEncInfo

 retrieve a configuration data block to be transmitted out of band

do

{

 aacEncEncode 

}while(1)


 aacEncClose()

 destroy encoder instance.


4、编译规则

$(CC)  -o $(OBJ) ./src/pcm2aac.c -I ./fdk-aac/include/ -pthread -lm ./fdk-aac/lib/libfdk-aac.a

你可能感兴趣的:(Multimedia)