Skip to content

undesirable color convertsion to YCbCr with X2RGB10 (A2RGB10) #222

Closed
@MartinPulec

Description

@MartinPulec

Hi, I'm encountering a problem with patched FFmpeg and oneVPL when using pixel format X2RGB10/A2RGB10. Something is performing unwanted RGB->YUV conversion but pretending that the output stream is in RGB. I'd like to have a 10-bit RGB HEVC, anyways. Steps to reproduce:

ffmpeg -f lavfi -i smptebars -pix_fmt x2rgb10le -t 1 -c:v hevc_qsv rgb10.mp4
ffplay rgb10.mp4    # <- colors are shifted here; it has been converted to YUV but displayed as RGB
# mediainfo '--Output=Video;%ColorSpace%' rgb10.mp4  # confirms RGB

I am using this repo submodule FFmpeg with patches applied. iGPU is the one integrated on Intel i7-1260P. Upstream graphics libraries are installed as described here.

I've tried also "bgra" pixfmt but it says it is unsupported. vuyx and xv30le were OK (but encoding YCbCr obviously).

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