Skip to content

PC scale color range doesn't seem to work as expected #40

Description

@rlaphoenix

The Problem

d2v_source YUVRGB_Scale=1 (PC) with ffmpeg -color_range pc (PC) returns a limited/TV color range output, not the expected full/PC color range.

You may be thinking, "Oh, maybe the source is just limited/TV range then?", if that's the case, then choosing the value for YUVRGB_Scale and -color_range in FFMPEG doesn't seem to matter and it just ignores the manually specified value, otherwise it should have given me an FFMPEG output where the blacks and whites are washed out, it shouldn't look "normal" if the source isn't PC color range.

image
Left: YUVRGB_Scale=1 ffmpeg -color_range pc | Right: YUVRGB_Scale=1 ffmpeg -color_range default (default is TV?)

Left has saturated blacks and saturated whites. Right has correct colors outputting at presumably PC range, yet ffmpeg used default color_range switch which is presumably tv and the D2V used YUVRGB_Scale=1 (PC). What?

Edit: It's been discovered that it essentially needs the -color_range of the opposite that YUVRGB_Scale is, because d2vsource sets _ColorRange to be the opposite of what YUVRGB_Scale is. See #41 for more information and why it may or may not have initially been intentional.

Here are the results of the combinations possible:

YUVRGB_Scale ffmpeg -color_range Correct color?
0 (TV) default (TV?) true
0 (TV) pc false
1 (PC) default (TV?) true
1 (PC) pc false

Here's a reminder that according to the d2v file and DGIndex manual, YUVRGB_Scale's options are 0 for TV and 1 for PC.

VapourSynth-Editor's Preview Window also only had the correct colors for YUVRGB_Scale=1.

None of the options where I matched YUVRGB_Scale and -color_range did the color output work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions