The colors looks darker with less details in IINA compared to MPV #5109
Replies: 11 comments 50 replies
-
Colors is a complex topic. However it should be possible to get IINA to match mpv because for audio/video playback and subtitle rendering support IINA is using a library from the mpv project. Some questions… IINA uses different defaults than mpv. Follow these instructions to eliminate two differences:
By default IINA sets the icc-profile option. Obviously that can alter colors. By default IINA enables hardware decoding whereas mpv uses software decoding. That shouldn't make a difference, but it is good to rule it out. Currently a big difference between IINA and mpv is that the current release of mpv is 0.38.0 whereas IINA 1.3.5 is using mpv 0.35.0 + changes. So IINA is a couple of releases behind. Currently IINA is under heavy development. The development version of IINA is using mpv 0.38.0 and FFmpeg 7.0.1. If you want to see if that makes a difference and you know what a nightly build is, IINA's can be found here. You would want one from the |
Beta Was this translation helpful? Give feedback.
-
mpv does not use I believe mpv is now capable of enabling EDR when playing HDR. I've not had time to try it out yet, so I too am unsure of the configuration required. On this:
There are other problem reports concerning colors, so unlikely this is specific to your environment or this particular video. Time to compare log files and see if I can spot what might be causing this difference. To create a log file with mpv add the --log-file=<path> option. Then drag-n-drop the log file to the For the IINA log files use the nightly build so the log file will also be created by mpv 0.38.0. To enable logging follow these instructions:
Once IINA has restarted, start playing the video. Then:
The The log files can also be accessed using Terminal as shown here: low-batt@gag com.colliderli.iina$ pwd
/Users/low-batt/Library/Logs/com.colliderli.iina
low-batt@gag com.colliderli.iina$ ls
2022-10-04-17-57-15_jVrbWy
low-batt@gag com.colliderli.iina$ cd 2022-10-04-17-57-15_jVrbWy
low-batt@gag 2022-10-04-17-57-15_jVrbWy$ ls
iina.log mpv.log
low-batt@gag 2022-10-04-17-57-15_jVrbWy$ With logging enabled IINA creates a new log directory each time it is started. If accessing the logs using DO NOT FORGET to disable logging once you have obtained log files for the problem being investigated. IINA does not restrict the size of log files or delete old logs. If you leave logging enabled the logs will continue to accumulate. |
Beta Was this translation helpful? Give feedback.
-
To track this down we both need to be discussing the same video file. Download the file Life Untouched HDR10 from 4K Media. See if that seems to exhibit the same problem you are experiencing. mediainfo:
In this screenshot the left app is mpv invoked like so: mpv --pause --start=2 --vo=libmpv ~/Downloads/info/org/4kmedia/Life\ Untouched\ 4K\ Demo.mp4 The center app is mpv again, without I'm seeing differences between each of these. Continuing to investigate… |
Beta Was this translation helpful? Give feedback.
-
@krackers Another mpv question… As a part of this investigation I have been implementing the functionality that is in the mpv layer code that is missing from IINA. Part of that involves implementing something like mpv's Trouble is that method is calling the That method requires access to These methods are not exposed in the client API. And the method How can a client make use of |
Beta Was this translation helpful? Give feedback.
-
I'm not a color expert by any means, but to me the colors of HDR content in IINA 1.3.5 (which uses mpv 0.35) look fairly close to QuickTime (assuming that should be the reference). They appeared a bit brighter than they should have been, but better than mpv 0.38 which I compiled via HomeBrew, which was distinctly darker. And far better than a build from IINA's develop branch, which is so overexposed that many details are lost. I went on a mission to try different versions to see how they fared. I downloaded binaries of mpv from this link from the official website:
I was able to create a branch of develop which downgraded all the dependencies to the previous versions used by IINA, especially mpv 0.35. I kept copies of the libraries themselves so was able to build and run it using the minimal set of code changes needed to make it compile & run. The result I found was that the HDR colors appeared the same as in IINA 1.3.5. This would seem to rule out any active changes to the IINA codebase as the cause, at least. I am curious if anyone is aware of another Mac video player which leverages libmpv, or if IINA is the primary Mac trial subject? |
Beta Was this translation helpful? Give feedback.
-
Is the purpose really the mpv color and not the "correct" color? I noticed that there may be some issues with the 38.0 mpv color, which is also different from the firefox color. Of course I have no way of knowing what the right color is. |
Beta Was this translation helpful? Give feedback.
-
If you want to try IINA with the proposed fix, a unsigned continuous integration build for the pull request can be found here. With this fix IINA should match |
Beta Was this translation helpful? Give feedback.
-
On the other test case, I stopped looking into it as it uses Dolby Vision which is known to be iffy in mpv. They are working on it for
@svobs Indicates the first image is more like what it looks like in real life. Seems like there has been a regression in Dolby Vision support with their older video driver. If you play it with |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
There are many digital video formats. Problems with color can be specific to a particular format. To investigate color problems we need a video sample that reproduces the problem. IINA is built on top of code from many projects. IINA plays a role in video, but the majority of how a video frame looks is controlled by This discussion identified multiple problems in IINA and mpv. Those problems have been corrected and the fixes will be in the next version of IINA. A beta for that release is currently in final testing. See issue #5124 for more details. So at least some fixes to color are on the way. However as discussed in #5124, some of the very desirable mpv color related fixes are not available to IINA until mpv adds support for the next generation renderer for apps using |
Beta Was this translation helpful? Give feedback.
-
Chiming in to say that I am running into the same issue as OP. Specifically, IINA is very closely color matched to mpv (QuickTime and Safari as well) but is clearly darker. I've been on a long journey to find the most accurate video player for MacOS (since most of them do not respect MacOS color management like mpv does) and while IINA is the closest, the darkness issue still persists. I am using version 1.3.5 Build 141 and I am only watching SDR content, not HDR. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using MPV, and I always thought it was perfect, but when I tried IINA, the colors didn't seem to match the colors from MPV, IINA is in top left. I can't find anyway in settings to change the quality of the picture to make the colors as vibrant and to make details pop up like MPV.
I tried another player and the colors look similar to MPV.
Beta Was this translation helpful? Give feedback.
All reactions