intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
1.01k stars 346 forks source link

[Bug]: VP format conversion to VUYA results in pink artifacts. #1867

Open z0Kng opened 3 weeks ago

z0Kng commented 3 weeks ago

Which component impacted?

Video Processing

Is it regression? Good in old configuration?

None

What happened?

Converting for e.g. BGRx to VUYA using the gstreamer va plugins vapostproc, results in pink artifacts while converting to NV12 is fine. It only appears if the image height is not a multiple of 16. Example gstreamer pipeline:

gst-launch-1.0 videotestsrc pattern=ball flip=true ! video/x-raw,format=BGRx,width=1920,height=1080 ! vapostproc ! "video/x-raw(memory:VAMemory),format=VUYA" ! vah265lpenc ! h265parse ! matroskamux ! filesink location=test.mkv

Screenshot_20241029_102800

The same pipeline with height=1072 works fine.

What's the usage scenario when you are seeing the problem?

Others

What impacted?

We are currently developing an opensource vdi solution using Flex vGPUs for graphics acceleration and video stream encoding. For non chroma subsampling encoding, we need to convert BGRx into VUYA.

Debug Information

  1. vainfo: VA-API version: 1.22 (libva 2.22.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.4.2 (18b64f08b)
  2. exists
  3. Intel Corporation ATS-M [Data Center GPU Flex 170] [8086:56c0] (rev 08)
  4. vainfo.log
  5. libva_trace.log

Do you want to contribute a patch to fix the issue?

None

z0Kng commented 3 days ago

I could also verify the issue on a Flex 140 with:

vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.4.3 (bd984fbb1)

and Intel® Core™ Ultra 7 155H with:

vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.3.4 ()