none
capture and preview live video feed from dshow device.

    Question

  • Hello-

    I've been working on a window form application that needs to capture and display in a "picturebox" or "panel" a live video stream from a directshow, video capture card.

    That sounds fairly  straight forward, but I've been trying to get this for a few days now and I'm getting no-where. I thought I had it using:

    Video vdo = new Video(@"C:\video.wmv);

    vdo.Owner = panel1;

    vdo.Play();

    That code works for the video playback and I had hoped that  I could just replace the "video.wmv" with the "dshow device name" or ":dshow//" but no worky.

    Of course, this uses the "using Microsoft.DirectX.AudioVideoPlayback" directive, and since I'm trying to capture from a video interface card, that is probably the reason it doesn't work (though I could be wrong).

    Has anyone figured out a fairly easy way to do this?

    -Thanks.

    Friday, April 21, 2017 11:50 AM

Answers

All replies

  • Hi,

    You could look into the below article. Hope this helps you.

    DirectShow

    DirectShowNet library

    Embedding Video in a WinForms app


    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered"Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]




    Friday, April 21, 2017 11:54 AM
    Moderator
  • Hi Ken0ne,

    If your issue is solved please Mark as answer or Vote as helpful post to the appropriate answer so that it will help other members to find solution if they faces similar issue.

    Your understanding and cooperation will be grateful

    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Monday, May 15, 2017 12:59 PM
    Moderator