Hi,
In order to grab thumbnails properly, all u need the following steps.
i: Download / use latest stable ffmpeg build.
ii: Set the following parameters
_mhandler.FFMPEGPath = HttpContext.Current.Server.MapPath("~\ffmpeg
\ffmpeg.exe")
_mhandler.InputPath = RootPath & "\contents\source" // input folder
must exist and source video must be there.
_mhandler.OutputPath = RootPath & "\contents\output" // output folder
must exist
_mhandler.FileName = "sample.mp4"; // sample.mp4 or any other file
must exist in source folder before starting
_mhandler.ImageName = "sample.jpg"; // output image name in case of
grabbing single image
_mhandler.Frame_Time = "10";
//OR
//_mhandler.Thumb_Start_Position = 10; // position in seconds from
where you want to grab thumbs. it must be lesser than final length of
video.
_mhandler.Image_Format = "jpg";
_mhandler.VCodec = "image2";
_mhandler.Width = 160;
_mhandler.Height = 120;
VideoInfo info = _mhandler.Grab_Thumb();
if (info.ErrorCode > 0)
{
Response.Write("Error occured while grabbing thumbs from
video");