![]() |
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) - eckonator - 2016-03-09 Really nice Rellla, this can help me ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-09 (2016-03-08, 23:18)eckonator Wrote: @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?That kodi image is based on the cedarv port from rellla and empat0 and uses the old, binary-only cedarv libs. Please don't use it - it is obsolete and broken in many ways and I do not work on it anymore. For remotes you need to build a keymap for your remote, see http://kodi.wiki/view/LIRC for details. I am currently uploading some code to https://github.com/tnmeyer?tab=repositories, but it's neither complete nor usable yet... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - BlackVodka - 2016-03-11 Hello guys, at first, thanks to all your hard work and support, especially to you mosterta! Currently, I'm trying to build some kind of htpc with my banana pi, using mosterta's sources and instructions from thread page 1. Although I'm using Linux for some years and using embedded linux at work pretty often, I'm not really into this whole graphics stuff and don't have a clue how to solve my problem: The compilation of kodi/xbmc with configuration like mentioned on p1 fails here with output Code: In file included from ./libavutil/intmath.h:36:0, Googling around some time lead me to this: https://trac.ffmpeg.org/ticket/1479 . Trying to compile mosterta's kodi-branch without the --disable-optimizations flag leads to another compile error: Code: In file included from /usr/include/GL/gl.h:2059:0, This errors sound for me like either a problem with my libraries /usr/include/GL/glext.h and /usr/include/GLES2/gl2.h or in the xbmc sources (my personal guess is the first idea). What did I do exactly: I checked-out the kernel-sources for banana pi and compiled the kernel after applying the two mentioned git-commits as patches and editing the .config successfully. Following http://wiki.lemaker.org/BananaPro/Pi:Building_u-boot,_script.bin_and_linux-kernel , I've build a running linux system, using the rootfs-files from http://www.armhf.com/download/ for Ubuntu trusty. I installed the binary driver (seemed to be needed for building some of the mentioned libs on thread page 1 following this guide: http://linux-sunxi.org/Mali_binary_driver . I've also built and installed libump, ibvdpau and libvdpau-sunxi as described on p1. So, could please anyone help me to successfully compile kodi from mosterta's git ? ![]() If you need any more information, please let me know! *edit* One thing I thought of right after posting this: I checked where the libraries libraries /usr/include/GL/glext.h and /usr/include/GLES2/gl2.h came from. I installed them using the sunxi-mali git: Code: markus@ubuntu-armhf:~/sunxi-mali/include$ sudo make install Best regards, and again, keep up the great work! Markus RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-12 You probably checked out the wrong branch from github. The one you want is "helix_allwinner_gles_support", and not "master". RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - BlackVodka - 2016-03-12 (2016-03-12, 00:14)tom81 Wrote: You probably checked out the wrong branch from github. The one you want is "helix_allwinner_gles_support", and not "master". Oh my god, such a stupid thing I could have noticed! Thanks, currently trying to build with the helix_allwinner_gles_support - branch! *Edit* Okay, some progress I think, but still a way to go... I tried to build Kodi now with the correct branch selected but at first it failed, searching for archive ffmpeg-2.4.6-Helix.tar.gz. To solve this, I wget-ed http://ffmpeg.org/releases/ffmpeg-2.4.6.tar.gz to ./tools/depends/target/ffmpeg/ and renaming it (correct?). During the configuration, the downloaded ffmpeg sources get extracted and patched successfully I think, but compiling (happens during configuration) fails: Code: In file included from libavcodec/vdpau_internal.h:55:0, Does anyone know where's now the problem? Thanks in advance! RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-12 Kodi needs a special ffmpeg version, it is this one https://github.com/xbmc/FFmpeg/archive/2.4.6-Helix.tar.gz Normally it should be downloaded automatically during build, I don't know why it fails for you. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - BlackVodka - 2016-03-12 (2016-03-12, 11:22)tom81 Wrote: Kodi needs a special ffmpeg version, it is this one https://github.com/xbmc/FFmpeg/archive/2.4.6-Helix.tar.gz Hm, I don't know why the automatic download failed yesterday (perhaps I was tired and made a mistake?), however, automatic download now seems to work. Strange thing is, compiling ffmpeg still fails with already mentioned errors: Code: CC libavcodec/h263dsp.o I searched for 'VdpDecoderSetControlData' in the sources... Code: tools/depends/target/ffmpeg/ffmpeg-2.4.6-Helix/libavcodec/vdpau.h Because of using the type VdpDecoderSetControlData also in xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.h, a file not being patched during configuring, I think of some missing headers in my system? Could please anyone give me a hint why I can't compile ffmpeg? Thanks in advance! RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-12 Have you installed libvdpau including its headers? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - BlackVodka - 2016-03-12 (2016-03-12, 15:26)tom81 Wrote: Have you installed libvdpau including its headers? Hi, libvdpau should be build and installed as described on p1: Code: markus@ubuntu-armhf:~/libvdpau-1.1.1$ sudo make install Do I understand the output correctly and don't get the headers installed along with the compiled lib files? How do I install the header files for libvdpau? (installing libvdpau-dev from repositories is a bad idea due to the need for the modificated libvdpau files in mosterta's git, I think?) *edit* arr, sorry, give me a moment, I think I got a wrong libvdpau here... *edit 2* Yep, there was the cause for this problem, currently facing another ![]() Code: AR libavcodec/libavcodec.a RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-12 Okay, now you're having one of the issues I also had: there are files missing in the helix_allwinner_gles_support tree. I think I posted a patch earlier which fixed the build issues. Apply it to a clean source tree and try again. Maybe it works... Edit: It's this one: http://pastebin.com/8xb52BgX RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - quangnh - 2016-03-12 I want to use xbmc on orangepi pc, i try openelec, very good for xbmc but it cannot install other program. I found your post and i think this can solve my problem. thanks your work. I compiler xbmc from first post, on armbian 5.05 jessie desktop (build by myself from igor source) on orangepi pc. I use: apt-get build-dep xbmc git clone -b helix_allwinner_gles_support https://github.com/mosterta/xbmc.git cd xbmc ./bootstrap ./configure --config-cache --prefix=/usr/local --disable-x11 --disable-sdl --disable-xrandr --disable-joystick --disable-gl --enable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-gles --disable-mysql --disable-airplay --disable- airtunes --enable-debug --disable-optimizations --with-ffmpeg=force --with-platform=allwinner-mali and I get error: checking for python... /usr/bin/python checking for a version of Python >= '2.1.0'... yes checking for a version of Python >= 2.4... yes checking for the distutils Python package... yes checking for Python include path... -I/usr/include/python2.7 checking for Python library path... -L/usr/lib -lpython2.7 checking for Python site-packages path... /usr/lib/python2.7/dist-packages checking python extra libraries... -L/usr/lib -lz -lpthread -ldl -lutil checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions checking consistency of all components of python development environment... yes configure: Using Python 2.7 == Wayland disabled. == checking for main in -lEGL... no configure: error: Could not find a required library. Please see the README for your platform. I try to install libvdpau-sunxi libvdpau-dev libegl1-mesa-dev libegl1-x11 libgegl-dev libwayland-egl1 also all packages suggested from https://github.com/xbmc/xbmc/blob/master/docs/README.linux I try install apt-get install libgles2-mesa-dev but error: Unpacking libegl1-mesa-dev:armhf (10.3.2-1+deb8u1) ... dpkg: error processing archive /var/cache/apt/archives/libegl1-mesa-dev_10.3.2-1+deb8u1_armhf.deb (--unpack): trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package sunxi-mali-r3p0 4.0.0.0 Preparing to unpack .../libgles2-mesa-dev_10.3.2-1+deb8u1_armhf.deb ... Unpacking libgles2-mesa-dev:armhf (10.3.2-1+deb8u1) ... dpkg: error processing archive /var/cache/apt/archives/libgles2-mesa-dev_10.3.2-1+deb8u1_armhf.deb (--unpack): trying to overwrite '/usr/include/GLES2/gl2platform.h', which is also in package sunxi-mali-r3p0 4.0.0.0 Errors were encountered while processing: /var/cache/apt/archives/libegl1-mesa-dev_10.3.2-1+deb8u1_armhf.deb /var/cache/apt/archives/libgles2-mesa-dev_10.3.2-1+deb8u1_armhf.deb but still error. can you help me to solve this. I think i lose some packages, but i can not find what is need. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 (2016-03-09, 23:56)tom81 Wrote: I am currently uploading some code to https://github.com/tnmeyer?tab=repositories, but it's neither complete nor usable yet... Hi Tom, i trying to compile your Kodi Build, but i get a error. Can you help? It's the Branch "Jarvis_vdpau_gles". Code: CC libavcodec/acelp_pitch_delay.o RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 (2016-03-12, 23:35)quangnh Wrote: and I get error: I had the same error. Try to install this https://github.com/linux-sunxi/sunxi-mali before start configure kodi. This helped me. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-13 (2016-03-13, 17:24)eckonator Wrote: Hi Tom, Never seen that error before... Could you please upload the file config.log from tools/depends/target/ffmpeg/ffmpeg-2.8.6-Jarvis-16.0 to pastebin.com? Edit: You probably need to pass "--enable-optimizations" to configure. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 Hi Tom, here is the pastebin link from my config.log: http://pastebin.com/fq9eV5Wa |