Remove too restrictive Progressive-only conditions
- Apply timestamp normalization to all transcodes, not just Progressive - Use /downloads/ folder for all full-file downloads, not just Progressive - Fixes MKV streaming issues with timestamps
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user