AVI file video source.

Namespace:  AForge.Video.VFW
Assembly:  AForge.Video.VFW (in AForge.Video.VFW.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public class AVIFileVideoSource : IVideoSource

Remarks

The video source reads AVI files using Video for Windows.

Sample usage:

CopyC#
// create AVI file video source
AVIFileVideoSource source = new AVIFileVideoSource( "some file" );
// set event handlers
source.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
source.Start( );
// ...
// signal to stop
source.SignalToStop( );

// New frame event handler, which is invoked on each new available video frame
private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    // get new frame
    Bitmap bitmap = eventArgs.Frame;
    // process the frame
}

Inheritance Hierarchy

System..::.Object
  AForge.Video.VFW..::.AVIFileVideoSource

See Also