Skip to content

Commit

Permalink
Remove verbose FFmpeg option
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Apr 6, 2024
1 parent f843c2c commit 9e7e43a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
3 changes: 0 additions & 3 deletions TwitchDownloaderCLI/Modes/Arguments/ChatRenderArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ internal sealed class ChatRenderArgs : TwitchDownloaderArgs
[Option("temp-path", Default = "", HelpText = "Path to temporary folder to use for cache.")]
public string TempFolder { get; set; }

[Option("verbose-ffmpeg", Default = false, HelpText = "Prints every message from FFmpeg.")]
public bool LogFfmpegOutput { get; set; }

[Option("skip-drive-waiting", Default = false, HelpText = "Do not wait for the output drive to transmit a ready signal before writing the next frame. Waiting is usually only necessary on low-end USB drives.")]
public bool SkipDriveWaiting { get; set; }

Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCLI/Modes/RenderChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ private static ChatRenderOptions GetRenderOptions(ChatRenderArgs inputOptions, I
"system" or "none" => EmojiVendor.None,
_ => throw new NotSupportedException("Invalid emoji vendor. Valid values are: 'twitter' / 'twemoji', and 'google' / 'notocolor'")
},
LogFfmpegOutput = inputOptions.LogFfmpegOutput,
SkipDriveWaiting = inputOptions.SkipDriveWaiting,
EmoteScale = inputOptions.ScaleEmote,
BadgeScale = inputOptions.ScaleBadge,
Expand Down
13 changes: 5 additions & 8 deletions TwitchDownloaderCore/ChatRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,13 @@ private FfmpegProcess GetFfmpegProcess(int partNumber, bool isMask)
SavePath = savePath
};

if (renderOptions.LogFfmpegOutput && _progress != null)
process.ErrorDataReceived += (_, e) =>
{
process.ErrorDataReceived += (_, e) =>
if (e.Data != null)
{
if (e.Data != null)
{
_progress.LogFfmpeg(e.Data);
}
};
}
_progress.LogFfmpeg(e.Data);
}
};

process.Start();
process.BeginErrorReadLine();
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/Options/ChatRenderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public string MaskFile
public int AccentStrokeWidth => (int)(8 * ReferenceScale * AccentStrokeScale);
public int AccentIndentWidth => (int)(32 * ReferenceScale * AccentIndentScale);
public bool Offline { get; set; }
public bool LogFfmpegOutput { get; set; } = false;
public bool BlockArtPreWrap { get; set; } = false;
public double BlockArtPreWrapWidth { get; set; }
public float BlockArtCharWidth { get; set; }
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public ChatRenderOptions GetOptions(string filename)
Offline = checkOffline.IsChecked.GetValueOrDefault(),
AllowUnlistedEmotes = true,
DisperseCommentOffsets = checkDispersion.IsChecked.GetValueOrDefault(),
LogFfmpegOutput = true
};
if (RadioEmojiNotoColor.IsChecked == true)
options.EmojiVendor = EmojiVendor.GoogleNotoColor;
Expand Down

0 comments on commit 9e7e43a

Please sign in to comment.