jacksonliam / mjpg-streamer

Fork of http://sourceforge.net/projects/mjpg-streamer/
2.96k stars 1.21k forks source link

How to find out supported resolutions? #374

Closed ruvilonix closed 1 year ago

ruvilonix commented 1 year ago

I have a USB cam and an OrangePi. The default resolution works, as does 1280x720, but I couldn't get other 16:9 resolutions (854x480, 640x360) to work. The log file says The specified resolution is unavailable, using: width 640 height 480 instead. How do I find out which resolutions are supported?

poulou0 commented 1 year ago

I use v4l2-ctl -d /dev/video0 --list-formats-ext where, of course, -d is the path to your camera. Hope it helps!

ruvilonix commented 1 year ago

@poulou0 Yep, that worked, thanks!