1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED CoreElec + Hyperion NG

Discussion in 'Software Support' started by Merwenus, 27 December 2018.

  1. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    Hello,

    Bought an s912 armbox and installed CoreElec + Hyperion NG in addons. It works, but it has strange things and I'm looking for some help If it is a CoreElec problem, Kodi problem or Home Assistant.

    1) RGB colors are perfect while playing a video files.
    2) But when in the menu, or playing music the Blue and Red colors are switched.
    3) I'm using Home Assistant, and added Hyperion to it, but when I press turn off, it just turn it back automatically. Is it related to Hyperion NG addon or home Asisstant ?
     
  2. Akriss

    Akriss Active Member

    Messages:
    486
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Hmm. I'm not sure.

    The Hass component is build against the release version of Hyperion. I not sure of a component fully compatible for the NG version. yet. I've been looking for one as well. I think it should be easy enough to craft a compatible version. However I'm not able to as of yet.
     
  3. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    It seems NG version is not compatible with HA, it is for the older version sadly, now we just wait a few months, maybe someone will make it happen.

    The Blue-Red color switch is strange, after half year of use found an old anime which works like in the menu, blue and red color is switched.

    Any suggestions where should I start the debug about this? Tried to switch RGB to BGR and with this menu is good, but the videos are switched... :)
    Is this maybe a S912 + Hyperion.NG problem with fullHD resolution at 60Hz?
     
  4. Akriss

    Akriss Active Member

    Messages:
    486
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I'm not sure. However I think I would start fresh using This library. It looks promising.(I just need to learn to code, beyond a basic hobbyist level.)
    And maybe ask the author of the original component.

    What menu? The web interface of .NG? Yup that won't work.

    I don't think so. However I've not tried running on a S912 SoC.
     
  5. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    Sorry, you missunderstood me. Kodi Menu, when the playback stops in Kodi and goes back to the series list or the main menu etc.
     
  6. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    Exactly the same here. Have a S912 box from China running Core Elec + hyperion.ng. I can either set the RGB order correctly for playing video or for static content like menus, pictures etc. Any chance of switching this in the config file ?
    The same happens with "standard" hyperion.
     
    Last edited: 29 January 2019
  7. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    I'm glad i'm not the only one with this issue, but I'm sad no one can fix it . :(
     
  8. cert_

    cert_ New Member

    Messages:
    1
    i can confirm this. colors in KODI menu wrong (yellow) on my S912 box. 1080p/i playback ok, 4K playback ok with "echo 3 | tee /sys/module/amvdec_h265/parameters/double_write_mode". Hyperion.NG 9.0.100.1, CoreELEC 8.99.1.1
     
  9. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    I finally ended up installing the compiler and debugger and found out that (at least on my box) the framebuffer format is RGB32.
    The framegrabber of original Hyperion asssumes BGR32. So I changed the single line of code and voilà, problem solved.
    In case anybody else with the same problem wants to give the version a try:

    https://mega.nz/#!TvJC3aiJ!RNVags6Kwc1POFiPJPe8e1A5mH4AvxkiBlSCfITsiUc
     
  10. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
  11. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
  12. Paulchen-Panther

    Paulchen-Panther Active Member Developer

    Messages:
    188
    Which code line is meant exactly?
     
  13. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    Tested and it looks like it works perfectly, more testing a bit later! :) Thank you!
     
  14. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    Cool. Thanks for the info.
     
  15. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    I know it is just a quick hack and should be configurable, but for me it does the job at the moment.

    FramebufferFrameGrabber.cpp:

    For hyperion.ng I changed

    switch (vinfo.bits_per_pixel)
    {
    case 16: pixelFormat = PIXELFORMAT_BGR16; break;
    case 24: pixelFormat = PIXELFORMAT_BGR24; break;
    case 32: pixelFormat = PIXELFORMAT_RGB32; break; // was PIXELFORMAT_BGR32
    default:
    Error(_log, "Unknown pixel format: %d bits per pixel", vinfo.bits_per_pixel);
    close(_fbfd);
    return -1;
    }

    For hyperion I changed


    if (vinfo.bits_per_pixel == 16)
    {
    pixelFormat = PIXELFORMAT_BGR16;
    }
    else if (vinfo.bits_per_pixel == 24)
    {
    pixelFormat = PIXELFORMAT_BGR24;
    }
    else if (vinfo.bits_per_pixel == 32)
    {
    pixelFormat = PIXELFORMAT_RGB32; // was PIXELFORMAT_BGR32
    }


     
    • Like Like x 2
  16. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    It works well, after few hours of testing, even fixed some videos where the problem was the same before (RGB><BGR). THANK YOU lupus11!

    Quick question, did you complie Hyperion.NG from the current non stable version, or from the Latest release?

    Because @Paulchen-Panther fixed a bug too with Home Assistant, but still not works in Home Assistant for me.
    Joeboyc2 said on HA forum that it was fixed in december.

    https://community.home-assistant.io/t/hyperion-component/9130/45
    https://github.com/hyperion-project/hyperion.ng/pull/523
     
  17. Paulchen-Panther

    Paulchen-Panther Active Member Developer

    Messages:
    188
  18. Merwenus

    Merwenus New Member

    Messages:
    13
    Hardware:
    RPi3
    Can't turn Hyperion.NG on/off from HomeAssistant, when I try it turns off but turns back on again instantly. Can't control the colors or the effects.
     
  19. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    I used the latest GIT (non stable). But have no idea about HA details.
     
  20. lupus11

    lupus11 New Member

    Messages:
    7
    Hardware:
    32/64bit, +Arduino
    Sure. As a several years Hyperion user, I am happy I can give something back to the community.
     
    • Thank you Thank you x 1