c# - Save taken snapshot -


I have done everything, how is everything inside, everything is fine except for one I can not save the snapshot. If I'm fine with debug everything ... will follow .. what's wrong?

  public class FFMPEG {process ffmpeg; Public zero exec (string input, string parametry, string output) {ffmpeg = new process (); Ffmpeg.StartInfo.Arguments = "-i" + Input + (parametri! = Null? "" + Parametri: "") + "" + Output; Ffmpeg.StartInfo.FileName = HttpContext.Current.Server.MapPath ("~ / ffmpeg.exe"); Ffmpeg.StartInfo.UseShellExecute = false; Ffmpeg.StartInfo.RedirectStandardOutput = True; Ffmpeg.StartInfo.RedirectStandardError = True; Ffmpeg.StartInfo.CreateNoWindow = True; Ffmpeg.start (); Ffmpeg.WaitForExit (); Ffmpeg.Close (); } Public Zero GetThumbnail (string video, string jpg, string valikana) {if (velicina == null) velicina = "640x480"; Exec (video, "-SS 00:00:06" + velicina, jpg); }} FFMPEG f = new FFMPEG (); F.GetThumbnail (Server.MapPath ("~ / Upload /" + Unique), Server.mappath ("~ / thumbnail /" + Exclusive. Remove (unique. Indexoff (".")) "" .jpg ")," 1200x223 ");  

I think you are removing 640x480 thumbnails, and velicina is the specified parameter Resolution based on partial code posted by In this case, you have a ffmpeg syntax error and you can change the GetThumbnail function as below to try:

  Public Zero GetThumbnail (string video, string jpg, string velicina) {If (velicina = = null) velicina = "640x480"; Exec (video, "-s 00:00:06 -s" + velicina, jpg); }   

Specifically, the ffmpeg resolution for the production tells. Try that it works.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -