Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top