Tegra multimedia api video encoder

Hi everybody,
I create input.yuv by

gst-launch-1.0 videotestsrc num-buffers=30 ! 'video/x-raw,width=3480,height=2160,format=I420' ! filesink location=input.yuv

then I try to run video encoder on tegra_multimedia_api/samples/01_video_encode/ and get this result on console screen

./video_encode input.yuv 3480 2160 H265 test.h265
Failed to query video capabilities: Bad address
NvMMLiteOpen : Block : BlockType = 8
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
892744264
842091865
===== NVENC blits (mode: 1) into block linear surfaces =====
Could not read complete frame from input file EOS
File read complete.
App run was successful

It looks like video encode can not read video source until EOS is reached; out file is very small (less than 1M) while input file is very big (more than 300MB)
Is this somewhere that I make mistake? any suggestion to solve this problem?
Thank in advance.

Hi Quang,
You have successfully run it. You can do playback via 00_video_decode
export DISPLAY=:0 ./video_decode /home/ubuntu/test.h265 H265

Hi DaneLLL,
I run video decode and it shows very short on display monitor, about 1-2 seconds.
Is this right for this demo? And do you have other scenario to test video encoder?
Thank.

Yes, it is right. You can set ‘num-buffers=300’ to get ~10 second YUV input.

Dear DaneLLL,
Many thank for your information.
Best regards.