GNOME Bugzilla – Bug 796469
msdk: csc from YV12 to NV12 color incorrect.
Last modified: 2018-06-06 03:10:29 UTC
Test Env: ============================================ Platform: APL/KBL Arch: x86_64 Linux release 16.04 Kernel: 4.12.0-rc2 libva https://github.com/01org/libva.gitb commit 3be72a5a110880f70626d7c3bed953cdde124b2 media_driver https://github.com/intel/media-driver commit 1c2b0615d749c45c07f9aee6586774816989c5b3 MediaSDK: https://github.com/Intel-Media-SDK/MediaSDK commit 7c2b069dce7bed268806f680412a2f3b09a52ce9 gst-bad master branch 0bdcf51baf77926b4f29c01a2fdf133c13aad62e Reproduce Steps: ============================================ gst-launch-1.0 videotestsrc num-buffers=10 ! video/x-raw,format=YV12 ! msdkvpp ! video/x-raw,format=NV12 ! videoconvert ! video/x-raw,format=I420 ! checksumsink2 frame-checksum=false dump-output=true dump-location=a.I420 check a.I420 in yuv player, image full of green background. same issue with gst-mfx: gst-launch-1.0 videotestsrc num-buffers=10 ! video/x-raw,format=YV12 ! mfxvpp ! video/x-raw,format=NV12 ! videoconvert ! video/x-raw,format=I420 ! checksumsink2 frame-checksum=false dump-output=true dump-location=a.I420
Check known issues and limitations of the media driver, point 2 - https://github.com/intel/media-driver
(In reply to Ishmael Visayana Sameen from comment #1) > Check known issues and limitations of the media driver, point 2 - > https://github.com/intel/media-driver Thanks for your information. media-driver mentioned green color only appear on SKL. We tested it on KBL/APL/SKL, all have green color issue.
It actually works for me though. KBL 4.16 kernel on Ubuntu 16.04 with latest open-source MSDK and media driver. gst-launch-1.0 videotestsrc ! video/x-raw, format=I420 ! mfxvpp ! video/x-raw, format=NV12 ! glimagesink Maybe the patch as mentioned in the media driver limitations needs to be applied for kernel version 4.12?
Yup, I too can't reproduce the issue. Kernel 4.15, KBL. As Ishmael pointed out, Even on SKL it seems to be a known issue with msdk+ old kernel. I'm closing it as won't fix from our side. Please feel free to re-open if needed.
Update my kernel to 4.16.13, the issue is gone. Thanks.