10 10
JMCC

[Development] RK3399 media script

Recommended Posts

Hi,


I am using friendlycore bionic on a NanoPiM4 and trying to play some videos but they are not playing smoothly. And there are some warnings, please take a look:

 

Quote

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.162-rk3399 aarch64 Ubuntu
Current Operating System: Linux NanoPi-M4 4.4.154 #1 SMP Thu Mar 7 18:30:53 CST 2019 aarch64
Kernel command line: earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 console=ttyFIQ0 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait root=/dev/mmcblk1p7 rw rootfstype=ext4 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(trust),0x00002000@0x00006000(misc),0x00006000@0x00008000(resource),0x00010000@0x0000e000(kernel),0x00010000@0x0001e000(boot),-@0x00030000(rootfs) consoleblank=0 storagemedia=emmc uboot_logo=0x02000000@0x7dc00000 loader.timestamp=2018-08-01_14:55:50 SecureBootCheckOk=0 androidboot.mode=emmc
Build Date: 17 December 2018  12:58:34PM
xorg-server 2:1.19.3-1 (https://www.debian.org/support) 
Current version of pixman: 0.34.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.11.log", Time: Thu Mar 28 11:31:25 2019
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
Empty filename passed to function
XmbTextListToTextProperty result code -2
mpi: mpp version: 0b701fe author: Lawrence-Tang DEBIAN: prepare for release_20171218-3
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
mpp_buffer: mpp_buffer_group_set_listener found NULL pointer
mpp: command 310002 param (nil) ret -3
XmbTextListToTextProperty result code -2
mpi: mpp version: 0b701fe author: Lawrence-Tang DEBIAN: prepare for release_20171218-3
XmbTextListToTextProperty result code -2
mpp_buffer: mpp_buffer_group_set_listener found NULL pointer
mpp: command 310002 param (nil) ret -3
XmbTextListToTextProperty result code -2
mpi: mpp version: 0b701fe author: Lawrence-Tang DEBIAN: prepare for release_20171218-3
XmbTextListToTextProperty result code -2
Warning: "A lot of buffers are being dropped."
mpp_buffer: mpp_buffer_group_set_listener found NULL pointer
mpp: command 310002 param (nil) ret -3
XmbTextListToTextProperty result code -2
mpi: mpp version: 0b701fe author: Lawrence-Tang DEBIAN: prepare for release_20171218-3
XmbTextListToTextProperty result code -2
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
mpp_buffer: mpp_buffer_group_set_listener found NULL pointer
mpp: command 310002 param (nil) ret -3
 

 

If you have any idea about all errors/warnings (buffer being dropped mainly), please let me know.

Share this post


Link to post
Share on other sites
1 hour ago, cassiov said:

Hi,


I am using friendlycore bionic on a NanoPiM4 and trying to play some videos but they are not playing smoothly. And there are some warnings, please take a look:

 

 

If you have any idea about all errors/warnings (buffer being dropped mainly), please let me know.

Sorry, I can only help you if you use Armbian, I don't have enough knowledge about the other OS's.

Share this post


Link to post
Share on other sites

@JMCC : I finally managed to get KODI GBM working on my ROCK960C (bionic ARM64) with HDMI CEC and HDMI audio passthrough features... experience is close to LibreELEC one BUT whenever i want to switch to an X11 session from it, i can... that is what i wanted.

 

Thanks for your help ! :thumbup:

Share this post


Link to post
Share on other sites
8 hours ago, cassiov said:

I am using friendlycore bionic on a NanoPiM4 and trying to play some videos but they are not playing smoothly. And there are some warnings, please take a look:

Use FriendlyDesktop instead. That has everything installed for playing videos default. Friendlycore is not for desktop use.

 

18.2 2018-12-19

FriendlyDesktop is updated as follows: 

1) Added OV13850 and wide dynamic OV4689 camera support
2) Add Chrome-browser browser, support web page 1080P hardware decoding, support WebGL
3) Added ffmpeg support, provides static libraries and header files, supports 4K hardware decoding (does not support hardware encoding)

 

Share this post


Link to post
Share on other sites
Quote

 

Hi, 

 

So at the moment I have Armbian_5.75_Nanopim4_Ubuntu_bionic_default_4.4.174_desktop installed on my NanoPiM4.  and here you can find the logs:

 

Playing  4K 10bits H265 with qt player:

Quote

tarting /home/cassiovolcan/qt5_cassio_examples/build-player-Desktop-Debug/player...

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Stream with high frequencies VQ coding

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

 

** (player:9533): CRITICAL **: 14:11:01.788: gst_x_image_sink_xwindow_clear: assertion 'xwindow != NULL' failed

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

Stream with high frequencies VQ coding

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Stream with high frequencies VQ coding

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

 

Starting /home/cassiovolcan/qt5_cassio_examples/build-player-Desktop-Debug/player...

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

QXcbConnection: XCB error: 3 (BadWindow), sequence: 1426, resource id: 10554719, major code: 40 (TranslateCoords), minor code: 0

Warning: "A lot of buffers are being dropped."

Warning: "A lot of buffers are being dropped."

Warning: "A lot of buffers are being dropped."

Warning: "A lot of buffers are being dropped."

Warning: "A lot of buffers are being dropped."

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

 

By executing a qt browser:

 

Quote

tarting /home/cassiovolcan/qt5_cassio_examples/build-player-Desktop-Debug/player...

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Stream with high frequencies VQ coding

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

 

** (player:9533): CRITICAL **: 14:11:01.788: gst_x_image_sink_xwindow_clear: assertion 'xwindow != NULL' failed

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

Stream with high frequencies VQ coding

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

Stream with high frequencies VQ coding

H265D_PARSER: mpp_hevc_decode_nal_sei error ret = -1006

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

H265_PARSER_REF: Could not find ref with POC -41

H265_PARSER_REF: Could not find ref with POC -43

H265_PARSER_REF: Could not find ref with POC -46

H265_PARSER_REF: Could not find ref with POC -48

H265_PARSER_REF: Could not find ref with POC -52

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

Cannot connect to server socket err = No such file or directory

Cannot connect to server request channel

jack server is not running or cannot be started

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

mpp_buffer: mpp_buffer_group_set_listener found NULL pointer

mpp: command 310002 param (nil) ret -3

 

In addiction, chromium browser log playing 4k videos (really slow and crash the system)

Quote

