1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5992 from nyanmisaka/show-rotation-mediainfo

This commit is contained in:
Bill Thornton 2024-08-29 07:41:53 -04:00 committed by GitHub
commit 10662fc013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -194,6 +194,9 @@ function getMediaSourceHtml(user, item, version) {
if (stream.RefFrames) {
attributes.push(createAttribute(globalize.translate('MediaInfoRefFrames'), stream.RefFrames));
}
if (stream.Rotation && stream.Type === 'Video') {
attributes.push(createAttribute(globalize.translate('MediaInfoRotation'), stream.Rotation));
}
if (stream.NalLengthSize) {
attributes.push(createAttribute('NAL', stream.NalLengthSize));
}

View file

@ -202,7 +202,7 @@ function getDisplayTranscodeFps(session, player) {
return `${transcodeFramerate} fps`;
}
return `${(transcodeFramerate / originalFramerate).toFixed(2)}x (${transcodeFramerate} fps)`;
return `${transcodeFramerate} fps (${(transcodeFramerate / originalFramerate).toFixed(2)}x)`;
}
function getReadableSize(size) {

View file

@ -1028,6 +1028,7 @@
"MediaInfoProfile": "Profile",
"MediaInfoRefFrames": "Ref frames",
"MediaInfoResolution": "Resolution",
"MediaInfoRotation": "Rotation",
"MediaInfoSampleRate": "Sample rate",
"MediaInfoSize": "Size",
"MediaInfoTimestamp": "Timestamp",