expose h265 crf option

This commit is contained in:
nyanmisaka 2020-11-14 03:32:25 +08:00
parent aff83c93d2
commit 9e9ecbd677
4 changed files with 18 additions and 12 deletions

View File

@ -92,14 +92,14 @@
</label> </label>
</div> </div>
</div> </div>
</div>
<div class="checkboxListContainer"> <div class="checkboxListContainer">
<div class="checkboxList"> <div class="checkboxList">
<label> <label>
<input type="checkbox" is="emby-checkbox" id="chkAllowHevcEncoding" /> <input type="checkbox" is="emby-checkbox" id="chkAllowHevcEncoding" />
<span>${AllowHevcEncoding}</span> <span>${AllowHevcEncoding}</span>
</label> </label>
</div>
</div> </div>
</div> </div>
@ -211,11 +211,13 @@
</select> </select>
<div class="fieldDescription">${EncoderPresetHelp}</div> <div class="fieldDescription">${EncoderPresetHelp}</div>
</div> </div>
<div class="inputContainer">
<input is="emby-input" type="number" id="txtH265Crf" pattern="[0-9]*" min="0" max="51" step="1" label="${LabelH265Crf}" />
</div>
<div class="inputContainer"> <div class="inputContainer">
<input is="emby-input" type="number" id="txtH264Crf" pattern="[0-9]*" min="0" max="51" step="1" label="${LabelH264Crf}" /> <input is="emby-input" type="number" id="txtH264Crf" pattern="[0-9]*" min="0" max="51" step="1" label="${LabelH264Crf}" />
<div class="fieldDescription">${H264CrfHelp}</div> <div class="fieldDescription">${H264CrfHelp}</div>
</div> </div>
<div class="selectContainer"> <div class="selectContainer">
<select is="emby-select" id="selectDeinterlaceMethod" label="${LabelDeinterlaceMethod}"> <select is="emby-select" id="selectDeinterlaceMethod" label="${LabelDeinterlaceMethod}">
<option value="yadif">${Yadif}</option> <option value="yadif">${Yadif}</option>

View File

@ -31,6 +31,7 @@ import libraryMenu from 'libraryMenu';
page.querySelector('#txtTonemappingParam').value = config.TonemappingParam || ''; page.querySelector('#txtTonemappingParam').value = config.TonemappingParam || '';
page.querySelector('#selectEncoderPreset').value = config.EncoderPreset || ''; page.querySelector('#selectEncoderPreset').value = config.EncoderPreset || '';
page.querySelector('#txtH264Crf').value = config.H264Crf || ''; page.querySelector('#txtH264Crf').value = config.H264Crf || '';
page.querySelector('#txtH265Crf').value = config.H265Crf || '';
page.querySelector('#selectDeinterlaceMethod').value = config.DeinterlaceMethod || ''; page.querySelector('#selectDeinterlaceMethod').value = config.DeinterlaceMethod || '';
page.querySelector('#chkDoubleRateDeinterlacing').checked = config.DeinterlaceDoubleRate; page.querySelector('#chkDoubleRateDeinterlacing').checked = config.DeinterlaceDoubleRate;
page.querySelector('#chkEnableSubtitleExtraction').checked = config.EnableSubtitleExtraction || false; page.querySelector('#chkEnableSubtitleExtraction').checked = config.EnableSubtitleExtraction || false;
@ -87,6 +88,7 @@ import libraryMenu from 'libraryMenu';
config.TonemappingParam = form.querySelector('#txtTonemappingParam').value || '0'; config.TonemappingParam = form.querySelector('#txtTonemappingParam').value || '0';
config.EncoderPreset = form.querySelector('#selectEncoderPreset').value; config.EncoderPreset = form.querySelector('#selectEncoderPreset').value;
config.H264Crf = parseInt(form.querySelector('#txtH264Crf').value || '0'); config.H264Crf = parseInt(form.querySelector('#txtH264Crf').value || '0');
config.H265Crf = parseInt(form.querySelector('#txtH265Crf').value || '0');
config.DeinterlaceMethod = form.querySelector('#selectDeinterlaceMethod').value; config.DeinterlaceMethod = form.querySelector('#selectDeinterlaceMethod').value;
config.DeinterlaceDoubleRate = form.querySelector('#chkDoubleRateDeinterlacing').checked; config.DeinterlaceDoubleRate = form.querySelector('#chkDoubleRateDeinterlacing').checked;
config.EnableSubtitleExtraction = form.querySelector('#chkEnableSubtitleExtraction').checked; config.EnableSubtitleExtraction = form.querySelector('#chkEnableSubtitleExtraction').checked;

View File

