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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user