diff --git a/src/controllers/dashboard/encodingsettings.html b/src/controllers/dashboard/encodingsettings.html index d6e29a4928..979bc8bbb1 100644 --- a/src/controllers/dashboard/encodingsettings.html +++ b/src/controllers/dashboard/encodingsettings.html @@ -253,6 +253,13 @@
${EnableFallbackFontHelp}
+
+ +
${LabelEnableAudioVbrHelp}
+
${LabelDownMixAudioScaleHelp}
diff --git a/src/controllers/dashboard/encodingsettings.js b/src/controllers/dashboard/encodingsettings.js index 044fb1eb3d..9c8ac8447d 100644 --- a/src/controllers/dashboard/encodingsettings.js +++ b/src/controllers/dashboard/encodingsettings.js @@ -22,6 +22,7 @@ import alert from '../../components/alert'; page.querySelector('#chkAllowHevcEncoding').checked = config.AllowHevcEncoding; $('#selectVideoDecoder', page).val(config.HardwareAccelerationType); $('#selectThreadCount', page).val(config.EncodingThreadCount); + page.querySelector('#chkEnableAudioVbr').checked = config.EnableAudioVbr; $('#txtDownMixAudioBoost', page).val(config.DownMixAudioBoost); page.querySelector('#txtMaxMuxingQueueSize').value = config.MaxMuxingQueueSize || ''; page.querySelector('.txtEncoderPath').value = config.EncoderAppPathDisplay || ''; @@ -77,6 +78,7 @@ import alert from '../../components/alert'; const onDecoderConfirmed = function () { loading.show(); ApiClient.getNamedConfiguration('encoding').then(function (config) { + config.EnableAudioVbr = form.querySelector('#chkEnableAudioVbr').checked; config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val(); config.MaxMuxingQueueSize = form.querySelector('#txtMaxMuxingQueueSize').value; config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val(); diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 1487f8bf29..9591f1ca11 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -627,6 +627,8 @@ "LabelEasyPinCode": "Easy PIN code:", "LabelEmbedAlbumArtDidl": "Embed album art in DIDL", "LabelEmbedAlbumArtDidlHelp": "Some devices prefer this method for getting the album art. Others may fail to play with this option enabled.", + "LabelEnableAudioVbr": "Enable VBR audio encoding", + "LabelEnableAudioVbrHelp": "Variable bitrate offers better quality to average bitrate ratio, but in some rare cases may cause buffering and compatibility issues.", "LabelEnableAutomaticPortMap": "Enable automatic port mapping", "LabelEnableAutomaticPortMapHelp": "Automatically forward public ports on your router to local ports on your server via UPnP. This may not work with some router models or network configurations. Changes will not apply until after a server restart.", "LabelEnableBlastAliveMessages": "Blast alive messages",