diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs index f1803ee40d..5407162d26 100644 --- a/Jellyfin.Api/Helpers/StreamingHelpers.cs +++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs @@ -384,13 +384,13 @@ public static class StreamingHelpers // Progressive downloads: use disk-based path (large files OK, slower cleanup) var folder = serverConfigurationManager.GetTranscodePath(); - // Check if this is a progressive download (no segments) vs HLS streaming + // Check if this is a full file download (no segments) vs HLS streaming var streamingRequest = state.BaseRequest as StreamingRequestDto; - // Progressive download: full file download with no HLS segmentation - if (streamingRequest?.SegmentContainer is null && state.TranscodingType == TranscodingJobType.Progressive) + // Full file download: no HLS segmentation + if (streamingRequest?.SegmentContainer is null) { - // Progressive download - use disk-based transcode path + // Full file download - use disk-based transcode path var diskTranscodePath = Path.Combine(folder, "downloads"); Directory.CreateDirectory(diskTranscodePath); folder = diskTranscodePath; diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index b6a00856bc..34120ec860 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -7503,10 +7503,10 @@ namespace MediaBrowser.Controller.MediaEncoding var inputModifier = GetInputModifier(state, encodingOptions, null); - // Add timestamp normalization for progressive downloads + // Add timestamp normalization to fix seeking issues // Fixes seeking issues in strict players like mpv, iina, and infuse var timestampArgs = string.Empty; - if (state.TranscodingType == TranscodingJobType.Progressive && !state.BaseRequest.CopyTimestamps) + if (!state.BaseRequest.CopyTimestamps) { timestampArgs = " -avoid_negative_ts make_zero -start_at_zero"; }