Added hide_banner to all FFmpeg args

This commit is contained in:
Jaex 2022-01-08 14:18:29 +03:00
parent 4fe5120a7b
commit 5b7ca3e130
2 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ public VideoInfo GetVideoInfo(string videoPath)
VideoInfo videoInfo = new VideoInfo();
videoInfo.FilePath = videoPath;
Run($"-i \"{videoPath}\" -hide_banner");
Run($"-hide_banner -i \"{videoPath}\"");
string output = Output.ToString();
Match matchInput = Regex.Match(output, @"Duration: (?<Duration>\d{2}:\d{2}:\d{2}\.\d{2}),.+?start: (?<Start>\d+\.\d+),.+?bitrate: (?<Bitrate>\d+) kb/s",
@ -226,7 +226,7 @@ public DirectShowDevices GetDirectShowDevices()
{
DirectShowDevices devices = new DirectShowDevices();
Run("-list_devices true -f dshow -i dummy");
Run("-hide_banner -list_devices true -f dshow -i dummy");
string output = Output.ToString();
string[] lines = output.Lines();

View file

@ -264,7 +264,7 @@ public bool FFmpegEncodeAsGIF(string input, string output)
// https://ffmpeg.org/ffmpeg-filters.html#palettegen-1
// https://ffmpeg.org/ffmpeg-filters.html#paletteuse
return ffmpeg.Run($"-i \"{input}\" -lavfi \"palettegen=stats_mode={Options.FFmpeg.GIFStatsMode}[palette]," +
return ffmpeg.Run($"-hide_banner -i \"{input}\" -lavfi \"palettegen=stats_mode={Options.FFmpeg.GIFStatsMode}[palette]," +
$"[0:v][palette]paletteuse=dither={Options.FFmpeg.GIFDither}" +
$"{(Options.FFmpeg.GIFDither == FFmpegPaletteUseDither.bayer ? ":bayer_scale=" + Options.FFmpeg.GIFBayerScale : "")}\"" +
$" -y \"{output}\"");