Skip to content

PyAv output stream YUVJ420 full range jpg #1247

Open
@mgineer85

Description

@mgineer85

Hey @davidplowman ,

just stumpled over this workaround in the pyav output:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions