please choosego to mobile | Continue to access the PC version
Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-24 04:37:57 | Show all floors
pieta replied at 2015-12-23 11:01
@jernej

Hi, Jernej as we have already written, it is well known bug with kswapd.

Ok, I will implement this as a workaround.

5

threads

354

posts

2614

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2614
Published in 2015-12-24 05:20:50 | Show all floors
pieta replied at 2015-12-23 11:01
@jernej

Hi, Jernej as we have already written, it is well known bug with kswapd.

Does not make any difference here.

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

1

threads

13

posts

242

credits

Intermediate member

Rank: 3Rank: 3

credits
242
Published in 2015-12-24 06:53:02 | Show all floors
damn
I hoped that will help...

For me it helped (a little but noticeably) but the characteristics of the system is probably different.
What is size of Kodi after compilation ? It is linked statically or dynamically in Openelec ?

I think that the binary file is large and its start-up starts swapping.
Kswapd should put to swap file (if it exists) some data and after a while swapping is expected to end. But it's not.

I have no idea now what to do with that...



1

threads

90

posts

761

credits

Senior member

Rank: 4

credits
761
Published in 2015-12-24 15:41:17 | Show all floors
Edited by lymon at 2015-12-24 15:42
pieta replied at 2015-12-23 18:01
@jernej

Hi, Jernej as we have already written, it is well known bug with kswapd.

Those settings don't seem to make any difference here either.

But...I have read a couple of reports that the kswapd issue seems to be caused by or related to EXT4 filesystems (the /storage partition is EXT4)
So to test I converted the /storage partition to EXT3 and preliminary tests indeed show good results: for the first minute or so kswapd is still at 100%, but it soon settles to 0% and stays that way.



18

threads

303

posts

9574

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9574
Published in 2015-12-24 21:57:12 | Show all floors
Edited by jacer at 2015-12-24 22:04
lymon replied at 2015-12-24 15:41
Those settings don't seem to make any difference here either.

But...I have read a couple of report ...

So you suggest we use EXT3 format filesystem? A strange solution.
Check below threads.
http://ubuntuforums.org/showthread.php?t=2072042&s=054754f053f097c67f65f3046180af59&p=12383971#post12383971
http://linux-kernel.2935.n7.nabble.com/kswapd-craziness-in-3-7-td561374.html

18

threads

303

posts

9574

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9574
Published in 2015-12-24 23:03:40 | Show all floors
For fixing green stripes and green bar issue, please check this link below.
https://github.com/linux-sunxi/libvdpau-sunxi/issues/40

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-25 00:12:41 | Show all floors
jacer replied at 2015-12-24 16:03
For fixing green stripes and green bar issue, please check this link below.
https://github.com/linux ...

Green stripes are generally solved. It is different kind of a problem as that at libvdpau. Because this is my first of a kind project, I didn't crop image, because I didn't know. However, I still have a problem with MPEG2 videos. Reported image sizes and offsets are a bit strange, to say the least.

I'm glad that some of you are working on kswapd issue. I will implement solution or workaround when there will be consensus .

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-25 02:22:57 | Show all floors
I think that direct rendering works with this patch:
https://app.box.com/s/rp4irz7blz3ic7zihdlhcmotchk1lzdx

Can anyone please test it? Just go to projects/H3/patches/kodi folder and delete following patches:
kodi-000-windowing-support.patch
kodi-003-cedarx.patch

After that, put the new one there.

Few notes:
- VP9 seems to be SW decoded (all cores go to 100%)
- some MPEG2 videos report wrong height and others have problems at rendering (maybe problems with interlacing?)
- there should be no green stripes or any additional borders
- FPS reported by debug info are those from GPU. Because this bypass GPU, reported values are not correct for video.
- no deinterlacing whatsoever, HW deinterlacing is on next todo list
- CPU consumption for kodi should always be minimal during video playback, except for VP9

Please test it

5

threads

354

posts

2614

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2614
Published in 2015-12-25 04:15:34 | Show all floors
green stripes and some strange colors on some videos.
That's it
older works better
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-25 04:31:31 | Show all floors
it may be for now, but for that reason I didn't put it on github yet. Care to explain where did you get green stripes or strange colors (video samples, codec details, etc)? I have colection of bad videos and it works for most of them except MPEG2 is a bit strange. VP9 should work better, because CPU load is lowered.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list