AVIReader in AForge

662 Views Asked by At

I am trying to read all frames from a video I write this code but getting an unhandled exception

AVIReader reader = new AVIReader();
reader.Open("drop.avi");
while (reader.Position - reader.Start < reader.Length)
{
    Bitmap image = reader.GetNextFrame();
}

enter image description here

1

There are 1 best solutions below

0
On

Try setting up the build of your application to a X86 Machine Go to

BUILD->CONFIGURATION MANAGER->CHANGE TO X86 PLATFORM 

Or try changing the CODEC's