FORUMS
Remove All Ads from XDA

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

2 posts
Thanks Meter: 0
 
By vice2, Junior Member on 19th July 2019, 07:00 PM
Post Reply Email Thread
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?
 
 
24th July 2019, 05:31 PM |#2  
Recognized Contributor
Thanks Meter: 4,111
 
More
Quote:
Originally Posted by vice2

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 [email protected]? It will hep us to investigate further.

Thank you.
10th August 2019, 12:05 PM |#3  
OP Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Thirumalai.K

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 [email protected]? 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:
Quote:

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.

Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes