Menu

Capture more webcam picture in one video file

2009-08-06
2012-10-29
  • Sámoly Gábor

    Sámoly Gábor - 2009-08-06

    Hi all!
    I need to find a way how to make one video file from 2 or more webcam in C# (windows app). I tried to use the google for some samples, but no success. I found a way how to record a video from the webcam (with directshowNet, directx I can save two avi with two webcam...)
    I read about directShowNet at http://directshownet.sourceforge.net/ and I found a sample on
    http://www.codeproject.com/KB/directx/directshownet.aspx . It works well, I can record videos with webcam in c#. But for example I have 2 webcams. I need to get the frames during the record, paste one frame near the other (make one image, create one frame from the two), and insert these new frames into a new avi.
    Any idea? Is it possible to get the frames in time, and create one new avi from the 2 captured?

     
    • snarfle

      snarfle - 2009-08-06

      I don't have good news to offer you.

      I don't believe any of the standard MS filters will help you with this. And what's more, while you can do a variety of DS tasks with c#, the one thing you can't do is create a filter (or a DMO) that has multiple input pins.

      There may be some filter like this already out in the world. You might see what google turns up for you. Failing that, you may need to write your own filter using c++. Remember that when you have written that filter, you can still load it and use it from c#.

       

Log in to post a comment.