title: Webcam capture and convert to avi
body: <p>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 </p>
  
  <p>ive heard you need to use directshow but it doesnt jet work for me</p>
  
  <p>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) ? </p>
  
  <p>or some suggestions where to look so i can build it myself</p>
  
  <p>(if a other programming language is better for this im happy to know it early. )</p>