Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] RK3399 ffmpeg - librga/mpp errors

19

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
19

【Linux】 RK3399 ffmpeg - librga/mpp errors

Posted at 5/26/2022 10:44:23      View:4320 | Replies:5        Print     [Copy Link] 1#
I'm using the GPT ubuntu 20.04 build and have tried to read a udp mpegts stream by using:
   ffplay -fflags nobuffer -f:v mpegts -an -probesize 8192 udp://0.0.0.0:8554
Instead I get alot of repeating errors that appear to originate from librga:
   rga_api version 1.7.0_[1]
    RgaBlit(1387) RGA_BLIT fail: Invalid argument
    RgaBlit(1388) RGA_BLIT fail: Invalid argument
   fd-vir-phy-hnd-format[22, (nil), (nil), (nil), 0]
   rect[0, 0, 640, 360, 640, 368, 10, 0]
   f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
   fd-vir-phy-hnd-format[0, 0x7f0c009ca0, (nil), (nil), 0]
   rect[0, 0, 640, 360, 640, 384, 11, 0]
   f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
   This output the user patamaters when rga call blit fail
   [h264_rkmpp @ 0x7f14008d00] Doing slow software conversion

This also appears when trying to simply play an mp4.  i.e from learnopencv  VideoReadWriteDisplay/chaplin,mp4
    ffplay chaplin.mp4

At startup it also shows the following error in mpp:
   mpp[1875]: mpp_info: mpp version: 8a85dc5d author: Herman Chen   2022-03-14 [mpp_enc]: Fix stuck on reset
   async mode encoder
   mpp[1875]: mpp_rt: NOT found ion allocator
   mpp[1875]: mpp_rt: found drm allocator
   mpp[1875]: hal_h264d_rkv_reg: control info: fmt 7, w 640, h 360
   mpp[1875]: mpp_buf_slot: set frame info: w  640 h  360 hor  640 ver  368
   mpp[1875]: mpp_dec: setting default w  640 h  360 h_str  640 v_str  368
   mpp[1875]: hal_h264d_rkv_reg: control info: fmt 7, w 640, h 360
   mpp[1875]: mpp_buf_slot: set frame info: w  640 h  360 hor  640 ver  368
   mpp[1875]: mpp_dec: setting default w  640 h  360 h_str  640 v_str  368
   [h264_rkmpp @ 0x7f14008d00] Decoder noticed an info change (640x360), format=0
   librga fail to get driver version! Legacy mode will be enabled.

Thank you for any help in getting this working properly
Reply

Use props Report

19

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
19
Posted at 5/26/2022 19:14:29      2#
Thank you for responding.  I have a Station P1 board and have flashed with the ROC-RK3399-PC-PLUS firmware from:
https://en.t-firefly.com/doc/download/78.html

This is from my current setup:
   firefly@firefly:~$ ffgo version
   OS:         Ubuntu 20.04.4 LTS
   MODEL:         Firefly roc-rk3399-pc PLUS
   FIREFLY: v2.10-62-g087b2b2
   DATE:         20211228-1443
   KERNEL:         Linux version 4.4.194+ (jincheng@jincheng-PC) (local/new/internal-gitlab/rk3399/firefly: bcd190d4221dcefe664a1fe9aebe17819db54b22) (gcc
   version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #12 SMP Wed Dec 29 13:42:43 CST 2021

If you have a more recent firmware I would appreciate it.
Reply

Use props Report

19

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
19
Posted at 5/27/2022 10:48:22      3#
Some additional Data......
* The log that I placed at the beginning of this thread was after flashing the ROC-RK3399-PC-PLUS-UBUNTU-20.04_DESKTOP-GPT-20211229-1348.img.7z and then performing a sudo apt update, sudo apt upgrae.  the rga_api changed from 1.3 .0 to 1.7.0
* Although I get the same error messages, If I simply attempt to play a mp4 file prior to the update/upgrade  (/usr/local/bin/test_ffmpeg.sh ...... ffplay -vcodec h264_rkmpp -i /usr/local/test.mp4) it fails and will lockup the board
* Running the same test script (/usr/local/bin/test_ffmpeg.sh) will also fail if I reflash the board with Ubuntu 18.04  ( ROC-RK3399-PC-PLUS-UBUNTU-18.04_DESKTOP-GPT-20211228-1710.img.7z).
* By performing the updata/upgrade it also upgrades the mpp driver from:
mpp[1222]: mpp_info: mpp version: 49f29006 author: Jeffy Chen    2021-08-04 [drm]: Add mmap flag detection
to
mpp[4293]: mpp_info: mpp version: 8a85dc5d author: Herman Chen   2022-03-14 [mpp_enc]: Fix stuck on reset async mode encoder
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list