HyperionScreenCapture ambilight plugin - madVR capture alternative to AtmoLight (1 Viewer)

Rick164

Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    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

    Last edited by a moderator:

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    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

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    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

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    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,603
    5,226
    France - IDF
    France France
    Country flag
    I see error on starting api server on HSC. I will upload log.

    Envoyé de mon D5803 en utilisant Tapatalk
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    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 (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 15
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    M Installing Plugins Newcomers Forum 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    Similar threads

























    Top Bottom