Causes of frame rate drop Jetson Nano

Jetson Nano R32.7
I am recording with 120fps using this pipelines but I am getting from 88-116 fps when dumping into a file. When using videotestscr I get 120 fps. How can I ensure that the recording is at a stable and reach 116 fps? Is there any way to expend the memory of the buffers/ writing the frames into a file?
I am not sure if the buffers are getting full and therefore causing frame rate drop, and the encoder takes sometimes 200ms for 1 frame.

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)120/1’ ! nvvidconv ! omxh264enc ! ‘video/x-h264, stream-format=(string)byte-stream’ ! h264parse ! qtmux ! filesink location=test41.mp4 -e

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)120/1’ ! nvv4l2h264enc maxperf-enable=1 bitrate=200000000 MeasureEncoderLatency=1 ! h264parse ! matroskamux ! filesink location=test22.mkv -e

hello pianist.pablo,

let’s check the sensor outputting frame-rate performance,
you may follow below pipeline to disable preview and shows frame-rate only for quick checking.
for example,
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1280, height=720, framerate=120/1, format=NV12' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.