======================================
EDIT: I managed to create a YUV which 01_video_encode can work with, so the following post can be ignored.
I followed this thread in the forum and managed to create a YUV which 01_video_encode can work with.
I guess that “Could not read complete frame from input file” is printed even when the frame is encoded successfully…
======================================
I am having trouble running the 01_video_encode app.
Nvidia’s docs give the following example:
$ ./video_encode ../../data/Video/sample_outdoor_car_1080p_10fps.yuv 1920 1080 H264 sample_outdoor_car_1080p_10fps.h264
However, the file sample_outdoor_car_1080p_10fps.yuv does not exist in the suggested path (…/…/data), nor anywhere else on the Jetson (that’s true for both my Jetson NX & Jetson AGX).
When I try running the app on one of my own 1920x1080 YUV files, e.g:
./video_encode ~/evil-frank.yuv 1920 1080 H264 ~/evil-frank.h264
I get the following result:
Creating Encoder in blocking mode
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
H264: Profile = 66, Level = 51
Could not read complete frame from input file
File read complete.
[ERROR] (NvV4l2ElementPlane.cpp:178) <enc0> Capture Plane:Error while DQing buffer: Broken pipe
Segmentation fault (core dumped)
You can see attached the results of running the same command with --stats --dbg-level 3:
01_video_encode.log (5.5 KB)
Here is the (zipped) core file which was created:
core.zip (1.4 MB)
Is there somewhere I can download the sample_outdoor_car_1080p_10fps.yuv file from?
Or can I use one of the other sample applications to create the YUV file from the sample_outdoor_car_1080p_10fps.h264 file which I do have?
It will be a great help if you can help me get the 01_video_encode app to run, then I can use it as a comparison to my own application, as well as provide you with runnable code for assessment.
Thanks,
Tuval