![]() |
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) - porlock - 2016-03-31 I use kodi from Tom81 that is https://github.com/tnmeyer/xbmc branch "Jarvis_vdpau_gles" ./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 --enable-airplay --enable-airtunes --enable-debug --enable-optimizations --with-ffmpeg=force --with-platform=allwinner-mali I use a libvdpau-sunxi from https://github.com/mosterta/libvdpau-sunxi master branch I revert te commit b709664 recompile and install libvdpau-sunxi but no luck it crash anyway ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - bbscool - 2016-04-28 (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... @tom81 Hi! I'm trying to compiling your version of xbmc and I got stucked in a very strange linking problem; Quote:/usr/bin/ld: xbmc/windowing/egl/windowing_egl.a(EGLWrapper.o): undefined reference to symbol 'eglTerminate' I strictly followed the build procedure in first post and all object file have been built. It just failed in linking kodi.bin did I missed something or did something wrong? Please help me! PS: I believe symbol does exist in libEGL_Mali.so Quote:2 root@bananapi /opt/xbmc (git)-[Jarvis_vdpau_gles] # readelf -s //usr/lib/libEGL_Mali.so | grep eglTerminate RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-04-28 (2016-04-28, 10:35)bbscool Wrote: PS: I believe symbol does exist in libEGL_Mali.so Don't use Android binaries, use the proper armhf libs from https://github.com/linux-sunxi/sunxi-mali-proprietary/tree/master/r3p0/armhf RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tommy6555 - 2016-05-08 Hi all, I'm trying to build Kodi on a A20-OLinuXIno-LIME2-4GB platform. I created a libavcodec/vdpau_msmpeg4.c file with only an empty main function to workaround the missing file problem and now the Kodi building stops with the following message: /xbmc/tools/depends/target/ffmpeg/ffmpeg-install/lib/libavcodec.a(allcodecs.o): In function `avcodec_register_all': /xbmc/tools/depends/target/ffmpeg/ffmpeg-2.4.6-Helix/libavcodec/allcodecs.c:361: undefined reference to `ff_msmpeg4v3_vdpau_hwaccel' collect2: error: ld returned 1 exit status Makefile:533: recipe for target 'kodi.bin' failed make: *** [kodi.bin] Error 1 I tried googling for the "undefined reference to `ff_msmpeg4v3_vdpau_hwaccel' " error, but I did not find anything about it. Do you think this error is still due to the lack of the true vdpau_msmpeg4.c file? Thanks RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - RockerC - 2016-07-04 As I replied over here http://forum.kodi.tv/showthread.php?tid=251413 perhaps a better idea for acceptance would be to port this from VDPAU to a other API like example OpenMAX instead? (2016-07-04, 11:39)rellla Wrote: We have our own GPL compliant code, that let's us use hardware accelerated video decoding. And we have that since 2013 now.Maybe the best idea would be to port that code to native OpenMAX codecs for Allwinner? OpenMAX codecscan be made compatible with OpenGL & OpenGL ES, ARM & x86, Linux & Android. https://www.khronos.org/openmax/ And by that I am not suggesting to just write a OpenMAX wrapper for the VDPAU backend, but instead to actually make native OpenMAX codecs for Allwinner which does not rely on VDPAU at all. (2016-07-04, 11:39)rellla Wrote: We have everything there, to get a gpl compliant kodi integration. It just has to be put together. And except for mali (which other platforms also depend on) we then have a real "open" integration. "Open" in the meaning in having not any blob for the video decoder (neiter on kernel nor on userland side). Is there any other platform out there, that has this advantage?Intel does with with VAAPI for hardware video acceleration (and graphics acceleration) on most of its GPUs, they have gone almost completly open source with the exception of a few specific newer Intel GPUs like Intel Skylake & Broxton which require graphics firmware blobs. https://www.freedesktop.org/wiki/Software/vaapi/ It should however be noted that VAAPI, like VDPAU, is designed for x86, not ARM. Which is why I suggested OpenMAX instead of VAAPI, and strongly suggest to checkout OpenMAX for Allwinner. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2016-07-05 (2016-07-04, 12:55)RockerC Wrote: As I replied over here http://forum.kodi.tv/showthread.php?tid=251413 perhaps a better idea for acceptance would be to port this from VDPAU to a other API like example OpenMAX instead? I am not really familiar with openmax, but do you have zero-copy approach from hardware to the display engine? And I don't mean OpenGL(ES) output (because Mali/memory bandwidth is too low for full HD), but access to the disp device/hardware layer to display the decoded frames with zero-copy.. this is crucial if you don't have much power as on an A10 or A20.. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - nikolna - 2016-09-08 (2016-03-20, 00:55)tom81 Wrote: If you want to help improving the sunxi support in kodi, please test video playback with some of your files and report back if something strange happens. It would be helpful if you could provide the unshortened kodi.log file with debug logging enabled (found under /storage/.kodi/temp/kodi.log). Samples of video files where playback is broken are also welcome. Hi tom81, thanks for work, I'm testing your build HD and SD files to play well Problem with IP TV, if played with the VDPAU - Kodi restarts RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - nikolna - 2016-09-08 kodi down if IPTV is H.264 / AVC / MPEG-4 Code: 00:55:52 T:2654229504 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - sergiodefontes - 2016-10-12 (2016-03-29, 09:28)porlock Wrote: twisted_tits: Hi porlock, I've same problem compiling DVDVideoCodecFFmpeg.cpp (error: ‘EGLSyncKHR’ does not name a type EGLSyncKHR fence)...what do you mean when you say "so it (the headers) is needed do put them in system patch tree."? Could you give more details about what you have done? For the record: I've built my own kernel with mosterta's patches and followed succefully twisted_tits's tutorial (https://twistedlinux.wordpress.com/2016/03/14/build-a10a20-with-hardware-acceleration/). I've tried to use CFLAGS pointing to the new EGL headers to compile Kodi, but i had no success at all... Could you help me budy?? Thanks in advance for yours great jobs guys. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mapmot - 2016-10-14 sergiodefontes, You need to put the libraries from https://github.com/codesnake/aml-mali/tree/master/include in /usr/include in your system, preserving the folder structure, i.e. you should have /usr/include/EGL, /usr/include/GLES and so on with respective files inside. Regards, Valentin RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - sergiodefontes - 2016-10-15 (2016-10-14, 07:50)mapmot Wrote: sergiodefontes, Thks a lot mapmot, solved my Kodi compiling problem. that did the trick. ![]() Now I've Kernel and Kodi built successfully. But, I stuck on segmentation fault problem when I launch Kodi. That's the error: root@bananapi:~/Sources/xbmc# kodi ERROR: Unable to create GUI. Exiting Segmentation fault Crash report available at /root/kodi_crashlog-20161015_065624.log And that's the crash log: http://pastebin.com/fmaQLrfw And my lsmod: Code: root@bananapi:~/Sources/xbmc# lsmod Thanks in advance Thanks again mapmot RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Martijn - 2016-10-15 Remove the crashlog and use pastebin.com to start with RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - sergiodefontes - 2016-10-15 Ok Martijn , excuse me. Thks. I did it now. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mapmot - 2016-10-15 sergiodefontes, wrong libMali.so. You need the framebuffer version, not the x11 one. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - sergiodefontes - 2016-10-16 (2016-10-15, 14:40)mapmot Wrote: sergiodefontes, wrong libMali.so. You need the framebuffer version, not the x11 one. Thank you again mapmot, I have apreciated your concern about my (newbie's) questions. I'll try to solve this mistake and give you a feed-back soon. Best regards, Sergio |