PyAV
PyAV copied to clipboard
.reformat does not properly change the color space and color range.
When specifying colorspace and color_range using the “format” filter, the frame's .colorspace and .color_range change correctly. However, regardless of how you specify the colorspace/color_range options for .reformat, the resulting frame's .colorspace and .color_range do not change. But there is a change in the resulting values when actually converted to an ndarray.
I am converting a yuv420p10le frame to numpy using frame.to_ndarray(format="rgb48") and av>=16.0.0 messes up the colors. av<16.0.0 works fine!