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
Incorrect colorspace (video looks green/purple-ish) #4340
Comments
|
usually a mp4 file is already compressed so there is no need to zip it again |
|
seems like a wrongly tagged file/stream? setting |
|
Akemi: Setting This video file could be a wrongly tagged mp4, but no idea why VLC and QuickTime handle it well. kodabb: I compressed it in a zip file because GitHub doesn't allow me to upload an mp4 file. |
|
they might handle it correctly in this case because they don't read the tag and just fall back to a default or assume something based on some heuristic. |
|
I don't think the video is necessarily wrongly tagged; if Indeed, |
|
Is it possible that the matrix in to Seems to have done the trick, without breaking
Edit: Never mind, actually wikipedia matches the order in the original code. |
|
The code in question goes back to commit 2cb147a and the order has not been touched since then. Do we have any other test samples for YCgCo files? Another possibility would be that this file requires an RGB swizzle to be set for vo_opengl. |
|
you could probably use ffmpeg to create test file of sorts, maybe with a parameter something like The previously posted demo.mp4 above would display ok with either bt.709 or bt.601 |
|
Some more investigation:
My overall conclusion is that YCgCo support seems to be fine in mpv, and that this file is either YCgCo with a messed up channel order, or (more likely) YCbCr mistagged as YCgCo, as others have suggested. Due to lack of an authoritative source on what the file is supposed to look like, it's probably impossible to know for certain. |
|
I'm having the same issue with ie. |
|
|
|
The sample file in the first post is tagged as ycgco, which if it's unintended, but makes it a broken file. It was explained that other players (and even mpv VOs) display it "correctly" because they incorrectly ignore the colorspace tag, i.e. 2 bugs cancel out each other. A manual workaround was provided for vo_gpu. Nothing to do here. For all other problems, report a new issue with sample files and full logs, if it persists with mpv 0.30.0. |
|
What chrome and ffplay do is really off-topic. |
System and software version:
Actual behavior:
I'm playing this video (attached) with IINA, and its color doesn't look correct. Then I tried to play this video with plain mpv, same issue. I think it might be a bug with mpv's colorspace detection.
The video renders in an incorrect color with mpv. Here's a screenshot showing the phenomenon. At this scene the sky should be blue but it looks green in mpv, and the ground should look yellow but it shows purple-ish.
Expected behavior:
Here's what is should look. (This screenshot was taken with QuickTime)
The color is correct with VLC and QuickTime, but is incorrect with IINA and mpv.
Steps to reproduce:
Just play the demo video I provided with mpv.
Attachment
Decompress this zip file to get the mp4 video for demonstration.
demo.mp4.zip
Related issue
iina/iina#585
The text was updated successfully, but these errors were encountered: