S
S
Salavat2015-04-27 08:52:32
fmpeg
Salavat, 2015-04-27 08:52:32

How to get an image from two identical webcams using ffmpeg in the console?

You need to get one frame from two identical webcams in the console.
I use ffmpeg.exe like this:

ffmpeg -f dshow -i video="Logitech HD Webcam C270" -q:v 1 -vframes 1 left.jpg

The cameras are the same, so:
ffmpeg -f dshow -i video="Logitech HD Webcam C270" -q:v 1 -vframes 1 left.jpg
ffmpeg -f dshow -i video="Logitech HD Webcam C270" -q:v 1 -vframes 1 right.jpg

takes two images from the first camera.
Connected cameras look like this:
D:\ffmpeg>ffmpeg -list_devices true -f dshow -i dummy
[dshow @ 01BB8540] DirectShow video devices
[dshow @ 01BB8540] "ASUS USB2.0 WebCam"
[dshow @ 01BB8540] "Logitech HD Webcam C270"
Last message repeated 1 times
[dshow @ 01BB8540] DirectShow audio devices
[dshow @ 01BB8540] "Microphone (2- High Definition Audio Device)"
[dshow @ 01BB8540] "Microphone (2- HD Webcam C270)"
[dshow @ 01BB8540] "Microphone (3- HD Webcam C270)"
dummy: Immediate exit requested

In the properties of the equipment, the name is also the same: Logitech HD Webcam C270
How to distinguish them?
Maybe there are other ways on windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monah_tuk, 2015-04-27
@Salavat

-video_device_number XXX
Read: ffmpeg.org/ffmpeg-devices.html#dshow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question