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
346 replies to this topic

#321 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 24 October 2019 - 10:34 AM

@Doofus, what are your windows display settings with hdr enabled? i can only get 8-bit dither rgb when i set my display to 3840x2160 60hz altho my radiance pro shows the input signal as 3840x2160 60 hz, 444-hdr2020... thanks!


HDMI 2.0 doesn't support RGB 10 at 60hz. That's why I asked what GPU you have. You either need to lower the refresh to below 30Hz or use chroma sub-sampling, which you need a discrete GPU to be able to do that.

#322 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 24 October 2019 - 05:34 PM

I have my RTX 2060 set to 4:2:2 with 12bbp at 59Hz

 

5db2614e3bbc4_HDR.jpg


Edited by Doofus, 24 October 2019 - 10:43 PM.


#323 PrincessClevage ONLINE  

PrincessClevage

    Advanced Member

  • Members
  • 1072 posts
  • Local time: 06:44 PM

Posted 24 October 2019 - 10:45 PM

HDMI 2.0 doesn't support RGB 10 at 60hz. That's why I asked what GPU you have. You either need to lower the refresh to below 30Hz or use chroma sub-sampling, which you need a discrete GPU to be able to do that.

Rgb 10 at30hz works fine for my setup gt1030

#324 mrfaulk OFFLINE  

mrfaulk

    Advanced Member

  • Members
  • 230 posts
  • Local time: 08:44 AM

Posted 25 October 2019 - 04:40 AM

HDMI 2.0 doesn't support RGB 10 at 60hz. That's why I asked what GPU you have. You either need to lower the refresh to below 30Hz or use chroma sub-sampling, which you need a discrete GPU to be able to do that.

 

if you use something like an hdfury vertex it's easy to force a change in the pc's integrated graphics chroma sub-sampling simply by changing the edid  the vertex reports, for example 3840x2160 60hz 10-bit, ycbcr420 is easily achieved (shown in the  pc's advanced settings)... but, yes, without a 1.4 displayport out or hdmi 2.0a out, something that will handle a bandwidth of 18gps+, which my pc doesn't have, i won't be able to get anything higher than 8-bit with 3840x2160 60hz rgb.

 

anyway, not sure where i'm going to go from here, will continue to keep my eye on mpv hdr progress but for the time i'm thinking of going in a different direction... that said, thanks for all of the info on the subject you've provided!



#325 mrfaulk OFFLINE  

mrfaulk

    Advanced Member

  • Members
  • 230 posts
  • Local time: 08:44 AM

Posted 25 October 2019 - 04:41 AM

Rgb 10 at30hz works fine for my setup gt1030

 

yes, works fine with my integrated gpu as well.



#326 jscoys OFFLINE  

jscoys

    Advanced Member

  • Members
  • 1226 posts
  • Local time: 03:44 AM

Posted 03 January 2020 - 11:53 PM

Hello,

Sorry but started to read this thread and oh my god there is content there...

Maybe @dofus or someone else, could you give me a sum-up if what is the best config in mpv.conf? Maybe you could post the file somewhere so we just have to download it?

Just bough a 4K tv Sony 950g and I have an nvidia 1060. Thx for your help!


Sent from my iPhone using Tapatalk

#327 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 03 January 2020 - 11:58 PM

If you're running Windows 10, you don't need to use any tone mapping config, anymore. Try the test build here

 

https://emby.media/c...eater-mpv-test/

 

Just enable HDR for Windows, and play a movie. mpv has has recent development for this. But only on Windows 10.


  • jscoys likes this

#328 jscoys OFFLINE  

jscoys

    Advanced Member

  • Members
  • 1226 posts
  • Local time: 03:44 AM

Posted 04 January 2020 - 12:57 AM

If you're running Windows 10, you don't need to use any tone mapping config, anymore. Try the test build here

https://emby.media/c...eater-mpv-test/

Just enable HDR for Windows, and play a movie. mpv has has recent development for this. But only on Windows 10.


Ok will give it a try. Btw do you know when the stable version will include MPV with HDR support?


Sent from my iPhone using Tapatalk

#329 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 01:09 AM

Ok will give it a try. Btw do you know when the stable version will include MPV with HDR support?


Sent from my iPhone using Tapatalk

 

I'm thinking in the next few months. The Theater UI is currently being completely rebuilt with new technology. So my feeling is that Luke will wait until that is finished, before a new major release. There are other issues that also need to be resolved. The test build works well, just don't keep stats for nerds up. That will crash the app.


  • jscoys likes this

#330 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 01:10 AM

If you don't use live tv, you can replace mpv with the latest build.



#331 lorac OFFLINE  

lorac

    Advanced Member

  • Members
  • 457 posts
  • Local time: 12:44 AM
  • LocationVancouver, Canada

Posted 04 January 2020 - 01:33 AM

Do you still use a custom MPV conf?

Sent from my ONEPLUS A6003 using Tapatalk

#332 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 01:55 AM

Do you still use a custom MPV conf?

Sent from my ONEPLUS A6003 using Tapatalk

 

Yes, but not for HDR tone mapping.

 

Here's what it looks like for the test build (I've removed the unique stuff that I use, except for the shader)

