本文主要是介绍【海思爬坑记】Hi3516_Hi3519A_Hi3559A视频编解码get venc stream time out错误处理,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
结论: 一般出现这个错误一定是配置的问题,可以通过cat /proc/umap/venc 查看视频流是否正常。
比如 在SAMPLE_COMM_IVE_StartViVpssVencVo() 函数中
if (HI_TRUE == pstSwitch->bVenc){s32Ret = SAMPLE_COMM_VENC_GetGopAttr(VENC_GOPMODE_NORMALP,&stGopAttr);SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_5,"Error(%#x),SAMPLE_COMM_VENC_GetGopAttr failed!\n",s32Ret);s32Ret = SAMPLE_COMM_VENC_Start(VeH264Chn, enStreamType,aenSize[2],enRcMode,0,bRcnRefShareBuf,&stGopAttr);SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_5,"Error(%#x),SAMPLE_COMM_VENC_Start failed!\n",s32Ret);// 这里默认是没有进行VPSS 绑定的,所以venc肯定要出问题,就会报 get venc stream time out 错误s32Ret = SAMPLE_COMM_VPSS_Bind_VENC(VpssGrp, 2,VeH264Chn);SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_6,"Error(%#x),SAMPLE_COMM_VENC_StartGetStream failed!\n",s32Ret);s32Ret = SAMPLE_COMM_VENC_StartGetStream(&VeH264Chn, 1);SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_6,"Error(%#x),SAMPLE_COMM_VENC_StartGetStream failed!\n",s32Ret);}
这篇关于【海思爬坑记】Hi3516_Hi3519A_Hi3559A视频编解码get venc stream time out错误处理的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!