What is The Easiest, fastest Way to capture video stream from camera with C#?
views:
336answers:
3
+5
A:
Hi Ole,
As Papuccino1 wrote, you should look for a library that does just what you need. I looked this up for you:
http://www.codeproject.com/KB/directx/directxcapture.aspx :)
bomortensen
2009-11-03 14:02:16
Ah yes, that site has probably everything you'll ever need newbie-intermediate level.
Sergio Tapia
2009-11-03 14:04:23
And what is " The Easiest, fastest Way " for PRO's , Papuccino1?
Blender
2009-11-03 21:50:02
A:
Simpliest and easiest probably would be using Microsoft Expression Encoder SDK:
static void Main( string[] args )
{
var job = new Microsoft.Expression.Encoder.Live.LiveJob();
job.AddDeviceSource( job.VideoDevices[0],job.AudioDevices[0] );
var w = new System.Windows.Forms.Form();
w.Show();
var source = job.DeviceSources[0];
source.PreviewWindow = new Microsoft.Expression.Encoder.Live.PreviewWindow( new System.Runtime.InteropServices.HandleRef(w, w.Handle) );
Console.ReadKey();
}
Konstantin Salavatov
2010-01-08 21:03:18