@ -252,7 +252,7 @@
"Guide": "Guide", "Guide": "Guide",
"GuideProviderLogin": "Login", "GuideProviderLogin": "Login",
"GuideProviderSelectListings": "Select Listings", "GuideProviderSelectListings": "Select Listings",
"H264CrfHelp": "The Constant Rate Factor (CRF) is the default quality setting for the x264 encoder. You can set the values between 0 and 51, where lower values would result in better quality (at the expense of higher file sizes). Sane values are between 18 and 28. The default for x264 is 23, so you can use this as a starting point.", "H264CrfHelp": "The Constant Rate Factor (CRF) is the default quality setting for the x264 and x265 encoder. You can set the values between 0 and 51, where lower values would result in better quality (at the expense of higher file sizes). Sane values are between 18 and 28. The default for x264 is 23, and for x265 is 28, so you can use this as a starting point.",
"EncoderPresetHelp": "Choose a faster value to improve performance, or a slower value to improve quality.", "EncoderPresetHelp": "Choose a faster value to improve performance, or a slower value to improve quality.",
"HDPrograms": "HD programs", "HDPrograms": "HD programs",
"HardwareAccelerationWarning": "Enabling hardware acceleration may cause instability in some environments. Ensure that your operating system and video drivers are fully up to date. If you have difficulty playing video after enabling this, you'll need to change the setting back to None.", "HardwareAccelerationWarning": "Enabling hardware acceleration may cause instability in some environments. Ensure that your operating system and video drivers are fully up to date. If you have difficulty playing video after enabling this, you'll need to change the setting back to None.",
@ -589,7 +589,8 @@
"LabelGroupMoviesIntoCollections": "Group movies into collections", "LabelGroupMoviesIntoCollections": "Group movies into collections",
"LabelGroupMoviesIntoCollectionsHelp": "When displaying movie lists, movies in a collection will be displayed as one grouped item.", "LabelGroupMoviesIntoCollectionsHelp": "When displaying movie lists, movies in a collection will be displayed as one grouped item.",
"LabelH264Crf": "H264 encoding CRF:", "LabelH264Crf": "H264 encoding CRF:",
"LabelEncoderPreset": "H264 and H265 encoding preset:", "LabelH265Crf": "H265 encoding CRF:",
"LabelEncoderPreset": "Encoding preset:",
"LabelHardwareAccelerationType": "Hardware acceleration:", "LabelHardwareAccelerationType": "Hardware acceleration:",
"LabelHardwareAccelerationTypeHelp": "Hardware acceleration requires additional configuration.", "LabelHardwareAccelerationTypeHelp": "Hardware acceleration requires additional configuration.",
"LabelHomeNetworkQuality": "Home network quality:", "LabelHomeNetworkQuality": "Home network quality:",

View File

@ -197,7 +197,7 @@
"GuestStar": "特邀明星", "GuestStar": "特邀明星",
"GuideProviderLogin": "登入", "GuideProviderLogin": "登入",
"GuideProviderSelectListings": "选择列表", "GuideProviderSelectListings": "选择列表",
"H264CrfHelp": "The Constant Rate Factor (CRF) 是 x264 编码器的默认质量设置。您可以设置介于0和51之间的值, 其中较低的值将导致更好的质量 (以更高的文件大小为代价)。正常值介于18和28之间。x264 的默认值为 23, 因此可以将其用作起始点。", "H264CrfHelp": "The Constant Rate Factor (CRF) 是 x264 编码器的默认质量设置。您可以设置介于0和51之间的值 其中较低的值将导致更好的质量 (以更高的文件大小为代价)。正常值介于 18 和 28 之间。x264 的默认值为 23x265 的默认值为 28因此可以将其用作起始点。",
"EncoderPresetHelp": "选择一个更快的值以提升性能,或者选择一个更慢的值以提升质量。", "EncoderPresetHelp": "选择一个更快的值以提升性能,或者选择一个更慢的值以提升质量。",
"HDPrograms": "高清节目", "HDPrograms": "高清节目",
"HardwareAccelerationWarning": "启动硬件加速可能在某些环境下导致系统不稳定。请确认你的操作系统和显卡驱动程序是最新的。如果你在开启此项后播放视频时遇到困难,那么你需要将此选项设置回“没有”。", "HardwareAccelerationWarning": "启动硬件加速可能在某些环境下导致系统不稳定。请确认你的操作系统和显卡驱动程序是最新的。如果你在开启此项后播放视频时遇到困难,那么你需要将此选项设置回“没有”。",
@ -493,7 +493,8 @@
"LabelGroupMoviesIntoCollections": "批量添加电影到集合", "LabelGroupMoviesIntoCollections": "批量添加电影到集合",
"LabelGroupMoviesIntoCollectionsHelp": "显示电影列表时,同一集合的电影将显示为一个分组。", "LabelGroupMoviesIntoCollectionsHelp": "显示电影列表时,同一集合的电影将显示为一个分组。",
"LabelH264Crf": "H264 CRF 编码质量等级:", "LabelH264Crf": "H264 CRF 编码质量等级:",
"LabelEncoderPreset": "H264 和 H265 编码预设:", "LabelH265Crf": "H265 CRF 编码质量等级:",
"LabelEncoderPreset": "编码预设:",
"LabelHardwareAccelerationType": "硬件加速:", "LabelHardwareAccelerationType": "硬件加速:",
"LabelHardwareAccelerationTypeHelp": "硬件加速需要额外配置。", "LabelHardwareAccelerationTypeHelp": "硬件加速需要额外配置。",
"LabelHomeNetworkQuality": "家庭网络质量:", "LabelHomeNetworkQuality": "家庭网络质量:",