Author: giaur500

Kodi 17 ?

[Copy link]

0

threads

18

posts

58

credits

Registered member

Rank: 2

credits
58
Published in 2017-5-18 19:27:13 | Show all floors
jpascher replied at 2017-5-18 16:02
I also think there is something not as it should be concerning the network. My be someone can save a ...

Hi jpascher,
I looked at the logs and found that I missed some patches for the kodi application, so the cedarx drivers are built and available with the image,
but not called by the application.
As soon as possible I try to correct this aspect.

Regards

amicrodev

0

threads

19

posts

118

credits

Registered member

Rank: 2

credits
118
Published in 2017-5-18 21:33:19 from mobile | Show all floors
Can someone build openelec/libreelec opi with mpv player?

0

threads

2

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-6-1 23:01:18 | Show all floors
Hi,
Just finished testing Libreelec-8.0. Followed 'amicrodev' instructions and built an image (OpiOne). The instructions are easy and it was fun to compile an image even as it took a really long time to finish.



Noticed as stated by 'amicrodev' no HW acceleration so no HD content can be played smoothly. Found cedarx it was built nicely and is present at the image but for some reason kodi ignores it.
Any advice where to look for the problem ? Tried the log files but not closer to a solution. Maybe someone with a better understanding of Kodi system can point the way.
I am new to this but very interested in finding a solution.

Did some testing with the network it seems to work nicely and its fast 8-9 Mbs to an usb HDD. Will continue to test.

Anyone ?

0

threads

2

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2017-6-4 07:28:53 | Show all floors
Hi,
Just an update.
Examining the log files from Libreelec and comparing to Openelec made by 'jernej' i have found that Openelec uses:

01:00:20 T:3034976256  NOTICE: Default DVD Player: dvdplayer
01:00:20 T:3034976256  NOTICE: Default Video Player: dvdplayer
01:00:20 T:3034976256  NOTICE: Default Audio Player: paplayer
3:59:16 T:2766230432  NOTICE: Creating video codec with codec id: 13
23:59:16 T:2766230432   DEBUG: CDVDFactoryCodec: compiled in hardware support: AMCodec:no CedarX:yes MediaCodec:no OpenMax:no libstagefright:no VDPAU:no VAAPI:no iMXVPU:no MMAL:no
23:59:16 T:2766230432   DEBUG: FactoryCodec - Video: cedarx-xxx - Opening
23:59:16 T:2766230432   DEBUG: Codec profile 15 level 5
23:59:16 T:2766230432   DEBUG: CDVDVideoCodecSunxi::OpenDecoder - AVCodecID(13) -> CedarXID(0x10a)
23:59:16 T:2766230432   DEBUG: CDVDVideoCodecSunxi::OpenDecoder - ExtraSize[59]
23:59:16 T:2766230432    INFO: CDVDVideoCodecSunxi: Opened AllwinnerTech CedarX Codec
23:59:16 T:2766230432   DEBUG: FactoryCodec - Video: cedarx-xvid - Opened
23:59:16 T:2766230432  NOTICE: Creating video thread

And Libreelec:

22:16:07.739 T:3037264496  NOTICE: Default Video Player: VideoPlayer
22:16:07.739 T:3037264496  NOTICE: Default Audio Player: paplayer
22:16:08.923 T:3005215648   DEBUG: ffmpeg[B31FF3A0]: [SWR] Using fltp internally between filters
22:16:08.925 T:3015463840   DEBUG: ffmpeg[B3BC53A0]: [SWR] Using fltp internally between filters

It looks like dvdplayer is working very nicely with cedarx but the videoplayer is working in SW mode only.

Is there a way to use dvdplayer in libreelec ?

A part of my log file:
https://pastebin.com/ambkGpPw

0

threads

45

posts

633

credits

Senior member

Rank: 4

