Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDR playback (passthrough metadata to display) possible #11812

Closed
Klaus1189 opened this issue Jun 19, 2023 · 16 comments
Closed

HDR playback (passthrough metadata to display) possible #11812

Klaus1189 opened this issue Jun 19, 2023 · 16 comments

Comments

@Klaus1189
Copy link

Hey guys,
How do I setup mpv to play HDR video files? -> I want to passthrough HDR metadata to TV.

So I can then decide if I want tonemapping in mpv or let my diplay do the tonemapping.

Do I need to enable HDR in windows before playback?
I would like to have an automatic toggle when starting a HDR file like madVR does.

I have Nvidia GPU

In Kodi my TV displays an OSD info that HDR metadata is received, but I can not get mpv to do this. But I want mpv.

Please help me :)

@kasper93
Copy link
Contributor

Have you tried --target-colorspace-hint?

@Klaus1189
Copy link
Author

Yes. But do I know if mpv reads this command in my conf file?

@Klaus1189
Copy link
Author

Klaus1189 commented Jun 20, 2023

I am sure I am doing something wrong. Do I need to install mpv for this feature? I use portable mode for now.

@adisib
Copy link

adisib commented Jun 20, 2023

Do I need to enable HDR in windows before playback? I would like to have an automatic toggle when starting a HDR file like madVR does.

For me, it will only automatically enable HDR in windows if using --gpu-api=d3d11, otherwise HDR has to be turned on in Windows first.

@Klaus1189
Copy link
Author

colors are different with "--gpu-api=d3d11" but still no HDR OSD info of the TV.

Please help me :(

@Klaus1189
Copy link
Author

Any other advices?

@Klaus1189
Copy link
Author

Please help

@Doofussy2
Copy link

There's no signaling. Your TV won't tell you that it's HDR.

@kasper93
Copy link
Contributor

There's no signaling. Your TV won't tell you that it's HDR.

huh? There is signaling.

@Doofussy2
Copy link

There's no signaling. Your TV won't tell you that it's HDR.

huh? There is signaling.

My TV has never notified me that it is HDR, when using mpv.

@kasper93
Copy link
Contributor

kasper93 commented Jun 28, 2023

There are people we use it on daily basis, it works.

--target-colorspace-hint may work better with --vo=gpu-next --gpu-api=d3d11, can also try --gpu-api=vulkan, but d3d11 should work better. Go fullscreen and Windows should passthrough HDR metadata to your display.

@Obegg
Copy link

Obegg commented Jun 28, 2023

There are people we use it on daily basis, it works.

--target-colorspace-hint may work better with --vo=gpu-next --gpu-api=d3d11, can also try --gpu-api=vulkan, but d3d11 should work better. Go fullscreen and Windows should passthrough HDR metadata to your display.

#10158 (comment)

I am using mpv and Windows, with --target-colorspace-hint and --vo=gpu-next --gpu-api=d3d11 = I have to enable HDR on Windows settings.

If I use --gpu-api=vulkan it will auto-enable HDR on Windows settings.

@Klaus1189
Copy link
Author

The OSD message I want is also displayed of the TV when enabling the HDR switch in windows.
I want autoswitch to HDR without the need for me to enable HDR in windows.

@Obegg
Copy link

Obegg commented Jun 28, 2023

The OSD message I want is also displayed of the TV when enabling the HDR switch in windows. I want autoswitch to HDR without the need for me to enable HDR in windows.

Auto-Switch to HDR on Windows = --gpu-api=vulkan
Manually Switch to HDR on Windows = --gpu-api=d3d11
Look at the comment I linked above to see further explanation.

@kasper93
Copy link
Contributor

Check also this comment and thread with detailed testing #10628 (comment)

@dechamps
Copy link

You might also want to take a look at #10129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants