<div dir="ltr">I've been trying to find out the way to get capabilities of my webcam like resolution, pixel format, fps etc. I've tried using AVDeviceCapabilitiesQuery, but after creating it, it was shown as NULL pointer. <div><br></div><div>I've seen command like this</div><div><span style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;color:rgb(36,39,41);font-size:13px;line-height:1.5;background-color:rgb(239,240,241)">ffmpeg -f v4l2 -list_formats all -i /dev/video0</span></div><div><span style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;color:rgb(36,39,41);font-size:13px;line-height:1.5;background-color:rgb(239,240,241)"><br></span></div><div>How can I implement something like this in C++?</div></div>