Running on a Jetson AGX Xavier dev kit with JetPack 5.0.2 installed and the rev.1 updates applied, I’ve installed nvidia-l4t-jetson-multimedia-api (version 35.1.0-20220825113828) and tried building and running the samples/unittest_samples/encoder_unit_sample program.
I prepared a YUV sample video using the 02_video_dec_cuda sample program on the H264 sample video included in the package. When running the encode_sample program to re-encode it back to H.264, I get:
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA: Need to set EMC bandwidth : 846000
NvMapMemCacheMaint Bad parameter
Opening in BLOCKING MODE
nvbusurface: NvBufSurfaceSyncForCpu: Error(4) in sync
Error while queueing buffer on output plane
Got 0 size buffer in capture
Encoder is in error << endl
Running the 01_video_encode sample program on the same YUV-format sample video runs successfully:
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Creating Encoder in blocking mode
Opening in BLOCKING MODE
875967048
842091865
H264: Profile = 66, Level = 51
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA_ENC: bBlitMode is set to TRUE
Could not read complete frame from input file
File read complete.
Got 0 size buffer in capture
App run was successful
so I suspect there’s a bug in the unit test encode_sample program, but I’m not sure where.