Error while Qing buffer in video_encode

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?

Hi,
Do you install the samples through SDKManager? The samples are put in

/usr/src/jetson_multimedia_api

It looks like you do not run the samples matching your release version.

Thanks for reply!!
I got the jetson agx from someone else, so I can’t figure out the initial settings, but I ran it with the samples in the “/usr/src/jetson_multimedia_api” path.
Would it be helpful to try again after setting it up from scratch through SDKmanager?

Hi,
You may re-flash the system through SDKManager and try again. The default samples should be run without any issue. The error is not expected if you don’t do any modification.