Toybrick

楼主: jefferyzhang

RK3399Pro入门教程(6)硬件编解码器MPP库的使用

 

jefferyzhang

版主

积分
13445
 楼主| 发表于 2021-2-24 14:48:54 | 显示全部楼层
why_haiyang 发表于 2021-2-24 14:42
大佬 调用android的mediacodec会出现 B帧 回帧现象 什么原因啊

用播放器播带b帧的mp4文件试试,我不能确定你写的代码是没问题的
回复

使用道具 举报

zhuziheng

新手上路

积分
10
发表于 2021-3-9 08:48:05 | 显示全部楼层
您好,向您请教一个问题,我这边是调用的SDK里面自带的mpi_dec_test,报错如下,请问是什么原因导致的
[root@rk3399:/mnt/testttttt]# ./mpi_dec_test -i ../mpp_dec_test.h264 -o ../outpu
t.nv12
mpp[2584]: mpi_dec_utils: cmd parse result:
mpp[2584]: mpi_dec_utils: input  file name: ../mpp_dec_test.h264
mpp[2584]: mpi_dec_utils: output file name: ../output.nv12
mpp[2584]: mpi_dec_utils: config file name:
mpp[2584]: mpi_dec_utils: width      :    0
mpp[2584]: mpi_dec_utils: height     :    0
mpp[2584]: mpi_dec_utils: type       : 7
mpp[2584]: mpi_dec_utils: debug flag : 0
mpp[2584]: mpi_dec_utils: max frames : 0
mpp[2584]: mpi_dec_test: mpi_dec_test start
mpp[2584]: mpi_dec_test: input file size 26842
mpp[2584]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[2584]: mpi_dec_test: 0x55a4834340 mpi_dec_test decoder test start w 0 h 0 type 7
mpp[2584]: mpp_soc: open /proc/device-tree/compatible error
mpp[2584]: mpp_rt: NOT found ion allocator
mpp[2584]: mpp_rt: found drm allocator
mpp[2584]: mpp_platform: can not found match soc name:
[1011050.421536] rk_vcodec: vpu_service_ioctl:2138: error: unknown vpu service ioctl cmd 40086c01
mpp[2584]: mpp_thread: thread 0x7fae622bf0 setname mpp_dec_parser failed
mpp[2584]: mpp_thread: thread 0x7fae622fb4 setname mpp_dec_hal failed
mpp[2584]: mpi_dec_test: 0x55a4834340 found last packet
mpp[2584]: mpi_dec_test: 0x55a4834340 decode_get_frame get info changed found
mpp[2584]: mpi_dec_test: 0x55a4834340 decoder require buffer w:h [320:240] stride [320:240] buf_size 138240
[1011052.467155] rk_vcodec: vpu_service_ioctl:2079: error: pid 2584 wait 1 task done timeout
[1011052.475370] rk-vcodec ff650000.vpu_service: 1 task is running but not return, reset hardware...
[1011052.484296] rk-vcodec ff650000.vpu_service: resetting...
[1011052.489829] ------------[ cut here ]------------
[1011052.494618] WARNING: at drivers/video/rockchip/vcodec/vcodec_service.c:912
[1011052.501657] Modules linked in: tlv_320aic31(O) ite680x(O) mdin400(O) sii9136(O) av_adc(O) device_cloud100d(O) bsp_driverprintk(O)
[1011052.513634]
[1011052.515309] CPU: 0 PID: 2586 Comm: mpi_dec_test Tainted: G        W  O    4.4.194 #18
[1011052.523311] Hardware name: Rockchip RK3399 EVB IND LPDDR4 Board edp (Linux) (DT)
[1011052.530880] task: ffffffc07ae90000 task.stack: ffffffc079a6c000
[1011052.536976] PC is at vpu_reset+0x38/0x218
[1011052.541162] LR is at vpu_reset+0x30/0x218
[1011052.545348] pc : [<ffffff800843ac68>] lr : [<ffffff800843ac60>] pstate: 00000145
[1011052.552915] sp : ffffffc079a6fd20
[1011052.556402] x29: ffffffc079a6fd20 x28: ffffffc07ae90000
[1011052.561928] x27: ffffff8008a62000 x26: 0000000000000001
[1011052.567452] x25: ffffffc079a989c8 x24: ffffffc07b40b288
[1011052.572977] x23: ffffffc07bf68e28 x22: 0000000000000001
[1011052.578501] x21: ffffffc07b40b028 x20: ffffffc07bf68e28
[1011052.584026] x19: ffffffc07b40b028 x18: ffffff808910a897
[1011052.589550] x17: 0000000000000000 x16: 0000000000000000
[1011052.595075] x15: 0000000000000000 x14: 00000000000763c8
[1011052.600599] x13: 000000000000000a x12: 0000000000000030
[1011052.606124] x11: 00000000fffffffe x10: ffffff800910a8a1
[1011052.611648] x9 : 0000000005f5e0ff x8 : ffffff800835aba8
[1011052.617173] x7 : ffffff8008fde430 x6 : 000000000000003e
[1011052.622697] x5 : 0000000000000000 x4 : 0000000000000000
[1011052.628222] x3 : 0000000000000000 x2 : ffffffc07eee6328
[1011052.633746] x1 : 0000004075fa7000 x0 : ffffffc07c187400
[1011052.639272]
[1011052.639272] PC: 0xffffff800843abe8:
[1011052.644578] abe8  b4fffac0 39001016 b0005dd6 b9000017 913062d6 b9000818 9102c2d7 aa1703e0
[1011052.653085] ac08  94184d83 aa1603e0 91004281 f84f0c02 f9007ac1 f9000441 a9010282 aa1703e0
[1011052.661589] ac28  94184dae 17ffffc5 a9bb7bfd 910003fd a90153f3 a9025bf5 aa0003f4 aa1e03e0
[1011052.670094] ac48  d503201f b0004741 910cb421 f9404693 f942ba60 9404d38e f941de60 b4000040
[1011052.678599] ac68  d4210000 f941e260 b4000040 d4210000 f941e660 b4000040 d4210000 f942ba60
[1011052.687104] ac88  f901de7f f901e27f f901e67f 94007bbd f9433e60 f9401001 d0ffffe0 91302000
[1011052.695608] aca8  eb00003f 54000501 910de275 aa1503e0 94184d57 9100c3a8 52800002 52800001
[1011052.704113] acc8  52800000 940dd65d aa1503e0 94184d83 f942ba60 b0004755 94007bc4 f942ba60
[1011052.712621]
[1011052.712621] LR: 0xffffff800843abe0:
[1011052.717927] abe0  97f59b57 aa0003f4 b4fffac0 39001016 b0005dd6 b9000017 913062d6 b9000818
[1011052.726431] ac00  9102c2d7 aa1703e0 94184d83 aa1603e0 91004281 f84f0c02 f9007ac1 f9000441
[1011052.734936] ac20  a9010282 aa1703e0 94184dae 17ffffc5 a9bb7bfd 910003fd a90153f3 a9025bf5
[1011052.743441] ac40  aa0003f4 aa1e03e0 d503201f b0004741 910cb421 f9404693 f942ba60 9404d38e
[1011052.751946] ac60  f941de60 b4000040 d4210000 f941e260 b4000040 d4210000 f941e660 b4000040
[1011052.760450] ac80  d4210000 f942ba60 f901de7f f901e27f f901e67f 94007bbd f9433e60 f9401001
[1011052.768956] aca0  d0ffffe0 91302000 eb00003f 54000501 910de275 aa1503e0 94184d57 9100c3a8
[1011052.777461] acc0  52800002 52800001 52800000 940dd65d aa1503e0 94184d83 f942ba60 b0004755
[1011052.785967]
[1011052.785967] SP: 0xffffffc079a6fca0:
[1011052.791273] fca0  00000001 00000000 7bf68e28 ffffffc0 7b40b288 ffffffc0 79a989c8 ffffffc0
[1011052.799778] fcc0  00000001 00000000 08a62000 ffffff80 7ae90000 ffffffc0 79a6fd20 ffffffc0
[1011052.808283] fce0  0843ac60 ffffff80 79a6fd20 ffffffc0 0843ac68 ffffff80 00000145 00000000
[1011052.816777] fd00  00000000 00000000 00000000 00000000 00000000 00000080 08fde430 ffffff80
[1011052.825282] fd20  79a6fd70 ffffffc0 0843b47c ffffff80 79a98980 ffffffc0 ffffff92 00000000
[1011052.833786] fd40  7b40b028 ffffffc0 00000001 00000000 00000000 00000000 00000000 00000000
[1011052.842291] fd60  0000005d 00000000 08fde430 ffffff80 79a6fe00 ffffffc0 081bcc90 ffffff80
[1011052.850796] fd80  40086c04 00000000 ad45e708 0000007f 7a1b8140 ffffffc0 7b4c4070 ffffffc0
[1011052.859292]
[1011052.859292] X0: 0xffffffc07c187380:
[1011052.864598] 7380  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.873103] 73a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.881608] 73c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.890112] 73e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.898606] 7400  00000001 00000002 79a98980 ffffffc0 7bf68e28 ffffffc0 08ff3fc8 ffffff80
[1011052.907111] 7420  08ad8868 ffffff80 79a989a8 ffffffc0 79a989a8 ffffffc0 7b40b2d8 ffffffc0
[1011052.915616] 7440  7b40b2d8 ffffffc0 00000194 00000000 7c187450 ffffffc0 7c187450 ffffffc0
[1011052.924121] 7460  00000000 00000000 7c187470 ffffffc0 00000000 00000001 fff80510 00081200
[1011052.932628]
[1011052.932628] X2: 0xffffffc07eee62a8:
[1011052.937934] 62a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.946439] 62c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.954944] 62e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.963448] 6308  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.971953] 6328  7eee3b40 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
[1011052.980458] 6348  00000001 00000000 00000000 dead4ead ffffffff 00000000 ffffffff ffffffff
[1011052.988963] 6368  7eee6368 ffffffc0 7eee6368 ffffffc0 00000000 00000000 00000000 00000000
[1011052.997467] 6388  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.005976]
[1011053.005976] X7: 0xffffff8008fde3b0:
[1011053.011282] e3b0  7c3afcc0 ffffffc0 00000000 00000000 00000000 00000000 00110000 00000000
[1011053.019787] e3d0  000f0000 00000000 00000000 00000000 00040000 00000000 00080000 00000000
[1011053.028281] e3f0  00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[1011053.036786] e410  00000000 00000001 00000000 00000001 00000001 00000001 00000001 00000000
[1011053.045290] e430  00000000 00000000 08d0d3be ffffff80 72167216 dead4ead ffffffff 00000000
[1011053.053796] e450  ffffffff ffffffff 7bc00000 ffffffc0 00040000 00000000 00000001 00000000
[1011053.062300] e470  00000000 dead4ead ffffffff 00000000 ffffffff ffffffff 08fde488 ffffff80
[1011053.070805] e490  08fde488 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.079301]
[1011053.079301] X8: 0xffffff800835ab28:
[1011053.084608] ab28  9400054a aa1303e0 94000554 52800000 a94153f3 f94013f5 a8c37bfd d65f03c0
[1011053.093113] ab48  f9400413 17fffff6 f9400813 17fffff4 f9400c13 17fffff2 128002a0 17fffff5
[1011053.101618] ab68  71001c1f 54000161 f9405ce0 f9400c00 b4000140 a9bf7bfd aa0603e2 aa0403e1
[1011053.110112] ab88  910003fd 940004ce a8c17bfd d65f03c0 128002a0 d65f03c0 12800160 d65f03c0
[1011053.118606] aba8  a9bb7bfd 7100081f 910003fd a9025bf5 aa0403f6 a90153f3 aa0603f5 a90363f7
[1011053.127111] abc8  f9405cf3 54000181 f9400660 b4000a20 2a1503e2 aa1603e1 9400047d 52800000
[1011053.135616] abe8  a94153f3 a9425bf5 a94363f7 a8c57bfd d65f03c0 71000c1f 54000061 f9400a60
[1011053.144110] ac08  17fffff3 71001c1f 54000061 f9400e60 17ffffef 35000820 51000420 7100041f
[1011053.152618]
[1011053.152618] X10: 0xffffff800910a821:
[1011053.158019] a820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.166524] a840  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.175029] a860  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.183533] a880  00000000 00000000 00000000 00000000 00000001 00000000 30303020 32303330
[1011053.192027] a8a0  3239312e 5d373230 61386120 30312030 312e3335 31363235 58205d38 203a3031
[1011053.200532] a8c0  66667830 66666666 39303038 38613031 0a3a3132 63613334 5d3e3036 74737020
[1011053.209036] a8e0  3a657461 30303020 34313030 23200a35 720a3831 72617764 2e2e2e65 0a0a0a0a
[1011053.217530] a900  323a6131 65313a63 3a32373a 623a6531 28740a30 73203b29 725f6e76 735f7665
[1011053.226035] a920  6e697274 72665f67 615f6d6f 6f206d72 68742066 6d207369 5f696c61 69206f6b
[1011053.234547]
[1011053.234547] X18: 0xffffff808910a817:
[1011053.239948] a814  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.248458] a834  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.256964] a854  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.265469] a874  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.273974] a894  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.282468] a8b4  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.290974] a8d4  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.299468] a8f4  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.307962] a914  ******** ******** ******** ******** ******** ******** ******** ********
[1011053.316468]
[1011053.316468] X19: 0xffffffc07b40afa8:
[1011053.321870] afa8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.330365] afc8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.338869] afe8  00000000 00000000 00000000 00000000 00000000 00000000 7bde6f80 ffffffc0
[1011053.347374] b008  7c389af0 ffffffc0 085774dc ffffff80 08d585a8 ffffff80 000006a8 00000000
[1011053.355879] b028  08db745d ffffff80 7b523180 ffffffc0 7bf70830 ffffffc0 00170017 dead4ead
[1011053.364384] b048  ffffffff 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[1011053.372889] b068  00000000 00000000 00000000 00000000 08584be0 ffffff80 7b40b028 ffffffc0
[1011053.381394] b088  00000005 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[1011053.389901]
[1011053.389901] X20: 0xffffffc07bf68da8:
[1011053.395302] 8da8  7bf68da0 ffffffc0 00000000 00000000 00000000 00000000 00000008 00000000
[1011053.403807] 8dc8  00000000 dead4ead ffffffff 00000000 ffffffff ffffffff 7bf68de0 ffffffc0
[1011053.412311] 8de8  7bf68de0 ffffffc0 00000000 00000000 00000000 00000000 7bf5c1c0 ffffffc0
[1011053.420816] 8e08  7bde6ac0 ffffffc0 085774dc ffffff80 08d585a8 ffffff80 00000160 00000000
[1011053.429322] 8e28  00000000 00000000 7bf68e30 ffffffc0 7bf68e30 ffffffc0 00000000 00000000
[1011053.437826] 8e48  00000000 00000000 08fa1028 ffffff80 00000000 00000000 00000002 00000001
[1011053.446331] 8e68  00000000 00000000 08ad80a8 ffffff80 7b4c42c8 ffffffc0 7b4c42c8 ffffffc0
[1011053.454836] 8e88  0f500000 00000001 0f500000 00000000 7bdeae00 ffffffc0 7be51800 ffffffc0
[1011053.463343]
[1011053.463343] X21: 0xffffffc07b40afa8:
[1011053.468744] afa8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.477248] afc8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.485753] afe8  00000000 00000000 00000000 00000000 00000000 00000000 7bde6f80 ffffffc0
[1011053.494257] b008  7c389af0 ffffffc0 085774dc ffffff80 08d585a8 ffffff80 000006a8 00000000
[1011053.502762] b028  08db745d ffffff80 7b523180 ffffffc0 7bf70830 ffffffc0 00170017 dead4ead
[1011053.511268] b048  ffffffff 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[1011053.519773] b068  00000000 00000000 00000000 00000000 08584be0 ffffff80 7b40b028 ffffffc0
[1011053.528277] b088  00000005 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[1011053.536775]
[1011053.536775] X23: 0xffffffc07bf68da8:
[1011053.542176] 8da8  7bf68da0 ffffffc0 00000000 00000000 00000000 00000000 00000008 00000000
[1011053.550681] 8dc8  00000000 dead4ead ffffffff 00000000 ffffffff ffffffff 7bf68de0 ffffffc0
[1011053.559186] 8de8  7bf68de0 ffffffc0 00000000 00000000 00000000 00000000 7bf5c1c0 ffffffc0
[1011053.567691] 8e08  7bde6ac0 ffffffc0 085774dc ffffff80 08d585a8 ffffff80 00000160 00000000
[1011053.576195] 8e28  00000000 00000000 7bf68e30 ffffffc0 7bf68e30 ffffffc0 00000000 00000000
[1011053.584700] 8e48  00000000 00000000 08fa1028 ffffff80 00000000 00000000 00000002 00000001
[1011053.593204] 8e68  00000000 00000000 08ad80a8 ffffff80 7b4c42c8 ffffffc0 7b4c42c8 ffffffc0
[1011053.601710] 8e88  0f500000 00000001 0f500000 00000000 7bdeae00 ffffffc0 7be51800 ffffffc0
[1011053.610217]
[1011053.610217] X24: 0xffffffc07b40b208:
[1011053.615618] b208  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.624123] b228  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.632628] b248  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.641133] b268  00000000 00000000 00000000 00000000 7bfa5c00 ffffffc0 76e542bd 0003978b
[1011053.649637] b288  00000000 00000000 00000000 dead4ead ffffffff 00000000 ffffffff ffffffff
[1011053.658141] b2a8  7b40b2a8 ffffffc0 7b40b2a8 ffffffc0 7ae90000 ffffffc0 00000000 00000000
[1011053.666646] b2c8  7b40b2c8 ffffffc0 7b40b2c8 ffffffc0 7c187438 ffffffc0 7c187438 ffffffc0
[1011053.675152] b2e8  7b40b2e8 ffffffc0 7b40b2e8 ffffffc0 7bdeaa88 ffffffc0 79a98988 ffffffc0
[1011053.683658]
[1011053.683658] X25: 0xffffffc079a98948:
[1011053.689059] 8948  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.697564] 8968  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[1011053.706058] 8988  7b40b2f8 ffffffc0 7bdeaa88 ffffffc0 79a98998 ffffffc0 79a98998 ffffffc0
[1011053.714563] 89a8  7c187428 ffffffc0 7c187428 ffffffc0 79a989b8 ffffffc0 79a989b8 ffffffc0
[1011053.723068] 89c8  00030003 dead4ead ffffffff 00000000 ffffffff ffffffff 79a989e0 ffffffc0
[1011053.731562] 89e8  79a989e0 ffffffc0 00000a18 00000000 00000000 00000000 79a98a80 ffffffc0
[1011053.740066] 8a08  79a98a00 ffffffc0 79a98a10 ffffffc0 79a98a10 ffffffc0 7aeb06c0 ffffffc0
[1011053.748571] 8a28  7a0896c0 ffffffc0 09b52140 ffffff80 09b52140 ffffff80 00000000 00000000
[1011053.757079]
[1011053.757079] X27: 0xffffff8008a61f80:
[1011053.762481] 1f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.770985] 1fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.779490] 1fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.787995] 1fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.796499] 2000  081f0548 ffffff80 081f0f00 ffffff80 081f14dc ffffff80 081f1524 ffffff80
[1011053.805004] 2020  081f1680 ffffff80 081cf5b8 ffffff80 081cf61c ffffff80 081cf680 ffffff80
[1011053.813509] 2040  081cf72c ffffff80 081cf77c ffffff80 081cf7cc ffffff80 081cf850 ffffff80
[1011053.822014] 2060  081cf898 ffffff80 081cf8e0 ffffff80 081cf954 ffffff80 081cf990 ffffff80
[1011053.830511]
[1011053.830511] X28: 0xffffffc07ae8ff80:
[1011053.835912] ff80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.844406] ffa0  00000000 00200000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.852910] ffc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.861416] ffe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1011053.869920] 0000  0000001a 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[1011053.878425] 0020  79a6c000 ffffffc0 00000002 00404040 00000000 00000000 00000000 00000000
[1011053.886929] 0040  00000001 00000000 0000000e 00000000 3c3edac7 00000001 7ace3600 ffffffc0
[1011053.895434] 0060  00000000 00000001 00000078 00000078 00000078 00000000 08a68590 ffffff80
[1011053.903930]
[1011053.903930] X29: 0xffffffc079a6fca0:
[1011053.909331] fca0  00000001 00000000 7bf68e28 ffffffc0 7b40b288 ffffffc0 79a989c8 ffffffc0
[1011053.917836] fcc0  00000001 00000000 08a62000 ffffff80 7ae90000 ffffffc0 79a6fd20 ffffffc0
[1011053.926330] fce0  0843ac60 ffffff80 79a6fd20 ffffffc0 0843ac68 ffffff80 00000145 00000000
[1011053.934835] fd00  00000000 00000000 00000000 00000000 00000000 00000080 08fde430 ffffff80
[1011053.943339] fd20  79a6fd70 ffffffc0 0843b47c ffffff80 79a98980 ffffffc0 ffffff92 00000000
[1011053.951843] fd40  7b40b028 ffffffc0 00000001 00000000 00000000 00000000 00000000 00000000
[1011053.960338] fd60  0000005d 00000000 08fde430 ffffff80 79a6fe00 ffffffc0 081bcc90 ffffff80
[1011053.968843] fd80  40086c04 00000000 ad45e708 0000007f 7a1b8140 ffffffc0 7b4c4070 ffffffc0
[1011053.977337]
[1011053.979007] ---[ end trace f7e144b84afdff01 ]---
[1011053.983794] Call trace:
[1011053.986418] Exception stack(0xffffffc079a6fb40 to 0xffffffc079a6fc70)
[1011053.993028] fb40: ffffffc07b40b028 0000008000000000 ffffffc079a6fd20 ffffff800843ac68
[1011054.001033] fb60: 0000000000000145 6674616c702b3d45 353666663a6d726f 7570762e30303030
[1011054.009038] fb80: 656369767265735f ffffffc079a6fc00 ffffffc079a6fc90 00000000ffffffd8
[1011054.017043] fba0: 4554535953425553 6f6674616c703d4d 4349564544006d72 6674616c702b3d45
[1011054.025048] fbc0: 353666663a6d726f 7570762e30303030 ffffffc079a6fc70 ffffff800856f6e8
[1011054.033053] fbe0: ffffffc07c389810 0000000000000006 ffffffc07c187400 0000004075fa7000
[1011054.041057] fc00: ffffffc07eee6328 0000000000000000 0000000000000000 0000000000000000
[1011054.049062] fc20: 000000000000003e ffffff8008fde430 ffffff800835aba8 0000000005f5e0ff
[1011054.057066] fc40: ffffff800910a8a1 00000000fffffffe 0000000000000030 000000000000000a
[1011054.065069] fc60: 00000000000763c8 0000000000000000
[1011054.070125] [<ffffff800843ac68>] vpu_reset+0x38/0x218
[1011054.075348] [<ffffff800843b47c>] vpu_service_ioctl+0x634/0x7d0
[1011054.081357] [<ffffff80081bcc90>] do_vfs_ioctl+0x9c/0x548
[1011054.086846] [<ffffff80081bd18c>] SyS_ioctl+0x50/0x80
[1011054.091987] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28
[1011054.097988] rk-vcodec ff650000.vpu_service: reset done
[1011054.103359] rk-vcodec ff650000.vpu_service: reset done
mpp[2584]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out
mpp[2584]: hal_h264d_vdpu1_reg: vdpu1_h264d_wait poll cmd failed 110
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 0 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 1 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 2 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 3 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 4 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 5 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 6 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 7 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 decode get frame 8 err 1 discard 0
mpp[2584]: mpi_dec_test: 0x55a4834340 found last packet
mpp[2584]: mpi_dec_test: 0x55a4834340 input 7 pkt output 10 frm decode 9 frames
mpp[2584]: mpi_dec_test: test success max memory 0.79 MB
回复

