diff --git a/TwitchDownloaderCore/ChatRenderer.cs b/TwitchDownloaderCore/ChatRenderer.cs index e5cc2e75..298f3a99 100644 --- a/TwitchDownloaderCore/ChatRenderer.cs +++ b/TwitchDownloaderCore/ChatRenderer.cs @@ -612,7 +612,7 @@ public static SKBitmap DrawMessage(SKBitmap sectionImage, List imageLi } } } - else if (new StringInfo(output).LengthInTextElements < output.Length) + else if (new StringInfo(output).LengthInTextElements < output.Length || !messageFont.ContainsGlyphs(output)) { SKPaint renderFont = messageFont; List charList = new List(output.ToArray()); @@ -624,7 +624,7 @@ public static SKBitmap DrawMessage(SKBitmap sectionImage, List imageLi for (int j = 0; j < charList.Count; j++) { - if (new StringInfo(charList[j].ToString()).LengthInTextElements == 0) + if (new StringInfo(charList[j].ToString()).LengthInTextElements == 0 || !renderFont.ContainsGlyphs(charList[j].ToString())) { if (messageBuffer != "") sectionImage = DrawText(sectionImage, messageBuffer, messageFont, imageList, renderOptions, currentGifEmotes, canvasSize, ref drawPos, true, default_x); diff --git a/TwitchDownloaderCore/VideoDownloader.cs b/TwitchDownloaderCore/VideoDownloader.cs index c015888c..56962fa8 100644 --- a/TwitchDownloaderCore/VideoDownloader.cs +++ b/TwitchDownloaderCore/VideoDownloader.cs @@ -214,7 +214,7 @@ await Task.Run(() => StartInfo = { FileName = Path.GetFullPath(downloadOptions.FfmpegPath), - Arguments = String.Format("-y -avoid_negative_ts make_zero " + (downloadOptions.CropBeginning ? "-ss {1} " : "") + "-i \"{0}\" -analyzeduration {2} -probesize {2} " + (downloadOptions.CropEnding ? "-t {3} " : "") + "-c:v copy \"{4}\"", Path.Combine(downloadFolder, "output.ts"), (seekTime - startOffset).ToString(), Int32.MaxValue, seekDuration.ToString(), Path.GetFullPath(downloadOptions.Filename)), + Arguments = String.Format("-y -avoid_negative_ts make_zero -i \"{0}\" -analyzeduration {2} -probesize {2} -c:v copy \"{4}\"", Path.Combine(downloadFolder, "output.ts"), (seekTime - startOffset).ToString(), Int32.MaxValue, seekDuration.ToString(), Path.GetFullPath(downloadOptions.Filename)), UseShellExecute = false, CreateNoWindow = true, RedirectStandardInput = false,