使用faac进行的编码,设置如下:
//设置版本,录制MP4文件时要用MPEG4
pConfiguration->version = MPEG4 ;
pConfiguration->aacObjectType = LOW; //LC编码
//输入数据类型
pConfiguration->inputFormat = FAAC_INPUT_16BIT;
// outputFormat (0 = Raw; 1 = ADTS)
// 录制MP4文件时,要用raw流。检验编码是否正确时可设置为 adts传输流,
pConfiguration->outputFormat= 0;
//瞬时噪声定形(temporal noise shaping,TNS)滤波器
pConfiguration->shortctl = SHORTCTL_NORMAL;
pConfiguration->useTns=true;
//pConfiguration->useLfe=false;
pConfiguration->quantqual=100;
pConfiguration->bandWidth=0;
pConfiguration->bitRate=0;
/*set encoding configuretion*/
麻烦问一下,因为要合成MP4要求暴风可以播放,所以我在使用faac进行编码的时候是用Raw格式进行的(ADTS暴风不认),Raw格式编码后还能用faad解码吗?能的话大概怎么弄啊