网络摄像头捕获并转换为 avi
我正在尝试制作一个程序,从网络摄像头捕获视频并从麦克风捕获声音,但我陷入了尝试用静态图像制作电影的部分,
我听说你需要使用 directshow,但它对我不起作用
有人知道一段很好的示例代码,可以捕获视频和声音并将其编码到文件(divx 或类似的文件)吗?
或者一些建议,以便我可以自己构建它
(如果其他编程语言对此更好,我很高兴尽早知道它。)
Im trying to make a program that captures a video from the webcam and sound from the microphone but im getting stuck at the part where ive try to make a movie out of still images
ive heard you need to use directshow but it doesnt jet work for me
Does someone know a good piece of example code that captures video and sound and can encode it to a file (divx or something like that) ?
or some suggestions where to look so i can build it myself
(if a other programming language is better for this im happy to know it early. )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信 AForge.net 内置了视频创建实用程序。它可能在后台使用 DirectShow。但我已经用它来捕获视频流,并且我 90% 确定它可以用于视频编码!
在以下位置找到您的二进制文件/源代码:
http://www.aforgenet.com/
http://code.google.com/p/aforge/
I believe AForge.net has video creation utilities built in. It might use DirectShow in the background. But I've used it for capturing a video stream, and I'm 90% sure it can be used for encoding video!
Find your binarys/source at:
http://www.aforgenet.com/
http://code.google.com/p/aforge/
看一下 DirectShow.NET (文章),其中有许多示例,例如电视捕获和编码。
Take a look at DirectShow.NET (Article), which has many samples such as TV capture and encoding.