If FFmpeg operation fail then show error output window

This commit is contained in:
Jaex 2020-04-07 03:09:44 +03:00
parent 41ad4808ba
commit 0daddf2049
3 changed files with 2 additions and 1 deletions

View file

@ -50,6 +50,7 @@ public VideoThumbnailer(string mediaPath, string ffmpegPath, VideoThumbnailOptio
using (FFmpegCLIManager ffmpeg = new FFmpegCLIManager(FFmpegPath))
{
ffmpeg.ShowError = true;
VideoInfo = ffmpeg.GetVideoInfo(MediaPath);
}
}

View file

@ -41,7 +41,6 @@ public class FFmpegOptions
public string UserArgs { get; set; } = "";
public bool UseCustomCommands { get; set; } = false;
public string CustomCommands { get; set; } = "";
public bool ShowError { get; set; } = true;
// Video
public FFmpegPreset x264_Preset { get; set; } = FFmpegPreset.ultrafast;

View file

@ -123,6 +123,7 @@ public ScreenRecorder(ScreenRecordOutput outputType, ScreencastOptions options,
case ScreenRecordOutput.FFmpeg:
Helpers.CreateDirectoryFromFilePath(Options.OutputPath);
ffmpeg = new FFmpegCLIManager(Options.FFmpeg.FFmpegPath);
ffmpeg.ShowError = true;
ffmpeg.EncodeStarted += OnRecordingStarted;
ffmpeg.EncodeProgressChanged += OnEncodingProgressChanged;
break;