'Declare object of class MediaManagerPro
Dim oMediaManagerPro As New MediaManagerPro()
'Get the rooth path
Dim strRootPath As String = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath)
'set the directory path info for ffmpeg file
oMediaManagerPro.FFMPEG_Path = HttpContext.Current.Server.MapPath("~\ffmpeg\ffmpeg.exe")
'Set source file info
oMediaManagerPro.SourceFile_Path = strRootPath & "\contents\Source"
oMediaManagerPro.SourceFile_Name = "GuitarPlayer.mpg"
'set output file info
oMediaManagerPro.OutputFile_Path = strRootPath & "\contents\Thumbs"
'Single Thumb - Properties available in free version
oMediaManagerPro.Frame_Time = "5"
oMediaManagerPro.Image_Format = "jpg"
oMediaManagerPro.Image_Name = "Image_" & DateTime.Now.Ticks
'Single Thumb - Properties available in full version
'oMediaManagerPro.Width = 320;
'oMediaManagerPro.Height = 240;
'grab thumbnails
Dim oMediaInfo As MediaInfo = oMediaManagerPro.Grab_Thumb()
'#Region "Print Output Information"
Dim strOutputInfo As New StringBuilder()
strOutputInfo.Append("Image Created = " & oMediaInfo.File_Name & "<br />")
HttpContext.Current.Response.Write(strOutputInfo)
'#End Region