Merge pull request #7395 from thornbill/reference-framerate
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user