locked
How to capture video from webcam and save as video file ? RRS feed

  • Question

  • Hello  Everyone,

    I am working on windows  based C#.net application I need source code in (C#.net) for recording or capturing video from webcam and save as a video file.

    Thank You

    Tuesday, June 14, 2016 10:40 AM

Answers

  • Hi Uddhav.S,

    You could use the DirectShow.NET library. Please refer to this blog about "C# WebCam User Control Source" for reference.

    Here's a code sample: http://www.codeproject.com/Articles/3566/DirectX-Capture-Class-Library

    Best Regards,

    Xavier Eoro

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 16, 2016 2:14 AM

All replies

    • Proposed as answer by Eddie Lotter Wednesday, June 15, 2016 1:28 PM
    Tuesday, June 14, 2016 10:57 AM
  • Hi RLWA,

    Thankyou for replying ,

    Before posting this query i tried on every link and also tried on link which is provided by you i did not found any relevant link relevant code for this.

    provide me source code...

    Thank you.

    Tuesday, June 14, 2016 11:23 AM
  • Hi Uddhav.S,

    You could use the DirectShow.NET library. Please refer to this blog about "C# WebCam User Control Source" for reference.

    Here's a code sample: http://www.codeproject.com/Articles/3566/DirectX-Capture-Class-Library

    Best Regards,

    Xavier Eoro

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 16, 2016 2:14 AM