Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-28 17:17:33 | Show all floors
jernej replied at 2015-12-28 06:14
So you get 32 bits per pixel in both cases? Now that I checked header files, value 10 means DISP_F ...

Yes i've never had problems with bpp and black screens on my OPi-PC.

I tried what you suggested.
Here is the patch file if you want to save 2 minutes doing it:
- http://pastebin.com/addmTnX7

I'm not sure if it removes tearing or not. I think i can still see it but i'm not sure if it's because of the video or something else..
Maybe you should try yourself because i'm not an expert of interlaced videos and i've rarely seen them.

4

threads

1118

posts

9239

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9239
Published in 2015-12-28 17:31:03 | Show all floors
runnerway replied at 2015-12-28 10:17
Yes i've never had problems with bpp and black screens on my OPi-PC.

I tried what you suggested.

Maybe you can prepare the image and lymon can then try it. If the boards have the same software I can see no reason why they shouldn't behave the same.

Thanks for the patch, but this is only the first step in making vsync work. Patch for kodi must be extended so the ioctl call will wait until vsync event in renderer. Something like:
  1. // Wait for sync
  2.   if (m_vsync)
  3.   {
  4.     if (ioctl(m_fbHandle, FBIO_WAITFORVSYNC, 0) < 0)
  5.       CLog::Log(LOGWARNING, "Vsync failed: %s\n", strerror(errno));
  6.   }
Copy code


Currently I'm just waiting to some response if this patch generally works or not. Only feature which is broken with direct rendering patch is taking screenshots, but as anything else, it could be repaired later. I think that benefits outweighs this missing functionality.

1

threads

90

posts

765

credits

Senior member

Rank: 4

credits
765
Published in 2015-12-28 19:32:10 | Show all floors
I'm now trying to do a complete clean build..removed the complete Openelec-OPI2 folder and cloned from github ...usually I just remove the build.xxx folder, which should do a clean (re)build right ?
Anyway...as of today I ran into a new problem: it seems the sources for fuse2.9.4 are no longer available from any of the (openelec/sourceforge) sources, so the build can not be finished.


4

threads

1118

posts

9239

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9239
Published in 2015-12-28 19:56:36 | Show all floors
lymon replied at 2015-12-28 12:32
I'm now trying to do a complete clean build..removed the complete Openelec-OPI2 folder and cloned fr ...

I merged latest changes from upstream. Yesterday I did a clean build and everything seems to work. After so many changes, clean build is highly recommended anyway.

1

threads

90

posts

765

credits

Senior member

Rank: 4

credits
765
Published in 2015-12-28 20:14:28 | Show all floors
Edited by lymon at 2015-12-28 20:20

Ok, did a manual download for fuse 2.9.4 from another source and finished the build.
BPP is now 32, so that's one problem solved

videos play fine again...will now test some different formats

one thing I already noticed is that zoom in video settings will blank the screen. only "NORMAL", "STRETCH 16:9", "STRETCH 4:3" (and CUSTOM, as long as you don't toch zoom amount) work
(this used to work before the new patch)

vertical shift works
(this didn't work before the patch)



4

threads

1118

posts

9239

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9239
Published in 2015-12-28 21:45:03 | Show all floors
I added patch to git and noted all limitations in readme. @swordfish, maybe now is the time for new images?

4

threads

1118

posts

9239

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9239
Published in 2015-12-29 00:28:31 | Show all floors
lymon replied at 2015-12-28 13:14
Ok, did a manual download for fuse 2.9.4 from another source and finished the build.
BPP is now 32,  ...

Zoom is now fixed. Can you test if it is consistent with previous behaviour? Zoom higher than 1 will stretch only that dimension which is not already over whole screen.

1

threads

7

posts

103

credits

Registered member

Rank: 2

credits
103
Published in 2015-12-29 01:46:01 | Show all floors
The SHA is the right, 7zip say this, are i have tested an other card. with the same result.
Red led not on, the Network link is after 3 minutes blinking and get out.
Any idea?

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-29 02:10:57 | Show all floors
handyfreax replied at 2015-12-29 01:46
The SHA is the right, 7zip say this, are i have tested an other card. with the same result.
Red led  ...

Did you test your board with another OS?

Because i'm starting to think maybe it's damaged.
Or maybe you have not a good power supply.
(I had similar problems with a low quality power supply..)

0

threads

41

posts

213

credits

Intermediate member

Rank: 3Rank: 3

credits
213
Published in 2015-12-29 02:27:56 | Show all floors
jernej replied at 2015-12-28 21:45
I added patch to git and noted all limitations in readme. @swordfish, maybe now is the time for new  ...

I'm bulding updated image for OPi-PC.I will upload them later when i'm done.

Benefits of direct rendering outweigh the missing functionalities for sure. (Only broken screenshots?)
I tested a lot of videos and i think there are no steps backward. Only improvements.

The problems that are still here are:
- Dropped frames with MPEG2 (But without direct rendering i had a lot of skipped frames too so it's an improvement).
- Video stop itself with VP9. (Maybe lib decoding should be disabled until this problem will be solved?)
I think this is low priority as VP9 is not very common

Some questions from a curious like me:
- I know V-Sync doesn't work at this moment but it can be useful for all videos or only interlaced ones?
(I think all videos can benefit from it)
- What is next problem to be solved in the virtual list? Auto-refresh rate changing?

Is this commit interesting?
- https://github.com/ssvb/linux-sunxi/commit/d4662ee456eef8873c23f1400c60b93c0ca835eb


I will do some audio related tests



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

Points Rule

Quick reply Top Return list