如何在WindowsXP上使用ffmpeg从网络摄像头捕获音频和视频 [英] How to capture audio and video from webcam using ffmpeg on WindowsXP

查看:329
本文介绍了如何在WindowsXP上使用ffmpeg从网络摄像头捕获音频和视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在WindowsXP上使用ffmpeg从网络摄像头捕获音频和视频.
我知道以下命令仅捕获视频的命令(以防有人需要)

ffmpeg -f vfwcap -r 25 -i 0 sample.avi

其中
1)-f是指定强制格式.
2)vfwcap用于Windows XP上的网络摄像头视频流
3)-r 25用于指定帧速率
4)-i 0用于指定输入设备,如果使用默认摄像头,则输入设备为0
5)sample.avi是输出文件

因此,此命令将从网络摄像头捕获视频流并将其存储到sample.avi

我的问题就像我也想同时捕获音频一样.
ffmpeg在Linux中具有相同的选项.但是我没有找到有关Windows O/S的任何帮助.

如果有人知道这一点,请帮助我.

提前谢谢.

顺便说一句,我知道如何使用MinGW和MSys在Windows上编译ffmpeg源.我也知道如何在VC ++ Express版和VC ++ VS2005版中使用ffmpeg库.
如果有人有相同的要求,请告诉我

谢谢

I want to capture audio and video from webcam using ffmpeg on WindowsXP.
I know the command to capture only video as given below (In case somebody need it)

ffmpeg -f vfwcap -r 25 -i 0 sample.avi

where
1) -f is to specify force format.
2) vfwcap is for webcam video stream on Windows XP
3) -r 25 is to specify frame rate
4) -i 0 is to specify input device which is 0 incase of default webcam
5) sample.avi is the output file

So, this command will capture video stream from the webcam and store it into sample.avi

My problem is like I also want to capture audio at the same time.
ffmpeg has options for the same in Linux. But I didn''t kind of find any help regarding this for Windows O/S.

If anybody knows this, then please help me.

Thanks in advance.

BTW, I know how to compile ffmpeg source on windows using MinGW and MSys. I also know how to use ffmpeg libraries in VC++ Express edition and VC++ VS2005 edition.
If anybody has the same requirements then please let me know

Thanks

推荐答案

检查是否有帮助

DirectX.Capture类库 [
Check if this helps

DirectX.Capture Class Library[^]


这篇关于如何在WindowsXP上使用ffmpeg从网络摄像头捕获音频和视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