HermanChen / mpp

Rockchip MPP(Media Process Platfrom)
172 stars 72 forks source link

rk3288 mpp解码jpeg失败 #37

Closed chong closed 3 years ago

chong commented 3 years ago

请问kernel版本和mpp版本怎么对应的呢? kernel 4.4.194,使用最新mpp代码解码jpeg报错,确认是版本兼容问题,这个内核heckout mpp到某个分支正常过,后来再也复现不回去了。

sudo ./test/mpi_dec_test -t 8 -n 1 -f 0 -i ~/test.jpg -w 640 -h 480 -o test.yuv mpp[1236]: mpi_dec_utils: cmd parse result: mpp[1236]: mpi_dec_utils: input file name: /home/firefly/test.jpg mpp[1236]: mpi_dec_utils: output file name: test.yuv mpp[1236]: mpi_dec_utils: config file name: mpp[1236]: mpi_dec_utils: width : 640 mpp[1236]: mpi_dec_utils: height : 480 mpp[1236]: mpi_dec_utils: type : 8 mpp[1236]: mpi_dec_utils: debug flag : 0 mpp[1236]: mpi_dec_utils: max frames : 1 mpp[1236]: mpi_dec_test: mpi_dec_test start mpp[1236]: mpi_dec_test: input file size 44055 mpp[1236]: mpp_rt: NOT found ion allocator mpp[1236]: mpp_rt: found drm allocator mpp[1236]: mpp_info: mpp version: ddcb2785 author: Chen Jinsen 2021-08-19 [jpegd]: Remove stream copy_flag on rk3568 mpp[1236]: mpi_dec_test: 0x80351e60 mpi_dec_test decoder test start w 640 h 480 type 8 mpp[1236]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address mpp[1236]: HAL_JPEGD_VDPU1: hal_jpegd_vdpu1_start send cmd failed 14 mpp[1236]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out mpp[1236]: HAL_JPEGD_VDPU1: hal_jpegd_vdpu1_wait poll cmd failed 110 mpp[1236]: mpi_dec_test: 0x80351e60 decoded frame 0 mpp[1236]: mpi_dec_test: 0x80351e60 input 0 pkt output 0 frm decode 0 frames mpp[1236]: mpi_dec_test: test success max memory 0.00 MB

kernel 日志: [ 49.073777] rk_vcodec: reg_init:1487: error: translate reg address failed, dumping regs

HermanChen commented 3 years ago

内核日志有更完整一些么

chong commented 3 years ago

解决了,编译加入参数-DHAVE_DRM=1