Skip to content

Feature Request: Add support for 12-bit 4:4:4 HEVC and AV1 encoding #585

@zelenooki87

Description

@zelenooki87

Is your feature request related to a problem? Please describe.
I am currently working with diffusion models to upscale videos. The output from these models is of very high quality, often in a lossless format to preserve all the generated details. When compressing this footage to common distribution formats like 8-bit or 10-bit 4:2:0, a significant amount of color information and fine detail is lost. This effectively negates some of the benefits of the high-quality upscale.

Describe the solution you'd like
I would like to request the implementation of support for encoding into the following formats:

H.265 (HEVC) 12-bit 4:4:4

AV1 12-bit 4:4:4

Why this is important
This feature would be incredibly valuable for workflows involving AI-generated or upscaled content. These specific profiles offer the perfect balance:

**Quality Preservation**: They retain the full chroma information (4:4:4) and high bit depth (12-bit), which is crucial for preserving the subtle details and color fidelity produced by diffusion models.

**Efficient Compression**: They still provide a significant file size reduction compared to lossless intermediate codecs like ProRes or FFV1, making file storage and handling much more manageable.

Thank you in advance for your time and consideration.

Activity

AustinMroz

AustinMroz commented on Nov 6, 2025

@AustinMroz
Collaborator

Adding the format to h265 is simple, but libsvtav1 only support yuv420p and yuv420p10le for pix_fmts. The best I can do there is create a new format type that uses the slower libaom-av1

zelenooki87

zelenooki87 commented on Nov 6, 2025

@zelenooki87
Author

@AustinMroz I've just looked it up and it says that the AV1 codec you mentioned is considerably slower. In that case, please go with improving H.265 if it's not a problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AustinMroz@zelenooki87

        Issue actions