# Linux – How to list the available video modes for a USB webcam in Linux

linuxusbwebcam

I faintly recall that once upon a time, I found a command-line tool (something involving "UVC") to list the supported resolutions & modes of a USB webcam camera (e.g. PAL, 640×480) in Linux, but alas, I've lost it. Does anyone know what I'm talking about? I want something that will give something like,

> list-uvc-modes /dev/video1
PAL, YUYV, 640x480, 30 FPS
NTSC, MJPEG, ...


Thanks!

If you have v4l (video 4 linux 2) installed you can do:
v4l2-ctl --list-formats