如何从流中获取视频和音频并输出到视频文件和图像
我目前正在尝试制作一个程序,该程序将接收传入的流,例如网络摄像头和麦克风,并且我正在尝试将视频和音频保存到 AVI 文件中,并能够将信息保存到图像中。我尝试使用 DirectShow 和 OpenCV 来做到这一点,但遇到了一些麻烦,因为我想将音频包含在 AVI 文件中,但找不到使用 OpenCV 保存音频信息的方法。
我也研究过 FFMPEG,但我在网上没有看到太多关于处理来自 Windows 的流的信息。
任何信息或文档都会很棒。
我正在尝试在 Windows 兼容机器上开发它。
谢谢
I am currently trying to make a program that will take a stream coming in, like a webcam and a microphone, and I am trying to save both the video and audio into an AVI file and be able to save out the information out to images. I've tried to do this with DirectShow and OpenCV, but I've had some trouble since I have audio that I would like to include in the AVI file, but cannot see a way to use OpenCV to save Audio information.
I've also looked into FFMPEG, but I don't see much online about working with streams coming in from Windows.
Any information or documentation would be great.
I am trying to develop this on a Windows compatible machine.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们有一个跨平台的视觉系统框架,可以满足您的需求:
http://www.simplecv.org
以下是在我们的代码中执行此操作的方法:
We have a cross platform vision system framework that may solve your needs:
http://www.simplecv.org
Here is how you do it in our code: