diff --git a/TwitchDownloaderCore/Tools/FfmpegConcatList.cs b/TwitchDownloaderCore/Tools/FfmpegConcatList.cs index c3ea6c5b..38027745 100644 --- a/TwitchDownloaderCore/Tools/FfmpegConcatList.cs +++ b/TwitchDownloaderCore/Tools/FfmpegConcatList.cs @@ -7,7 +7,7 @@ namespace TwitchDownloaderCore.Tools { - // https://www.ffmpeg.org/ffmpeg-formats.html#toc-concat-1 + // https://www.ffmpeg.org/ffmpeg-formats.html#concat-1 public static class FfmpegConcatList { private const string LINE_FEED = "\u000A"; @@ -27,6 +27,13 @@ public static async Task SerializeAsync(string filePath, M3U8 playlist, Range vi await sw.WriteAsync(DownloadTools.RemoveQueryString(stream.Path)); await sw.WriteLineAsync('\''); + await sw.WriteLineAsync("stream"); + await sw.WriteLineAsync("exact_stream_id 0x100"); // Audio + await sw.WriteLineAsync("stream"); + await sw.WriteLineAsync("exact_stream_id 0x101"); // Video + await sw.WriteLineAsync("stream"); + await sw.WriteLineAsync("exact_stream_id 0x102?"); // Subtitle + await sw.WriteAsync("duration "); await sw.WriteLineAsync(stream.PartInfo.Duration.ToString(CultureInfo.InvariantCulture)); }