Ievgen
Ievgen

Reputation: 4443

WPF. Show video from camera device. Performance and resources

I need to add control to my WPF application which will show video in real time from camera device in 720x580 resolution.

The main requirements:

  1. It should be really quick and show good performance.
  2. Full screen mode video with hi resolution.
  3. I can see some wpf controls over video control when it in fullscreen mode.
  4. 720x580 resolution supported.
  5. Not take much processor resources!

I saw some controls in the internet. But i need to have some feedbacks about them. Please give advice if you used some. What control or library you prefer and which can meet my requirements. Thanks for replies

Upvotes: 1

Views: 3227

Answers (2)

Twelve47
Twelve47

Reputation: 3984

You could try the VideoCaptureElement in WPF MediaKit

Upvotes: 1

Lupa
Lupa

Reputation: 62

I can recommend ffmediaelement. I use to view video from capture device. In the sample application, controls are located above the video, but I do not have a personal experience.
Example of setting up a capture device - it's very simple:

Media.OnMediaOpening(s, e) =>
{
    e.Options.Input["framerate"] = "25";
    e.Options.Input["video_size"] = "720x580";
    e.Options.Input["pixel_format"] = "yuyv422";
};
Media.Source = new Uri("device://dshow/?video=Osprey-460e Video Device 1C");

Upvotes: 2

Related Questions