What are the parameters in gst-launch if you have two Pi Camera Module 3 cameras?

Hey @joms

Here’s how you can set up a GStreamer pipeline for two RPi Camera Module 3 cameras on your Raspberry Pi 5. I’ll show you two options:

  1. Separate Streams (sends each camera to different UDP ports):
gst-launch-1.0 -v \
    libcamerasrc camera-name=Camera0 ! video/x-raw, format=RGB, width=640, height=640 ! \
    queue ! videoscale ! videoconvert ! \
    hailonet hef-path=/home/user/yolov8s_final_20241020.hef ! \
    hailofilter ! hailooverlay ! videoconvert ! \
    x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=8554 sync=true \
    libcamerasrc camera-name=Camera1 ! video/x-raw, format=RGB, width=640, height=640 ! \
    queue ! videoscale ! videoconvert ! \
    hailonet hef-path=/home/user/yolov8s_final_20241020.hef ! \
    hailofilter ! hailooverlay ! videoconvert ! \
    x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=8556 sync=true
  1. Combined Display (shows both cameras in one window):
gst-launch-1.0 -v \
    libcamerasrc camera-name=Camera0 ! video/x-raw, format=RGB, width=640, height=640 ! queue ! videoscale ! videoconvert ! hailonet ! hailofilter ! hailooverlay ! videoconvert ! compositor name=mixer \
    libcamerasrc camera-name=Camera1 ! video/x-raw, format=RGB, width=640, height=640 ! queue ! videoscale ! videoconvert ! hailonet ! hailofilter ! hailooverlay ! videoconvert ! mixer. \
    mixer. ! videoconvert ! autovideosink

Remember to replace the hef-path and other parameters with your actual paths and settings. Let me know if you need help adjusting any parameters!