rockchip-linux / mpp

Media Process Platform (MPP) module
538 stars 163 forks source link

mpi_dec_test jpg fails #217

Closed bakwc closed 3 years ago

bakwc commented 3 years ago

Hi! I try to decode jpg file with mpi_dec_test and get errors: My hardware: nanopi m4 (rk3399). I tried on master and on release_20171123, same errors.

root@nanopim4:/home/fippo# mpi_dec_test -i dump.jpg -t 8 -w 96 -h 48
mpp[15649]: mpi_dec_utils: cmd parse result:
mpp[15649]: mpi_dec_utils: input  file name: dump.jpg
mpp[15649]: mpi_dec_utils: output file name:
mpp[15649]: mpi_dec_utils: config file name:
mpp[15649]: mpi_dec_utils: width      :   96
mpp[15649]: mpi_dec_utils: height     :   48
mpp[15649]: mpi_dec_utils: type       : 8
mpp[15649]: mpi_dec_utils: debug flag : 0
mpp[15649]: mpi_dec_utils: max frames : 0
mpp[15649]: mpi_dec_test: mpi_dec_test start
mpp[15649]: mpi_dec_test: input file size 1241
mpp[15649]: mpp_rt: NOT found ion allocator
mpp[15649]: mpp_rt: found drm allocator
mpp[15649]: mpp_info: mpp version: 02058ce6 author: Yandong Lin   2021-07-29 [h264d_parse]: skip sp/si slice
mpp[15649]: mpi_dec_test: 0x55674ea960 mpi_dec_test decoder test start w 96 h 48 type 8
mpp[15649]: HAL_JPEG_VDPU2: jpegd_setup_pp pp_enable 0
mpp[15649]: vcodec_service: vcodec_service_reg_wr reg size mismatch wr 636 rd 736
mpp[15649]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[15649]: HAL_JPEG_VDPU2: hal_jpegd_vdpu2_start send cmd failed 14
mpp[15649]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out
mpp[15649]: HAL_JPEG_VDPU2: hal_jpegd_vdpu2_wait poll cmd failed 110
mpp[15649]: mpi_dec_test: 0x55674ea960 decoded frame 0
mpp[15649]: HAL_JPEG_VDPU2: jpegd_setup_pp pp_enable 0

Could you help please?

sudo ./mybuild/osal/test/mpp_platform_test
mpp_plat_test: chip name: (null)
mpp_plat_test:
mpp_plat_test: chip vcodec type 00000000
mpp_plat_test:
mpp_plat_test: start probing decoder device name:
mpp_plat_test: H.264 decoder: (null)
mpp_plat_test: H.265 decoder: (null)
mpp_plat_test: MJPEG decoder: (null)
mpp_plat_test: VP9   decoder: (null)
mpp_plat_test: avs   decoder: (null)
mpp_plat_test:
mpp_plat_test: start probing encoder device name:
mpp_plat_test: H.264 encoder: (null)
mpp_plat_test: H.265 encoder: (null)
mpp_plat_test: MJPEG encoder: (null)
mpp_plat_test: mpp platform test done
bakwc commented 3 years ago

The problem was wrong mpp version. I used nanopi m4 + armbian, it use this fork: https://github.com/teacupx/mpp Used version from fork, now decoder is working.