这个是出现麻点的不稳定的
这个是正常的样子
下面是我Encodelink的设置
pEncPrm = &(EncPrm);
{
for(i=0;i<ENCODER_H264_CHAN_NUMS;i++){
pEncPrm->chCreateParams[i].format = IVIDEO_H264HP;
pEncPrm->chCreateParams[i].profile = IH264_HIGH_PROFILE;
pEncPrm->chCreateParams[i].dataLayout = IVIDEO_FIELD_SEPARATED;
pEncPrm->chCreateParams[i].fieldMergeEncodeEnable = FALSE;
pEncPrm->chCreateParams[i].enableAnalyticinfo = 0;
pEncPrm->chCreateParams[i].enableWaterMarking = 0;///////////////////////////////////
pEncPrm->chCreateParams[i].maxBitRate = 6*1000*1000;//////////////////////////////////////////加的
pEncPrm->chCreateParams[i].encodingPreset =XDM_DEFAULT;// XDM_USER_DEFINED;//XDM_DEFAULT;//XDM_USER_DEFINED
pEncPrm->chCreateParams[i].rateControlPreset = IVIDEO_STORAGE;
pEncPrm->chCreateParams[i].enableSVCExtensionFlag = 0;///////////////////////////////
pEncPrm->chCreateParams[i].numTemporalLayer = 0;////////////////////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.intraFrameInterval = 150;
pEncPrm->chCreateParams[i].defaultDynamicParams.inputFrameRate = 60;//video_param.nFrameRate;
if(i==0){
// pEncPrm->chCreateParams[i].defaultDynamicParams.inputFrameRate = vPort0FrameRate;
pEncPrm->chCreateParams[i].defaultDynamicParams.targetBitRate = vPort0BitRate;//2000 * 1000; //video_param.sBitrate*1000;////////////////////////////////////////////////////////////////////
}
else if(i==1){// pEncPrm->chCreateParams[i].defaultDynamicParams.inputFrameRate = vPort1FrameRate;
pEncPrm->chCreateParams[i].defaultDynamicParams.targetBitRate = vPort1BitRate;//2000 * 1000; //video_param.sBitrate*1000;
}
pEncPrm->chCreateParams[i].defaultDynamicParams.interFrameInterval = 1;
pEncPrm->chCreateParams[i].defaultDynamicParams.mvAccuracy = IVIDENC2_MOTIONVECTOR_QUARTERPEL;
pEncPrm->chCreateParams[i].defaultDynamicParams.rcAlg = 1;/////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.qpMin = 10;///////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.qpMax = 40;///////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.qpInit = -1;//////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.vbrDuration = 8;////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.vbrSensitivity = 0;//////////////////////
}
for(i=ENCODER_H264_CHAN_NUMS;i<ENCODER_H264_CHAN_NUMS+ENCODER_MJPG_CHAN_NUMS;i++){
pEncPrm->chCreateParams[i].format = IVIDEO_MJPEG;
pEncPrm->chCreateParams[i].profile = 0;
pEncPrm->chCreateParams[i].dataLayout = IVIDEO_FIELD_SEPARATED;
pEncPrm->chCreateParams[i].fieldMergeEncodeEnable = FALSE;
pEncPrm->chCreateParams[i].enableAnalyticinfo = 0;
pEncPrm->chCreateParams[i].enableWaterMarking = 0;
pEncPrm->chCreateParams[i].maxBitRate = 0;
pEncPrm->chCreateParams[i].encodingPreset = 0;
pEncPrm->chCreateParams[i].rateControlPreset = 0;
pEncPrm->chCreateParams[i].enableSVCExtensionFlag = 0;
pEncPrm->chCreateParams[i].numTemporalLayer = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.intraFrameInterval = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.targetBitRate = 100*1000;///////////////////////
pEncPrm->chCreateParams[i].defaultDynamicParams.interFrameInterval = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.mvAccuracy = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.inputFrameRate = 1;//pDynPrm->inputFrameRate;
pEncPrm->chCreateParams[i].defaultDynamicParams.qpMin = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.qpMax = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.qpInit = -1;
pEncPrm->chCreateParams[i].defaultDynamicParams.vbrDuration = 0;
pEncPrm->chCreateParams[i].defaultDynamicParams.vbrSensitivity = 0;
}
}
pEncPrm->inQueParams.prevLinkId = ipcInVideoId;
pEncPrm->inQueParams.prevLinkQueId = 0;
pEncPrm->outQueParams.nextLink = ipcBitsOutVideoId;
Chris Meng:
你好,
请问编码的是h264还是JPEG?多大分辨率?多大码流?
本地存储编码后的数据,然后在PC上解码也是这样的效果对么?输入到h264enc的数据保证是正常没有噪声么?
xing lixing:
回复 Chris Meng:
h264编码后就有,直接采集显示不会有,用的h264,1920×1080,2m的码流