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. 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. Replace mpv with the March 10 2019 build 64 bit or 32 bit

 

    Just download it and unzip it to; %AppData%\Roaming\Emby-Theater\system\x64\mpv

 

4. Go play a movie :)

Any questions, ask them, here :)

 

(more information and an updated configuration, can be found here)

Go to the full post


  • Please log in to reply
324 replies to this topic

#41 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 04 March 2019 - 06:19 PM

For the icc, I'll post an easy to use tool, later. But you don't really need to do anything, it's default. If you use icc-profile-auto and look in the mpv log, you'll see it.

#42 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 04 March 2019 - 06:42 PM

If you guys want to know about using color profiles, this is helpful

https://www.google.c...551825597078778

#43 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 04 March 2019 - 10:38 PM

Here's that tool for switching profiles

Attached Files



#44 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 04 March 2019 - 11:17 PM

If anyone would like to try to find a color profile for their display, you can take a look on here, as well as the manufacturer site. Sadly, there isn't one available for mine, but I'm working on that :)

 

http://www.tftcentra...cc_profiles.htm



#45 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 05 March 2019 - 06:38 PM

This looks interesting

https://github.com/m...r/mpv/pull/6535

#46 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139810 posts
  • Local time: 10:28 AM

Posted 05 March 2019 - 06:40 PM

Do these things ever get merged in?



#47 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 05 March 2019 - 06:57 PM

Do these things ever get merged in?


Well, that one is new. I honestly don't know what the catalyst is for prompting an new release. I've been thinking about jumping into the community and chatting with these guys, and see what's happening. Haasn just approved that one, so that should be merged pretty soon. I really need to set aside enough time to go back through the build process and get it nailed down. I've got everything set to go, but I'm having an issue making a new build. Probably something I'm missing.

Edited by Doofus, 06 March 2019 - 01:03 PM.


#48 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 05 March 2019 - 11:46 PM

For what it's worth, I switched my color profile to this;

 

5c7f4159b738b_Snapshot_162.jpg

 

My display doesn't have a profile specifically for it, but my display is set to Gamma 2.2, and this profile does work a little better than the default. In my case, most notably with SDR content. I was getting some over saturation, and with this, I don't.



#49 lorac ONLINE  

lorac

    Advanced Member

  • Members
  • 426 posts
  • Local time: 07:28 AM
  • LocationVancouver, Canada

Posted 06 March 2019 - 12:20 AM

You have to love Adobe... Couldn't just make it easy to download, click here, more info, click here, more info, etc, etc... then finally you can download it!


  • Doofus and denz like this

#50 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 06 March 2019 - 12:23 AM

You have to love Adobe... Couldn't just make it easy to download, click here, more info, click here, more info, etc, etc... then finally you can download it!

 

I know, right? lol



#51 PrincessClevage OFFLINE  

PrincessClevage

    Advanced Member

  • Members
  • 1046 posts
  • Local time: 01:28 AM

Posted 12 March 2019 - 06:09 AM

That appears to work perfectly on my SDR display, too. But needed to bump the brightness, a little. Which also works on my HDR display.

hdr-compute-peak=yes
tone-mapping=reinhard
icc-profile-auto
brightness=3
This profile look quite good with HDR and also good with those darker scenes so you can actually see what is going on. Well done

#52 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 12 March 2019 - 01:38 PM

This profile look quite good with HDR and also good with those darker scenes so you can actually see what is going on. Well done

That's surprising that you want to brighten it that much. Oh but you disabled peak detection, didn't you? If you turn that back on and use tone-mapping-max-boost, you can improve the dark scenes. I'm going to post more on this, later. Also, if you update to the latest git build, there's a new option if you use an icc. icc-contrast=inf

I'm going to explain this is more detail, later.

Edited by Doofus, 13 March 2019 - 05:08 PM.


#53 markyp OFFLINE  

markyp

    Advanced Member

  • Members
  • 240 posts
  • Local time: 04:28 PM

Posted 14 March 2019 - 01:34 PM

That's surprising that you want to brighten it that much. Oh but you disabled peak detection, didn't you? If you turn that back on and use tone-mapping-max-boost, you can improve the dark scenes. I'm going to post more on this, later. Also, if you update to the latest git build, there's a new option if you use an icc. icc-contrast=inf

I'm going to explain this is more detail, later.


Is that in the manual yet?

I had a look yesterday but couldn’t see it!

#54 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 14 March 2019 - 01:49 PM

Is that in the manual yet?

I had a look yesterday but couldn’t see it!


No, neither of them are. For Max boost, you could start with 1.5, and increase as needed. Just be aware that it can brighten bright scenes, too. So don't get too crazy with it. I have a feeling it will eventually get removed as an option.

#55 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 14 March 2019 - 03:51 PM

Here's the pr for max boost

https://github.com/m...4f88d98a3a5bfd2

#56 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 15 March 2019 - 12:31 AM

For those of you with Nvidia GPUs, try a clean install of the driver. Do you see a change in the tone mapping? I just reinstalled my HTPC ( OS and everything), and I get slightly different results. Better results, but I have a feeling it's because the GPU driver wasn't upgraded, instead having a clean installation. It might just be my stuff, but I thought I'd throw it out there.



#57 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 15 March 2019 - 12:48 AM

This is what my HDR profile, looks like

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

Edited by Doofus, 15 March 2019 - 12:50 AM.


#58 PrincessClevage OFFLINE  

PrincessClevage

    Advanced Member

  • Members
  • 1046 posts
  • Local time: 01:28 AM

Posted 15 March 2019 - 03:46 AM

This is what my HDR profile, looks like

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
hdr-compute-peak=yes
tone-mapping=reinhard
icc-contrast=inf
icc-profile=C:\Windows\System32\spool\drivers\color\Adobe RGB (1998) D65 WP 2.2 Gamma.icc
hwdec=nvdec
My latest mpv profile:
gpu-api=openg
hdr-compute-peak=yes
tone-mapping=reinhard
icc-profile-auto
brightness=0

[Video Codec]
profile-desc=cond:p["video-codec"]==hevc
deinterlace=no

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
deinterlace=no
hdr-compute-peak=no
tone-mapping=gamma


[Interlaced]
profile-desc=cond:p["video-frame-info/interlaced"]
deinterlace=yes

[720p]
profile-desc=cond:p["width"]==1280
deinterlace=no

Should I add hwdec=nvdec or this should be applied when selecting it in ET client settings?

#59 lorac ONLINE  

lorac

    Advanced Member

  • Members
  • 426 posts
  • Local time: 07:28 AM
  • LocationVancouver, Canada

Posted 15 March 2019 - 04:07 AM

I have it in mine as per post #28

Sent from my ONEPLUS A6003 using Tapatalk

#60 Doofus ONLINE  

Doofus

    Advanced Member

  • Members
  • 12552 posts
  • Local time: 07:28 AM

Posted 15 March 2019 - 10:43 AM

If you want to use nvdec in the current Theater release, you'll have to hack the playbackhandler.

Princessclevage, your conf is a bit of a mess. You've got a double entry for HDR and they are conflicting.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users