diff --git a/TwitchDownloaderCore/Tools/FfmpegConcatList.cs b/TwitchDownloaderCore/Tools/FfmpegConcatList.cs index 374c6dea..c3ea6c5b 100644 --- a/TwitchDownloaderCore/Tools/FfmpegConcatList.cs +++ b/TwitchDownloaderCore/Tools/FfmpegConcatList.cs @@ -24,7 +24,7 @@ public static async Task SerializeAsync(string filePath, M3U8 playlist, Range vi cancellationToken.ThrowIfCancellationRequested(); await sw.WriteAsync("file '"); - await sw.WriteAsync(stream.Path); + await sw.WriteAsync(DownloadTools.RemoveQueryString(stream.Path)); await sw.WriteLineAsync('\''); await sw.WriteAsync("duration "); diff --git a/TwitchDownloaderCore/VideoDownloader.cs b/TwitchDownloaderCore/VideoDownloader.cs index acc733db..fbb92d7d 100644 --- a/TwitchDownloaderCore/VideoDownloader.cs +++ b/TwitchDownloaderCore/VideoDownloader.cs @@ -415,6 +415,7 @@ private int RunFfmpegVideoCopy(string tempFolder, FileInfo outputFile, string co process.BeginErrorReadLine(); using var logWriter = File.AppendText(Path.Combine(tempFolder, "ffmpegLog.txt")); + logWriter.AutoFlush = true; do // We cannot handle logging inside the ErrorDataReceived lambda because more than 1 can come in at once and cause a race condition. lay295#598 { Thread.Sleep(100);