Updated yt-dlp stream capture to ask it to remux to mp4 as it uses mkv for PeerTube

This commit is contained in:
barelyprofessional
2025-08-21 03:44:51 -05:00
parent 4c8a7d5dbb
commit 8ae98322a2

View File

@@ -107,7 +107,7 @@ public class StreamCapture(string streamUrl, StreamCaptureMethods captureMethod,
captureLine = $"{_settings[BuiltIn.Keys.CaptureYtDlpBinaryPath].Value} -o \"{_settings[BuiltIn.Keys.CaptureYtDlpOutputFormat].Value}\" " +
$"--user-agent \"{_settings[BuiltIn.Keys.CaptureYtDlpUserAgent].Value}\" " +
$"--cookies-from-browser {_settings[BuiltIn.Keys.CaptureYtDlpCookiesFromBrowser].Value} " +
$"--write-info-json --wait-for-video 15 {streamUrl}";
$"--write-info-json --wait-for-video 15 --remux-video mp4 {streamUrl}";
}
else if (captureMethod == StreamCaptureMethods.Streamlink)
{