{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/5521","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/5521/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/5521/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/5521/events","html_url":"https://github.com/mpv-player/mpv/issues/5521","id":296614107,"node_id":"MDU6SXNzdWUyOTY2MTQxMDc=","number":5521,"title":"How to play HDR videos on a HDR screen?","user":{"login":"bodayw","id":8195684,"node_id":"MDQ6VXNlcjgxOTU2ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8195684?v=4","gravatar_id":"","url":"https://api.github.com/users/bodayw","html_url":"https://github.com/bodayw","followers_url":"https://api.github.com/users/bodayw/followers","following_url":"https://api.github.com/users/bodayw/following{/other_user}","gists_url":"https://api.github.com/users/bodayw/gists{/gist_id}","starred_url":"https://api.github.com/users/bodayw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodayw/subscriptions","organizations_url":"https://api.github.com/users/bodayw/orgs","repos_url":"https://api.github.com/users/bodayw/repos","events_url":"https://api.github.com/users/bodayw/events{/privacy}","received_events_url":"https://api.github.com/users/bodayw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":46,"created_at":"2018-02-13T04:57:39Z","updated_at":"2018-07-25T21:54:05Z","closed_at":"2018-02-20T20:02:58Z","author_association":"NONE","body":"This might be a silly question, but the answer is not obvious to me.\r\n\r\nSo currently mpv is able to handle HDR videos quite well: it does HDR tone mapping by default, assuming when one is using a SDR screen. But I am wondering what is the \"correct\" way to play HDR videos on a HDR screen with mpv.\r\n\r\nBelow is what I have tried so far.\r\n\r\nThe HDR screen I have at hand is a Sony X900E. Given that the tone response curve in HDR mode is completely different from those in SDR (somewhat close to a power function), I think it would need a different icc profile measured when the screen is in HDR mode. I used i1 Display Pro with DisplayCal, with white level drift compensation enabled (not sure it's actually necessary here, though), and switched target \"tone curve\" under \"calibration\" tab to \"as measured\", and proceeded with \"profile only\".\r\n\r\nThen in mpv, again with ``--icc-profile-auto`` to let mpv load the new profile, and since I already have a icc profile, I don't need to specify ``--target-trc=pq``. Then if I understand correctly, ~~I should use ``--tone-mapping=linear`` and leave ``--tone-mapping-param`` as 1.0 the default, to \"disable\" tone mapping, or say, to let mpv actually map the original luma of the video to the display using the measured tone response curve in the icc profile?~~\r\n\r\nI am not sure I'm doing it right, but with the above settings, I could see somewhat similar result compared with mpv playing the same file in SDR mode with default tone mapping (``--tone-mapping=mobius`` in v0.28), and also similar to madVR passthrough HDR metadata to the screen.\r\n\r\nI also have two other questions which are kind of related:\r\n\r\n1. AFAIK mpv still doesn't support sending HDR metadata to the screen, and if it does, what would be the difference than configuring it to output normal range but \"upconverted\" to match HDR tone response curve, (hopefully) like the way I did above?\r\n\r\n2. In the mpv manual, it explains ``--tone-mapping`` as:\r\n\r\n> This is relevant for both HDR->SDR conversion as well as gamut reduction (e.g. playing back BT.2020 content on a standard gamut display).\r\n\r\nwhich confused me because I thought gamut reduction is handled by icc color management already, which by default with ``--icc-intent`` of relative colorimetric, will just clip the out of range colors.\r\n\r\nAlso, is it correct that ``--tone-mapping`` won't do anything for a non-HDR video?\r\n\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/407908873","html_url":"https://github.com/mpv-player/mpv/issues/5521#issuecomment-407908873","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/5521","id":407908873,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzkwODg3Mw==","user":{"login":"Bananamax","id":36853575,"node_id":"MDQ6VXNlcjM2ODUzNTc1","avatar_url":"https://avatars0.githubusercontent.com/u/36853575?v=4","gravatar_id":"","url":"https://api.github.com/users/Bananamax","html_url":"https://github.com/Bananamax","followers_url":"https://api.github.com/users/Bananamax/followers","following_url":"https://api.github.com/users/Bananamax/following{/other_user}","gists_url":"https://api.github.com/users/Bananamax/gists{/gist_id}","starred_url":"https://api.github.com/users/Bananamax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bananamax/subscriptions","organizations_url":"https://api.github.com/users/Bananamax/orgs","repos_url":"https://api.github.com/users/Bananamax/repos","events_url":"https://api.github.com/users/Bananamax/events{/privacy}","received_events_url":"https://api.github.com/users/Bananamax/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T21:54:05Z","updated_at":"2018-07-25T21:54:05Z","author_association":"NONE","body":"Still nothing yet"}}
{"actor":{"display_login":"Bananamax"}}