Open jbloomfield2008 opened 4 years ago
The commit a9d6b3a has not relation with encoder. So it maybe some other commit?
Can you try my branch https://github.com/HermanChen/mpp/ to check this branch has the same error or not? Alsocan you provide the full log?
Agreed the commit is not related to the encoded and building mpp at that revision works, so it's a commit just after a9d6b3a994662411d1ac4cad1fbbd6e4a0831fec that introduced the error. The kernel logs are:
Feb 21 01:47:28 localhost kernel: [ 4372.609556] rk_vcodec: vpu_service_ioctl:1890: error: unknown vpu service ioctl cmd 40086c01
Feb 21 01:47:28 localhost kernel: [ 4372.633423] usb 5-1: 3:8: cannot get freq at ep 0x86
Feb 21 01:47:28 localhost kernel: [ 4372.670748] uvcvideo: Non-zero status (-71) in video completion handler.
Feb 21 01:47:30 localhost kernel: [ 4374.772292] rk_vcodec: vpu_service_ioctl:1831: error: pid 7909 wait 1 task done timeout
Feb 21 01:47:30 localhost kernel: [ 4374.772309] rk-vcodec vpu_combo: 1 task is running but not return, reset hardware...
Feb 21 01:47:30 localhost kernel: [ 4374.772317] rk-vcodec vpu_combo: resetting...
Feb 21 01:47:30 localhost kernel: [ 4374.772380] ------------[ cut here ]------------
Feb 21 01:47:30 localhost kernel: [ 4374.772386] WARNING: at drivers/video/rockchip/vcodec/vcodec_service.c:693
Feb 21 01:47:30 localhost kernel: [ 4374.772391] Modules linked in: af_packet lz4hc lz4hc_compress zlib ftdi_sio rk_vcodec lzo zram ip_tables x_tables autofs4
Feb 21 01:47:30 localhost kernel: [ 4374.772416]
Feb 21 01:47:30 localhost kernel: [ 4374.772426] CPU: 1 PID: 7912 Comm: mpp_enc_ctrl Tainted: G W 4.4.192-rockchip64 #1
Feb 21 01:47:30 localhost kernel: [ 4374.772431] Hardware name: Firefly ROC-RK3328-CC (DT)
Feb 21 01:47:30 localhost kernel: [ 4374.772437] task: ffffffc0762f0e00 task.stack: ffffffc068294000
Feb 21 01:47:30 localhost kernel: [ 4374.772466] PC is at vpu_reset+0x34/0x230 [rk_vcodec]
Feb 21 01:47:30 localhost kernel: [ 4374.772491] LR is at vpu_reset+0x2c/0x230 [rk_vcodec]
Feb 21 01:47:30 localhost kernel: [ 4374.772497] pc : [
Sorry one more thing... Your branch https://github.com/HermanChen/mpp/ works just fine!
The current version of MPP fails when encoding H264 on a RK3288. The errors returned by MPP are as follows:
hal_h264e_vepu2: hardware returns error:-1 mpp_enc: mpp 0x5598c69000 hal_hw_wait failed return -1009
The error was introduced post commit a9d6b3a994662411d1ac4cad1fbbd6e4a0831fec. Up to this version H264 encoding works as expected.