vapostproc: YUV -> RGB conversion results in interlaced image
Not sure if it is an actual Mesa
issue, but I'm not sure how to confirm.
Using vapostproc
(vaapipostproc
too) as color convert from YUV to RGB formats seem to result in interlaced images.
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 22.3.5 for AMD Radeon RX 6600 (navi23, LLVM 15.0.7, DRM 3.49, 6.1.0-5-amd64)
Tested with (GStreamer 1.22.0):
gst-launch-1.0 videotestsrc pattern=spokes ! video/x-raw,format=NV12,width=960,height=540 ! vapostproc ! gtkwaylandsink
But also happens with:
gst-launch-1.0 videotestsrc pattern=spokes ! video/x-raw,format=NV12,width=960,height=540 ! vapostproc ! video/x-raw,format=RGBA ! videoconvert ! autovideosink
Switching vapostproc
with videoconvert
results in a much nicer image:
I found mesa/mesa#5760 (closed) in Mesa issues list, which sounds/looks alike, but it is surprisingly inactive.