Add debug logging for downloads folder and timestamp fixes

- Log SegmentContainer, Context, TranscodingType in StreamingHelpers
- Log TranscodingType, CopyTimestamps, OutputContainer in EncodingHelper
- Debug why downloads not using /downloads/ folder
- Debug why timestamps not being normalized
This commit is contained in:
mani
2026-01-08 02:53:40 +01:00
parent 02318463dd
commit 39adf0e1ff
2 changed files with 15 additions and 0 deletions

View File

@@ -7505,11 +7505,17 @@ namespace MediaBrowser.Controller.MediaEncoding
// Add timestamp normalization for progressive downloads
var timestampArgs = string.Empty;
Console.WriteLine($"[EncodingHelper] TranscodingType: {state.TranscodingType}, CopyTimestamps: {state.BaseRequest.CopyTimestamps}, OutputContainer: {state.OutputContainer}");
if (state.TranscodingType == TranscodingJobType.Progressive && !state.BaseRequest.CopyTimestamps)
{
// For progressive downloads without copyTimestamps, ensure timestamps start at 0
// This fixes seeking issues in strict players like mpv, iina, and infuse
timestampArgs = " -avoid_negative_ts make_zero -start_at_zero";
Console.WriteLine($"[EncodingHelper] Adding timestamp normalization: {timestampArgs}");
}
else
{
Console.WriteLine($"[EncodingHelper] NOT adding timestamp normalization - condition not met");
}
return string.Format(