string Arguments = @"-ss " + (int)starttime + " -i \"" + InputFileUrl+"\"" + @" -y -vf scale=" + Width + ":" + Height + " \"" + OutputFileUrl + "\""; ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = @"ffmpeg.exe"; psi.CreateNoWindow = true; psi.UseShellExecute = false; psi.Arguments = Arguments; using (Process prc_createImage=new Process()) { prc_createImage.StartInfo = psi; prc_createImage.Start(); prc_createImage.PriorityClass = ProcessPriorityClass.High; prc_createImage.WaitForExit(5000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)