Webcam capture and convert to avi

时光总嘲笑我的痴心妄想 提交于 2019-12-01 04:51:44

问题


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. )


回答1:


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/




回答2:


Take a look at DirectShow.NET (Article), which has many samples such as TV capture and encoding.



来源:https://stackoverflow.com/questions/2807040/webcam-capture-and-convert-to-avi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!