background preloader

DirectX

Facebook Twitter

Codeproject Direct Show Api For Web Based Project. Free source code and programming help. Extracting still pictures from movie files, with C#. Free source code and programming help. Introduction Pressing the "Print Screen" key while playing a movie file in Windows Media Player will not allow you to save the current frame. The sample application will save frames to JPEG files. It can extract frames from most movie file formats including *.wm? (Windows Media Player), *.avi, *.mpeg, *.mov (QuickTime), and *.dat (DivX). Commercial and shareware applications that provide this functionality exist but the code that I will show will let you build your own application that fits your exact needs. Background Pressing the "Print Screen" key while playing a movie file in Windows Media Player will not allow you to save the current frame. Microsoft approach to this problem would be using DirectShow but there is no managed equivalent of it.

Using the code As already mentioned, the workhorse of the application is the WriteBitmapBits method of the class MediaDetClass. To declare an object of the MediaDetClass, you'll see code like: Points of Interest Limitations and known issues. Download details DirectX 9.0 SDK Update (February 2005) Extras. Extracting Video Frames with .NET. DirectShow .NET.