Encoding with no slices:
under /usr/src/jetson_multimedia_api/samples/01_video_encode: ./video_encode ~/work/adi/filetst.yuv 1920 1080 H265 ~/work/adi/filetst.h265
Encoding with slices:
under /usr/src/jetson_multimedia_api/samples/01_video_encode: ./video_encode ~/work/adi/filetst.yuv 1920 1080 H265 ~/work/adi/filetst-s3.h265 --sle -slen 1036800 -slt 2
Thanks again,
I followed the instructions there and it works well when encoding H264 (getting 4 slices): ./video_encode ~/work/adi/filetst.yuv 1920 1080 H264 ~/work/adi/filetst-4s.264 --sle -slen 2040 -slt 1
But I don’t get 4 slices when encoding H265 / VP9
(Tried on Jetpack 4.6 on AGX, 5.1 on NX, and 5.0.1 on Orin)
Many thanks,
I think we figured the calculation for H265: macroblock_alignment =32 macroblock_size = 32*32 = 1024 macroblocks = WIDTH_ALIGN_TO_32*HEIGHT_ALIGN_TO_32/macroblock_size macroblocks_per_slice = macroblocks / slices
We still need the calculation for VP9.
When analyzing the slices, we are looking for headers on every IDR.
I tried using --insert-spspps-idr option, but we still get only one header.
How can we get the headers on every IDR?