I have a camera connected to my system, how can I know what are the camera characteristics? e.g. resolution, format?
In order to get your system camera characteristics, such as resolution, format, frame rate etc, you can use this command:
gst-device-monitor-1.0 Video/Source
the output should look like this:
Probing devices…
Device found:
name : Integrated_Webcam_HD
class : Video/Source
caps : image/jpeg, width=1280, height=720, framerate=30/1
image/jpeg, width=640, height=480, framerate=30/1
image/jpeg, width=640, height=360, framerate=30/1
video/x-raw, format=YUY2, width=1280, height=720, framerate=10/1
video/x-raw, format=YUY2, width=640, height=480, framerate=30/1
video/x-raw, format=YUY2, width=640, height=360, framerate=30/1
video/x-raw, format=YUY2, width=320, height=240, framerate=30/1
video/x-raw, format=YUY2, width=320, height=180, framerate=30/1
video/x-raw, format=YUY2, width=160, height=120, framerate=30/1
properties:
object.path = v4l2:/dev/video0
device.api = v4l2
media.class = Video/Source
device.product.id = 26424
device.vendor.id = 3141
api.v4l2.path = /dev/video0
api.v4l2.cap.driver = uvcvideo
api.v4l2.cap.card = "Integrated_Webcam_HD:\ Integrate"
api.v4l2.cap.bus_info = usb-0000:00:14.0-6
api.v4l2.cap.version = 5.15.78
api.v4l2.cap.capabilities = 84a00001
api.v4l2.cap.device-caps = 04200001
device.id = 34
node.name = v4l2_input.pci-0000_00_14.0-usb-0_6_1.0.2
node.description = Integrated_Webcam_HD
factory.name = api.v4l2.source
node.pause-on-idle = false
factory.id = 10
client.id = 32
clock.quantum-limit = 8192
media.role = Camera
node.driver = true
object.id = 35
object.serial = 35
gst-launch-1.0 pipewiresrc path=35 ! ...