I have a USB camera which support UYVU, MJPG and H264 format. I need to change the format and check the performance. I don’t know by default which format is running and how to change the format.
To list the supporting format of the camera- $ v4l2-ctl --device=0 --list-formats-ext
It show: UYVY, MJPG, H264
I have tried to change in config.txt file but it didn’t work.
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=1280
camera-height=720
camera-fps-n=30
camera-v4l2-dev-node=0
camera-v4l2-set-fmt-video=pixelformat=H264
num-sources=1
gpu-id=0
# (0): memtype_device - Memory type Device
# (1): memtype_pinned - Memory type Host Pinned
# (2): memtype_unified - Memory type Unified
cudadec-memtype=0
Now the question is how to change the formats ?
Please help me to solve this