mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add configurable encoding params
This commit is contained in:
parent
cb4d1e1643
commit
3842bf80e6
13 changed files with 119 additions and 35 deletions
|
@ -11,6 +11,9 @@
|
|||
$('#txtTranscodingTempPath', page).val(config.TranscodingTempPath || '');
|
||||
$('#txtVaapiDevice', page).val(config.VaapiDevice || '');
|
||||
|
||||
page.querySelector('#selectH264Preset').value = config.H264Preset || '';
|
||||
page.querySelector('#txtH264Crf').value = config.H264Crf || '';
|
||||
|
||||
var selectEncoderPath = page.querySelector('#selectEncoderPath');
|
||||
|
||||
selectEncoderPath.value = systemInfo.EncoderLocationType;
|
||||
|
@ -71,6 +74,9 @@
|
|||
config.HardwareAccelerationType = $('#selectVideoDecoder', form).val();
|
||||
config.VaapiDevice = $('#txtVaapiDevice', form).val();
|
||||
|
||||
config.H264Preset = form.querySelector('#selectH264Preset').value;
|
||||
config.H264Crf = parseInt(form.querySelector('#txtH264Crf').value || '0');
|
||||
|
||||
config.EnableThrottling = form.querySelector('#chkEnableThrottle').checked;
|
||||
|
||||
ApiClient.updateNamedConfiguration("encoding", config).then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue