I was using the Jetson Multimedia API NvVideoEncoder to make a video stream application. I set the output plane pixel format to be
V4L2_PIX_FMT_YUV420M and used the
V4L2_MPEG_VIDEO_H265_PROFILE_MAIN profile. The codec is working but it seems that the encoder wasn’t reading the input picture correctly. In order to test this, I manually generated a YUV picture with Y=128 constant, and U and V increases with the picture’s width and height. And I got this result showing in the picture below. It seems that the codec wants a YUV444M picture instead of YUV420M picture, but I’m pretty sure that I set the output plane pixel format to be
V4L2_PIX_FMT_YUV420M. Have you seen this before? What did I do wrong? Thanks!