This commit is contained in:
nilaoda 2022-08-08 23:01:36 +08:00
parent 49fd93c34f
commit 2e6d9ec7a0
1 changed files with 1 additions and 4 deletions

View File

@ -88,9 +88,6 @@ namespace N_m3u8DL_RE.Util
case ("TS"): case ("TS"):
command.Append("\" -map 0 -c copy -y -f mpegts -bsf:v h264_mp4toannexb \"" + outputPath + ".ts\""); command.Append("\" -map 0 -c copy -y -f mpegts -bsf:v h264_mp4toannexb \"" + outputPath + ".ts\"");
break; break;
case ("VTT"):
command.Append("\" -map 0 -y \"" + outputPath + ".srt\""); //Convert To Srt
break;
case ("EAC3"): case ("EAC3"):
command.Append("\" -map 0:a -c copy -y \"" + outputPath + ".eac3\""); command.Append("\" -map 0:a -c copy -y \"" + outputPath + ".eac3\"");
break; break;
@ -112,7 +109,7 @@ namespace N_m3u8DL_RE.Util
UseShellExecute = false UseShellExecute = false
})!.WaitForExit(); })!.WaitForExit();
if (File.Exists(outputPath) && new FileInfo(outputPath).Length > 0) if (File.Exists($"{outputPath}.{muxFormat}") && new FileInfo($"{outputPath}.{muxFormat}").Length > 0)
return true; return true;
return false; return false;