![]() |
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) (/showthread.php?tid=254202) |
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2016-02-10 (2016-02-09, 22:35)RagnerBG Wrote:(2016-02-05, 15:24)mosterta Wrote: libvdpau_sunxi.so is loaded by libvdpau. It determines that from the location of its installation and adds the path vdpau (e.g. libvdpau in "/usr/lib" then libvdpau_sunxi.so must be installed in "/usr/lib/vdapu") (all AFAIK, since I dont have the code here) You can't use an external ffmpeg, since I did some changes to get it working with the kodi changes. For the other questions: Sorry, I don't understand exactly which kind of problems do you have. Do you have build problems or run time problems: can you do a "ldd -r libvdpau_sunxi.so.1" on my version of that file and check if any symbols can't be resolved? If that works, can you start kodi via "strace" and check the output for the line where libvdpau_sunxi.so.1 is loaded if the right path is used? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - RagnerBG - 2016-02-11 (2016-02-10, 15:26)mosterta Wrote: can you do a "ldd -r libvdpau_sunxi.so.1" on my version of that file and check if any symbols can't be resolved? If that works, can you start kodi via "strace" and check the output for the line where libvdpau_sunxi.so.1 is loaded if the right path is used? Hm, this command is new for me. As i wrote, i am new into this... The output of original libvdpau_sunxi.so.1 is as follow: Quote: librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6e8d000)The output of your version is this: Quote: librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6ee2000)As for kodi, i can't compile it yet, because i had this error during "make" in previous post, but i try to do it with original libvdpau_sunxi.so.1, so i probably mess it out in major. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2016-02-16 (2016-02-11, 20:44)RagnerBG Wrote:(2016-02-10, 15:26)mosterta Wrote: can you do a "ldd -r libvdpau_sunxi.so.1" on my version of that file and check if any symbols can't be resolved? If that works, can you start kodi via "strace" and check the output for the line where libvdpau_sunxi.so.1 is loaded if the right path is used? You can see why my version is not running correctly: There are unresolveable symbols: VALGRIND_PRINTF and AMMT_SET_REGS_BASE are macros which can't be resolved with your version of valgrind and are interpreted as functions. So please comment them out, do a "make clean; make" and these symbols should vanish. The symbol ump_phys_address_get is missing, because you did not use my version of libUMP, or at least it is not found by the runtime linker. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2016-02-16 (2016-02-10, 00:32)tom81 Wrote:(2016-02-07, 22:47)mosterta Wrote: Cool, you tried already porting it. I tried to intermediate step to 15.2, BUT a/v sync in 15.2 has changed a lot and video display skipped lots of frames. Then I wanted to skip 15.2 and concentrate on the latest 16rc, but I did not even start. Maybe be can do the port to 16rc together.. Btw if you see a red screen when you display a video, this means that all values in the UMP buffers are 0. Then after YUV to RGB conversion within the GLES shader the color get converted to red. Very cool. I did have a brief look at your patch, but currently my free time to work on kodi was not much. Have you had a look to the statistics onscreen page to see whether there are any skipped or dropped pictures (with 720p resolution). For 1080p resolution I assume that there are drops, due to memory bandwidth. Are you going to provide your 16.0rc release on github (or somewhere else)? Regarding the Xvid files: I havent had a look at it and whether it is a hardware limitation. But I have an issue with disabling the HW xvid support completely since I have a A10 as my primary kodi player and most of the xvid files are without GMC. But that is of course just my personal view.. maybe a better soluiton would be to decide within ffmpeg if the hw decoder or sw decoder is used, depending on the features used in the video file. But that is just a thought of mine. But currently my libvdpau-sunxi is not able to display pics decoded by a software player, so some work would be necessary there as well. But my first priority is to fix the isse when a forward/backward jump in a movie is done. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-02-18 I didn't see any drops or skips even with 1080p h264 files. Maybe the A20's memory bandwidth is sufficient. I also noticed that seeking/skipping is only broken with h264 video files. Seeking in Xvid and MPEG2 works fine for me. I currently don't have any github account or something like that, maybe I should get one. There's not so much free time for me as well a.t.m. but eventually I will clean up the code a little bit and kill some now-dead code from the old cedarv port. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-02-24 Hi monsterta, i try to create a Debian build running your Kernel and Kodi Version on a Cubietruck. But it fails on the first step, building the Kernel. What did i do to understand? 1. git clone https://github.com/mosterta/linux-sunxi.git (on a Debian 8 VM) 2. git checkout ump_sunxi-3.4 3. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig (for a A20 CPU) 4. apt-get install libncurses5-dev (based on this howto: http://linux-sunxi.org/Linux_Kernel#Compilation) 5. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig (leaved all options as default settings) And now let's start build the needed Kernel where the error appears: 6. make -j$(nproc) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules The error is in result of a missing file in "drivers/video/sunxi/disp". The Make script search for a file named "dev_disp.o" in this path. Im a newby in linux and i have no idea to fix this problem. Can you help me to find out what i did wrong? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - rellla - 2016-02-24 Can you provide the complete build log? Regards rellla RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-02-24 (2016-02-24, 09:51)rellla Wrote: Can you provide the complete build log? Where is the compile log saved? ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - rellla - 2016-02-24 Huh. Can't you copy and paste it? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-02-24 Here is my log before the error occures: Code: root@debian-vm:~/linux-sunxi# make -j$(nproc) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - rellla - 2016-02-24 Ok. Seems this commit https://github.com/mosterta/linux-sunxi/commit/cf072738afc9690dc81d72c2f2213df44ce1e278 broke it. video/sunxi_disp.h is missing as the log says. Maybe it got lost during commit ... Maybe mosterta can push the missing file ![]() Regards rellla RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-02-24 (2016-02-24, 19:25)rellla Wrote: Ok. Seems this commit https://github.com/mosterta/linux-sunxi/commit/cf072738afc9690dc81d72c2f2213df44ce1e278 broke it. video/sunxi_disp.h is missing as the log says. Maybe it got lost during commit ... i hope so ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-08 @tom81 - i found your kodi image on german cubietruck forum. It works great on my Cubietruck. But i can't get working my old Apple Remote with it. I get the signal with irw and ir-keytable -t ... But in Kodi nothing appears. Can you help me? I write you here because I can't register to the german forum. I get no activation link and no answer from admin. So, i write you here. Are private messages disabled in this board? I cant write to Tom81 a private message. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-08 And here some feedback to mosterta builds. I gave up to create my own image based on his howto because there a so many errors and so much open questions. First step, compiling the Kernel dit not worked for me because of missing files. So, i build my own kernel with mosterta ump fixes. This works and you can get it here: https://git.t3cube.de/groups/cubietruck-kodi I run into the same problems as RagnerBG. I cant getting run the libvdpau from mosterta because of undefined symbol: ump_phys_address_get - libump is installed and my ump kernel too. So i have no idea to fix that. At last i failed to compile kodi 16rc3 with the patch from tom81. Errors stopping compiling. My patched Kodi based on Tom81s patch you can find on my gitlab link, too. At this time, i am happy with toms old image. Only my remote wont work ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - rellla - 2016-03-09 Hi guys, for the ump error, see the fix in my repo https://github.com/rellla/libump/commits/ump For the kernel you did right. You have to apply the 2 ump patches on top of your preferred kernel branch or use mosterta's branch and redo commit cf07273 in here https://github.com/mosterta/linux-sunxi/commits/ump_sunxi-3.4 I have neither compiled the other dependencies nor kodi itself. I just needed the ump thing fr another task. Hope this helps you in the meantime. Regards rellla |