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

SDR & HDR 1080p/4k capable setup with Hyperion-NG for Media Center

Discussion in 'Hyperion Setup Showcase' started by Awawa, 27 July 2020.

  1. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Really nice.
    Any chance for Pi sdcard images ?
    I'd like to try the new algorithms.
    Thanks
     
  2. rbosse

    rbosse New Member

    Messages:
    1
    Hardware:
    RPi3, +nodeMCU/ESP8266
    Thanks for this information @Awawa . I watched a couple YT videos on how to set up Hyperion but then came across this... I'm not super familiar with the wiring but learning slowly.
     
  3. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    @NeeeeB it's already uploaded. untested ;)
     
    • Like Like x 1
  4. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Great !! You rock ! will try this week-end as I'll have some free time.
    In the mean time, I know I'm asking a lot, but would you have an idea on how to detect "properly" when there is no signal for the USB grabber and turn it off ?
    Signal detection as it is now is not ideal at all in my opinion.
    I have one of these grabbers that display a "rainbow" picture when there is no signal, so I've set signal detection to recognize the black bar on the right, but now every time I watch a movie or TV and the picture is very dark for more than 4 seconds on the right, Leds shut off...
    They come back to life as soon as the dark is left, but it is really annoying.
    I've tried to make it detect the blue bar with no luck...
    upload_2020-10-21_19-47-11.png
     
  5. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    That's the limitation of the signal detection algorithm that depends on the brightness/black level. And it works as it's designed, causes some side effects.
    In this situation some kind of image (rainbow) recognition is needed, and as it various from one kind of grabber to other (and from one saturation/luminescence levels to others), maybe detection by neural network would be preferred. Out of my skills unfortunately ;)
     
    • Like Like x 1
  6. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Ok, I can understand, many thanks BTW ;-)

    EDIT: one idea on the top of my head, what about fetching 3 points on the screen, located where green, red, blue bars are supposed to be when there is no signal, and check if their "dominant" color is green red and blue (no brightness or luminance needed, just check the dominant color) ?
    It could work for the "rainbow" case, and I believe a lot of grabbers are displaying this picture.
     
    Last edited: 21 October 2020
  7. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    It seems like a kind of simply image recognition ;) Anyway, I don't gave a plan for any support for an analog solutions in a future and that "no signal" screen is a sign of that past technology. Modern HDMI grabbers simply output a black image.. there are cheap, more advanced (FullHD resolutions without downscaling, accept various FPS and color formats including HDR10) and reliable than counterfeit UTV0007 clones. This fork is focused on high quality image processing including HDR. I hope you understand my reasons.
     
  8. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    I sure understand, no problem.
    Would you have any link for one of these cheap and modern HDMI grabber ?
    Because I've tried with both these grabbers :
    https://fr.aliexpress.com/item/1005001266503369.html?spm=a2g0s.9042311.0.0.4c966c37PQxp6l
    https://fr.aliexpress.com/item/4000917130635.html?spm=a2g0s.9042311.0.0.27426c37YELEz2

    And they both give me that "rainbow" no signal...

    Thx.
     
  9. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Seems it should be supported, but please continue on PM ;) I will try to help. First install latest of my release (SD card image) and send me output of dmesg, v4l2-ctl --all, v4l2-ctl --list-formats-ext, v4l2-ctl --list-devices commands after you ssh to the HyperHDR raspberry pi unit. It could be insufficient power supply for Rpi but it's wild guess.
     
    Last edited: 23 October 2020
  10. sergoo_lbt

    sergoo_lbt Member

    Messages:
    34
    Hardware:
    RPi3
    @Awawa , hi! Please tell me I can use your image without having a 4K TV. Or will there be no differences from the standard hyperion? And tell me what is the option hdr to sdr? Thank you very much!
     
  11. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    You can use it without 4k or HDR input signal. Simply turn off HDR to SDR tone mapping in the grabber configuration as probably you wont need it.
    There some significant changes mainly in v4l2 grabber (grabber's process capture optimization, support for multi-threading instead single thread in Hyperion.NG, YUV/HDR tone mapping), color transformation (color calibration, extended image to LED color transformation) and it's targeted for newer Debian Buster so you can test it how it works for you.

    And support for USB grabbers in Windows is coming :)
     
    • Like Like x 1
  12. sergoo_lbt

    sergoo_lbt Member

    Messages:
    34
    Hardware:
    RPi3
    Great! I'll try it out soon! Thank you, my friend!
     
  13. sergoo_lbt

    sergoo_lbt Member

    Messages:
    34
    Hardware:
    RPi3
    @Awawa , hi! Installed your image. Everything is fine, but now running hyperion-remote commands via apple shortcuts doesn't work. Maybe the problem is that the controller is not identified as a raspberry pi? If I change the memory card to the one on which the original alpha 8 Hyperion-remote commands work again.
     

    Attached Files:

  14. Puck

    Puck Member

    Messages:
    70
    Also just switched to this fork after receiving a working USB 3.0 4k 4:4:4 grabber, because I would like to use the HDR-SDR tone-mapping. Speed improvements and more settings are of course also more than welcome. Great work!

    I do notice though that (also because I can't set any decimation, so it's always off) the preview in Hyperion is not smooth (full 60fps). Still need to test response time of LEDs a bit better, but it is expected that this preview is not smooth? I can see the LEDS are sometimes a fraction behind but might be a different issue. - Edit: nevermind, LEDs are now supersmooth and unrelated to grabber. Been tweaking too much :p

    Code:
    [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:1027:process_image()) Video FPS: 59.97, av. delay: 6ms, good: 3598, bad: 0 (60.00,15)
    Also, is there a way to turn on/off HDR-SDR tone-mapping via (JSON) API? I want to see if I can toggle this automatically based on the content I am watching.
     
    Last edited: 28 October 2020
  15. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    @sergoo_lbt I will look into it
    @Puck this feature is coming in the next version

    BTW...this how it works under Windows for the first time with USB grabbers :geek: Need brave testers ;)
    [​IMG]
     
    • Like Like x 4
  16. killthewiseone

    killthewiseone New Member

    Messages:
    17
    Hardware:
    RPi2, RPi3, 32/64bit, +nodeMCU/ESP8266
    Hey Awawa,
    I'm trying to install on windows 10 using the HyperHDR-11.2.0.8A-Windows-AMD64-SUPPORT-FOR-USB-CAPTURE-DEVICE.exe download from the releases page. I get the following error on launch:
    The code execution cannot proceed because turbojpeg.dll was not found. Reinstalling the program may fix the problem.

    Any ideas? I installed from the non usb capture file and it works fine, but its usb capture I'm after :)

    Thanks!


     
  17. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    • Thank you Thank you x 1
  18. killthewiseone

    killthewiseone New Member

    Messages:
    17
    Hardware:
    RPi2, RPi3, 32/64bit, +nodeMCU/ESP8266
    Thank you! I'll give it a go and report back!
     
  19. killthewiseone

    killthewiseone New Member

    Messages:
    17
    Hardware:
    RPi2, RPi3, 32/64bit, +nodeMCU/ESP8266
    That did the trick, thank you!
    But just a heads up for anyone following after me - the link above seems to go directly to the 32-bit version, which gave error 0xc00007b after install.
    I went back to https://sourceforge.net/projects/libjpeg-turbo/files/2.0.5/ and selected libjpeg-turbo-2.0.5-vc64.exe and all is well again.
    Looking forward to trying this out!
     
    • Like Like x 1
  20. Awawa

    Awawa Active Member

    Messages:
    227
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Last edited: 29 October 2020
    • Like Like x 1