mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Added hide_banner to all FFmpeg args
This commit is contained in:
parent
4fe5120a7b
commit
5b7ca3e130
2 changed files with 3 additions and 3 deletions
|
@ -184,7 +184,7 @@ public VideoInfo GetVideoInfo(string videoPath)
|
||||||
VideoInfo videoInfo = new VideoInfo();
|
VideoInfo videoInfo = new VideoInfo();
|
||||||
videoInfo.FilePath = videoPath;
|
videoInfo.FilePath = videoPath;
|
||||||
|
|
||||||
Run($"-i \"{videoPath}\" -hide_banner");
|
Run($"-hide_banner -i \"{videoPath}\"");
|
||||||
string output = Output.ToString();
|
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",
|
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();
|
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 output = Output.ToString();
|
||||||
string[] lines = output.Lines();
|
string[] lines = output.Lines();
|
||||||
|
|
|
@ -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#palettegen-1
|
||||||
// https://ffmpeg.org/ffmpeg-filters.html#paletteuse
|
// 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}" +
|
$"[0:v][palette]paletteuse=dither={Options.FFmpeg.GIFDither}" +
|
||||||
$"{(Options.FFmpeg.GIFDither == FFmpegPaletteUseDither.bayer ? ":bayer_scale=" + Options.FFmpeg.GIFBayerScale : "")}\"" +
|
$"{(Options.FFmpeg.GIFDither == FFmpegPaletteUseDither.bayer ? ":bayer_scale=" + Options.FFmpeg.GIFBayerScale : "")}\"" +
|
||||||
$" -y \"{output}\"");
|
$" -y \"{output}\"");
|
||||||
|
|
Loading…
Reference in a new issue