PyAV icon indicating copy to clipboard operation
PyAV copied to clipboard

.reformat does not properly change the color space and color range.

Open caffeinism opened this issue 3 months ago • 1 comments

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.

caffeinism avatar Oct 23 '25 05:10 caffeinism

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!

johan-sightic avatar Nov 07 '25 14:11 johan-sightic