Get Thumbnail from Video file in ASP.NET
<p>I am trying to get thumbnail from video file and my code run successfully but thumbnail is not saved here is my code..</p>

<pre><code> protected void Convert(string fileIn, string fileOut, string thumbOut)
    {
        try
        {
            System.Diagnostics.Process ffmpeg;

            string video;
            string thumb;

            video = Server.MapPath("~/Content/UploadVedio/YouTube.FLV");
            thumb = Server.MapPath("~/Content/UploadImage/frame.jpg");

            ffmpeg = new System.Diagnostics.Process();

            ffmpeg.StartInfo.Arguments = " -i " + video + " -ss 00:00:07 -vframes 1 -f image2 -vcodec mjpeg " + thumb;
            ffmpeg.StartInfo.FileName = Server.MapPath("~/Content/EXE/ffmpeg.exe");
            ffmpeg.Start();
            ffmpeg.WaitForExit();
            ffmpeg.Close();
        }
        catch (Exception ex)
        {
            Response.Write("Error: " + ex.Message);
        }
    }
</code></pre>