使用道具 举报

zhuziheng

新手上路

积分
10
发表于 2021-3-9 10:18:00 | 显示全部楼层
本帖最后由 zhuziheng 于 2021-3-9 15:20 编辑

后来我找到第一个错误,在找不到device-tree的情况下,在mpp_soc.cpp中把auto的配置代码改的跟3399一样之后,报的错误就不一样了,如下:
[root@rk3399:/mnt/testttttt]# ./mpi_dec_test -i ../mpp_dec_test.h264 -o output.n
v12
mpp[2694]: mpi_dec_utils: cmd parse result:
mpp[2694]: mpi_dec_utils: input  file name: ../mpp_dec_test.h264
mpp[2694]: mpi_dec_utils: output file name: output.nv12
mpp[2694]: mpi_dec_utils: config file name:
mpp[2694]: mpi_dec_utils: width      :    0
mpp[2694]: mpi_dec_utils: height     :    0
mpp[2694]: mpi_dec_utils: type       : 7
mpp[2694]: mpi_dec_utils: debug flag : 0
mpp[2694]: mpi_dec_utils: max frames : 0
mpp[2694]: mpi_dec_test: mpi_dec_test start
mpp[2694]: mpi_dec_test: input file size 26842
mpp[2694]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[2694]: mpi_dec_test: 0x558c83f340 mpi_dec_test decoder test start w 0 h 0 type 7
mpp[2694]: mpp_rt: NOT found ion allocator
mpp[2694]: mpp_rt: found drm allocator
[1016782.983183] rk_vcodec: vpu_service_ioctl:2138: error: unknown vpu service ioctl cmd 40086c01
mpp[2694]: mpi_dec_test: 0x558c83f340 found last packet
mpp[2694]: mpi_dec_test: 0x558c83f340 decode_get_frame get info changed found
mpp[2694]: mpi_dec_test: 0x558c83f340 decoder require buffer w:h [320:240] stride [320:240] buf_size 153600
[1016783.021534] rk-vcodec ff660000.rkvdec: invliad pps buffer
[1016783.032372] rk_vcodec: reg_init:1487: error: translate reg address failed, dumping regs
[1016783.040725] rk-vcodec ff660000.rkvdec: reg[00]: 00000000
[1016783.046303] rk-vcodec ff660000.rkvdec: reg[01]: 00000061
[1016783.051811] rk-vcodec ff660000.rkvdec: reg[02]: 00100000
[1016783.057377] rk-vcodec ff660000.rkvdec: reg[03]: ffe14814
[1016783.062882] rk-vcodec ff660000.rkvdec: reg[04]: 00000000
[1016783.068431] rk-vcodec ff660000.rkvdec: reg[05]: 00001b60
[1016783.073934] rk-vcodec ff660000.rkvdec: reg[06]: 00000000
[1016783.079477] rk-vcodec ff660000.rkvdec: reg[07]: 00000000
[1016783.084978] rk-vcodec ff660000.rkvdec: reg[08]: 000012c0
[1016783.090530] rk-vcodec ff660000.rkvdec: reg[09]: 00001c20
[1016783.096048] rk-vcodec ff660000.rkvdec: reg[10]: 00000000
[1016783.101575] rk-vcodec ff660000.rkvdec: reg[11]: 00000000
[1016783.107083] rk-vcodec ff660000.rkvdec: reg[12]: 00000000
[1016783.112592] rk-vcodec ff660000.rkvdec: reg[13]: 00000000
[1016783.118117] rk-vcodec ff660000.rkvdec: reg[14]: 00000000
[1016783.123629] rk-vcodec ff660000.rkvdec: reg[15]: 00000000
[1016783.129133] rk-vcodec ff660000.rkvdec: reg[16]: 00000000
[1016783.134643] rk-vcodec ff660000.rkvdec: reg[17]: 00000000
[1016783.140169] rk-vcodec ff660000.rkvdec: reg[18]: 00000000
[1016783.145725] rk-vcodec ff660000.rkvdec: reg[19]: 00000000
[1016783.151255] rk-vcodec ff660000.rkvdec: reg[20]: 00000000
[1016783.156772] rk-vcodec ff660000.rkvdec: reg[21]: 00000000
[1016783.162282] rk-vcodec ff660000.rkvdec: reg[22]: 00000000
[1016783.167802] rk-vcodec ff660000.rkvdec: reg[23]: 00000000
[1016783.173326] rk-vcodec ff660000.rkvdec: reg[24]: 00000000
[1016783.178866] rk-vcodec ff660000.rkvdec: reg[25]: 00000000
[1016783.184393] rk-vcodec ff660000.rkvdec: reg[26]: 00000000
[1016783.189914] rk-vcodec ff660000.rkvdec: reg[27]: 00000000
[1016783.195421] rk-vcodec ff660000.rkvdec: reg[28]: 00000000
[1016783.200948] rk-vcodec ff660000.rkvdec: reg[29]: 00000000
[1016783.206495] rk-vcodec ff660000.rkvdec: reg[30]: 00000000
[1016783.212035] rk-vcodec ff660000.rkvdec: reg[31]: 00000000
[1016783.217596] rk-vcodec ff660000.rkvdec: reg[32]: 00000000
[1016783.223114] rk-vcodec ff660000.rkvdec: reg[33]: 00000000
[1016783.228639] rk-vcodec ff660000.rkvdec: reg[34]: 00000000
[1016783.234151] rk-vcodec ff660000.rkvdec: reg[35]: 00000000
[1016783.239659] rk-vcodec ff660000.rkvdec: reg[36]: 00000000
[1016783.245199] rk-vcodec ff660000.rkvdec: reg[37]: 00000000
[1016783.250755] rk-vcodec ff660000.rkvdec: reg[38]: 00000000
[1016783.256267] rk-vcodec ff660000.rkvdec: reg[39]: 00000000
[1016783.261775] rk-vcodec ff660000.rkvdec: reg[40]: 00000000
[1016783.267294] rk-vcodec ff660000.rkvdec: reg[41]: 00000000
[1016783.272802] rk-vcodec ff660000.rkvdec: reg[42]: 00000002
[1016783.278337] rk-vcodec ff660000.rkvdec: reg[43]: 00000003
[1016783.283859] rk-vcodec ff660000.rkvdec: reg[44]: fffffff7
[1016783.289368] rk-vcodec ff660000.rkvdec: reg[45]: 00000000
[1016783.294876] rk-vcodec ff660000.rkvdec: reg[46]: 00000000
[1016783.300387] rk-vcodec ff660000.rkvdec: reg[47]: 00000000
[1016783.305906] rk-vcodec ff660000.rkvdec: reg[48]: 00000000
[1016783.311434] rk-vcodec ff660000.rkvdec: reg[49]: 00000000
[1016783.316959] rk-vcodec ff660000.rkvdec: reg[50]: 00000000
[1016783.322510] rk-vcodec ff660000.rkvdec: reg[51]: 00000000
[1016783.328036] rk-vcodec ff660000.rkvdec: reg[52]: 00000000
[1016783.333579] rk-vcodec ff660000.rkvdec: reg[53]: 00000000
[1016783.339094] rk-vcodec ff660000.rkvdec: reg[54]: 00000000
[1016783.344637] rk-vcodec ff660000.rkvdec: reg[55]: 00000000
[1016783.350146] rk-vcodec ff660000.rkvdec: reg[56]: 00000000
[1016783.355656] rk-vcodec ff660000.rkvdec: reg[57]: 00000000
[1016783.361162] rk-vcodec ff660000.rkvdec: reg[58]: 00000000
[1016783.366673] rk-vcodec ff660000.rkvdec: reg[59]: 00000000
[1016783.372180] rk-vcodec ff660000.rkvdec: reg[60]: 00000000
[1016783.377708] rk-vcodec ff660000.rkvdec: reg[61]: 00000000
[1016783.383217] rk-vcodec ff660000.rkvdec: reg[62]: 00000000
[1016783.388727] rk-vcodec ff660000.rkvdec: reg[63]: 00000000
[1016783.394235] rk-vcodec ff660000.rkvdec: reg[64]: 00000000
[1016783.399751] rk-vcodec ff660000.rkvdec: reg[65]: 00000000
[1016783.405263] rk-vcodec ff660000.rkvdec: reg[66]: 00000000
[1016783.410803] rk-vcodec ff660000.rkvdec: reg[67]: 000000ff
[1016783.416311] rk-vcodec ff660000.rkvdec: reg[68]: 00000000
[1016783.421820] rk-vcodec ff660000.rkvdec: reg[69]: 00000000
[1016783.427324] rk-vcodec ff660000.rkvdec: reg[70]: 00000000
[1016783.432836] rk-vcodec ff660000.rkvdec: reg[71]: 00000000
[1016783.438360] rk-vcodec ff660000.rkvdec: reg[72]: 00000000
[1016783.443872] rk-vcodec ff660000.rkvdec: reg[73]: 00000000
[1016783.449379] rk-vcodec ff660000.rkvdec: reg[74]: 00000000
[1016783.454888] rk-vcodec ff660000.rkvdec: reg[75]: 00000001
[1016783.460413] rk-vcodec ff660000.rkvdec: reg[76]: 00000000
[1016783.465966] rk-vcodec ff660000.rkvdec: reg[77]: ffffffff
mpp[2694]: vcodec_service: vcodec_service_cmd_send ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[2694]: hal_h264d_rkv_reg: rkv_h264d_start send cmd failed 14
[1016785.481128] rk_vcodec: vpu_service_ioctl:2079: error: pid 2694 wait 0 task done timeout
mpp[2694]: vcodec_service: vcodec_service_cmd_poll ioctl VPU_IOC_GET_REG failed ret -1 errno 110 Connection timed out
mpp[2694]: hal_h264d_rkv_reg: rkv_h264d_wait poll cmd failed 110
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 0 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 1 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 2 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 3 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 4 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 5 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 6 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 7 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 decode get frame 8 err 1 discard 0
mpp[2694]: mpi_dec_test: 0x558c83f340 found last packet
mpp[2694]: mpi_dec_test: 0x558c83f340 input 7 pkt output 10 frm decode 9 frames
mpp[2694]: mpi_dec_test: test success max memory 0.73 MB











