From c21bb43e6b86e021bd6fbc0bbc941ec37ed809b1 Mon Sep 17 00:00:00 2001 From: Jaex Date: Mon, 12 May 2014 14:15:17 +0300 Subject: [PATCH] Running ffmpeg test in cmd.exe so it won't close automatically --- ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs index c32927447..e4c8c09bd 100644 --- a/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs +++ b/ScreenCaptureLib/Screencast/FFmpegOptionsForm.cs @@ -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;