How to change the streaming format in Deepstream?

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

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)