hardware acceleration on allwinner ( cedarv ) - 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) +---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184) +---- Thread: hardware acceleration on allwinner ( cedarv ) (/showthread.php?tid=154492) |
RE: hardware acceleration on allwinner ( cedarv ) - domenic - 2013-08-16 (2013-08-16, 10:17)rellla Wrote: afaik domenic built from https://github.com/rellla/xbmca10 latest stage/Frodo I have done nothing magical here, just compiled the code provided by rella/empatzero/others I am sure. If he had the time I am sure could compile the stuff himself. Anyone with some Linux knowledge could follow the instructions and build this themselves as well. If only I was a coder I could contribute to making it work better...I hope baso4 comes forward and can provide his updated code to make this software even better! Thanks rella for keeping the code current with base XBMC so we can all keep our A10/A20's working. Domenic RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-08-19 hello, i'm afraid i spreaded som false good news here, now i did more tests and all the builds, including mine, are crashing randomly when playing a stream or a video and here is an excerpt of the log : V/XBMC ( 1626): 02:03:10 T:1345770888 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback V/XBMC ( 1626): 02:03:10 T:1337103984 DEBUG: CDVDPlayer::HandleMessages - player started 1 V/XBMC ( 1626): 02:03:10 T:1337914360 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available F/libc ( 1626): Fatal signal 11 (SIGSEGV) at 0x00000418 (code=1), thread 3209 (org.xbmc.xbmc) V/XBMC ( 1626): 02:03:10 T:1337103984 DEBUG: CDVDPlayer::SetCaching - caching state 0 V/XBMC ( 1626): 02:03:10 T:1289074696 DEBUG: CSoftAE::Run - Sink restart flagged V/XBMC ( 1626): 02:03:10 T:1289074696 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz V/XBMC ( 1626): 02:03:10 T:1289074696 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0 V/XBMC ( 1626): 02:03:10 T:1289074696 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 33792 V/XBMC ( 1626): 02:03:10 T:1345770888 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1246.875000, should be:23219.954649, error:21973.079649 V/AudioPolicyManagerBase( 1175): startOutput() output 2, stream 3, session 104 V/AudioPolicyManagerBase( 1175): changeRefCount() stream 3, count 1 V/AudioPolicyManagerBase( 1175): getNewDevice() selected device 2 V/AudioPolicyManagerBase( 1175): setOutputDevice() output 2 device 0002 delayMs 0 V/AudioPolicyManagerBase( 1175): setOutputDevice() prevDevice 0002 V/AudioPolicyManagerBase( 1175): setOutputDevice() setting same device 0002 or null device for output 2 V/AudioPolicyManagerBase( 1175): stopOutput() output 2, stream 3, session 104 V/AudioPolicyManagerBase( 1175): changeRefCount() stream 3, count 0 V/AudioPolicyManagerBase( 1175): getNewDevice() selected device 0 V/AudioPolicyManagerBase( 1175): setOutputDevice() output 2 device 0000 delayMs 190 V/AudioPolicyManagerBase( 1175): setOutputDevice() prevDevice 0002 V/AudioPolicyManagerBase( 1175): setOutputDevice() setting same device 0000 or null device for output 2 I/DEBUG ( 1170): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 1170): Build fingerprint: 'softwinners/sugar_ref001/sugar-ref001:4.2.2/JDQ39/20130606:eng/test-keys' I/DEBUG ( 1170): Revision: '0' I/DEBUG ( 1170): pid: 1626, tid: 3209, name: org.xbmc.xbmc >>> org.xbmc.xbmc <<< I/DEBUG ( 1170): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000418 D/dalvikvm(16505): GC_CONCURRENT freed 387K, 10% free 5375K/5956K, paused 2ms+3ms, total 31ms ... I/DEBUG ( 1170): backtrace: I/DEBUG ( 1170): #00 pc 012afbec /data/app-lib/org.xbmc.xbmc-1/libxbmc.so (decode_one_slice+540) this particularly happens if you stop the app and restart it again, so maybe something is missing in the initialization of the GPU or it's not reset correctly?? i only try to guess here. regards, sevy RE: hardware acceleration on allwinner ( cedarv ) - Hedda - 2013-08-20 Anyone here looked into using Hybris / libhybris to try to load Allwinner's bionic-based (Android) libraries and drivers for hardware video decoding? http://en.wikipedia.org/wiki/Hybris_%28software%29 Or would that maybe violate GPL if libhybris support was added to XBMC code just load binary libraries? https://github.com/libhybris/libhybris Libhybris was designed to let you use Android drivers ad other hardware libraries under Linux but could work in XBMC under Android too? https://plus.google.com/108138837678270193032/posts/P2f8bRa9m1M Quote: Libhybris is basically a way to load Android libraries while overriding some Bionic symbols with those symbols from glibc http://www.cnx-software.com/2013/04/08/libhybris-let-you-use-android-drivers-hw-libraries-in-linux/ Quote:Libhybris Let You Use Android Drivers & HW Libraries in Linuxhttp://www.cnx-software.com/2013/03/05/future-versions-of-ubuntu-to-feature-mir-display-server-compatible-with-android-graphics-drivers/ http://mer-project.blogspot.se/2013/05/wayland-utilizing-android-gpu-drivers.html RE: hardware acceleration on allwinner ( cedarv ) - rellla - 2013-08-21 As this thread seems to be about the android version, libhybris is kind of offtopic here. But yes, using libhybris with the linux version is the preferred way due to a bug in th native linux cedar-lib binary. See http://linux-sunxi.org/XBMC#Using_the_Android_libraries_via_libhybris . Allwinner's cedarx code is rated to proper violate GPL anyway. Source code isn't available though. rellla RE: hardware acceleration on allwinner ( cedarv ) - w84no1 - 2013-08-21 Android or linux, I just want to run XBMC on these crappy Allwinner devices I have before I give up and sell them on ebay RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-08-24 hello, sorry rella, but your analyis is wrong, XBMC for android uses cedarx-libs which are based on libhybris of course, it means you can cross compile for android in a gcc environment and load android native libs at run-time, that's it. regards, sevy RE: hardware acceleration on allwinner ( cedarv ) - rellla - 2013-08-26 (2013-08-24, 16:15)chevil Wrote: hello,How can cedarx-libs base on libhybris? Libhybris is a layer that makes bionic-based software work on glibc-linux systems. (2013-08-24, 16:15)chevil Wrote: it means you can cross compile for android in a gcc environment and load android native libs at run-time, that's it.Sure. I never did that though. Native Android Libs at runtime, but not libhybris. I was talking about using libhybris on linux systems. On Android it's ... useless. rellla RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-08-26 no not true, read back again, and yes cedarx libs come with a libvecore.a, which comes from libhybris ( read the code a bit ). regards, sevy RE: hardware acceleration on allwinner ( cedarv ) - rellla - 2013-08-26 hello chevil, i can't reproduce your statement. don't even know if we are talking about the same thing. never mind, i never dealt with xbmc for android. you should end up being right. regards rellla RE: hardware acceleration on allwinner ( cedarv ) - rellla - 2013-08-26 chevil, once again, what is the xbmc source you are talking about. is it empat0's with http://ydegoyon.free.fr/git-xbmca10-0221.diff ? thanks rellla RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-09-01 hello, sorry i was wrong, for some confusing names of libraries, i thought libvecore.a in cedarx libs was coming from libhybris, but this is not the case, it's a lib for android already. the problem i that it crashes with the A20 ( and was working with the A10 ), do you know who i should contact for the cedax libs for android, as you seem to have mostly worked on the linux version, isn't it? regards, sevy RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-09-01 in fact, i'm still not sure where the libvecore.a from cedarx libs is coming from, but this is where all the crashes are located, so if someone could enlight me here? know how to produce it? it seems like a static piece of code... thanks, sevy RE: hardware acceleration on allwinner ( cedarv ) - ayam100 - 2013-09-07 I heard Mele already release new firmwar support XBMC. Here is the link from their forum: http://forum.mele.cn:81/viewtopic.php?f=4&t=46 http://forum.mele.cn:81/viewtopic.php?f=4&t=40 They said: Except that we improved the performance and stability of the firmware, we also developed new features: 1. Pre-install the APK named Game Store which introduces end users to download the popular android games which are compatible with MeLE android boxes and Air mouse. 2. Pre-install the APK named Vidon.me TV which is a media center that can switch to XMBC. 3. Support hardware decode of Blu-ray ISO and with simple navigation when using XMBC, which other android boxes cannot. 4. Support decode and playback for 4K video and 1080P video over 60Mbps. 5. Support two launchers for end users to choose MeLE or Generic. Check this topic that shows you how to switch viewtopic.php?f=5&t=41 hope someone can make one a20 xbmc ,thanks so much RE: hardware acceleration on allwinner ( cedarv ) - chevil - 2013-09-07 hello, good for Mele users, but mine is an A20 based set-top box and i don't think i can install this on it. on my box, some stock video players are working with hw accelration, it's only xbmc compiled withe cedarx libs that crashes. best, sevy RE: hardware acceleration on allwinner ( cedarv ) - ayam100 - 2013-09-08 i got the same as well. a20 base box, chevil what is the best apk is good for a20? can intro me pls? |