From 570fba6e3ded429ab6123e2c53a279e0ab3f429c Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 23 Aug 2022 14:48:38 +0800 Subject: [PATCH] Update MergeUtil.cs --- src/N_m3u8DL-RE/Util/MergeUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/Util/MergeUtil.cs b/src/N_m3u8DL-RE/Util/MergeUtil.cs index 41bb9c5..1dcf9e5 100644 --- a/src/N_m3u8DL-RE/Util/MergeUtil.cs +++ b/src/N_m3u8DL-RE/Util/MergeUtil.cs @@ -106,8 +106,8 @@ namespace N_m3u8DL_RE.Util + (writeDate ? " -metadata date=\"" + dateString + "\"" : "") + " -metadata encoding_tool=\"" + encodingTool + "\" -metadata title=\"" + title + "\" -metadata copyright=\"" + copyright + "\" -metadata comment=\"" + comment + - $"\" -metadata:s:a:{(string.IsNullOrEmpty(ddpAudio) ? "0" : "1")} handler_name=\"" + audioName + $"\" -metadata:s:a:{(string.IsNullOrEmpty(ddpAudio) ? "0" : "1")} handler=\"" + audioName + "\" "); - command.Append(string.IsNullOrEmpty(ddpAudio) ? "" : " -metadata:s:a:0 handler_name=\"DD+\" -metadata:s:a:0 handler=\"DD+\" "); + $"\" -metadata:s:a:{(string.IsNullOrEmpty(ddpAudio) ? "0" : "1")} title=\"" + audioName + $"\" -metadata:s:a:{(string.IsNullOrEmpty(ddpAudio) ? "0" : "1")} handler=\"" + audioName + "\" "); + command.Append(string.IsNullOrEmpty(ddpAudio) ? "" : " -metadata:s:a:0 title=\"DD+\" -metadata:s:a:0 handler=\"DD+\" "); if (fastStart) command.Append("-movflags +faststart"); command.Append(" -c copy -y " + (useAACFilter ? "-bsf:a aac_adtstoasc" : "") + " \"" + outputPath + ".mp4\"");