I use gstreamer and vaapih264dec decoding h264 frames to raw frames. However, when I use opencv cvtColor to convert image from NV12 back to RGB, I got wrong image which has some green lines on the top. I tried mfxh264dec and avdec_h264 too and they worked fine, ,so I supposed it's vaapih264's problem.
I use gstreamer and vaapih264dec decoding h264 frames to raw frames. However, when I use opencv cvtColor to convert image from NV12 back to RGB, I got wrong image which has some green lines on the top. I tried mfxh264dec and avdec_h264 too and they worked fine, ,so I supposed it's vaapih264's problem.
Here is my test code: https://hackmd.io/@b04505009/HyRj9qFID
vainfo:
I've tried on ubuntu 18.04 and 20.04 and got the same result.