How to access camera_id in gst-dsexxample

Have you checked this topic? How to set source_id in streammux?