-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to check sunxi_ve_mem_reserve size #651
Comments
Have you try our desktop image? Video acceleration works out of the box. |
Desktop not interesting for me, i want rendering on xserver only. |
If you can help please answer, how can i update and apply new value when booting OS? |
Ahaa. You can pass kernel parameters in boot script. Check this, it's self explanatory: Other just edit boot.cmd, save and convert to boot.scr when done and reboot. |
When not set to zero, there are some defaults, which are sufficient for video playing. If you want to experiments, just set those numbers as boot parameter ... |
Hi, thank you for your help, i tried to use your desktop version, why you think that on it have video acceleration? I saw usage CPU more than 100%, i think you didn't have also GL optimization on your desktop versions. |
Also i installed dev version for orange pi one, and how i can see it doesn't contain mali modules, without mali talk about GPU not make sense, and i can't find /dev/cedar_dev . |
Because it has limited video acceleration support activated in the default player (mpv)
And why do you think that there should be any GL optimizations? Mali with the available driver can provide only OpenGL ES acceleration and with the available driver version it can't be used by the web browsers and similar software.
I believe "Known issues" tab on every H3 board download page clearly states what should be expected from the dev kernel (or rather what functionality should not be expected there) |
Hi, please show me code in build scripts where you patched egl libraries? Where you build mali user space library from sources? https://github.com/linux-sunxi/sunxi-mali.git Where tests, how you test GPU decoding? |
All what i see, slideshow in video player, this is horrible OS for end users. |
GPU decoding of what? Mali is purely 3D rendering engine, HW video decoding comes from another block in the SoC.
Feel free to contribute to libvdpau-sunxi or sunxi-cedrus projects if you are unhappy with the current status: https://linux-sunxi.org/Cedrus The issue in the "horrible OS for end users" bug tracker then can be closed. |
Hi @zador-blood-stained , why you close my issue? May be you answer on my question (How to check sunxi_ve_mem_reserve size)? I answered about GL because if you use mesa-egl like in server os, you need to build libmali from sources, in other case rendering will be executed on CPU side. I know that decoding happend via VDPAU i also created issue for that some days ago linux-sunxi/libvdpau-sunxi#55 . If you build some OS image you should have properly support not only build and that all. If community ask something, please find time to answer, if i created issue i will close it, when get answer. If your OS freezed when video stream played may be need to investigate this? this is not my fault that armbian freezed in good devices. |
It's even stated on the wiki page (https://linux-sunxi.org/Cedrus/libvdpau-sunxi):
Maybe you should read the wiki before making such assumptions: https://linux-sunxi.org/Mali_binary_driver
Free open source projects are usually provided "as is" and all support is provided volunteerly, so "should" and" proper" are not the correct words in this situation. |
I write all this in start of conversation, so if
According your words:
How in desktop image mpv can use "video acceleration", if we have hardcoded 80 MB VPU? I read all wiki which can find, and created special build script for orange pi: https://github.com/fastogt/fastotv/blob/master/build/build_env.py#L151 because of this i asked are you sure that used in desktop image patched version of GL library? The same question are you sure that vdpau decoding happens in mpv on GPU side, or CPU do all work? In mpv you also need to specify hwaccels args. About opensourse, we don't know who work more with opensourse you or i. Please respect me and other users which use your solution. |
Because
and sun8i-default is exactly the case of a "recent 3.4" kernel. Memory reservation for cedar kernel module is done by ION (as stated on the Wiki) From the kernel config:
So it reserves 160M with the provided kernel config.
I already answered about "patched version of GL library" and relation of MPV, GPU, vdpau and video decoding. |
@zador-blood-stained thank you for your answers. |
Hello Igor, please, may I know where to download the mentioned Desktop image that work out of the box for HW accel (Orange Pi Zero)? Thanks and kind regards |
https://www.armbian.com/orange-pi-zero/ |
None of those are with a desktop and since Opi zero does not have HDMI connector its function is disabled by default. The closest hack would be Orangepi One with some adjustments to the FEX file. |
Thanks Igor |
@igorpecovnik > Opi zero does not have HDMI connector its function is disabled I installed vnc and all works fine except WebGl on chromium. |
Via VNC? Not sure you can do that. Try asking here: https://forum.armbian.com/forum/25-peer-to-peer-technical-support/ |
Hi, i installed server image 3.4.113, and i need to know how much reserved memory for the video acceleration? according your boot script https://github.com/igorpecovnik/lib/blob/491fc18ae0cb5680e98e0e23ee1ed762e148d00b/config/bootscripts/boot-sunxi.cmd#L40 you set sunxi_ve_mem_reserve to 0, how can i update and apply new value when booting OS? Also according this: http://linux-sunxi.org/Kernel_arguments i see next:
and according your script https://github.com/igorpecovnik/lib/blob/5fc53d7e9b2ad643e1a698f0a01b7d626fdfdd40/config/kernel/linux-sun8i-default.config#L1214 CONFIG_CMA=y, and ve_size is hardcoded to 80MB. I need to know how many memory allocated for video acceleration? Without video acceleration this device can't play video properly, because CPU can't decode video frames faster.
The text was updated successfully, but these errors were encountered: