Merge pull request #7395 from thornbill/reference-framerate

This commit is contained in:
Bill Thornton
2025-12-06 18:13:03 -05:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -133,8 +133,8 @@ function getMediaSourceHtml(user, item, version) {
}
attributes.push(createAttribute(globalize.translate('MediaInfoInterlaced'), (stream.IsInterlaced ? 'Yes' : 'No')));
}
if ((stream.AverageFrameRate || stream.RealFrameRate) && stream.Type === 'Video') {
attributes.push(createAttribute(globalize.translate('MediaInfoFramerate'), (stream.AverageFrameRate || stream.RealFrameRate)));
if (stream.ReferenceFrameRate && stream.Type === 'Video') {
attributes.push(createAttribute(globalize.translate('MediaInfoFramerate'), stream.ReferenceFrameRate));
}
if (stream.ChannelLayout) {
attributes.push(createAttribute(globalize.translate('MediaInfoLayout'), stream.ChannelLayout));

View File

@@ -204,7 +204,7 @@ function getDisplayTranscodeFps(session, player) {
const mediaSource = playbackManager.currentMediaSource(player) || {};
const videoStream = (mediaSource.MediaStreams || []).find((s) => s.Type === 'Video') || {};
const originalFramerate = videoStream.ReferenceFrameRate || videoStream.RealFrameRate;
const originalFramerate = videoStream.ReferenceFrameRate;
const transcodeFramerate = session.TranscodingInfo.Framerate;
if (!originalFramerate) {

View File

@@ -1309,7 +1309,7 @@ export class HtmlVideoPlayer {
dropAllAnimations: false,
libassMemoryLimit: 40,
libassGlyphLimit: 40,
targetFps: videoStream?.ReferenceFrameRate || videoStream?.RealFrameRate || 24,
targetFps: videoStream?.ReferenceFrameRate || 24,
prescaleFactor: 0.8,
prescaleHeightLimit: 1080,
maxRenderHeight: 2160,