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-10 05:02:05 | Show all floors
pieta replied at 2015-12-9 21:51
Jernej this is great news! And great job !
How can I use your work on my orange pi plus ?
Wh ...

As you probably know, OpenELEC is it's own distribution. The easiest thing is to follow the instructions in first or second post to build an image. Also check post 29# how to change script.fex for other than OrangePi2 boards before you start the build.

If you only care about CedarX decoding, you can check my patch on github: https://github.com/jernejsk/Open ... di-003-cedarx.patch
It is basically just remake of xbmca10 codec with updated API. CedarX binary library for linux can be found here: https://github.com/jernejsk/OpenELEC-OPi2/tree/master/storage

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-10 07:48:26 | Show all floors
Edited by jernej at 2015-12-10 19:12

I tested H265 and it works. First few frames are a bit slow, but then works as expected. Anybody with different experience?

I also uploaded prebuild image for Orange Pi 2:
EDIT: Please use newer image linked few comments further.

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-10 15:03:43 | Show all floors
jernej replied at 2015-12-10 07:48
I tested H265 and it works. First few frames are a bit slow, but then works as expected. Anybody wit ...

I tried this on my brand new OPi PC.

First of all of quick noob question:
- What is the best way to change resolution to 1080p in this image?
(I read in the OP about script.bin. which i can't find, and kernel parameters, i tried but i failed)

Then some tests:
- Every MPEG4 i tried was SW decoded
- Every H264 i tried was SW decoded
- Every H265 i tried was HW decoded but was very laggy (distorted image and maybe less than 1fps)

User interface is more snappy than i hoped

If you need more test i'm here

If you want i can send you some link to files i tried.

Other questions:
- I don't think it will be difficult to enable frame rate switching. Is it true?
- Do you think you can enable HW deinterlace in the future?

Thank you

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-10 15:24:13 from mobile | Show all floors
Edited by jernej at 2015-12-10 08:25
runnerway replied at 2015-12-10 08:03
I tried this on my brand new OPi PC.

First of all of quick noob question:


It seems that you used older image in first post. Problem is, that I didn't write it. Although I'm mod, it would be rude to overtake post.

Currently, only prebuild image with HW acceleration is for Orange Pi 2 few posts back. You can build it yourself with instructions in first post and additional instruction in post 29#, where is described how to change script fex file.

You can also use Orange Pi 2 image for now, but be aware that only one usb port will work.

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-10 15:44:14 | Show all floors
jernej replied at 2015-12-10 15:24
It seems that you used older image in first post. Problem is, that I didn't write it. Although I'm ...

I've used the image in your post before mine.

Yes i know how to build OpenELEC but it takes some hours so i used your image on my OPi PC.
Name of the file: "OpenELEC-OPi2.arm-7.0-devel-20151210000543-r21670-gbc41910.img.gz"

I can try again. Do you confirm that all your H264 and H265 are HW decoded?
Even MPEG4?

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-10 15:51:29 from mobile | Show all floors
runnerway replied at 2015-12-10 08:44
I've used the image in your post before mine.

Yes i know how to build OpenELEC but it takes some  ...

Yes, they should be. Please enable logging and then check what codec is used. If you are worried about high cpu usage it is caused by unrelated issue - kswapd. You can check it with top.

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-10 16:44:10 | Show all floors
jernej replied at 2015-12-10 15:51
Yes, they should be. Please enable logging and then check what codec is used. If you are worried a ...

Yes i check used codec pressing O.

I tried again:
- I was able to find some of my H264 that were HW decoded. By the way seems that 80% of them are SW decoded.
- I cannot find any MPEG4 HW decoded. Always decoded by ffmpeg.
- All my H265 are distorted and played at a very low framerate (maybe less than 1 frame per second)

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-10 16:50:55 from mobile | Show all floors
runnerway replied at 2015-12-10 09:44
Yes i check used codec pressing O.

I tried again:

Ok, can you please give me links to these SW decoded samples? It seems that I need to adjust codec IDs. I will post links in the evening to the samples that I'm using for testing.

BTW, MPEG4 sample is big buck bunny.

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-10 17:28:14 | Show all floors
Edited by runnerway at 2015-12-10 17:29

Yes BBB MPEG4 is the only MPEG4 i found that was HW decoded..

Sample of files with problems:

MPEG4: (Not HW decoded)
- https://support.apple.com/librar ... ample_mpeg4.mp4.zip

H264: (Not HW decoded)
- http://download.wavetlan.com/SVV ... lip_mp4_480x360.mp4

H265: (Very low framerate)
- https://app.box.com/s/hrbj7pd2vpdpfynm7xdu

I hope this helps

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-12-11 02:11:27 | Show all floors
Edited by jernej at 2015-12-11 18:51
runnerway replied at 2015-12-10 10:28
Yes BBB MPEG4 is the only MPEG4 i found that was HW decoded..

Sample of files with problems:

H265 is fixed now. Other two codec did work before, if you have height > 480. I removed this limitation because it is unnecessary and it is leftover from other code.

Your H265 is not completely smooth. I suppose 50 fps is too much for GPU rendering. Zero copy display should help but don't expect it before new year.

Here is new Orange Pi 2 image:
EDIT: please check OP for hopefully lastest image

@ everyone,
please help me with testing and report issues with video playback together with small sample video.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list