![]() |
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) - matrzh - 2017-04-27 I apologize for the banned add-on. I did uninstall it. Here is the new pastebin that (hopefully) shows the add on is removed https://pastebin.com/DCjB2FwW RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Rechi - 2017-04-28 You still have Banned add-ons (wiki) installed. kodi.wiki Wrote:This list is only an example, and does not include all add-ons or services that violate the forum rules. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - sergiodefontes - 2017-04-28 (2016-12-13, 07:38)dalas1 Wrote:(2016-10-23, 21:40)sergiodefontes Wrote:and where your feed-back?(2016-10-21, 10:16)mapmot Wrote: sergiodefontes, try libvdpau-sunxi from here: https://github.com/tnmeyer/libvdpau-sunxi, should compile and install without modifications. Sorry, mapmot, answer you after a long time. But the answer is yes....I´ve got some problems with "garbages" (old libraries disturbing my building). Then I´ve started from scratch and followed yours (unvaluable) advices and......voilá.... Thks a lot for you concern (and patience)... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-04-28 (2017-04-27, 22:43)matrzh Wrote: Hi. I succeeded to compile your version, but now I get again Segmentation faults when trying to play the videos. The crash is probably because you also need to use my latest libvdpau-sunxi implementation. This code compile additional the library libcedarDisplay.so.1 which needs to be installed to /usr/lib. Somewhen I need to fix the pathname problem.... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Invictaz - 2017-04-28 Unfortunately the prebuild OpenELEC for Allwinner A20 does not boot on my A10 device OpenELEC-A20.Cubietruck.arm-6.0.3-A20.img I hope someone can build an A10 image. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - matrzh - 2017-05-13 Still struggling here. Trying things on and off. I now rebuilt all the tools from mosterta's github (libvdpau-sunxi, libcedarjpeg und also libyuv. I had to tweek something with libyuv during the compile process so that it links as a shared library, Do not quite remember how I did it. I still get segmentation faults when I try to play a video. something in the crashlog that may be fishy: Code: Thread 38 (Thread 0xb4c9c000 (LWP 7249)): I also get a "wrong handle 0" message in the console. Furthermore, my syslog is spammed with "[DISP] not supported image0 pixel sequence:128 in img_sw_para_to_reg" messages after some messages "[DISP] not supported scaler input pixel format:0 in Scaler_sw_para_to_reg1" I was fiddling around with the kernel config, but think I changed everything back and now have the following relevant bits in it: Code: # CONFIG_VIDEO_SH_MOBILE_CSI2 is not set mali, ump, disp_ump, hdmi and sunxi_cedar_mod modules load without any errors Only ump says the following: Code: May 13 11:25:21 cubie2 kernel: [ 250.943463] UMP<2>: Inserting UMP device driver. Compiled: Apr 9 2017, time: 13:33:32 Is there any issue with the dma_set_mask_and_coherent? Any suggestions? One last thing where I am not sure if it has any influence. My udelay seems to be about 20% off (not 100% sure, but my suspicion is that this is because of the two cores running at different speeds). I may be wrong, but just discovered this recently when exploring some software IR protocols (I always had to fiddle a lot with lirc and now think it was because of that). This could also be the issue that the sound kept advancing over the video with at the previous version. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-05-13 do you have a complete crash dump available? please set in libvdpau-sunxi in file cedar_display.c the define DEBUG_IMAGE_DATA to value 0 and recompile. There is a debug code active that you don't need. The debug code writes to files in /tmp and maybe there is an issue in opening the files for writing. the syslog spam happens when layers in the sunxi disp device are opened and then the application crashes. this is "normal" behavior. Beside that I do not see any reason for the crash. A complete decoded core file is required to get more information. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - matrzh - 2017-05-14 I changed the DEBUG_IMAGE_DATA def but I still get Segmentation faults. Here are a couple of recent crashlogs: https://pastebin.com/PDhpdFUg and https://pastebin.com/Q3Ly0WEf RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-05-14 I do see the issue (most probably): I did an API change in libvdpau-sunxi: glVDPAUGetVideoFrameConfig at cedar_display.c:301 but your copy of kodi does use the old interface and hence the stack is destroyed and a returning from the handle_destroy function leads to a segmentation fault. Please update your kodi copy to the latest and recompile kodi. Note: There is a new header file libcedarDisplay.h in libvdpau-sunxi. This is included in kodi. The file is installed to /usr/include when you install libvdpau-sunxi by "make install" I should really start to create tags.... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-05-14 (2017-05-13, 17:15)matrzh Wrote: I now rebuilt all the tools from mosterta's github (libvdpau-sunxi, libcedarjpeg und also libyuv. I had to tweek something with libyuv during the compile process so that it links as a shared library, Do not quite remember how I did it. Btw. it is perfectly fine if you link libyuv statically. I did the same. So there is no need to tweak, either libyuv nor libvdpau-sunxi. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - matrzh - 2017-05-14 I just made a make clean, deleted tools/depends/target/ffmpeg/.ffmpeg-installed, made a new configure and make. I seem to get the same result. New crashlog: https://pastebin.com/M4Q6XcWH Looks very similar to https://pastebin.com/Q3Ly0WEf I forgot in the beginning to update the submodules. It did some additional compiling thereafter, even after linking. What are the legacy API calls it should not make, so I can check in the code if something is still not ok? I am checking out the branch 'master_allwinner_layered_vdpau', correct? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-05-14 as I said you need to pull the lastest changes into your kodi copy. It is not enough to just rebuild your current kodi. please make a "git pull <mosterta_github_repository>" in your kodi/xbmc source directory. Replace <mosterta_github_repository> with the remote name you have chosen when setting up the remote name to my "mosterta" repository. The branch 'master_allwinner_layered_vdpau' is correct. As I have written the function glVDPAUGetVideoFrameConfig has a new API. The function is called in the method CHwLayerAdaptorVdpauAllwinner::getFrameConfig() Please pull the code and recompile. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - matrzh - 2017-05-15 I did a complete new git clone to be sure (and checked out the 'master_allwinner_layered_vdpau' However, since I had made a fetch and checkout before, I think I was on the right code. I noticed, however that you made some changes about 8 hours ago. I did pulled those changes git branch -v * layered_vdpau 77d14ae CPU frequency: Add warning if required sysfs files are not writable master dfa3ad4 Merge remote-tracking branch 'upstream2/Frodo' Still the same result I have the following in the syslog (maybe you accidentally see something, it is always the same, I think it is normal) Code: May 15 21:34:04 cubie2 lircd-0.9.2-devel[860]: accepted new client on /dev/lircd this is the latest crashlog after the pulled changes: https://pastebin.com/C1SphUP7 Unfortunately the gdb failed on this one, but maybe the CCedarTexture glActiveTexture error 1280 unit 0 give some indication. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - mosterta - 2017-05-16 strange that it still crashes. Unfortunately the crashlog does not help anything without a backtrace. Right now I do not have any idea what is going wrong here. There is somehow a stack corruption when an image is about to be displayed, I still assume.. Have you installed the libcedarDisplay.so to /usr/lib? to get any further here, you need to start kodi.bin in your gdb and examine the crash there (I need the backtrace of the stack, or at least from which function handle_destroy() is called. Or you can provide me your compiled executable, then I will have a look into it. at the very best together with the core dump. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - matrzh - 2017-05-18 Something I just noticed before I get into starting kodi in gdb. I just noticed the following in the dmesg [ 3.256975] [cpu_freq] INF ![]() [ 3.271494] registered taskstats version 1 [ 3.280550] [DISP] Invalid mode string: 10, ignoring [ 3.289158] I2C: i2c-3: HDMI I2C adapter [ 3.321437] ParseEDID [ 3.335064] EDID version: 1.3 [ 3.344298] PCLK=297000000 X 3840 4016 4104 4400 Y 2160 2168 2178 2250 fr 30 PP [ 3.357519] fbdev: 3840x2160 needs 66355200 bytes, but only 33554432 avail. [ 3.370739] PCLK=148500000 X 1920 2008 2052 2200 Y 1080 1084 1089 1125 fr 60 PP [ 3.381909] Using above mode as preferred EDID mode [ 3.395786] Unimplemented SVD code 34 in the script.fex I have set fb0_framebuffer_num = 2 Do I need some to make some memory allocation or set the parameter above to 1? |