Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Library for reading video frames

Is there a library written in .NET that allows me to read a video frame by frame?

Sample usage could be as follows:

Video vid = Video.Open("test.avi");
foreach (Bitmap bmp in vid.Frames)
      PictureBox1.Picture = bmp;
like image 634
Muhammad Hasan Khan Avatar asked Jan 02 '10 17:01

Muhammad Hasan Khan


1 Answers

You might want to take a look at Microsoft's IMediaDet interface, specifically the GetBitmapBits and WriteBitmapBits methods.

This article on CodeProject deomonstrates:
Extract Frames from Video Files

like image 75
Jay Riggs Avatar answered Oct 03 '22 00:10

Jay Riggs