How to set "v4l2-dev-node" to use "MJPG" not "YUYV

I am trying to run multiple webcams.
My web cams have 2 formats,“MJPG” and “YUYV”.
Is there a way to make sure this code below is using “MJPG” not “YUYV”?

[source1]
enable=1
type=1
camera-width=640
camera-height=480
camera-fps-n=20
camera-fps-d=1
camera-v4l2-dev-node=2

I believe this is the solution

Yes, you can refer that topic.