On May 3, 11:18 pm, shane <
mediasoft...@gmail.com> wrote:
> Hi,
>
> You can achieve grabbing thumbs from videos via
asp.net / c# using
>
ASP.NET Media Handler Pro via sample codes shown below.
>
> string thumb_start_index = "sample_";
> _mhandler.FileName = "sample.mp4";
> _mhandler.Image_Format = "jpg";
> _mhandler.VCodec = "image2";
> _mhandler.ImageName = thumb_start_index;
> _mhandler.Multiple_Thumbs = true;
> _mhandler.ThumbMode = 0;
> _mhandler.No_Of_Thumbs = 15;
> _mhandler.Thumb_Start_Position = 10; // start grabbing thumbs
> from 5th second
> _mhandler.Width = 160;
> _mhandler.Height = 120;
> VideoInfo info = _mhandler.Grab_Thumb();
> if (info.ErrorCode > 0)
> {
> Response.Write("Error occured while grabbing thumbs from
> video");
> }
>