| 
		
	
	
		Hi 
I'm wondering whether it is normal that e.g. this  video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?
	 
	
	
		 (12-21-2019, 12:14 PM)brent.thierens Wrote:  Hi
 I'm wondering whether it is normal that e.g. this video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?
 
I'm playing that same video at 1080p60HD in fullscreen with the stock Debian build and it looks fine to me.
	 
	
	
		run glxgears please - I've had a situation when for some reason the GPU blob stopped working (not sure why). If it runs, then good, if you just get errors - I'll walk you though what you should do.
 
	
	
		Glxgears runs at ~100fps 
However, it also shows
 Quote:libGL error: failed to create dri screenlibGL error: failed to load driver: rockchip
 libGL error: failed to create dri screen
 libGL error: failed to load driver: rockchip
 
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.
	 
	
	
		 (12-21-2019, 04:03 PM)brent.thierens Wrote:  Glxgears runs at ~100fpsHowever, it also shows
 
 Quote:libGL error: failed to create dri screenMight be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.libGL error: failed to load driver: rockchip
 libGL error: failed to create dri screen
 libGL error: failed to load driver: rockchip
 
ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
	 
	
	
		For Video aka H264 or others 
VPU is responsible for doing this. 
GPU may resize the video
 
so glxgears is worthless
 
If you are running 5.4 kernel from the Manjaro project this is enabled
 Code: $ zcat /proc/config.gz | grep HANTROCONFIG_VIDEO_HANTRO=m
 CONFIG_VIDEO_HANTRO_ROCKCHIP=y
HANTRO is the IP supplier for the hardware decoder/encoder 
older kernels from rockchip may have other name(s).
 
ffmpeg needs support for this 
AFAIR 
Only MPEG4 is currently enabled
 
The whole whole videostream encoding is currently in staging
	 
	
	
		 (12-21-2019, 06:43 PM)Luke Wrote:   (12-21-2019, 04:03 PM)brent.thierens Wrote:  Glxgears runs at ~100fpsHowever, it also shows
 
 Quote:libGL error: failed to create dri screenMight be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.libGL error: failed to load driver: rockchip
 libGL error: failed to create dri screen
 libGL error: failed to load driver: rockchip
 ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
 It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks   
Thanks!
 
Enviado desde mi ONEPLUS A5010 mediante Tapatalk
	 
	
		
		
		12-22-2019, 12:57 PM 
(This post was last modified: 12-22-2019, 01:27 PM by Arwen.
 Edit Reason: Correct wiki link to new location
)
		
	 
		 (12-22-2019, 08:01 AM)e-minguez Wrote:   (12-21-2019, 06:43 PM)Luke Wrote:  It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks (12-21-2019, 04:03 PM)brent.thierens Wrote:  Glxgears runs at ~100fpsHowever, it also shows
 
 Quote:libGL error: failed to create dri screenMight be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.libGL error: failed to load driver: rockchip
 libGL error: failed to create dri screen
 libGL error: failed to load driver: rockchip
 ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
  Thanks!
 
 Enviado desde mi ONEPLUS A5010 mediante Tapatalk
 Ask, and you shall receive;
Wiki - Pinebook Pro - Software tunining guide 
As usual, feel free to correct, improve or comment, (good or politely bad). 
 
Right now it only has Linux kernel tuning for the VPU, that @ElektromAn , showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.
As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented. 
Edit: Made a separate section in the Wiki for Software tunning.
	 
--Arwen Evenstar
 Princess of Rivendale
 
	
		
		
		12-22-2019, 01:23 PM 
(This post was last modified: 12-23-2019, 11:27 AM by Arwen.
 Edit Reason: Mod: Fixed link to SW tuning guide
)
		
	 
		 (12-22-2019, 12:57 PM)Arwen Wrote:   (12-22-2019, 08:01 AM)e-minguez Wrote:  Ask, and you shall receive; (12-21-2019, 06:43 PM)Luke Wrote:  It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks (12-21-2019, 04:03 PM)brent.thierens Wrote:  Glxgears runs at ~100fpsHowever, it also shows
 
 Quote:libGL error: failed to create dri screenMight be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.libGL error: failed to load driver: rockchip
 libGL error: failed to create dri screen
 libGL error: failed to load driver: rockchip
 ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
  Thanks!
 
 Enviado desde mi ONEPLUS A5010 mediante Tapatalk
 
 Wiki - Pinebook Pro - Software tunining guide
 
 As usual, feel free to correct, improve or comment, (good or politely bad).
 
 When I see a kernel option specific to us, I'll try and remember to add it to the list.
 
 
 As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented.
 Thank you so much!
 
I like the idea of adding content to the wiki so it is centralized somewhere and the community can collaborate.
 
Enviado desde mi ONEPLUS A5010 mediante Tapatalk
 
Moderator edit: Fixed link, I changed the Wiki link & name, to better reflect it's usage. (Just in case someone clinks on this post's link.)
	 
	
	
		 (12-22-2019, 12:57 PM)Arwen Wrote:  Ask, and you shall receive;
 Wiki - Pinebook Pro - Software tunining guide
 
 As usual, feel free to correct, improve or comment, (good or politely bad).
 
 Right now it only has Linux kernel tuning for the VPU, that @ElektromAn, showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.
 I use Manjaro ARM 
because it`s suits my needs of new/fresh HEAD builds 
Personally I use Sabayon (some Gentoo stlye system)  
Anyway 
Ayufans Ubuntu uses rkmpv with hardware VPU is a non standard way (missing API)
 
Debian may support rkmkv with ayufan`s kernel, please check library versions here. 
If you want to use VPU acceleration support with other application(s) you have to wait 
The whole API is currently not stable, there are other VPU accelerations IP available or in use. 
And because of this the HANTRO driver is in staging, you can read this in Kconfig or TODO. 
Chromium uses non standard hacks, which are really hacks 
you are here on your own ... 
As I said currently mp4 is supported to decode for video playback 
h265 and vp9 are also on the list. 
Please read here
https://github.com/torvalds/linux/tree/m...dia/hantro 
I may possible to use some NEON aka MMX style optimizations 
One side note : 
All hardware vendors are bad in to do upstream work for their hardware. 
And some $wireless-usb driver will not go into staging because of this
	 |