在dm8168开发板中
在mcfw中的ti_venc.c里面有一个函数Int32 Venc_switchCodecAlgCh(VENC_CHN_PARAMS_S *pChPrm, VCODEC_TYPE_E codecType,
VENC_CHN_H264_Profile_E profile, VENC_CHN vencChnId)
可以设置profile,为什么在执行后,编码器就会不编码呢?
[m3video] *** ENCODE Statistics ***[m3video][m3video] Elasped Time: 16 secs [m3video][m3video][m3video] CH | In Recv In Skip In User Out Latency[m3video] Num | FPSFPSSkip FPS FPS Min / Max [m3video] -------------------------------------------- [m3video]0 |3030300 255 /0 [m3video][m3video] Multi Channel Encode Average Submit Batch Size[m3video] Max Submit Batch Size : 24 [m3video] IVAHD_0 Average Batch Size : 0 [m3video] IVAHD_0 Max achieved Batch Size : 0 [m3video] IVAHD_1 Average Batch Size : 0 [m3video] IVAHD_1 Max achieved Batch Size : 0 [m3video] IVAHD_2 Average Batch Size : 0 [m3video] IVAHD_2 Max achieved Batch Size : 0
Chris Meng:
你好,
如果是算法的动态参数就可以动态修改,如果是静态参数就不能动态修改。Profile是h264enc的静态参数(IVIDENC2_Params),需要先delete 当前instance,然后重新create。