The Free Software Media System - Server Backend & API
Only streamCopy videos containing rotation data in fMP4
nyanmisaka95b81ff54a98
diff --git a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs b/Jellyfin.Api/Helpers/DynamicHlsHelper.csindex f8d89119a4..e5e4356f8d 100644--- a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs+++ b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs@@ -190,6 +190,17 @@ public class DynamicHlsHelperAddSubtitles(state, subtitleStreams, builder, _httpContextAccessor.HttpContext.User);}+ // Video rotation metadata is only supported in fMP4 remuxing+ if (state.VideoStream is not null+ && state.VideoRequest is not null+ && (state.VideoStream?.Rotation ?? 0) != 0+ && EncodingHelper.IsCopyCodec(state.OutputVideoCodec)+ && !string.IsNullOrWhiteSpace(state.Request.SegmentContainer)+ && !string.Equals(state.Request.SegmentContainer, "mp4", StringComparison.OrdinalIgnoreCase))+ {+ playlistUrl += "&AllowVideoStreamCopy=false";+ }+var basicPlaylist = AppendPlaylist(builder, state, playlistUrl, totalBitrate, subtitleGroup);if (state.VideoStream is not null && state.VideoRequest is not null)