Why does recoding video from FFMPEG to Windows always result in an error?

I downloaded ffmpeg from http://ramiro.arrozcru.org/ffmpeg-vfwcap-noflip.7z
and run it using the command line: ffmpeg -r 25 -f vfwcap -i 0 output.avi

but always get the error:

ffmpeg -r 25 -f vfwcap -i 0 output.avi
Version FFmpeg SVN-r22915, Copyright (c) 2000-2010 developers of FFmpeg
built on April 20, 2010 00:09:08 with gcc 4.4.2
configuration: --enable-memalign-hack --cross-prefix = i686-mingw32- --cc = ccach
-i686-mingw32-gcc --arch = i686 --target-os = mingw32 --enable-gpl --enable-libx264
--enable-Pthreads
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52.2.0 / 52. 20
libswscale 0.10. 0 / 0.10. 0
[vfwcap @ 012eba60] Failed to connect to the device.
0: Error number -19 occurred

Why is this not working?

+6
source share
1 answer

vfwcap cannot find your camera, you can try using DirectShow, as suggested here: https://trac.ffmpeg.org/wiki/vfwcap .

Documentation and examples are given here: https://www.ffmpeg.org/ffmpeg-devices.html#dshow

If you want to continue using vfwcap , perhaps you can use list ( https://www.ffmpeg.org/ffmpeg-devices.html#vfwcap ) to see a list of drivers.

0
source

Source: https://habr.com/ru/post/905488/


All Articles