我已经解决了,可能是因为我这边没有调用mpp/build/linux/aarch64/make-Makefiles.bash,而是直接在mpp目录下自己cmake,然后指定了编译器
cmake CMakeLists.txt -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++。编出来的考到板子上面就跑不过,
报错unknown vpu service ioctl cmd 40086c01
后来直接调脚本生成make,就没问题了

回复

使用道具 举报

叽里咕噜象

注册会员

积分
90
发表于 2021-7-19 09:49:40 | 显示全部楼层
请问,如果是直接编译安装opencv和gsteamer,而不是编译安装gstreamer-rockchip的话,opencv还能通过gsteamer使用硬解码吗?
回复

使用道具 举报

jefferyzhang

版主

积分
13445
 楼主| 发表于 2021-7-19 10:09:59 | 显示全部楼层
叽里咕噜象 发表于 2021-7-19 09:49
请问,如果是直接编译安装opencv和gsteamer,而不是编译安装gstreamer-rockchip的话,opencv还能通过gsteam ...

显然不能,就算你在PC上,opencv和gstreamer源码编译他们也就只能用到CPU纯软编解码,做不到调用GPU、VPU来做硬件编解码。。
回复

使用道具 举报

叽里咕噜象

注册会员

积分
90
发表于 2021-7-19 10:34:21 | 显示全部楼层
jefferyzhang 发表于 2021-7-19 10:09
显然不能,就算你在PC上,opencv和gstreamer源码编译他们也就只能用到CPU纯软编解码,做不到调用GPU、VPU ...

