• AnyStream is having some DRM issues currently, Netflix is not available in HD for the time being.
    Situations like this will always happen with AnyStream: streaming providers are continuously improving their countermeasures while we try to catch up, it's an ongoing cat-and-mouse game. Please be patient and don't flood our support or forum with requests, we are working on it 24/7 to get it resolved. Thank you.

Kodi project to enable HDR in MPC to launch any movie

gereral1

Well-Known Member
Thread Starter
Joined
Mar 3, 2013
Messages
968
Likes
265
20170728_122720.jpg

Created for AMD RX video card users as AMD has no support for HDR video.
As for other products it should work as well....beta testers welcome

When you go fullsceen it stays locked in full screen and switches to 10bit display. Madvr acts weird and HDR colors are off. Some get black screens. XDR just works....

Untitled-19.jpg Untitled-1.jpgUntitled-20.jpg Untitled-12.jpg Kodi HDR project tells mpc be64 to use the SAME dynamic range as the Samsung or Phillips UHD players.


Madvr vs xdr vs real hdr samsung uhd player


Special note:

You can block lav video filter in external filters and use mpc(low) built in filter which will give you a deeper color. This internal filter will support smooth glitch free harware acceralation on video cards. The results may look even better than the lav filter for video!

You still need to use custom presenter filter for adjustments.....


Output a2r10g10b10
evrf
16bit float thru HDMI at UHD resolution. A16b16g16r16 buffer
A16b16g16r16 sufrace
15-255 or 0-250
rgb 444 limited or rgb 444 full if card supports it, YCbCr 444, YCbCr 422 at 30hz 8,10,12 bit color

-Xdr.cal can be burned to 50gig disks with UHD video in same root folder and work with XDRDesktop right click play function.
-XDR will work with redfox ISO of blurays as well launch iso with XDR Desktop ;)

There is no banding on p010 (hevc main 10) video files with AMD RX series GPUs.


Update as of July 31,2017

XDR also known as the Kodi HDR Project now has XDRCAL automation in version 2.0.0.0 soon to be released. what will happen is you load XDR and then XDR loads your player. You make adjustments on a video to video basis. You will be able to adjust filters, contrast, brightness, saturation and hue, 10bit fullsceen to the panel, 8bit float 16bit float all in RGB. limited or full color as well. Each video can be tweaked to look its best in XDR. These settings are stored in an XDR.CAL file and placed next to the video in its own folder. Using XDRDesktop simply right click play with XDR and my application will load your player in fullscreen and apply the custom metadata for that file. Then it will exit the player and return the settings to what they were before XDR settings were added. Inside Kodi this works the same. Selct the file and play with XDR. Kodi goes in the background and the player launches fullscreen with XDR.CAL settings applied to the uhd source. Once the movie ends XDR closes the player and returns to kodi. This is all automated.

These filter switch settings are very important for madvr users. If your player is setup for madvr xdrcal will switch out madvr for evr or custom presenter filter then switch back to madvr on exit. If you do not include xdrcal your madvr will be used for HDR or HDR passthru. If you supply xdrcal it will switch to XDR customs settings then restore all your existing settings. Now you can use 1 player for both.

To create XDR file is simple. To edit an existing XDR.CAL file is simple. The format is all laid out for you. This program should be released very soon. Been working on it for 3 months now. There are tons of screenshots at the end of this tread to look at to see what XDR can do with dull uhd footage.

Update official release Aug 6th,2017

Ok guys finally I can now release The Kodi HDR Project Version 2.0.0.0

All the videos are done including the donation video. Thankyou all for your support following this project over the past 3 months. I have put all my effort and time into this app to make it the best I can. Tried to make a nice interface with good options. The auto launcher works perfect and the code is streamlined. here is the download link. ENJOY THIS APP!

Due to this being a external project please click on any of the demo videos and in the video description is the official download link to my google server that is online 24/7. In the program are more files to the actual lav filters and mpcbe version I used to get these results.

My channel link is:

https://www.youtube.com/playlist?list=PLL6zS_8A86Kh4NMRvPEWCwz5pgNWt_6-h

Tip for Nvidia users:


For nvidia users please check let applications decide color in advanced settings nvidia control panel.

Inside mpcbe64 press APPLY not OK when making xdr.cal then shut down player. After this the save xdrcal will popup..... ;)

My Test system and htpc:
(This goes to show you hdr is possible on old hardware!)


Windows 10 64bit creators update
8 gig ram
Amd 965 x4 core black edition processor
GA-790XTA-UD4(rev. 1.0)
Window hdr tab off during testing
Amd rx470 gpu hdmi 2.0a set at rgb444
onkyo tx-nr555 support hdmi 2.0a hdcp 2.2
Kodi latest offering
Mpcbe 64bit
Latest lav filters

Sony 850c xbr hdr tv with hdr off
Tv set to bt709 with 12+ tint in xdrcal
Tv set to bt2020 with 0 tint in xdrcal
Tv set to vivid mode(same settings to watch cable tv)

Compare with uhd samsung and philips hdr uhd players with hdmi 2.0a hdcp 2.2
All movies were original uhd disks
Test samples oled and 4k uhd test samples to compare xdr with actual player that shows real hdr.

Manixx2020 tested xdr with perfect results on kaby lake cpu with a sony xbr hdr tv one year newer than my hdr tv with uhd rip and philips uhd player for comparing results.

Imhh1 tested with nvidia and it looks awful. Trying to figure out why he sees no shadowing...(nvidia users can already use madvr hdr passdthru....)

XDR was to fill the gap where madvr does not for users with amd hdr cards and kaby lake cpus. Your results will depend on the tv you own. If you own a nice oled tv expect nice results. My results were tested on hdr tv with hdr off to see if I could duplicate hdr by processing on the computer side without meta data instead of the tv doing the processing and requiring a properly formatted hdr metadata encode tags.

Testing shows that all the guys are wrong online about hdr. Hdr is extended brightness and contrast and saturation beyond the normal rec709.

If tv is set to bt2020 its exact the color from xdr!

This explains why windows 10 hdr attempt to dull your desktop when switched on is to elimate windows from adding to the contrast and brightness and saturation. Same goes with a pure hdr uhd file. It looks like its stripped to get the tv ready to add the contrast snd brightness and saturation. XDR adds it and leaves the desktop in normal color and tv in normal mode. All different paths to the same result. Where xdr benifits is if a person using static metadata may guess wrong on uhd file and ruin the color or the contrast is set way to high. Anyone playing with uhd knows this. XDR gives you full control over every uhd and bluray file to customize each file to adjust hdr or sdr the way that it will look good to you on your monitor. HDR tvs with HDR video card or kabu lake cpu can expect perfect uhd hdr if adjusted right. I am not out to replace Madvr but to give users other options......

With UHD if you run audio your are limited with HD audio with a high fps 4k file. You can use dtsdecoder.DLL and 7.1 jacks on back of your motherboard to get 7.1 into amified speaker package if HDMI audio bandwidth is limited. This is how I did 7.1 until I bought HDMI amp. I have all the hdcp 2.2 chain to watch UHD. Just thought I'd take HDR on PC challenge to see if it was possible and to my surprise it is with primitive methods.

By the way this is my first program in VB.net that I have written...... Self taught ;)

I need to learn c++ to program real HDR APIs
 
Last edited:
1494200828698-409117767.jpg 1494200895329-723784383.jpg 1494200936447-1477215869.jpg

These pictures were taken of paused image close up to show you the dynamic range of contrast dark to white. Easy when you block the bright areas to get an overall idea. This was in mpc hc in kodi!
 
Last edited:
Think Ill change menue options to say Set HDR dynamic mode and Set SDR Mode.