hwdec=auto
opengl-pbo
glsl-shader="D:\embytheater (1)\x64\mpv\portable_config\shaders\FSRCNNX_x2_16-0-4-1.glsl"
scale=ewa_lanczossharp
cscale=ewa_lanczos
dither-depth=auto
deband
deband-iterations=1
deband-grain=0
deinterlace=no
saturation=0
brightness=6
contrast=4
deinterlace=no

hwdec-codecs=all

sub-pos=90
sub-ass-override=no

audio-stream-silence=yes
audio-exclusive=yes

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

[720p]
profile-desc=cond:p["video-params/w"]==1280
deinterlace=no

[HDR]
profile-desc=cond:p["video-params/primaries"]=="bt.2020"
dither=no
dither-depth=no
contrast=0
saturation=0
brightness=0



#333 lorac OFFLINE  

lorac

    Advanced Member

  • Members
  • 457 posts
  • Local time: 12:44 AM
  • LocationVancouver, Canada

Posted 04 January 2020 - 01:04 PM

What does the shader accomplish



#334 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 01:08 PM

What does the shader accomplish


A higher degree of upscaling. You need a strong GPU to use what I've put in for scaling. Honestly, I can't tell the difference using the shader and lanczossharp. I stuffed it in there, just because...

Edited by Doofus, 04 January 2020 - 01:09 PM.


#335 lorac OFFLINE  

lorac

    Advanced Member

  • Members
  • 457 posts
  • Local time: 12:44 AM
  • LocationVancouver, Canada

Posted 04 January 2020 - 02:21 PM

Lol. I understand.

Sent from my ONEPLUS A6003 using Tapatalk

#336 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 05:49 PM

Here's an strm file for that DV video, if anyone want's to add it to a library and see what it's like.

 

 


  • PrincessClevage likes this

#337 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 04 January 2020 - 10:25 PM

Well, it turns out that DV has a bit of secret sauce, going on. Some videos play, incorrectly. I made an issue report to the mpv guys, and haasn is telling me it's a closed spec, and they haven't figured it out, yet. 



#338 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 05 January 2020 - 02:51 PM

Luke, per my request for an HDR option for external players, it would also be good to add one Dolby Vision. mpv doesn't handle them well, but Windows Movie & TV, plays them correctly. So it would be good to have an option for that. 'Dolby Vision' should be in the metadata, so hopefully ffprobe can pull that out?


Edited by Doofus, 05 January 2020 - 04:25 PM.


#339 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146246 posts
  • Local time: 03:44 AM

Posted 05 January 2020 - 02:52 PM

Hopefully it can.



#340 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13395 posts
  • Local time: 12:44 AM

Posted 05 January 2020 - 03:27 PM

lol, wm4 having a tirade, again.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users