Merge pull request #5992 from nyanmisaka/show-rotation-mediainfo
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1028,6 +1028,7 @@
|
||||
"MediaInfoProfile": "Profile",
|
||||
"MediaInfoRefFrames": "Ref frames",
|
||||
"MediaInfoResolution": "Resolution",
|
||||
"MediaInfoRotation": "Rotation",
|
||||
"MediaInfoSampleRate": "Sample rate",
|
||||
"MediaInfoSize": "Size",
|
||||
"MediaInfoTimestamp": "Timestamp",
|
||||
|
||||
Reference in New Issue
Block a user