Win HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
*EDIT* 10-22-2018
There has been some confusion regarding the .bat files in thinking they are only needed if you are using 3D.  This is not true.  They are needed for other reasons other than just 3D so if you use PowerDVD and/or MPC-BE you WILL need to create them.  I have changed the name of the .bats to help end the confusion.  This also requires slight editing of the playercorefactory.xml.  Furthermore, I have simplified the code for both .bat files.  I have also been using DVDFab Media Player 3 to gain menus and mimic a UHD HDR disc with an iso backup 100%.  This player, unlike PowerDVD, requires no special hardware to be compliant.  I still use PowerDVD for 3D.iso menus since DVDFab Player 3 is not 3D frame packed compatible.  The updated playercorefactory.xml also reflects this change.

The current configuration as of 10-22-2018:
PowerDVD 18 build 1815 - SDR 2D and 3D iso's default and play full menus mimicking a physical disc exactly.  (I use this because DVDFab Player 3 cannot do frame packed 3D)
DVDFab Player 3 build 3.2.0.1 - UHD HDR iso's default and play full menus mimicking a physical disc exactly.  (I use this because I don't have special hardware required for PowerDVD UHD playback)
DVDFab Player 5 build 5.0.2.0 (For 3D MVC you must preselect 1080p GPU resolution and HDR relies on Windows HDR vs Private API's which would be better as v.3 presently does)
KODI videoplayer v.18 x64 nightly- defaults to play everything else.
MPC-BE build 1.5.2 x64 and MPC-HC build 1.8.3 - I select these players manually by pressing 'C' (mapped to 'Menu' on my remote) when I desire to override any of the defaults.  (When quality vs function is desired knowing they play everything but no menus)
All 5 players serve a unique need when one desires to play everything offered with no caveats.  Each can be manually selected to play what you'd like provided it handles the given source.

LAV Filters build 0.73.1 x64
madVR build 0.92.17
 
So you want fully automated 4k (UHD) HDR too? We know ripping UHD is not possible now, if ever, but we will be prepared (as we were with DVD and Blu-ray) should that occur. *Edit*  The day has arrived and our preparation is now paying off.  Test files are here Samples (wiki) and should be downloaded and saved as a source for Kodi. When finished you will simply be able to navigate your titles in Kodi, select one, and no further intervention is needed. Everything (default players based on content, enable 3D, Blu-ray, HDR mode, UHD, etc.) will be automated and can be custom altered to your unique default preference. You can also manually select various players within Kodi should you prefer to change it up. Everything in the samples and more will play correctly. Afaik, there is nothing you can't play using this entire guide. Please refer to post #1 to make sure you have covered the basics like how to set up Virtual Clone Drive, etc.  Ok, here we go.

GPU:
*EDIT* Using the latest offering from nVidia 416.34 and modifying installation package by removing and replacing audio drivers with 388.59.
*EDIT* As of 391.35, use RGB FULL 8bit instead of 12bit.  12bit introduces banding.  8bit does not and quality difference vs banding prefers 8bit.  Until NVidia addresses 10bit for RGB, this will remain the preference.
*EDIT* As of 390.65 Nvidia driver update, newer drivers are once again working as intended.
*EDIT* As of 385.28 NVidia driver update, newer drivers are now working as intended. Evidently, NVidia updated API so 3D MVC and UHD HDR now work in FSE mode. (As always, DO NOT turn HDR and advanced color switch ON). The new release of madVR v0.92.1 reflects these updates. Yea! AMD and Intel may have also updated though I have no test beds to confirm. Perhaps another user can confirm or deny?

This is only going to work with nVidia GTX 960 or better as long as it hardware decodes. For instance, a GTX 970 is not capable.  AMD should work as well but I have no experience so I cannot help with any specific GPU problems should they arise.

Success reports using the nVidia GTX 1030 are arriving and users are posting their settings and appear to be pleased with their test results.  This economical GPU may be a welcomed addition for some users.  A good example is posted here https://forum.kodi.tv/showthread.php?tid...pid2759442 by @luci5r

Players:

*EDIT*  If you desire 4k UHD playback with menus like the original disc, and you do not have specialized hardware that is required by PowerDVD, there is another option.  DVDFab Player.  I have tested version 3 and it performs well using my older system.  3D MVC does not work but SBS and TAB do.  The new version 5 offers 3D MVC but you must set your resolution to 1080p prior and change back to 2160p when finished.  This is not automated like other players for some reason.

Kodi internal player does not support UHD, HDR, full menus or 3D MVC Frame Packed.  *Edit*  Kodi now supports some JAVA menus.
The special afedchin build only supports 3D MVC using HDMI 1.3. UHD requires HDMI 2.0 and is not backwards compatible.
We will be using the normal Kodi internal player as an option for those that prefer it for anything but UHD, UHD HDR, or 3D MVC.

PowerDVD (optional) requires special hardware for complete UHD playback with full menus. Blu-ray full menu titles are still supported. PDVD does support stripped UHD HDR's such as 4kHDR.mkv. PDVD does not play UHD file structure or iso unless you browse into the title and select the proper .m2ts file. (specific hardware may support UHD) File structure (not in a container) would be preferred to necessitate browsing to the proper .m2ts file. Note, an iso cannot be navigated within PDVD but can if externally mounted and manually accessed using Windows Explorer . It also supports 3D MVC as another choice. Any full menu title used with PDVD will introduce Cinavia which can be overcome with RedFox. We will use PDVD as an optional player for those that prefer it for anything but complete UHD or UHD HDR titles with menus.

MPC-BE with madVR and LAVfilters supports 3D MVC, UHD, and UHD HDR. It does not support menus of any type, only main movie playback, but it does not introduce Cinavia and renders complete UHD and UHD HDR titles from the index.bdmv/MovieObject.bdmv (standalone) or via iso ONLY (Kodi and this code). Iso is preferred. Because it is the only player that can render complete UHD and UHD HDR backups (no menus though) and do what the others can (without special hardware), we will focus on this one. There are other similar players as well as the Windows Movie & TV app but this is what I prefer. This is all freeware too thanks to a whole bunch of dedicated folks that support the community and ask nothing in return. Without them, none of this is possible. Note:  madVR is only applied using MPC-BE and not PowerDVD or Kodi videoplayer.  Let's get started.

Installing Kodi, PDVD (optional for menus), Virtual Clone Drive (VCD), GPU drivers, File naming, Windows Audio Settings, etc., have previously been covered earlier in the guide and are straight forward with the same settings as usual. Make sure these are installed and configured correctly before you continue. Using the upcoming KODI v.18 LEIA, be sure to adjust the new setting to 'Whitelist' the highest, and only the highest resolutions your display is capable of.  For instance, do NOT select any resolutions lower than 2160p if you have a 4k display even though it is capable of 1080p, 720p, etc.  You want to upscale lower resolutions to your native 2160p.  Go slowly in order and don't get ahead of yourself. These are the new additions:

Be sure your HDR file contains HDR10, HDR, or hdr when naming just as you did with your 3D titles by adding '3D' to the file name.

If your system is x64, install x64 not x86. I have no experience with x86 and no idea how it performs let alone compatibility.
http://madvr.com/
https://github.com/Nevcairiel/LAVFilters/releases
https://sourceforge.net/projects/mpcbe/
I use x64 nightly versions of MPC-BE https://www.videohelp.com/software?d=MPC...taller.zip or newer releases.

Use Default LAVfilters settings and change the following:
Audio: Select the bitstreaming options your AVR is capable of.
Splitter: Default
Video: See picture below

*EDIT*  I now use D3D11 / Native

Image

Use Default MPC-BE settings and change the following options: I've highlighted some remote key mapping to avoid any mouse or keyboard interaction. The same keys correspond to Kodi and PDVD as well. Select LavFilters as external filters under 'Add filters' as shown in the image. Select 'Prefer' for each new filter added.
watch gallery


Choose madVR options carefully. Every system is different. You must test to find your sweet spot or set everything to low and forget about it. Low resolution poor encodes put the most stress on your CPU as the software enhances the low quality. High res 1:1 rips put the least because there isn't much to clean up and settings can be tuned higher. The rest depends on your GPU chip strength and it's memory capabilities. The GTX 960 I use doesn't skip a beat for anything I've ever played. HDR titles are not demanding but a 480p is. Do not let your mouse pointer hover in the seek bar. This strains everything. Excellent tuning guides here 259188 (thread) and here http://forum.doom9.org/showthread.php?t=...&page=2236 I encourage you to set up groups and profiles to fine tune unique sources. To overlay realtime madVR output, press ctrl + J. Make sure rendering stats is always below 35ms or your settings are too aggressive. Play at least 5 minutes.  In time you will learn what to set for your unique preferences.  The settings are too exhaustive for this forum.

Image

MadVR has the ability to render HDR a few different ways. Pixel algorithms are CPU intensive and imperfect. 3DLUT methods use a file that is a predetermined general setting for nit values unless you create your own which you won't be. When HDR mode enables, calibration at the display level DOES NOT kick in. A nit value is how bright and dark a display can get before it goes out of range. Every display is different as is every title. You don't want to lose detail in a dark shadow and the same for a bright cloud. We will not concentrate on this now that madVR can passthrough the exact metadata and dynamically switch HDR mode on and off producing a more custom picture. Passthrough hands the video processing to nVidia API and your display for HDR decoding and rendering. This is a true HDR mode. Calibration at the display is now possible. Default usually increases the contrast and backlight to max. This can be calibrated.

To quickly and easily calibrate your display:
D/L the 'HDMV' file (HDMV-2d Calibration.iso) from here http://www.avsforum.com/forum/139-displa...ation.html
You can play it back from file but it may be easier to burn it and play from your ROM drive. I just play through the Kodi internal video player. Here's how:
Add the calibration iso to the Kodi library. In Kodi Settings/Player settings/Discs/Bluray Playback mode/ select 'show Bluray menu'. (Change back to 'Show simplified menu' when finished) Navigate to the calibration iso you just added in your Kodi library. Press C to bring up the context menu. Select 'Play Using' from the menu. Select the Kodi internal player 'VideoPlayer'. You will see the full menu now.
Follow the simple instructions here https://lifehacker.com/5858625/how-to-ca...es-or-less
I would NOT change your HDMI port to 'Device type' = PC or any other presets. This usually chokes half your settings and imo doesn't look very good nor correspond with desktop vs video modes sharing the same port.
I would not concentrate on color calibration. Use 'Native'.
I would set 'Dynamic Contrast' in your display to 'High' before calibrating. This enhances brightness in HDR without impacting SDR.
I can't stress enough, settings in your display everyone automatically chants to turn off is simply incorrect. It sounds correct when seeking an unaltered pure signal thinking your picture will look better but it simply won't. All these post process settings added to displays were added for a reason, usually limitations from sources that to this day simply can't conform and it is not in anyone's control. Simply put, it's the nature of the beast. These 'extra' display settings produce post processes to overcome problems in standards initiated decades ago.
As always, set your color space to RGB full in your GPU (or as I've recently changed to 'Use default color settings' and select Auto instead of Normal aka 0-255 in your display), Kodi, AVR, and display. DURING playback, minimize your player, open your GPU control panel and set to 12bit from 8bit (no longer necessary using default color settings). As with everything, you only need to do this once.
Make sure HDR is turned on in your display options for the HDMI port your HTPC is connected as well as 'Deep Color' or similar in your AVR. Make sure your AVR actually passes through HDR otherwise add a 2nd GPU HDMI cable directly to your display (bypassing video to the AVR but keeping audio intact).
You have a 4k display now. It is smart with lots of memory. Not only does each HDMI port remember it's settings seperately from other HDMI ports, so do modes. If you use more than one HDMI port, HDMI1 can be calibrated differently than HDMI2 and so on. The same is true for modes. 2D can be calibrated differently than 3D and the same for HDR. Calibrate each port and each mode. It is worth the time and you won't be disappointed after all is finished. Remember, you only have to do all of this once.

Now that you're up to speed, here's how to install madVR:

Create a folder anywhere on your C: (root of C:, Documents, etc.) and name it what you want (madVR09111).
Extract the contents of the download into this folder.
From that content, right click on 'install.bat' and 'Run as admin'.
Installation is complete.
To access settings, select madHcCtrl.exe in the folder you just extracted to. It will appear in tray next to clock. Double click or right click and select settings.
To revert to default settings (if you get lost and want to start over), inside the madVR folder you created is 'restore default settings.bat'. You will also find the uninstall here should you want to install a fresh version of madVR but not on top of the old one.


Here are madVR settings: Click image for larger pictures.  
watch gallery

Here is a link to my settings.bin file.  You can replace yours in the madVR folder to get you started.     https://www.dropbox.com/s/szpwvi8s6a464o...s.bin?dl=0
Here is a copy and paste to simplify settings. You should not add any additional display resolutions. 2160p23, 2160p24, 2160p25, 2160p30, 2160p50, 2160p59, 2160p60

This is the profile rule for PROCESSING and SCALING:

if (srcWidth > 1920) "2160p"
 else if (srcWidth <= 1920) and (srcHeight > 1080) "2160p"

 else if (srcWidth > 1280) and (srcWidth <= 1920) "1080p"
 else if (srcWidth <= 1280) and ((srcHeight > 720) and (srcHeight <= 1080)) "1080p"

 else if (srcWidth > 960) and (srcWidth <= 1280) "720p"
 else if (srcWidth <= 960) and ((srcHeight > 540) and (srcHeight <= 720)) "720p"

 else if (srcWidth <= 960) and (srcHeight <= 540) "SD"

and the profile rule for RENDERING:

if (3D) "3D"
 else if (srcWidth <= 720) and (srcHeight <= 576)"SD"
 else if (srcWidth <= 1280) and (srcHeight <= 720)"720p"
 else if (srcWidth <= 1920) and (srcHeight <= 1080)"1080p"
 else if (srcWidth <= 3840) and (srcHeight <= 2160)"2160p"



The files you are about to create/modify are read and launched via Kodi. They are 100% safe and can be deleted without impacting anything. Some user input is required. Navigate to C:\Users\YOUR NAME APPEARS HERE\AppData\Roaming\Kodi\userdata. This is where you will create the files.
*EDIT* The following changes from time to time as software improves and/or updates.  Revisions can be found as edits at beginning of post.
This will open PowerDVD for 2D and 3D iso's so you have menus.  Kodi now has menus also btw. 
This will open MPC-BE for UHD HDR any file extension such as iso or mkv as long as HDR is in the file name (not the folder name).
This will open Kodi internal video player for everything else.
You can still manually select any player using the 'play using' tab after pressing 'C' aka context menu.  You can also modify this code to default to other players as well as add or omit players.
Watched status will also show as watched in Kodi library after playback.
 

If you do not have an existing playercorefactory.xml, create one. Right click/NEW/Text Document and rename the entire text playercorefactory.xml and not playercorefactory.xml.txt. Right click your new or old playercorefactory.xml and select edit. Copy and paste the following and edit 'YOUR USER NAME GOES HERE' with your name (There are 2 lines to edit):
Code:
<playercorefactory>
 <players>
    <player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Users\YOURUSERNAMEGOESHERE\AppData\Roaming\Kodi\userdata\PDVD.bat</filename>
      <playcountminimumtime>1140</playcountminimumtime>
    </player>
    <player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Users\YOURUSERNAMEGOESHERE\AppData\Roaming\Kodi\userdata\MPCBE.bat</filename>
      <playcountminimumtime>1140</playcountminimumtime>
    </player>
    <player name="DVDFab" type="ExternalPlayer" audio="false" video="true">
      <filename>C:\Program Files (x86)\DVDFab Media Player 3\FabPlayer.exe</filename>
      <playcountminimumtime>1140</playcountminimumtime>
    </player>
 </players>
 <rules action="prepend">
    <rule filename=".*HDR10.*|.*HDR.*|.*hdr.*" player="DVDFab"/>
    <rule filetypes="iso|bdmv|mpls|m2ts|.*3D.*|.*.3D.iso|3D.*" player="PowerDVD"/>
 </rules>
</playercorefactory>

Create #1 .bat file as you did for the playercorefactory.xml. Name this MPCBE.bat and not MPCBE.bat.txt. Edit the following text into it and edit the drive letter you assigned to VCD. The example below shows A: presently.
Code:
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto playbdmv)

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files\MPC-BE x64\mpc-be64.exe" %pth% exit
exit

:playiso
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files\MPC-BE x64\mpc-be64.exe" A:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
exit


Finally, create #2 .bat only if you are using PowerDVD 17. Name it PDVD.bat. Edit the following text into it and edit the drive letter you assigned to VCD. The example below shows A: presently.
Code:
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto playbdmv)

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe" %pth% exit
exit

