HyperionScreenCapture ambilight plugin - madVR capture alternative to AtmoLight (3 Viewers)

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    For amblight / Hyperion users made something new that works a bit better with madVR image capture and doesn't use AtmoLight, this not as near as configureable as AtmoLight is but can be a replacement for basic capture.
    First release so please let me know of any issues :)

    How it works

    - On playback start / stop even it sends API call to HyperionScreenCapture (separate windows application) which in turn enables / disables its Windows live capture and forwards that to Hyperion (like we do in AtmoLight).
    All image capture is done externally.

    Benefits over AtmoLight

    - It will work in DX 9/11 modes (even exclusive) so just about everything madVR has to offer.
    - Same as with Atmolight the desktop / media performance is not affected, low cpu usage as well but can tweak capture delay if needed and It's ~5% cpu usage on Ryzen 1800X @ 60FPS without any capture delay.
    - Smooth capture without delays, right now the hooks we use with AtmoLight are not ideal as they depend heavily on madvR settings (frame buffers)
    - AtmoLight isn't needed as capture is external.
    - Can assign remote key to toggle capture (optional)

    Installation

    - Unpack HyperionScreenCap_withAPI.zip somewhere and start it.
    - Go to the system tray and right click its icon, select setup.
    - Change Hyperion IP / Hostname and port to match your setup and make sure API is enabled.
    - Click save and make sure capture works, can toggle it on / off manually by double clicking the system tray icon.
    - Now for the Mediaportal part install the plugin (HyperionScreenCapture_1.0.3.0.mpe1).
    - Optionally can open Mediaportal configuration -> Plugins and check to see if settings are ok or assign a manual toggle key, it should match the API port from your HyperionScreenCapture setup (default is 29445).

    - Disable AtmoLight plugin as it may conflict with capture / led control, unless you want AtmoLight for EVR and in that case make sure to tick the Only use when madVR is active option in plugin.

    - Now start Mediaportal and enjoy :)

    HyperionScreenCap.exe can be manually added to Windows startup for now but next official release will have it either in installer or plugin will handle that for you.
    Plugin also has a Kodi dsplayer counterpart:

    GitHub - RickDB/script.hyperionscreencapture: Controls HyperionScreenCapture during playback events

    Known imitations

    - Multi-monitor support is limited, in HyperionScreenCapture you can select a monitor index but if Mediaportal isn't on primary most likely not gonna work.

    Source code

    GitHub - ambilight-4-mediaportal/MP1-HyperionScreenCapture: Mediaportal plugin which controls HyperionScreenCapture capture via its API

    Credits

    hanselb - GitHub - hanselb/HyperionScreenCap: Screen capture program for Hyperion ambilight
     

    Attachments

    • HyperionScreenCap_withAPI_V12.zip
      1.4 MB
    • HyperionScreenCapture_1.0.3.0.mpe1
      17 KB
    Last edited by a moderator:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Thanks :) , new version posted which has a madVR check to only use it with that and to let AtmoLight still handle EVR.
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Added time exclusions to HyperionScreenCap, based on AtmoLight and how it works:

    - When in time range it will not toggle the leds on/off based on playback events
    - Manual toggle via remote key will still work and overrides the time range
    - Manual toggle via systray will still work as well

    When installing make sure to use the included config in zip as right now it doesn't migrate when I add new settings, somewhere this month I'll probably improve some parts of settings handling so this isn't needed anymore.

    While HSC is running can also control its API on the same machine via web browser for testing / other automation etc.. :

    http://localhost:29445/API?command=ON&force=false
    http://localhost:29445/API?command=OFF&force=false

    Where force=false means don't override time exclusions, we use force=true for manual toggle event for instance.
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Hi,

    Anything in Mediaportal logs like a network timeout during stop / start?

    Also would try to run HSC as admin and see if that helps :)
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,948
    5,617
    France - IDF
    Home Country
    France France
    I see error on starting api server on HSC. I will upload log.

    Envoyé de mon D5803 en utilisant Tapatalk
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Seeing a null reference exception before:

    2017-12-01 17:41:45 [ERROR] [1] HyperionScreenCap.ApiServer.StartServer:0 - Failed to start API server

    Looks like it can't bind to that port, can be a few things but can troubleshoot a bit of the usual suspects:

    - Make sure you only have one HSC process running, in case any other / old version auto starts
    - Restart Windows to free up any reserved ports
    - Start HSC as admin
     

    Users who are viewing this thread

    Top Bottom