How to Create .flv and thumbnail of uploaded video in asp.net
<p>I am working on a project where user will upload video file and then I will convert that file to flv and will create thumbnail of that video. For this i have used ffmpeg.exe. </p>

<p>In a test project it is working fine. But when I copied and pasted the code in my original application with same directory structure, it is not working. The code i have written for this is as follow:</p>

<pre><code>string ffmpeg = Server.MapPath("~/ffmpeg/ffmpeg.exe");
string flvFile = Server.MapPath("~/Temp/");
string thumbnail = Server.MapPath("~/Video/");
string pfile = "";
string fileName = Guid.NewGuid().ToString();
pfile = fileName + fileExtension;
fuVideo.PostedFile.SaveAs(flvFile + "/" + pfile);

System.Diagnostics.Process.Start(ffmpeg, " -i \"" + flvFile + @"\" + pfile + "\" -ar 22050 -ab 32 -f flv " + flvFile + @"\" + fileName + ".flv");

System.Diagnostics.Process.Start(ffmpeg, " -an -y -ss 00:02 -t 00:00:01 -sameq -i \"" + flvFile + @"\" + pfile + "\" -f image2 " + thumbnail + fileName + ".jpg");
</code></pre>

<p>If some one has idea that what is wrong in this then please let me know.</p>