:playiso
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe" A:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
exit
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
W10/1909 MPC-BE\HC PDVD19 DVDFab3&5 KODI 19 PotPlayer 960-4GB/RGB 4:4:4/Desktop=60Hz/Video=Matched Refresh rates 8/12bit/Samsung 82" Q90R
Reply
 
Thread Rating:
  • 39 Vote(s) - 4.49 Average


Messages In This Thread
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:20
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:29
RE: Kodi 3D Guide - by michaelsammler - 2015-06-22, 00:38
RE: Kodi 3D Guide - by brazen1 - 2015-06-23, 17:15
RE: Kodi 3D Guide - by michaelsammler - 2015-06-24, 02:23
RE: Kodi 3D Guide - by brazen1 - 2015-06-24, 17:22
RE: Kodi 3D Guide - by michaelsammler - 2015-06-25, 09:26
RE: HOW TO - Kodi 2D - 3D - UHD HDR Guide Internal & External Players - by brazen1 - 2017-07-12, 21:01
HELP! - by brazen1 - 2018-08-22, 18:50
RE: HELP! - by zxaura1 - 2018-08-24, 09:32
Problem with DXVA scaling videos - by obstler - 2018-10-27, 10:13


Logout Mark Read Team Forum Stats Members Help
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players4.4939
This forum uses Lukasz Tkacz MyBB addons.