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

add description for remux

This commit is contained in:
nyanmisaka 2020-11-17 13:01:31 +08:00
parent 12f0da931b
commit daff76354b
4 changed files with 58 additions and 9 deletions

View file

@ -371,6 +371,17 @@ import 'css!./playerstats';
const session = responses[1]; const session = responses[1];
const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session); const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session);
let localizedDisplayMethod = displayPlayMethod;
if (displayPlayMethod === 'DirectPlay') {
localizedDisplayMethod = globalize.translate('DirectPlaying');
} else if (displayPlayMethod === 'Remux') {
localizedDisplayMethod = globalize.translate('Remuxing');
} else if (displayPlayMethod === 'DirectStream') {
localizedDisplayMethod = globalize.translate('DirectStreaming');
} else if (displayPlayMethod === 'Transcode') {
localizedDisplayMethod = globalize.translate('Transcoding');
}
const baseCategory = { const baseCategory = {
stats: [], stats: [],
@ -401,6 +412,13 @@ import 'css!./playerstats';
categories.push(category); categories.push(category);
} }
let localizedTranscodingInfo = globalize.translate('LabelTranscodingInfo');
if (displayPlayMethod === 'Remux') {
localizedTranscodingInfo = globalize.translate('LabelRemuxingInfo');
} else if (displayPlayMethod === 'DirectStream') {
localizedTranscodingInfo = globalize.translate('LabelDirectStreamingInfo');
}
if (session.TranscodingInfo) { if (session.TranscodingInfo) {
categories.push({ categories.push({
stats: getTranscodingStats(session, player, displayPlayMethod), stats: getTranscodingStats(session, player, displayPlayMethod),

View file

@ -27,7 +27,12 @@ import 'emby-itemscontainer';
const text = []; const text = [];
const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session); const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session);
if (displayPlayMethod === 'DirectStream') { if (displayPlayMethod === 'Remux') {
title = globalize.translate('Remuxing');
text.push(globalize.translate('RemuxHelp1'));
text.push('<br/>');
text.push(globalize.translate('RemuxHelp2'));
} else if (displayPlayMethod === 'DirectStream') {
title = globalize.translate('DirectStreaming'); title = globalize.translate('DirectStreaming');
text.push(globalize.translate('DirectStreamHelp1')); text.push(globalize.translate('DirectStreamHelp1'));
text.push('<br/>'); text.push('<br/>');
@ -395,7 +400,11 @@ import 'emby-itemscontainer';
let showTranscodingInfo = false; let showTranscodingInfo = false;
const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session); const displayPlayMethod = playMethodHelper.getDisplayPlayMethod(session);
if (displayPlayMethod === 'DirectStream') { if (displayPlayMethod === 'DirectPlay') {
html += globalize.translate('DirectPlaying');
} else if (displayPlayMethod === 'Remux') {
html += globalize.translate('Remuxing');
} else if (displayPlayMethod === 'DirectStream') {
html += globalize.translate('DirectStreaming'); html += globalize.translate('DirectStreaming');
} else if (displayPlayMethod === 'Transcode') { } else if (displayPlayMethod === 'Transcode') {
html += globalize.translate('Transcoding'); html += globalize.translate('Transcoding');
@ -435,7 +444,7 @@ import 'emby-itemscontainer';
} }
if (line.length) { if (line.length) {
html += ' - ' + line.join(' '); html += '<br/><br/>' + line.join(' ');
} }
} }

View file

@ -164,8 +164,8 @@
"DetectingDevices": "Detecting devices", "DetectingDevices": "Detecting devices",
"DeviceAccessHelp": "This only applies to devices that can be uniquely identified and will not prevent browser access. Filtering user device access will prevent them from using new devices until they've been approved here.", "DeviceAccessHelp": "This only applies to devices that can be uniquely identified and will not prevent browser access. Filtering user device access will prevent them from using new devices until they've been approved here.",
"DirectPlaying": "Direct playing", "DirectPlaying": "Direct playing",
"DirectStreamHelp1": "The media is compatible with the device regarding resolution and media type (H.264, AC3, etc), but in an incompatible file container (mkv, avi, wmv, etc). The video will be re-packaged on the fly before being sent to the device.", "DirectStreamHelp1": "The media is in an incompatible file container (mkv, avi, wmv, etc) and the video stream is compatible with the device, but has an incompatible audio format (DTS, TRUEHD, etc) or audio channels (5.1, 7.1, etc). The video stream will be re-packaged losslessly on the fly before being sent to the device. Only audio stream will be transcoded.",
"DirectStreamHelp2": "Direct stream uses very little processing power with a minimal loss in video quality.", "DirectStreamHelp2": "Power consumed by direct streaming usually depends on the audio profile. Only the video stream is lossless.",
"DirectStreaming": "Direct streaming", "DirectStreaming": "Direct streaming",
"Director": "Director", "Director": "Director",
"Directors": "Directors", "Directors": "Directors",
@ -1430,5 +1430,16 @@
"SubtitleVerticalPositionHelp": "Line number where text appears. Positive numbers indicate top down. Negative numbers indicate bottom up.", "SubtitleVerticalPositionHelp": "Line number where text appears. Positive numbers indicate top down. Negative numbers indicate bottom up.",
"Preview": "Preview", "Preview": "Preview",
"LabelMaxMuxingQueueSize": "Max muxing queue size:", "LabelMaxMuxingQueueSize": "Max muxing queue size:",
"LabelMaxMuxingQueueSizeHelp": "Maximum number of packets that can be buffered while waiting for all streams to initialize. Try to increase it if you still encounter \"Too many packets buffered for output stream\" error in ffmpeg logs. The recommended value is 2048." "LabelMaxMuxingQueueSizeHelp": "Maximum number of packets that can be buffered while waiting for all streams to initialize. Try to increase it if you still encounter \"Too many packets buffered for output stream\" error in ffmpeg logs. The recommended value is 2048.",
"Remuxing": "Remuxing",
"RemuxHelp1": "The media is in an incompatible file container (mkv, avi, wmv, etc). But both video stream and audio stream are compatible with the device. The media will be re-packaged losslessly on the fly before being sent to the device.",
"RemuxHelp2": "Remux uses very little processing power with a completely lossless media quality.",
"LabelPlaybackInfo": "Playback Info",
"LabelAudioInfo": "Audio Info",
"LabelVideoInfo": "Video Info",
"LabelTranscodingInfo": "Transcoding Info",
"LabelDirectStreamingInfo": "Direct Streaming Info",
"LabelRemuxingInfo": "Remuxing Info",
"LabelOriginalMediaInfo": "Original Media Info",
"LabelSyncPlayInfo": "SyncPlay Info"
} }

View file

@ -128,7 +128,7 @@
"DetectingDevices": "正在侦测设备", "DetectingDevices": "正在侦测设备",
"DeviceAccessHelp": "这仅适用于可以唯一标识的设备,而不会阻止浏览器访问。限制用户设备访问会阻止使用未在此被批准的新增设备。", "DeviceAccessHelp": "这仅适用于可以唯一标识的设备,而不会阻止浏览器访问。限制用户设备访问会阻止使用未在此被批准的新增设备。",
"DirectPlaying": "直接播放", "DirectPlaying": "直接播放",
"DirectStreamHelp2": "直接串流只占用占用很少的CPU并且视频的品质只会有极小程度的损失。", "DirectStreamHelp2": "直接串流占用的 CPU 资源通常取决于音频规格。只有视频流是无损的。",
"DirectStreaming": "直接串流", "DirectStreaming": "直接串流",
"Director": "导演", "Director": "导演",
"Disc": "光盘", "Disc": "光盘",
@ -1142,7 +1142,7 @@
"ErrorDeletingItem": "从服务器删除项目时出错。请检查Jellyfin是否拥有对媒体目录的写权限然后重试。", "ErrorDeletingItem": "从服务器删除项目时出错。请检查Jellyfin是否拥有对媒体目录的写权限然后重试。",
"GroupBySeries": "按系列分组", "GroupBySeries": "按系列分组",
"HeaderApp": "应用程序", "HeaderApp": "应用程序",
"DirectStreamHelp1": "该媒体文件的分辨率和编码H.264、AC3 等)与您的设备兼容,但文件格式(.mkv、.avi、.wmv 等)不受支持。因此,视频在串流至您的设备之前将会被即时封装为另一种格式。", "DirectStreamHelp1": "该媒体的载体mkv、avi、wmv 等不被设备支持视频流在与您的设备兼容但是音频流有着不被设备支持的媒体格式DTS、TRUEHD 等或声道数量5.1、7.1 等)。因此视频流在串流至您的设备之前将被即时无损地再封装。只有音频流将被转码。",
"HeaderAppearsOn": "同时出现于", "HeaderAppearsOn": "同时出现于",
"HeaderCancelSeries": "取消系列", "HeaderCancelSeries": "取消系列",
"HeaderKeepRecording": "继续录制", "HeaderKeepRecording": "继续录制",
@ -1431,5 +1431,16 @@
"OptionAllowContentDownload": "允许媒体下载", "OptionAllowContentDownload": "允许媒体下载",
"HeaderDeleteDevices": "删除所有设备", "HeaderDeleteDevices": "删除所有设备",
"DeleteDevicesConfirmation": "您确定要删除所有设备吗?所有其他会话将被注销。用户下次登录时,设备会重新出现。", "DeleteDevicesConfirmation": "您确定要删除所有设备吗?所有其他会话将被注销。用户下次登录时,设备会重新出现。",
"DeleteAll": "删除全部" "DeleteAll": "删除全部",
"Remuxing": "转封装",
"RemuxHelp1": "该媒体的载体mkv、avi、wmv 等)不被设备支持,但视频流和音频流均与您的设备兼容,因此媒体在串流至您的设备之前将被即时无损地再封装。",
"RemuxHelp2": "转封装只占用很少的 CPU 资源并且媒体将被完全无损地传输。",
"LabelPlaybackInfo": "播放信息",
"LabelAudioInfo": "音频信息",
"LabelVideoInfo": "视频信息",
"LabelTranscodingInfo": "转码信息",
"LabelDirectStreamingInfo": "直接串流信息",
"LabelRemuxingInfo": "转封装信息",
"LabelOriginalMediaInfo": "媒体源信息",
"LabelSyncPlayInfo": "同步播放信息"
} }