Running multiple NVENC sessions on Jetson Xavier NX:


I am running multiple NVENC on Jetson Xavier NX at the same time. I use the samples that came with the Jetson Multimedia API: 01_video_encode and 15_multivideo_encode.
Here is an example of my command line for a single encoder:

./video_encode input_frames.yuv 4096 4096 H265 --max-perf -fps 3 1 -p main -hpt 1

It runs fine, BUT each encoder consumes ~ 500MB of RAM. This is unacceptable in my case and I am looking for a way to decrease this number significantly. I am new to video encoding and would use any suggestions.