I would like to ask is there any option for getting dshow device format list on Windows.
For example on Linux I am able to get device format list on Linux via
v4l2-ctl -i /dev/video0 --list-formats
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Index : 1
Type : Video Capture
Pixel Format: 'H264' (compressed)
Name : H.264
Index : 2
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
On Windows, I am able to get device list
ffmpeg -list_devices true -f dshow -i dummy
and device options
ffmpeg -f dshow -list_options true -i video="MY_DSHOW_DEVICE_NAME"
But I am not able to get format list, like on Linux via v4l2.
How can I get supported format list for dshow device via FFmpeg on Windows?
A delayed answer to your question.
It is not possible to clearly understand what you mean by "format list", but if you refer to the
Pixel Formatthat appears when usingv4l2, then you can get this data from the output of the-list_optionscommand that you mentioned.On my laptop, for example, I have the following output when running
ffmpeg -f dshow -list_options true -i video ="Integrated Webcam":(omitting the first lines for easy viewing)
As you can see, the data contained in the
vcodecandpixel_formatkeys are the same values that you would find inv4l2'sPixel Format, in this casemjpegandyuyv422, respectively.If what you want is an output with the same text formatting as
v4l2, then I understand that this can be addressed with regular expressions, for example, and it is not directly related toFFmpeg.