invalid resolution error

I’m using zed2 mini and getting this error. Why doesn’t it work with camera-resolution=2 even though it is supported resolution from the documentation?
I was able to run this command with camera-resolution=3

gst-launch-1.0 -v zedsrc camera-resolution=2 camera-fps=30 stream-type=2 name=src ! videoconvert ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvv4l2h264enc bitrate=12500 preset-level=1 maxperf-enable=1 ! h264parse ! rtph264pay config-interval=-1 pt=96 mtu=1400 ! queue max-size-time=0 max-size-bytes=0 max-size-buffers=0 ! udpsink name=sink host=10.0.0.55 port=5001 sync=false async=false buffer-size=65536
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Setting depth_mode to NONE
ERROR: from element /GstPipeline:pipeline0/GstZedSrc:src: Failed to open camera, ‘INVALID RESOLUTION’

Hi @jungshin
Welcome to the Stereolabs community

Resolution value 2, that is (2): HD1200 (GMSL2) - 1920x1200 is only valid for ZED X GMSL2 cameras

Can you tell me in this documentation(GStreamer - ZED Camera Source - Stereolabs) what is available on zed2 mini?

 (1): HD2K (USB3)      - 2208x1242
                           (3): HD1200 (GMSL2)   - 1920x1200
                           (2): HD1080 (USB3/GMSL2) - 1920x1080
                           (4): HD720 (USB3)     - 1280x720
                           (5): SVGA (GMSL2)     - 960x600
                           (6): VGA (USB3)       - 672x376
                           (7): Default value for the camera model - Automatic

The ZED Mini is a USB3 camera, so all the resolutions tagged with USB3 are available:

  camera-resolution   : Camera Resolution
                        flags: readable, writable
                        Enum "GstZedSrcRes" Default: 6, "Default value for the camera model"
                           (0): HD2K (USB3)      - 2208x1242
                           (1): HD1080 (USB3/GMSL2) - 1920x1080
                           (2): HD1200 (GMSL2)   - 1920x1200
                           (3): HD720 (USB3)     - 1280x720
                           (4): SVGA (GMSL2)     - 960x600
                           (5): VGA (USB3)       - 672x376
                           (6): Default value for the camera model - Automatic

Hence:

  • (0): HD2K (USB3) - 2208x1242
  • (1): HD1080 (USB3/GMSL2) - 1920x1080
  • (3): HD720 (USB3) - 1280x720
  • (5): VGA (USB3) - 672x376
  • (6): Default value for the camera model - Automatic