From c57a4c4681f355a13e2a7288a64d240bda30acb9 Mon Sep 17 00:00:00 2001 From: Marissa Date: Mon, 14 Oct 2024 14:37:29 +0200 Subject: [PATCH 1/2] Fix missing transcoding speed info https://github.com/jellyfin/jellyfin-web/issues/6198 --- src/components/playerstats/playerstats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playerstats/playerstats.js b/src/components/playerstats/playerstats.js index 4b130d00c92..758766cef0b 100644 --- a/src/components/playerstats/playerstats.js +++ b/src/components/playerstats/playerstats.js @@ -200,7 +200,7 @@ function getDisplayTranscodeFps(session, player) { const mediaSource = playbackManager.currentMediaSource(player) || {}; const videoStream = (mediaSource.MediaStreams || []).find((s) => s.Type === 'Video') || {}; - const originalFramerate = videoStream.AverageFrameRate; + const originalFramerate = videoStream.AverageFrameRate || videoStream.RealFrameRate; const transcodeFramerate = session.TranscodingInfo.Framerate; if (!originalFramerate) { From 97a5762143b8b2fd728382c718cb4bd5255045bf Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 1 Nov 2024 12:41:37 -0400 Subject: [PATCH 2/2] Use ReferenceFrameRate by default --- src/components/playerstats/playerstats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/playerstats/playerstats.js b/src/components/playerstats/playerstats.js index 758766cef0b..663c1932edf 100644 --- a/src/components/playerstats/playerstats.js +++ b/src/components/playerstats/playerstats.js @@ -200,7 +200,7 @@ function getDisplayTranscodeFps(session, player) { const mediaSource = playbackManager.currentMediaSource(player) || {}; const videoStream = (mediaSource.MediaStreams || []).find((s) => s.Type === 'Video') || {}; - const originalFramerate = videoStream.AverageFrameRate || videoStream.RealFrameRate; + const originalFramerate = videoStream.ReferenceFrameRate || videoStream.RealFrameRate; const transcodeFramerate = session.TranscodingInfo.Framerate; if (!originalFramerate) {