views:

1886

answers:

2

I'd like to process a directory of mpg's in a batch to have a thumbnail using C#/.NET.

Does anyone have any good suggestions on how I could do this?

+3  A: 

I know it's not C# .NET but ffmpeg is a great tool to do exactly this. Can be run as a command line tool from any language.

Here's a small tutorial to get you started.

Ólafur Waage
+3  A: 

I did this a few years ago, but I seem to have lost the source. Anyway, the route-of-least-resistance I found was to use DirectShow, there is an interop wrapper for managed code, namely directshow.net. You'll want to use IMediaDet's GetBitmapBits from the Windows Media Format SDK.

There is an example on CodeProject: Extract Frames from Video Files

Phil Price
Thanks for the link to the CodeProject site. I'll try to use it in my project.
Salamander2007