using (Process p = new Process()) { p.StartInfo.UseShellExecute = false; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "\\ffmpeg.exe"); p.StartInfo.Arguments = "-loop 1 -i D:\\Temp\\temp.png -c:v libx264 -t 15 -pix_fmt yuv420p -vf scale=720:480 D:\\Temp\\1.avi"; p.Start(); p.WaitForExit(); }
System.Diagnostics.Process.Start("CMD.exe", "/K D:\\Temp\\ffmpeg -loop 1 -i D:\\Temp\\temp.png -c:v libx264 -t 15 -pix_fmt yuv420p -vf scale=720:480 D:\\Temp\\1.mp4");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)