radxa / debos-radxa

This repo is deprecated, please use https://github.com/radxa-repo/rbuild instead
https://github.com/radxa-repo/rbuild
130 stars 46 forks source link

open /dev/mpp_server failed #8

Open Lebron8997 opened 2 years ago

Lebron8997 commented 2 years ago

My board: rock-3a Rock 3A (RK 3568)

key error:mpp[5162]: vcodec_service: open vcodec_service /dev/mpp_service failed

based on rock-3a-ubuntu-focal-server-arm64-20220102-1552-gpt.img.xz in latest release.
Using mpp from git clone https://gitee.com/hermanchen82/mpp.git mpp, the test in /mpp/build/linux/aarch64/test failed me by ` rock@rock3a:/opt/mpp/build/linux/aarch64/test$ ./mpi_dec_test -i ~/data/1080p.264 -t 7 -h 1080 -w 1920

mpp[5162]: mpi_dec_utils: cmd parse result:

mpp[5162]: mpi_dec_utils: input file name: /home/rock/data/1080p.264

mpp[5162]: mpi_dec_utils: output file name:

mpp[5162]: mpi_dec_utils: config file name:

mpp[5162]: mpi_dec_utils: width : 1920

mpp[5162]: mpi_dec_utils: height : 1080

mpp[5162]: mpi_dec_utils: type : 7

mpp[5162]: mpi_dec_utils: debug flag : 0

mpp[5162]: mpi_dec_utils: max frames : 0

mpp[5162]: mpi_dec_test: mpi_dec_test start

mpp[5162]: mpi_dec_test: input file size 153898619

mpp[5162]: mpp_info: mpp version: 5b1156a4 author: Yandong Lin 2021-04-09 [vcodec_service]: Fix array out of bounds issue

mpp[5162]: mpi_dec_test: 0x557d0d53c0 mpi_dec_test decoder test start w 1920 h 1080 type 7

mpp[5162]: mpp_rt: NOT found ion allocator

mpp[5162]: mpp_rt: found drm allocator

mpp[5162]: vcodec_service: open vcodec_service /dev/mpp_service failed

mpp[5162]: hal_h264d_api: mpp_dev_init failed ret: -1

mpp[5162]: mpp_hal: mpp_hal_init hal h264d_rkdec init failed ret -1 mpp[5162]: mpp_hal: mpp_hal_init could not found coding type 7

mpp[5162]: mpp_dec: mpp_dec_init could not init hal

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp_time: mpp_clock_put invalid clock (nil)

mpp[5162]: mpp: error found on mpp initialization

mpp[5162]: mpi_dec_test: 0x557d0d53c0 mpp_init failed

mpp[5162]: mpi_dec_test: test failed ret -1

`

Is there anything wrong with the driver? Thank you !

StephenInVamrs commented 2 years ago

Can you try again with this repository? https://github.com/radxa/mpp/commits/rockchip

Would you mind sending me file 1080p.264 for my test?

Lebron8997 commented 2 years ago

Can you try again with this repository? https://github.com/radxa/mpp/commits/rockchip

Would you mind sending me file 1080p.264 for my test?

I just tested https://github.com/radxa/mpp/commits/rockchip and it failed with the same error. (And it truely works on rk 3399 ) 1080p.zip

would you mind to test the attached file?

Lebron8997 commented 2 years ago

Can you try again with this repository? https://github.com/radxa/mpp/commits/rockchip

Would you mind sending me file 1080p.264 for my test?

BTW, other media files in xxx.264 and xxx.265 (generated by ffmpeg 4.3) have been tested on rock-3a and they all failed in the same way.

Thank you.

amazingfate commented 2 years ago

Try sudo chmod 666 /dev/mpp_service. To avoid manually set the permission everytime, a udev rule is needed, something like:

KERNEL=="mpp_service", MODE="0666", GROUP="video"