Log in

View Full Version : Extracting video frames with C#


kovi
16th April 2006, 16:01
Hi!

I've been looking for reliable methods for extracting video frames in C#.
I've encoutered lots of problems with DirectShow (mediadet, samplegrabber working unreliable... and VIDEOINFOHEADER2 incompatibility...(mpeg2 files)). VFW is getting too old, too few codecs are installed on a tipical PC.
Is there any other way to exract frames from video files (+resolution, + fps, +length) to Bitmap structures? I'm thinking of using avisynth for example. Or something else...

Thanks!

dimzon
16th April 2006, 20:41
Hi!

I've been looking for reliable methods for extracting video frames in C#.
I've encoutered lots of problems with DirectShow (mediadet, samplegrabber working unreliable... and VIDEOINFOHEADER2 incompatibility...(mpeg2 files)). VFW is getting too old, too few codecs are installed on a tipical PC.
Is there any other way to exract frames from video files (+resolution, + fps, +length) to Bitmap structures? I'm thinking of using avisynth for example. Or something else...

Thanks!
take look @ MeGUI source code - class AviSynthClip and class AvsReader

Inc
17th April 2006, 00:59
VFW is getting too old, too few codecs are installed on a tipical PC.
Anyhow if accessing Videosources via Avisynth, in regular anyway the vfw interface will be used and so these codecs also here would have to be installed in the users system. The only way would be accessing avisynth.dll by ->Eval("Directshowsource(....)") where here the Dshow decoder would do the job.