Running ffmpeg test in cmd.exe so it won't close automatically

This commit is contained in:
Jaex 2014-05-12 14:15:17 +03:00
parent b9af679c30
commit c21bb43e6b

View file

@ -192,8 +192,8 @@ private void btnTest_Click(object sender, EventArgs e)
{
using (Process process = new Process())
{
ProcessStartInfo psi = new ProcessStartInfo(Options.FFmpeg.CLIPath);
psi.Arguments = Options.GetFFmpegArgs();
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
psi.Arguments = "/k ffmpeg " + Options.GetFFmpegArgs();
psi.WorkingDirectory = Path.GetDirectoryName(Options.FFmpeg.CLIPath);
process.StartInfo = psi;