credits
633
Published in 2017-6-5 03:43:43 | Show all floors
I don't think it's that easy to use cedarx. You can compile it, but from what i read (but not sure i understand it well), cedarx is missing code to make it compatible with known render methods. Maybe the newer versions have some improvements into this, i don't know. The author of OpenElec port - jernej, wrote, that he uses GL implementation of cedarx. How he manage to do this, i don't know. Maybe you should check his code in github. If you have some success whit this in future, please share. But you have also be aware of GPL violations of this AllWinner semi working thing, called cedarx.

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2017-6-5 20:15:37 | Show all floors
I'm actually curious. Just a theoretical question:

If we would ignore GPL and so on, and just include closed-source drivers. Would that enable HW accelaration on Kodi17? Probably not?

0

threads

18

posts

58

credits

Registered member

Rank: 2

credits
58
Published in 2017-6-7 20:48:37 | Show all floors
dexter2017 replied at 2017-6-4 07:28
Hi,
Just an update.
Examining the log files from Libreelec and comparing to Openelec made by 'jernej ...

Hi dexter2017,
the issue is in the kodi binary.
In the openelec 7 it includes the cedarx libraries.
If you look at the kodi patches in the Openelec github ,there is this patch

https://github.com/jernejsk/Open ... 05-H3-support.patch

that enables the communication of kodi with the cedarx binary library.

In the last kodi version the code changed so we have to adapt/rewrite the code of the DVDVideoCodecCedarX.cpp and
DVDVideoCodecCedarX.h and how to recall them in the new kodi methods.

Regards

0

threads

3

posts

64

credits

Registered member

Rank: 2

credits
64
Published in 2017-6-19 21:05:40 | Show all floors
Have you tried the libvdpau-sunxi hardware acceleration? This thread is about this way: https://forum.kodi.tv/showthread ... =2199415#pid2199415 using SBCs I don't have, but close enough. I think we can get a full hardware video acceleration in a close future targeting H3 and H5 devices without any license issue on the video part. Mali will be the last concern.

All the main software parts are there DE2, Cedar, Mali...; Targeting the mainline kernel is likely the proper way.

0

threads

45

posts

633

credits

Senior member

Rank: 4

credits
633
Published in 2017-6-20 06:12:13 | Show all floors
ralorpi replied at 2017-6-19 21:05
Have you tried the libvdpau-sunxi hardware acceleration? This thread is about this way: https://foru ...

This is for A10/A20, not H3/H5. And it is a huge mess, too many issues to be solved. I tryed it before and was not possible to compile even libvdpau-sunxi from this repos. Maybe there is some progress in the meantime, but still this is too complex to compile and run, not even in alpha version state. For this to be adapted to H3+, some person with needed knowledge have to adapt it. For example, H3 is missing G2D processor for OSD (subtitles) and used ION for memory reservations, so maybe this double buffering used in A20 will not be the same for H3+. Seems like no one with that knowledge is interesting of this, anyway. About mainline, i don't know at what point is development there now, but lastly i read, there is some video driver for HDMI (but no sound) and no one is working on h/w video acceleration. So too early for anything there yet. The only workable solution for now, is jernej port with cedarx.

0

threads

3

posts

64

credits

Registered member

Rank: 2

credits
64
Published in 2017-6-20 07:49:11 | Show all floors
Edited by ralorpi at 2017-6-20 18:34
RagnerBG replied at 2017-6-20 06:12
This is for A10/A20, not H3/H5. And it is a huge mess, too many issues to be solved. I tryed it be ...

Indeed, once libvdpau-sunxi (mosterta) is compiled on my orangepi pc, I have other issues too; The libUMP library targets version 2 (UMP_IOCTL_API_VERSION); And the ump kernel driver from mali r6p2 I have is at the api version 3. Some cleanup or updates are already required here...

The mosterta implementation targets Mali using the fbdev mode, and the NV_vdpau_interop emulation is already implemented; So the layers to pass the decoded video to the GPU (GLES) are already written. And G2D is useless here.

This is likely the only implementation that can work on the H5. The only Mali blob working for sure is an aarch64 one: mali450r5p001rel0linux1fbdevarm64v8a, and I don't know if a cedarx aarch64 blob compatible is available too.

Indeed a lot of cleanup are required, but a lot of work is already done; And I'm sure we can get this implemention working on the mainline kernel too (Mali r6p2 is already usable on the mainline kernel...).
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list