I am using the following line to preview my webcam:
ffmpeg -s 1280x720 -framerate 30 -pix_fmt yuv420p -rtbufsize 100MB -f dshow
-i video="Logitech Cam#1" -c:v copy -an -f sdl "WebCAM Preview"
this line works fine with cam #1, however when try it with cam #2, I get
the error:
[dshow @
DopeLabs,
Thanks for the advice, Unfortunately, I have tried both suggestions to
no avail. No sure if i mentioned it but both webcams are the same make and
model (Logitech 920) I change the names initially as i figured two cams
with the same name was the issue. Any further suggestions would be
you could try using the alternate names.. examples are shown here
https://www.ffmpeg.org/ffmpeg-devices.html#dshow
is it always that specific camera?
if you connect the one that isnt working first so that its listed as #1, will
it work?
have you tried connecting the 2nd camera to a separate
The following is the output from ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2
what is the output of
$ ffmpeg -list_devices true -f dshow -i dummy
if you have multiple entries of a webcam named "Logitech Cam", you can specify
which using -video_device_number
the following would select the 2nd identical device (as numbers for devices
start at 0)
$ ffmpeg -f dshow
I am using the following line to preview my webcam:
ffmpeg -s 1280x720 -framerate 30 -pix_fmt yuv420p -rtbufsize 100MB -f dshow
-i video="Logitech Cam#1" -c:v copy -an -f sdl "WebCAM Preview"
this line works fine with cam #1, however when try it with cam #2, I get
the error:
[dshow @