<div dir="ltr">My laptop has 1 integrated cam, but when I run gst-device-monitor-1.0.exe to get device path, there are 2 device-paths for same device, and it seems one device-path is for ksvideosrc, it class is "class : Video/Source", the other one is for mfvideosrc, class is "Source/Video". My question is how to programally select a correct device for mfdevice? I pasted a part of output of "gst-device-monitor-1.0.exe" as below:<div>Device found:<br><br>     name  : Integrated Camera<br>    class : Video/Source<br>  caps  : image/jpeg, width=1280, height=720, framerate=30/1, pixel-aspect-ratio=1/1<br>     ...<br>              image/jpeg, width=320, height=180, framerate=30/1, pixel-aspect-ratio=1/1<br>         video/x-raw, format=YUY2, width=1280, height=720, framerate=10/1, pixel-aspect-ratio=1/1<br>      ...<br>            video/x-raw, format=YUY2, width=320, height=180, framerate=30/1, pixel-aspect-ratio=1/1<br>   gst-launch-1.0 ksvideosrc device-path="\\\\\?\\usb\#vid_174f\&pid_2435\&mi_00\#6\&1a775b38\&1\&0000\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\global" ! ...<br></div><div><br></div><div>Device found:<br><br>   name  : Integrated Camera<br>    class : Source/Video<br>  caps  : video/x-raw, format=BGR, width=1280, height=720, framerate=10/1, pixel-aspect-ratio=1/1<br>              video/x-raw, format=BGR, width=960, height=540, framerate=15/1, pixel-aspect-ratio=1/1<br> ...<br>             video/x-raw, format=BGR, width=320, height=180, framerate=30/1, pixel-aspect-ratio=1/1<br>            video/x-raw, format=NV12, width=1280, height=720, framerate=30/1, pixel-aspect-ratio=1/1, colorimetry=1:4:0:1<br>             video/x-raw, format=NV12, width=960, height=540, framerate=30/1, pixel-aspect-ratio=1/1, colorimetry=1:4:0:1<br>...<br>         image/jpeg, width=320, height=180, framerate=30/1, pixel-aspect-ratio=1/1, colorimetry=1:4:0:1<br>    properties:<br>           device.api = mediafoundation<br>          device.path = \\?\usb#vid_174f&pid_2435&mi_00#6&1a775b38&1&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\global<br>             <a href="http://device.name">device.name</a> = Integrated Camera<br>        gst-launch-1.0 mfvideosrc device-path="\\\\\?\\usb\#vid_174f\&pid_2435\&mi_00\#6\&1a775b38\&1\&0000\#\{e5323777-f976-4f5b-9b55-b94699c46e44\}\\global" ! ...<br></div><div><br></div><div>Thanks</div></div>