Hi,
I first use opencv to convert a bgr image to yuv_yv12 image, and then use this yv12 image as input to the encoder(also set input format as NV_ENC_BUFFER_FORMAT_YV12), after decoding the video stream, I use opencv to convert nv12(the only output format for yuv420) to bgr image. But the image is wrong.
But if I set the input buffer as NV_ENC_BUFFER_FORMAT_NV12, and finally convert yv12 to bgr, then image is correct.
Anyone know if there is bug with this?
Thanks!