I tried sample code “video_encode”.
The command is as below.
./video_encode ./test.yuv 1920 1080 H264 output.h264
but the following error occurred.
Creating Encoder in blocking mode
Opening in BLOCKING MODE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
H264: Profile = 66, Level = 51
NVMEDIA_ENC: bBlitMode is set to TRUE
Could not read complete frame from input file
nvbuf_utils: dmabuf_fd 0 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD… Exiting…
[ERROR] (NvV4l2ElementPlane.cpp:256) Output Plane:Error while Qing buffer: Invalid argument
Error while queueing buffer at output plane
Encoder is in error
[ERROR] (NvV4l2ElementPlane.cpp:178) Capture Plane:Error while DQing buffer: Broken pipe
[ERROR] (NvV4l2ElementPlane.cpp:178) Capture Plane:Error while DQing buffer: Broken pipe
How can i do?