diff --git a/src/LiveRecorder.Infrastructure/Services/FfmpegService.Utils.cs b/src/LiveRecorder.Infrastructure/Services/FfmpegService.Utils.cs index 8c874f8..f32b60c 100644 --- a/src/LiveRecorder.Infrastructure/Services/FfmpegService.Utils.cs +++ b/src/LiveRecorder.Infrastructure/Services/FfmpegService.Utils.cs @@ -660,7 +660,8 @@ public sealed partial class FfmpegService var useIntermediateTransportStream = ShouldUseIntermediateTransportStream(outputFilePath, outputFormat, saveMode); var effectiveStreamUrl = streamUrl; - if (IsHttpInput(streamUrl)) + var isPipeInput = IsHttpInput(streamUrl); + if (isPipeInput) { // When the input is HTTP, use pipe:0 so that curl handles the HTTP connection. // This avoids FFmpeg's built-in HTTP handler which has a hard-coded 4096-byte @@ -671,6 +672,7 @@ public sealed partial class FfmpegService if (enableReconnect && inputOptionProfile == FfmpegInputOptionProfile.Baseline && + !isPipeInput && ShouldEnableReconnect(streamUrl, selectedProtocol)) { arguments.AddRange(