the-database / mpv-upscale-2x_animejanai

Real-time anime upscaling to 4k in mpv with Real-ESRGAN compact models
Other
325 stars 6 forks source link

Plex for Windows support #26

Open the-database opened 1 year ago

the-database commented 1 year ago

Since Plex for Windows is mpv-based, it should be possible to upscale with AnimeJaNai in Plex. The steps just need to be documented. Most likely setup will be similar to https://www.svp-team.com/wiki/SVP:Plex_Media_Player

xrishox commented 1 year ago

https://github.com/iwalton3/plex-mpv-shim https://github.com/jellyfin/jellyfin-mpv-shim

I suspect you could use these shim tools and just point them to your modified version of mpv to watch plex/jellyfin with animejanai

JanChec commented 2 months ago

Example setup on Windows with Plex on the same machine, displaying in a separate window:

  1. Install Plex MPV Shim https://github.com/iwalton3/plex-mpv-shim/releases
  2. Open it up.
  3. Right-click its icon in the Windows notification area > [Open Config Folder].
  4. You'll see the directory opened. Open conf.json in a text editor.
  5. Find the following keys (on the left side of ":") and set the following values (on the right side of ":"):
    "mpv_ext": true,
    "mpv_ext_ipc": null,
    "mpv_ext_no_ovr": false,
    "mpv_ext_path": "C:/...(PATH ON YOUR MACHINE).../mpv-upscale-2x_animejanai-v3/mpvnet.exe",
    "mpv_ext_start": true,
  6. Right-click Plex MPV Shim's notification icon > [Quit].
  7. Start it up again.
  8. Open Plex Web in a browser supporting Chromecast. In Chrome it works out of the box. In Firefox you need browser.casting.enabled = true in about:config (a special webpage).
  9. Near the top right corner you'll see the Chromecast icon. Click it and select "Plex MPV Shim".
  10. Start any movie. You'll see it running in mpv-upscale-2x_animejanai in a separate window πŸŽ‰πŸ•ΊπŸ’ƒ

Some keyboard shortcuts won't work because Plex MPV Shim overrides them to add their own. You can change that by changing "mpv_ext_no_ovr" to true in conf.json. The new shortcuts allow you to interact with Plex, so I recommend checking them out before disabling them.

Read more:

From me: that's great - the convenience of Plex and the quality of AnimeJaNai! The only improvement here would be to have it directly in Plex encoder so that it even streams 4K! Anyway, thank you a lot @the-database and @xrishox!πŸŽ–οΈπŸŽ–οΈ