Jetson Multimedia API NvVideoEncoder Output Plane Pixel Format Question

Hello everyone!

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!

Hi,
Please share which Jetson platform you use. And for video encoding, we have the samples:

/usr/src/jetson_multimedia_api/samples/01_video_encode
/usr/src/jetson_multimedia_api/samples/unittest_samples/encoder_unit_sample

Please try the default samples. The default samples are tested/verified in each release. Please check these as reference.