chevy914 wrote:
because I am not saving the video to a physical path.
If you don't write the video to the file system, then you cannot generate thumbnails. Quicktime allows loading a video from memory, but Windows does not, sadly.
double pos = 1;
double percentage = 0.05;
DexterLib.MediaDetClass mediaDet = new DexterLib.MediaDetClass();
mediaDet.Filename = filename;
mediaDet.CurrentStream = 0;
String tmpBitmapFile = System.IO.Path.GetTempFileName() + ".bmp";
int height = 240;
int width = 180;
mediaDet.WriteBitmapBits(percentage * mediaDet.StreamLength, width, height, tmpBitmapFile);
is how I do it, using DexterLib, which is part of Windows.