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

HyperionScreenCapture ambilight plugin - madVR capture alternative to AtmoLight

Discussion in 'Ambient Lighting System' started by Rick164, July 14, 2017.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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
     

    Attached Files:

    Last edited by a moderator: July 25, 2017
    • Like Like x 3
    • Thank You! Thank You! x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    11,393
    Likes Received:
    4,417
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Glashütten (Hochtaunus)
    Ratings:
    +6,491 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Nice (y)
     
  4. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Thanks :) , new version posted which has a madVR check to only use it with that and to let AtmoLight still handle EVR.
     
    Last edited: July 14, 2017
    • Like Like x 2
  5. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
  6. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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: October 1, 2017
    • Thank You! Thank You! x 1
  7. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    7,469
    Likes Received:
    1,921
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +3,366 / 12
    Home Country:
    France France
    Show System Specs
    hello @Rick164

    i try to make it working with sabaat HSC rework, but the plugin don't start led when turn-on media or TV.
     
  8. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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 :)
     
    • Thank You! Thank You! x 1
  9. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    7,469
    Likes Received:
    1,921
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +3,366 / 12
    Home Country:
    France France
    Show System Specs
    I see error on starting api server on HSC. I will upload log.

    Envoyé de mon D5803 en utilisant Tapatalk
     
  10. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    7,469
    Likes Received:
    1,921
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +3,366 / 12
    Home Country:
    France France
    Show System Specs
  11. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,332
    Likes Received:
    907
    Ratings:
    +1,346 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Like Us On Facebook

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!