-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Description
Hey @davidplowman ,
just stumpled over this workaround in the pyav output:
picamera2/picamera2/outputs/pyavoutput.py
Line 37 in fb031cb
stream.codec_context.color_range = 2 # JPEG (full range) |
while the encoder is switching to the extended range for further processing:
self._stream.pix_fmt = "yuv420p" |
The PyAv distinguishes between YUV420 (not full range) and YUVJ420 (full range).
Don't understand the details, but maybe the encoder can set directly to YUVJ420 and the workaround is not needed at all?
self._stream.pix_fmt = "yuvj420p"
Metadata
Metadata
Assignees
Labels
No labels