嗯,谢谢,我在RK3399Pro上编译安装gstreamer-rockchip时,遇到了个编译错误 gstkmsallocator.c:73:20: error: expected expression before 'GstKMSAllocator',请问您知道是什么问题吗?
回复

使用道具 举报

jefferyzhang

版主

积分
13445
 楼主| 发表于 2021-7-19 11:40:29 | 显示全部楼层
叽里咕噜象 发表于 2021-7-19 10:34
嗯,谢谢,我在RK3399Pro上编译安装gstreamer-rockchip时,遇到了个编译错误 gstkmsallocator.c:73:20: e ...

不知道               
回复

使用道具 举报

叽里咕噜象

注册会员

积分
90
发表于 2021-7-19 17:18:46 | 显示全部楼层

好的,谢谢
回复

使用道具 举报

叽里咕噜象

注册会员

积分
90
发表于 2021-7-20 17:46:49 | 显示全部楼层
请问,debian10编译gstreamer-rockchip过程中出现gstkmsallocator.c:73:20: error: expected expression before 'GstKMSAllocator'是什么问题导致的吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

xiaoyuan129

注册会员

积分
77
发表于 2021-9-15 18:21:43 | 显示全部楼层
本帖最后由 xiaoyuan129 于 2021-9-15 18:24 编辑

用mpp解码1080P H265视频流的时候,因为265是256奇数对齐,导致读取数据时,有效数据不连续,这样对后处理存在很大的性能瓶颈,请问有没有方法可以将H265也配置成16对齐?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表