2019-05-28, 23:36
After successfully updating the libbluray to 1.1.1 externally I felt with my little knowledge I could bring HDR pass through to Kodi.
The HDR situation to sum up won't be solved because it requires the use of private APIs from Nvidia
You can find all the documentation here and ready to go scripts:
https://developer.nvidia.com/nvapi
https://developer.nvidia.com/high-dynami...evelopment
Or it would need microsoft to fix HDR and enable a public API, since this problem is years old, I would put my money on Linux solving it first.
So to Windows users there's still hope.
Someone named worleydl made a visual studio script that uses the Nvidia API to enable HDR using the code made available by Nvidia.
https://github.com/worleydl/hdr-switcher
This will toggle your system into HDR mode.
Now you need advancedsettings.XML into C:\Users\YOUR USER NAME HERE\AppData\Roaming\Kodi\userdata
With the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<advancedsettings>
<try10bitoutput>true</try10bitoutput>
</advancedsettings>
So the switcher is basically a .exe file that I have compiled for all of you and uploaded it here
https://mega.nz/#!yM8ECYID!0Qv6VtX6437Mo...Rt-5ifyUqQ
So now comes the final problem to finally solve this.
The exe must run with Kodi and we all want this to be just for HDR content.
"C:\Program Files\Kodi\Switcher.exe" | "C:\Program Files\Kodi\kodi.exe"
But kodi will not launch itself as an external player using this:
<playercorefactory>
<players>
<player name="HDR" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\Kodi\hdr.bat</filename>
</player>
</players>
<rules action="prepend">
<rule videoresolution="4K" player="HDR"/>
</rules>
</playercorefactory>
There's two ways around this
1. install another kodi, edit the exe and run it externally like people are trying here:
https://forum.kodi.tv/showthread.php?tid...5&page=485
Not elegant at all.
2. Hack into the skin like this:
https://forum.kodi.tv/showthread.php?tid=140711
This will not solve the problem because will trigger Switcher.exe for all content.
So I decided to post this today before finding a final solution because I know someone here will give a WAY better alternative to just run an exe before the default player starts for HDR content, since now the hard part is done.
This is trivial but I can't figure out an elegant and seamless solution but this is it, we can finally have kodi to output HDR
The HDR situation to sum up won't be solved because it requires the use of private APIs from Nvidia
You can find all the documentation here and ready to go scripts:
https://developer.nvidia.com/nvapi
https://developer.nvidia.com/high-dynami...evelopment
Or it would need microsoft to fix HDR and enable a public API, since this problem is years old, I would put my money on Linux solving it first.
So to Windows users there's still hope.
Someone named worleydl made a visual studio script that uses the Nvidia API to enable HDR using the code made available by Nvidia.
https://github.com/worleydl/hdr-switcher
This will toggle your system into HDR mode.
Now you need advancedsettings.XML into C:\Users\YOUR USER NAME HERE\AppData\Roaming\Kodi\userdata
With the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<advancedsettings>
<try10bitoutput>true</try10bitoutput>
</advancedsettings>
So the switcher is basically a .exe file that I have compiled for all of you and uploaded it here
https://mega.nz/#!yM8ECYID!0Qv6VtX6437Mo...Rt-5ifyUqQ
So now comes the final problem to finally solve this.
The exe must run with Kodi and we all want this to be just for HDR content.
"C:\Program Files\Kodi\Switcher.exe" | "C:\Program Files\Kodi\kodi.exe"
But kodi will not launch itself as an external player using this:
<playercorefactory>
<players>
<player name="HDR" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\Kodi\hdr.bat</filename>
</player>
</players>
<rules action="prepend">
<rule videoresolution="4K" player="HDR"/>
</rules>
</playercorefactory>
There's two ways around this
1. install another kodi, edit the exe and run it externally like people are trying here:
https://forum.kodi.tv/showthread.php?tid...5&page=485
Not elegant at all.
2. Hack into the skin like this:
https://forum.kodi.tv/showthread.php?tid=140711
This will not solve the problem because will trigger Switcher.exe for all content.
So I decided to post this today before finding a final solution because I know someone here will give a WAY better alternative to just run an exe before the default player starts for HDR content, since now the hard part is done.
This is trivial but I can't figure out an elegant and seamless solution but this is it, we can finally have kodi to output HDR