|
【Linux】
Rkmpp硬解码测试失败:mpp_dec_test
发表于 2021-4-2 09:50:11
浏览:11612
|
回复:0
打印
只看该作者
[复制链接]
楼主
详细问题记录在这个里边:https://github.com/rockchip-linux/mpp/issues/188
代码分支:release
解码过程中解码一帧日志信息:
- ./mpi_dec_test -i /home/test.h264 -t 7 -o test.yuv -w 1920 -h 1080
复制代码- mpp[4052]: h264d_api: [pkt_in_timeUs] is_avcC=0, in_pts=0, pkt_eos=1, len=3649, pkt_no=239
- mpp[4052]: h264d_parse: SliceSTATE_ResetSlice
- mpp[4052]: h264d_parse: SliceSTATE_ReadNalu
- mpp[4052]: h264d_parse: nalu_type=SLICE.
- mpp[4052]: h264d_sps: [DPB_size] dpb_size[0]=3, mvc_flag=0, dpb_size[1]=0
- mpp[4052]: h264d_slice: [SLICE_HEAD] type=0, layer_id=0,sps_id=0, pps_id=0, struct=3, frame_num=102
- mpp[4052]: h264d_parse: SliceSTATE_ParseNalu
- mpp[4052]: h264d_init: [DPB_malloc] g_framecnt=239, com_flag=0, mark_idx=2, slot_idx=2, slice_type=0, struct=3, lay_id=0
- mpp[4052]: h264d_init: [DPB_INFO] cur_slot_idx=2
- mpp[4052]: h264d_init: [DPB_INFO] ref_slot_idx[0]=3
- mpp[4052]: h264d_init: [DPB_INFO] ref_slot_idx[1]=1
- mpp[4052]: h264d_init: [DPB_INFO] ref_slot_idx[2]=0
- mpp[4052]: h264d_init: [DPB_MARK_INFO] slot_idx=2, top_used=1, bot_used=1, out_flag=1, fd=0xff
- mpp[4052]: h264d_init: [DPB_MARK_INFO] ---------- cur_slot=2 --------------------
- mpp[4052]: h264d_init: [DPB_REF_ERR] slot_idx=0, dpb_err[0]=1
- mpp[4052]: h264d_init: [DPB_REF_ERR] slot_idx=1, dpb_err[1]=1
- mpp[4052]: h264d_init: [DPB_REF_ERR] slot_idx=3, dpb_err[2]=1
- mpp[4052]: h264d_init: list0 dpb: cur_err_flag=1, pps_refs=1, over_flag=1, num_ref_l0=3
- mpp[4052]: h264d_parse: SliceSTATE_InitPicture
- mpp[4052]: h264d_parse: SliceSTATE_GetSliceData
- mpp[4052]: h264d_parse: SliceSTATE_RegisterOneFrame
- mpp[4052]: h264d_dpb: [DPB_size] p_Dpb->used_size=3
- mpp[4052]: h264d_dpb: warning: max_dec_frame_buffering(3) is less than dpb_size(4) calculated from Profile/Level.
- mpp[4052]: h264d_api: [CALLBACK] g_no=240, out_idx=2, dpberr=1, harderr=1, ref_flag=1, errinfo=1, discard=0
- mpp[4052]: mpi_dec_test: 0x7f663620 decode get frame 239 err 1 discard 0
- mpp[4052]: mpi_dec_test: 0x7f663620 found last packet
- mpp[4052]: mpi_dec_test: 0x7f663620 input 2034 pkt output 241 frm decode 240 frames
- mpp[4052]: h264d_dpb: warning: max_dec_frame_buffering(3) is less than dpb_size(4) calculated from Profile/Level.
- mpp[4052]: mpi_dec_test: test success max memory 14.34 MB
复制代码
输出结果:
- -rw-r--r-- 1 root root 0 Apr 2 09:45 test.yuv
复制代码
内核信息:
- root@rk3288:/home/code/mpp/build_mpp/osal/test# ./mpp_platform_test
- mpp[4024]: mpp_plat_test: chip name: rockchip,rk3288-firefly rockchip,rk3288
- mpp[4024]: mpp_plat_test:
- mpp[4024]: mpp_plat_test: chip vcodec type 00020101
- mpp[4024]: mpp_plat_test: found vpu1 codec
- mpp[4024]: mpp_plat_test: found rk hevc decoder
- mpp[4024]: mpp_plat_test:
- mpp[4024]: mpp_plat_test: start probing decoder device name:
- mpp[4024]: mpp_plat_test: H.264 decoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: H.265 decoder: /dev/hevc-service
- mpp[4024]: mpp_plat_test: MJPEG decoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: VP9 decoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: avs decoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test:
- mpp[4024]: mpp_plat_test: start probing encoder device name:
- mpp[4024]: mpp_plat_test: H.264 encoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: H.265 encoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: MJPEG encoder: /dev/vpu-service
- mpp[4024]: mpp_plat_test: mpp platform test done
复制代码
根据在git上的回复,是与rk3288内核兼容问题。在安卓版本上没有问题。
|
|