Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
z0Kng opened this issue Oct 29, 2024 · 6 comments
Open

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

z0Kng opened this issue Oct 29, 2024 · 6 comments
Assignees

Comments

@z0Kng
Copy link

z0Kng commented Oct 29, 2024

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 (18b64f0)
  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

@Jexu Jexu assigned MicroYY and unassigned Jexu and XinfengZhang Oct 31, 2024
@z0Kng
Copy link
Author

z0Kng commented Nov 20, 2024

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 ()

@MicroYY MicroYY added the VP Video Processing label Nov 28, 2024
@intel-mediadev
Copy link
Contributor

Auto Created VSMGWL-77288 for further analysis.

@jiafengy1
Copy link
Contributor

image
unable to reproduce, could you share the resource that needed to reproduce this issue?

@z0Kng
Copy link
Author

z0Kng commented Dec 12, 2024

As far as I'm aware, it depends on the hardware whether the gstreamer va plugin has vah265enc or vah265lpenc. From what I noticed, older intel gpus tend to have vah265enc and newer vah265lpenc. I think it's either from ICL or MTL onwards.
However, this issue only happens on newer generations, since I was unable to reproduce it on an 8th Gen Intel CPU.

@jiafengy1
Copy link
Contributor

Seems that both VP input and output are fine.

@Dylan-debug Dylan-debug removed the VP Video Processing label Dec 18, 2024
@z0Kng
Copy link
Author

z0Kng commented Dec 18, 2024

But was it generally possible to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants