mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
If FFmpeg operation fail then show error output window
This commit is contained in:
parent
41ad4808ba
commit
0daddf2049
3 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ public VideoThumbnailer(string mediaPath, string ffmpegPath, VideoThumbnailOptio
|
|||
|
||||
using (FFmpegCLIManager ffmpeg = new FFmpegCLIManager(FFmpegPath))
|
||||
{
|
||||
ffmpeg.ShowError = true;
|
||||
VideoInfo = ffmpeg.GetVideoInfo(MediaPath);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue