Dear Sir,
I want to set h264 parameters ,especially h264 extend parameters . I use dvsdk_dm368-evm_4_02_00_06_setuplinux.setuplinux to setup and in my code (if I want to set profileIdc and levelIdc )
IH264VENC_Params h264params ;
h264params.videncParams = Venc1_Params_DEFAULT;
......
h264params.videncParams.size = sizeof(IH264VENC_Params);
h264params.profileIdc = 66; /* base profile */
h264params.levelIdc = 41;
.......
hVe1 = Venc1_create(hEngine, envp->videoEncoder, (VIDENC1_Params*)&h264params, dynParams); // I can through the Venc_create function
.....
if (Venc1_process(hVe1, hCapBuf, hDstBuf) < 0) {
printf("return is %d\n",Venc1_process(hVe1, hCapBuf, hDstBuf) );
ERR("Failed to encode video buffer\n");
cleanup(THREAD_FAILURE);
}
the return value is -1
and in Venc1_process function
status = VIDENC1_process(hVe->hEncode, &inBufDesc, &outBufDesc, &inArgs,&outArgs);
if (status != VIDENC1_EOK) {
Dmai_err2("VIDENC1_process() failed with error (%d ext: 0x%x)\n",
(Int)status, (Uns) outArgs.videncOutArgs.extendedError);
return Dmai_EFAIL; // Dmai_EFAIL = -1
}
How to modify my code??
Thank you
zhengxu