4k has files that are not encoded in hdr so this may confuse some. Tested chess oled and sony camping video and the nasa hdr video and all of them look beautiful. All samples tested have been oled hdr demos. Max is testing the hdr movie side. Oled and movies are 2 different animals in hdr. Seems like oled takes way more advantage of the dynamic range then movies. I find lights, buildings exploding and night time city scenes use hdr prettty good in movies. Documentary films really push hdr with mountains filmed directly against the raw sun and the same as ground with bright skies. Hdr actually shows detail in the object while filming into direct sun. Crazy shit....
 
Last edited:
Have to try .....
 
Last edited:
This is really really awsome for PC xbmc users!!!
Make sure you google hdr samples and download camp sony hdr and the chess oled hdr 10bit demo and load em up. The chess demo is mind blowing! The colors are super and the blacks are black...lol I was kinda amazed trying these other files. Wish I can get more hdr demos. These things are huge files and play lag free.
 
Last edited:
I'm going to code look for madvr. If it finds it disable it and switch PC to custom presenter filter and enable direct x. Oncr the user shuts off HDR your original settings will be restored as though my app has affected none of the madvr setup options. Way to many users use madvr and it's not fair if they like my app to have to use this filter. I'll have to see how mashi sets dynamic range in his filter. Then I could offer it with madvr. Be home Friday and will code this in then release the beta. I might also offer extra test apps on the size that can be loaded outside kodi. Load test app and try material. Load another then post the best one. This is what beta testing is about. Every HDR file has different meta data. Another idea is to use media info and code an HDR meta calculator. Write a program to load HDR data and covert it to levels Windows can understand. Place this file in each movie folder and load kodi. Turn on HDR and select video. The HDR app will load the HDR Cal file for the selected movie and you will get absolutely perfect 1 to 1 HDR in kodi with your TV controls unlocked.
This will insure cd/m2 level will match source. Every movie uses a different cd/m2 level.

It's all about giving the user the option to change the picture he or she likes. HDR no offense on some movies suck.

Right now will try static meta data but in the future offer custom meta data per file as this project grows..... This will ensure every video looks exact. Basically I'm doing what audio has done mp3 or wav. Kinda that idea with HDR. Going to call it XDR Kodi add-on. Will eventually extract meta HDR meta data per video bases.... And display exactly what HDR hardware player does. HDR to XDR(extended dynamic range). XDR will be a more friendly file format for HDR for PC. Also processing off HD audio formats must be kept!

In beta I'll make user press enter at end of program to shut down app. In non beta this app window will load and shut off automatically without any user input.
 
Last edited:
Ok finished file. Release the files tomorrow. In beta mode the dos window will show up. In future versions nothing will popup and mode will be set. Tested life of pi, some uhd samples and pretty much all the oled samples. Tested with madvr and it works too..... If you use sofware processing then you must set your lav video filter to turn off gpu assisted acceleration. If you use gpu that can do hdr like amd rx 4 5 series use custom presenter filter and set copyback as gpu acceleration option. Same as nvidia set copyback as the filter. Set color 0-255. Thats it. Load this in kodi and shut it off. This really shows hdr on hdr tv. If you want more keep tv on vivid mode. If you want accurate 1 to 1 hdr keep tv on standard mode (great for night time viewing) You have total control on local dimming on your hdr and non hdr tv which makes the app great. Please post any tips or issues regarding this app and ill see what I can do to improve it.

You need to use mpc hc 64bit . Latest version and latest version of lav filters. A setup video will follow tomorrow.

Kodi HDR project v 1.0

Later
 
Yeah, thanks a lot general1
It's possible to use your .exe with Kodi DSPlayer version ??
 
Yeah, thanks a lot general1
It's possible to use your .exe with Kodi DSPlayer version ??
Have not tested. Only works in mpc hc 64bit. This is something I would look at in the future. Also mpc bc will be added too in ver 1.0.0.2

