How to set v4l2_enc_hw_tuning_info_type in the xavier encoder?

Hi,
You are correct there are issues in slice level encoding. We see two issues:

  1. - -report-metadata does not report correct information in slice level encoding
  2. -slt 1 does not work properly

We will investigate further.

On 5.1.2 or 5.1.3, please run in Slice length type = Bytes:

$ ./video_encode a.yuv 640 480 H265 a.h265 -slt 2 -slen 10000 --sle
$ ./video_encode a.yuv 640 480 H264 a.h264 -slt 2 -slen 10000 --sle

And please manually add print of buffer size in encoder_capture_plane_dq_callback() to check.