Optimizing gsreamer pipeline for saving "Camarray – Arducam 1MP (OV9782 Color) Quad-Camera Bundle Kit" stream to file

I am new to gstreamer and trying to save a video to file from a Quad-Camera by Arducam. The current pipeline with gstreamer drops 90% of the frames.

gst-launch-1.0 -e v4l2src device=/dev/video0 do-timestamp=true ! video/x-bayer, framerate=30/1 ! bayer2rgb ! videoconvert ! timeoverlay ! x264enc pass=quant ! h264parse ! mp4mux ! filesink location=stream.mp4

The framerate of the actually camera is around 45fps.

v4l2-ctl --set-fmt-video=width=5120,height=800,pixelformat='RGGB' --stream-mmap --stream-count=-1 -d /dev/video0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 44.55 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 44.50 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 44.51 fps

I am thankful for any tips.

Hi,
In the gstreamer command, it uses software plugin for debayering. Due to CPU capability of Jetson Nano, this may not achieve target performance. We would suggest use hardware ISP engine for debayering. If the vendor has followed sensor driver programming guide to have driver and device tree ready, you can use Argus APIs to get YUV420. If not, please refer to sensor driver programming guide to modify device tree.

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