-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#6198 Fix missing transcoding speed info #6199
base: master
Are you sure you want to change the base?
Conversation
Cloudflare Pages deployment
|
Quality Gate passedIssues Measures |
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use videoStream.ReferenceFrameRate || videoStream.RealFrameRate
?
See also jellyfin/jellyfin#12603
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I have mostly only looked at jellybin-web, not at jellyfin-server.
I assume that ReferenceFrameRate could only possibly exist with newer Jellyfin-Server releases. Otherwise, if you have a newer web but older server then nothing would change.
I guess it depends on if web releases should work with older server releases or not. If yes then maybe it is needed to do
videoStream.ReferenceFrameRate || videoStream.AverageFrameRate || videoStream.RealFrameRate
But if older server releases dont matter, then I currently see no way how ReferenceFrameRate could ever be null, in that case maybe even const originalFramerate = videoStream.ReferenceFrameRate
is enough 🤔
Though videoStream.ReferenceFrameRate || videoStream.RealFrameRate
is probably also a healthy middleground. Something that ensures backwards compatibility (without fixing the bug) but something that also works for the future 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to support one "major" version back when possible.
I noticed that the MediaInfoItem
jellyfin-web/src/components/itemMediaInfo/itemMediaInfo.js
Lines 131 to 133 in 39ec804
stream.AverageFrameRate || stream.RealFrameRate
. However in the Playback Info Widget onlyvideoStream.AverageFrameRate
is used. This results in the Playback Info Widget not showing how much faster the transcoding process is compared to the original frames per seconds.Changes
To also use the RealFrameRate in
getDisplayTranscodeFps
, in case the AverageFrameRate is null.Issues
#6198