Amd just updated their relive driver and be warned it screws up the black level to white level (causes speckles in shader) while watching hdr. AMD are a bunch of idiots..... had to roll back driver last night to get my hdr to look proper. I wonder if amd cares about video at all because the latest updates .4 .5 where for gamming stuff. Amds .3 was released for new rx5 and the win 10 creators update for access to hdr in win 10. So I suggest that amd 4x 5x use this driver and will mention this in the readme and video. Got this to work in YCbCr 444, YCbCr 422, and YCbCr 420 modes if your card has hdmi 2.0 port. Rgb 444 full limited will not support hdr main 10 at high bit rates. Yuv is delivery format of hdr. You can read about hdr as this article is long. Pc should be set to 0-255 color. Also another good read. Today I will be editing the setup video and uploading the files and video to watch on my youtube channel. This will help set it up correctly with nvida and amd and intel. Tests shows there is no need for hdr meta caculator. Testing 30 hdr samples they all looked exact so this. The rgb xy values remsin static in hdr meta tags. The luma level does too. Max and Min cl are properties set to protect future hdr tvs from over heating. When these are not included they set the max cl on tv for the best intense picture without destortion. Another note hdr is 10 steps of dynamic range added to normal video. I tested 50, 30, 24 and went down to 10. At 10 the white levels matched but the detail was still there. Any lower or higher the blacks or whites got crushed. The overall bightness and hdr wow factor was the best and matched the hdr hardware player at 10 stops of dynamic range. (Maybe thats why they call in hdr main 10?) Hmmm....With pc you must convert these values into decimal and binary. If im wrong on this I would be shocked as Ive tested the original uhd disks with samples with missing meta data and found these results. Brightness decimal to binary has nothing to do with hdr! Hdr is dynamic contrast and saturation levels. Bt2020 must be set on the panel to match the uhd material. Bt709 will be missing 30 percent of the color. Anyone that does not have a monitor or tv with this ...... do not come back saying this app does not work because it does. You must turn off app when watching bluray or dvd and return your monitor color to bt709. In future beta im looking at bt709 to bt2020 shader but thats in the future. Hdr is processed tv side! Not software side.
 
Last edited:

Download in video description below the video. Enjoy
Goto this site and click on the video and in the video description is the link to download the Kodi HDR Project

https://www.youtube.com/channel/UCMgD5qzBUZ-7Ytzx1wUhKQQ


Update: as of Monday may 15th:

Just got back reports there is an error in the program so yanked it till its fixed. Has to do with compiler used.

Update May 15th: Uploaded files with a different compiler used. No issues now. The black window will remain off when you click on hdr on hdr off, No user intervention needed. Click and load mpc.

Update may 16:

Some have issues with wrinting permissions to windows regristry so I will make the source code available so you can convert your .bat file to exe. Simple code video will be released with the kodi hdr project 1.0.0.2 and the compiler will be included and the code. Simple copy paste and hit build. Very simple. You can trust source code in exe because you built it. Plus it saves me from having to pay a distrubution licence for a free app.
 
Last edited:
On saturday im going to include compiler at code so you guys can build your own .exe so you knows it a trusted file. Simply copy the reg code into the app and press build. It will create the hdr on.exe

You can set black white level into the exe if your running projector it lcd. Neat little trick to get hdr to work with cpu 4k video or gpu and hdr and the best yet computer monitors and lcds that are not hdr panels. Same goes with 1080p or 1440. With this trick you can downssmample hdr to lower formats and still see the hdr.

Due to windows security issues writing to the regristry its better you create your own batch file to exe to turn on and off hdr or as I call it xdr function. If your windows stops adding or changing reg keys then its your problem and not mine and you need to research how to allow access to write or change reg keys.

In a simple world I make a program. You run it ....everything is great...not.... so ill give you guys the source code and program I used to make the 2 exes. The compiler I used worked on my pc but as soon as I copied the exe to another computer the compiler threw an error that a licence was needed to distrubute your programs. So just build it yourself and it will work. You can choose to show status window or not. I suggest showing it as kodi will think the player is launched with the cmd window input.

Ill make another quick video showing you how to build this 4 lines of code to .exe to wotk with kodi.

Honestly I would be careful if someone told me to run .exe so better show the source code to be 100 percent safe. Im no shady guy and am always willing to help the htpc community with anything. This is just one more discovery just like process monitor method for screenpass.

Hdr10 is 10 points contrast!

Later....
 
Last edited:
Ok guys Version 1.0.0.2 is released and I included the compiler and source code and all the files I used so you guys can make it better.

The link in below the video on my youtube site.
 
Hi general1
Your reg file only modify the MPC-HC parameters but don't turn on automaticaly the HDR switch in Windows 10 CU.
It's correct?
 
Hi general1
Your reg file only modify the MPC-HC parameters but don't turn on automaticaly the HDR switch in Windows 10 CU.
It's correct?
Yes. Many are saying are you for real? I have a big advantage as I have the video card, tv and player that support hdr. Some comment this does the color wrong. I keep stating set bt2020 on your tv and it will show exact color as store bought uhd. This is how metafile adjusts your tv they show hdr logo on your panel. Forcing you into their format. This is all a big fat lie. You can spread -20 brightness +20 contrast and match youtubes hdr too. The more you go extreme the cushed the black detail gets. I was in best buy and looked at expensive oled tvs with journey thru colors. With naked eye it looked great. Vibrant reds and black blacks. Then I ask the guy where the girl was in the night time? He said he was not aware of it. Still touting over the color im shacking my head. This is the same for pc. True hdr is dynamic levels of 10f stops ...hdr10. It might not look wow but its accurate. Shadow and light detail looks real over all the content. Red blue green looks correct. Not triple saturated. I own these movies and know way more than adverage in video editing and sound production.


Assin creed, la la land, now u see me 1 and 2, gods of egypt, enders game, allied, plant earth 2, hacksaw ridge, lone survior, payriots day, deep water horizon, allied, suside squad, fastic beasts, john wick, magnif 7, van desel the last witch hunter, passengers, revenant, oblivion, the great gasby, and everest.

So if you guys doubt these adjustments then good luck on hdr journey. This is a fun project to automate this in mpc for older hardware to match my expensive hardware that does uhd perfectly fine. Until kodi switches hdr properly you will have to use madvr hdr way or switch hdr tab in windows. Hdr tab also works perfect for me too. Just wanted to see if I could get hdr match and have access to my pucture vivid settings on my sony xbr tv as well. Results are you can watch hdr in daytime light with better results because you have access to local dimming. Projectors and older lcd tvs will work too. For naysayers who bitch because tv does not switch to hdr fine. Go rebuy all your hardware. But for guys who have a wonder cpu and graphic card and oled tv enjoy hdr on older equipment. Thats whole purpose of this. Kodi gets an easy way to turn it on bypassing the stupid do you want to add this prompt. /f command tells windows to go do it.
 
Last edited:
One more thing. If you look at her sitting in the room. Screen shots ...... look behind her! See the dark room area? Now on mine its all detail. In oled best buy its gone....black. I tell you the tv companies know how to sell hdr. But a properly calibrated tv will not look so wow but you see every detail the director intended you to see. I know im right...... when I recorded quick release toilet seat review on my youtube channel I used 500 dollar monitor with fslse color which shows color scale for exposure. Notice detail in the white toilet seat? I use 1500 dollar camcorder and 400 dollar sound recorder to get this result. Mind you I make money on my channel and get about 120,000 views a month. So when I talk about hdr I know way more about luts and color and hdr than others. If you truely want to try to calibrate mpc in pc on hdr tv go load seiedits hdr calibration color bars. Adjust your levels tell you see ALL the steps from black to white. Then load a clip. You will be amazed how much hdr material you missed. It looks less vivid but real. Youtubes hdr does not look real but people want hdr that looks rich. Real is boring. Hdr is boring as well but very accurate. Metalic look is not real. You see this in hdr still frames time lapsed video. Color levels are bumped up in post production. What do I know .......

Im done trying you help out kodi community..... Got way more stuff to get done around house then to sit infront of a computer all day......
 
Last edited:
Back
Top