create thumbnail from flv video using asp.net2.0 C#

228 views
Skip to first unread message

Ebtsam Salah

unread,
May 3, 2011, 6:02:20 AM5/3/11
to mediasoftpro
Hi,
in my app, i upload flv video from my computer and i want create
thumbnail from it.
can you help me please.
thanks in advace.

ebtsam salah

shane

unread,
May 3, 2011, 12:18:41 PM5/3/11
to mediasoftpro
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");
}

for more help visit http://www.mediasoftpro.com

tony nabarro

unread,
Jun 21, 2011, 11:58:20 PM6/21/11
to mediasoftpro
Hi ebtsam salah,

I have that same problem and I am still looking for the jpg file
(thumb image).

How is your solution going?

Regards
Tony



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");
>         }
>
> for more help visithttp://www.mediasoftpro.com
Reply all
Reply to author
Forward
0 new messages