Jump to content


Photo

HDR tone-mapping with mpv


Best Answer Doofus , 19 March 2019 - 09:45 PM

Here's a starter pack for those who haven't done this, before. This assumes that your desktop coloring looks like a standard desktop, and not offset by being calibrated for HDR. This is important!

1. Download the Adobe attachment, and unzip it to; C:\Windows\System32\spool\drivers\color

2. Download the mpv config attachment, and unzip it to; %AppData%\Roaming

3. Go play a movie :)

Any questions, ask them, here :)

Go to the full post


  • Please log in to reply
199 replies to this topic

#181 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 13 April 2019 - 12:15 PM

Some info on icc color profiles.

 

https://www.colourma...colour-profiles

 

At some point, I'll get a colorimeter and make a profile specifically for my display. The Adobe profile I'm currently using, is really good, but obviously it doesn't have specific luminance information for my display. I'll get an OLED at some point, and then I'll probably make one.



#182 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 12:11 PM

So I currently have no dedicated GPU in my HTPC. It is a haswell i5 with intel graphics. I tried to use ET for 4k and 1080p and both were slideshows.

 

If I delete the custom config should I at least be able to do 1080p? Also is having my desktop set at 2160p an issue for watching 1080p since I am having the intel igpu upscale to 4k.

 

Maybe it would just be better to avoid ET until I get a new gpu.



#183 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 12:24 PM

Post a screenshot of your stats when it's playing.

#184 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 12:37 PM

I think I just answered my own question. With the desktop set at 2160p things run really poor (it is at 23hz but its more than that)

 

Changed the res to 1080p and a blu ray remux then played well. Heres a before and after. 

Attached Files



#185 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 12:43 PM

There's no hardware acceleration. What settings are you using?

#186 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 12:56 PM

There's no hardware acceleration. What settings are you using?

Oh really? Thats great, I just pulled the nvidia card and fired up ET. It might be on an nvidia specific setting. What is recommended for intel?



#187 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:00 PM

Try auto, and see what happens.

#188 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:04 PM

Thanks will do, my daughter is watching Sesame Street so I will have to mess with it later.



#189 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:09 PM

You need to make sure the GPU is enabled, too. HDMI/monitor needs to be connected to the motherboard, and the BIOS needs to enable it (but that's often automatic).

Edited by Doofus, 22 April 2019 - 01:09 PM.


#190 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:18 PM

I tried auto and auto (copy back). And each say hw acceleration = no.

 

I could probably try reinstalling the driver, but it appears to be installed as I have the standard intel graphics control panel.



#191 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:37 PM

What are all the video settings you're using? Screenshot?

#192 lightsout OFFLINE  

lightsout

    Advanced Member

  • Members
  • 406 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:52 PM

I turned everything to auto. No deinterlacing. Basically as basic as I can get it. But still using the first .conf you posted.

#193 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 22 April 2019 - 01:58 PM

Post your mpv log, and I'll look at it tonight.

https://emby.media/c...ng-for-theater/

Edited by Doofus, 22 April 2019 - 01:59 PM.


#194 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 27 April 2019 - 03:29 PM

A slight tweak for you HDR tone mapping guys, that are using the adobe icc. If you disable peak detection with reinhard, you can lower the tone mapping param to get a little more contrast. 

 

default tone mapping param with --hdr-compute-peak=no (look at the contrast on the white chess piece)

5cc4ac3b20b9f_mpvshot0001.jpg

 

 

--tone-mapping-param=0.4  --hdr-compute-peak=no

5cc4ac9db78b9_mpvshot0002.jpg

 

 

--tone-mapping-param=0.3  --hdr-compute-peak=no

5cc4acd9d6a2b_mpvshot0003.jpg

 

 

You can use increments of 0.01 for more control, such as --tone-mapping-param=0.35. 


  • PrincessClevage likes this

#195 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 05 May 2019 - 07:34 PM

One more go around for you guys. This one is a bit radical, but does much better with HDR peak brightness. For this, your display will need to be in HDR10. If not you will have a terrible picture. It should also give much greater contrast, which I'll show in the below screenshots. You'll see in the config that I elevated the contrast and saturation. A little of each is lost in the tone mapping, so I added it to the profile. 

 

Screenshots

 

Chess

5ccf71c2a4e3d_mpvshot0001.jpg

 

5ccf71f235c02_mpvshot0006.jpg

 

 

 

Harry Potter

5ccf72125cf01_mpvshot0005.jpg

 

5ccf7230a9888_mpvshot0004.jpg

 

 

 

Avengers; Infinity War

5ccf726787ba2_mpvshot0002.jpg

 

5ccf728a03fb6_mpvshot0003.jpg

 

 

The config (use as an auto-profile and don't change the target-peak)

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=no
tone-mapping=reinhard
tone-mapping-param=0.5
target-prim=bt.2020
target-trc=bt.1886
target-peak=1000
contrast=10
saturation=15

Edited by Doofus, 05 May 2019 - 07:35 PM.


#196 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 08 May 2019 - 12:34 AM

Okey dokey. Here's a simplified (better?) version.

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=auto
tone-mapping-desaturate=2
icc-profile=C:\Windows\System32\spool\drivers\color\Adobe RGB (1998) D65 WP 2.2 Gamma.icc
icc-contrast=inf

5cd25ae33c859_mpvshot0001.jpg

 

5cd25af96741d_mpvshot0002.jpg

 

 

 

5cd25c3b3fa46_mpvshot0005.jpg

 

5cd25c4d6ce8b_mpvshot0003.jpg


Edited by Doofus, 08 May 2019 - 01:07 AM.


#197 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 14 June 2019 - 01:30 AM

Okey dokey, peeps. I was fooling around again, and discovered combining the icc with target-peak=1000, gave some very favorable results (don't go below 1000. That appears to be some weird threshold that messes with the saturation). And in doing this, I can now use tone-mapping=clip, and raise the param to gain some peak brightness. I encourage you to give it a whirl :)

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=no
tone-mapping=clip
tone-mapping-param=1.8
icc-profile=C:\Windows\System32\spool\drivers\color\Adobe RGB (1998) D65 WP 2.2 Gamma.icc
target-peak=1000

In my case, I also raised the brightness and saturation, because of the way I have my display configured. So my actual profile looks like this.

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=no
tone-mapping=clip
tone-mapping-param=1.8
icc-profile=C:\Windows\System32\spool\drivers\color\Adobe RGB (1998) D65 WP 2.2 Gamma.icc
target-peak=1000
hwdec=d3d11va
opengl-pbo
deinterlace=no
deband=no
contrast=0
saturation=7
brightness=5


#198 lorac OFFLINE  

lorac

    Advanced Member

  • Members
  • 377 posts
  • Local time: 06:44 AM
  • LocationVancouver, Canada

Posted 14 June 2019 - 01:47 AM

Thanks for all your testing!

Sent from my ONEPLUS A6003 using Tapatalk
  • Doofus likes this

#199 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 19 June 2019 - 01:33 PM

Here's a quick tip. If you're just using the defaults with reinhard and you find it too bright. Instead of lowering the tone-mapping-param, try raising the target-peak. The target peak default is 100, so maybe try 200 or higher.

#200 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 11486 posts
  • Local time: 06:44 AM

Posted 17 July 2019 - 10:32 PM

I've been using this config for a while, and I'm liking it very much.

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=no
tone-mapping=reinhard
tone-mapping-param=0.5
tone-mapping-desaturate=3
icc-profile=C:\Windows\System32\spool\drivers\color\Adobe RGB (1998) D65 WP 2.2 Gamma.icc
target-peak=300





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users