Closed slhck closed 2 years ago
Y4M seems to have issues storing 10-bit or higher content.
The values read out by PyAV seem to be 8-bit.
If we use np.frombuffer(frame.planes[0], np.uint8), it does not work with 10-bit content anyway, since the line size is too large.
np.frombuffer(frame.planes[0], np.uint8)
if we use frame.to_ndarray(format="gray"), we get an 8 bpp range again.
frame.to_ndarray(format="gray")
Y4M seems to have issues storing 10-bit or higher content.
The values read out by PyAV seem to be 8-bit.
If we use
np.frombuffer(frame.planes[0], np.uint8)
, it does not work with 10-bit content anyway, since the line size is too large.if we use
frame.to_ndarray(format="gray")
, we get an 8 bpp range again.