cassiovolcan@nanopim4:~$ chromium-browser
[11856:11856:0329/150154.201175:ERROR:sandbox_linux.cc(364)] InitializeSandbox() called with multiple threads in process gpu-process.
[11815:11848:0329/150154.208135:ERROR:database.cc(1808)] Passwords sqlite error 14, errno -2: unable to open database file, sql: -- sqlite3_open()
[11815:11848:0329/150154.208382:ERROR:login_database.cc(601)] Unable to open the password store database.
[11815:11848:0329/150154.208431:ERROR:password_store_default.cc(42)] Could not create/open login database.
[11856:11856:0329/150154.611025:ERROR:gles2_cmd_decoder.cc(2774)] [GroupMarkerNotSet(crbug.com/242999)!:E82CF3A855000000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPE$
[11815:11981:0329/150202.283912:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower:$
[11815:11981:0329/150202.284441:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPo$
[11815:11981:0329/150202.285023:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPo$
[11815:11870:0329/150204.699759:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.PowerManagement.Inhibit.Inhibit: object_path= /org/freedes$
[11815:11870:0329/150204.700163:ERROR:power_save_blocker_x11.cc(330)] No response to Inhibit() request!
[11815:11870:0329/150204.722484:ERROR:object_proxy.cc(621)] Failed to call method: org.freedesktop.ScreenSaver.Inhibit: object_path= /org/freedesktop/ScreenS$
[11815:11870:0329/150204.722775:ERROR:power_save_blocker_x11.cc(330)] No response to Inhibit() request!
 

 

In advance, very thanks.

Share this post


Link to post
Share on other sites
9 minutes ago, cassiov said:

chromium browser log playing 4k videos (really slow and crash the system)

With this setup, Chromium will play up to 1080p, probably some 1440p, but definitely not 4k (2160p).

 

10 minutes ago, cassiov said:

Playing  4K 10bits H265 with qt player

What is the command line you are using to launch the player? I assume you are using command line and not the desktop launcher, since I see logs.

 

Have you tried to play that same video with MPV-GBM or Kodi?

Share this post


Link to post
Share on other sites
35 minutes ago, JMCC said:

With this setup, Chromium will play up to 1080p, probably some 1440p, but definitely not 4k (2160p).

 

any idea how to make it?

 

35 minutes ago, JMCC said:

What is the command line you are using to launch the player? I assume you are using command line and not the desktop launcher, since I see logs.

 

/usr/lib/aarch64-linux-gnu/qt5/examples/multimediawidgets/player/player --geometry 960x640+0+0
 

35 minutes ago, JMCC said:

Have you tried to play that same video with MPV-GBM or Kodi?

yes, mpv seems that is not using hardware accel.  since the video simply goes really slow and consumes a lot of cpu.

 

In the other hand, kobi plays very, very well... even better than in my pc over VLC. 

Share this post


Link to post
Share on other sites
11 minutes ago, cassiov said:

any idea how to make it?

Probably with Wayland, but I am not aware of anyone who has made that work yet. You have another option: use a Kodi YouTube addon, or use MPV-GBM like this:

sudo apt install youtube-dl
mpv-gbm "http://youtube.com/etc..."

Of course, you only need to install youtube-dl the first time.

 

 

13 minutes ago, cassiov said:

mpv seems that is not using hardware accel

Are you sure you are using MPV-GBM, and not the regular MPV? You must right-click on the video file and select "MPV (GBM)", or type "mpv-gbm <filename>" from the command line.

 

15 minutes ago, cassiov said:

/usr/lib/aarch64-linux-gnu/qt5/examples/multimediawidgets/player/player --geometry 960x640+0+0

That is not using HW acceleration. You need to use the "Rockchip Gst Player" launcher, or type the same command line used in the "Rockchip Gst Player" desktop launcher (I can't remember it now, just open the .desktop file and copy it).

Share this post


Link to post
Share on other sites
(edited)

Hello, I'm testing with a fresh armbian bionic install on rockpi4b  (flashing bionic , then running `sudo apt upgrade`)

 

During install script I select only 'System', 'Devel', and 'GL4ES'.  Installation succeeds and I reboot. I then try running both `glxinfo` and `glxgears` from mesa-utils.  glxgears reports "libGL error: failed to load driver: rockchip" and falls back to llvmpipe renderer.

 

Attempting to run LD_LIBRARY_PATH set yields and error": 

$ LD_LIBRARY_PATH=/opt/gl4es/ glxgears
LIBGL: Initialising gl4es
...
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was build for 0x860 r2p0 status range [0..15], but none of the GPUs matched:
...

Any suggestions on working around this? 

Edited by tumbleweed2019
better link to image

Share this post


Link to post
Share on other sites

@tumbleweed2019 did you try the included "glrun" wrapper, as described in the documentation?

 

On 1/10/2019 at 2:38 PM, JMCC said:

- GL4ES: An Opengl-ES wrapper library that will allow you to use OpenGL 1.5-2.0 compatible programs with hardware acceleration. More info: https://github.com/ptitSeb/gl4es. · In order to make it easier to use the library, we have included a script called "glrun", that will set the proper environment variables. Launch your OpenGL program like this:

 

"glrun <command>"

 

 

Share this post


Link to post
Share on other sites

Is there any chance of an update for this kit? An additional kit for Buster would also be most welcome, if possible.

Share this post


Link to post
Share on other sites
6 hours ago, ot8 said:

Is there any chance of an update for this kit? An additional kit for Buster would also be most welcome, if possible.

I'd like to, and I started working on a script that would compile the latest versions of the software for a specific distro. Let's see if I can find some time to finish it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
10 10