Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is The Easiest, fastest Way to capture video stream from camera with C#? [closed]

What is The Easiest, fastest Way to capture video stream from camera with C#?

like image 747
Rella Avatar asked Nov 03 '09 13:11

Rella


1 Answers

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();
}
like image 144
Konstantin Salavatov Avatar answered Nov 18 '22 23:11

Konstantin Salavatov