为什么在Windows上使用FFMPEG重新编码视频总是会出错?

6
我从http://ramiro.arrozcru.org/ffmpeg-vfwcap-noflip.7z下载了ffmpeg,并通过命令行运行: ffmpeg -r 25 -f vfwcap -i 0 output.avi,但总是出现错误:

ffmpeg -r 25 -f vfwcap -i 0 output.avi
FFmpeg版本SVN-r22915,版权所有(c) 2000-2010年FFmpeg开发人员
构建于2010年4月20日00:09:08,使用gcc 4.4.2构建
配置: --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. 2. 0
libswscale 0.10. 0 / 0.10. 0
[vfwcap @ 012eba60]无法连接到设备。
0: 发生错误编号-19

为什么会这样?

它是使用vfwcap构建的吗?vfw已经过时且普遍不受喜爱,因此不一定包含在内。 - Martin Beckett
@alexf 问题可能不在于ffmpeg。您的计算机上是否连接了网络摄像头并准备好使用?例如,您能否通过Skype进行视频通话,或者使用VLC或其他软件从网络摄像头录制视频? - sashoalm
@stepan-yakovenko - 请提交一个新问题,并说明您具体想要实现什么。 - Gyan
尝试使用管理员命令提示符。 - user4624062
1个回答

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接