[Bug]Color space and component range info ignored by decoders

Search This thread

vice2

New member
Jul 19, 2019
3
0
Hello!

In videos (with any decoder selected - SW/HW/HW+) a wrong colorspace (bt.601 instead of bt.709) and component range (Limited instead of Full) are used at the same time when decoding (checked in VirtualDub2 by changing Decode Format settings respectively). It looks like information about them from video file is ignored. Video - mkv h264 high L5.1, yuv420p.
Color Format in options doesn't affect anything.
On a PC in MPC (all settings default, Enhanced Video Renderer (custom presenter)) the colors are correct.

Video was rendered with next x264 settings:
Code:
--range pc --colormatrix bt709

In mediainfo:
Code:
Color range                    : Full
Matrix coefficients            : BT.709

Question: is there a way to force custom colorspace and component range for decoders?
 

Thirumalai.K

Inactive Recognized Contributor
Sep 14, 2011
2,271
4,115
Hello!

In videos (with any decoder selected - SW/HW/HW+) a wrong colorspace (bt.601 instead of bt.709) and component range (Limited instead of Full) are used at the same time when decoding (checked in VirtualDub2 by changing Decode Format settings respectively). It looks like information about them from video file is ignored. Video - mkv h264 high L5.1, yuv420p.
Color Format in options doesn't affect anything.
On a PC in MPC (all settings default, Enhanced Video Renderer (custom presenter)) the colors are correct.

Video was rendered with next x264 settings:


In mediainfo:


Question: is there a way to force custom colorspace and component range for decoders?

HW decoder just makes use of android mediaplayer API. And, HW+ uses the same decoder component from the device, but in mx player's media framework. In both cases, color conversion is handled by the system.

SW decoder mainly relies on ffmpeg.

So, if you facing issues with all 3 decoders, it's less likely to be an issue with the app. Would you mind sharing a sample with us at support@mxplayer.in? It will hep us to investigate further.

Thank you.
 

vice2

New member
Jul 19, 2019
3
0
HW decoder just makes use of android mediaplayer API. And, HW+ uses the same decoder component from the device, but in mx player's media framework. In both cases, color conversion is handled by the system.

SW decoder mainly relies on ffmpeg.

So, if you facing issues with all 3 decoders, it's less likely to be an issue with the app. Would you mind sharing a sample with us at support@mxplayer.in? It will hep us to investigate further.

Thank you.

After some research, sadly, VLC and VLC-based players like MX player don't support full range rec.709 videos. I'll have to look for other software because all of my videos are rendered in full range. Expert's commenrary:
MPC is displaying the image correctly. VLC is displaying the video as limited range rec.601, darks are crushed, brights are blown out, and colors are off). But as mentioned, full range video is very uncommon. The industry standard for HD video is limited range rec.709.