Media-player🔗
Overview🔗
Using Windows 11 LTSC VM because KODI works best with HDR in Windows thanks to some API, but right now HDR isn't working quite as it should.
I'm not sure if it's because the Nvidia card and drivers aren't passing the correct HDR info or what, but the picture looks very washed out.
Because of that I don't use HDR, tone mapping is good enough for me.
You can view the VM through console when the Display is set to VirGL-GPU, but when you want to use a GPU them you need to set it to None.
VM Configuration in Proxmox🔗
| Memory | 8.00 GiB [balloon=0] |
|---|---|
| Processors | 6 (1 sockets, 6 cores) [x86-64-v3-AES] |
| BIOS | UEFI |
| Display | Set to VirGL-GPU initially, but once you have the server set up and SSH is working, remove it and set it to None (none). Otherwise, Proxmox claims display priority and no video output will come through HDMI. |
| Machine | q65 |
| GPU | Specifically, the GPU should be passed as a whole device. For instance, my GPU is ID 0000:10:00.0, and there is also 0000:10:00.1 as an audio controller; you don't want that left behind. Additionally, I have checked the All Functions, ROM-Bar, Primary GPU, and PCI-Express boxes. |
| Extra Devices | And if you add any mouse or keyboard, do that under "Add USB Device". |
KODI Configuration🔗
Skin Repo - https://jurialmunkey.github.io/repository.jurialmunkey/
Jellyfin plugin - https://jellyfin.org/docs/general/clients/kodi/ > its repo - https://kodi.jellyfin.org
After adding the repos, you have to install them in KODI using the "Install from ZIP file" option.
It will ask for permission for "Unknown sources", which you need to enable, but also enable "All sources" to update add-ons below that setting, otherwise the skin won't let you install it.
The weather plugin is Gismetoo or multi-weather.
KODI uses the Windows API to dictate when it's time to switch to HDR. You need to specify in the KODI settings that it is an HDR display. I used the recommended settings from here and adjusted them to work the way I wanted:
Kodi Matrix 19.0 HDR Windows API (merged in Kodi 19 alpha master)
RECOMMENDED SETTINGS (copied from the linked forum)
KODI:
Settings > System > Display:
- Resolution 3840 x 2160 (4K)
- Use full screen window = OFF (real full screen)
- Delay after change refresh rate = 2 seconds
- Use limited color range = OFF (full range)
Settings > Player: - Adjust display refresh rate = On start/stop
- Render method = Auto detect
- Allow hardware acceleration DXVA2 = ON
- Use display HDR capabilities = ON (enable auto switch HDR mode and color space)
GRAPHICS CONTROL PANEL:
- Refresh rate: 59 or 60 Hz (for Windows desktop and Kodi GUI)
- Color space: RGB 8bit (driver auto-switch 10 or 12 bit when is output HDR10 signal)
- Signal range: 0 - 255 / full range
- Video settings (HW decoding): All default or "application controlled". All contrast / color enhancements = OFF (can cause artifacts)
TV:
- HDMI video range: Auto detection or full range / black level high
- Color space: Auto detection
- HDR mode: Auto detection
TROUBLESHOOTING / ALTERNATIVE SETTINGS
Some setups do not support HDR at 60Hz because one element of chain doesn't support it (usually by HW limitations)
Then should be used alternate settings:
- Set Windows desktop refresh to 30 Hz <= this may be the safest way
- Set "Delay after change refresh rate" to 0 s. <= try these first
- Set Full screen mode to windowed full screen
- Set graphics control panel to YCbCr 4:2:2 or 4:2:0 <= when everything else doesn't work
Since almost all movies are at 24 fps and is only need avoid HDR 60 fps (SDR 60 fps for Kodi GUI still is possible) Set"delay after change refresh rate" to 0 s. is a better workaround (if works) because allows fast switch from SDR 60 Hz =>HDR 24 Hz without intermediate state HDR 60 Hz not allowed
SETUPS WITH AVR
Configuration may NOT be trivial because:
- AVRs may not support HDR passthrough on all input/output ports
- AVRs may not support all HDR formats (4K 60Hz RGB 8bit)
- AVRs may require activating one o more options in the menu settings (Enhanced mode)
- Others