mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Add EnableAudioVbrEncoding to TranscodingProfile
This will allow the client selectively disable VBR audio when it causes problems. Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
78929418cc
commit
0381c5a288
9 changed files with 78 additions and 26 deletions
|
|
@ -6976,7 +6976,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
if (bitrate.HasValue && !LosslessAudioCodecs.Contains(codec, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var vbrParam = GetAudioVbrModeParam(codec, bitrate.Value, channels ?? 2);
|
||||
if (encodingOptions.EnableAudioVbr && vbrParam is not null)
|
||||
if (encodingOptions.EnableAudioVbr && state.EnableAudioVbrEncoding && vbrParam is not null)
|
||||
{
|
||||
args += vbrParam;
|
||||
}
|
||||
|
|
@ -7007,7 +7007,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
if (bitrate.HasValue && !LosslessAudioCodecs.Contains(outputCodec, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var vbrParam = GetAudioVbrModeParam(GetAudioEncoder(state), bitrate.Value, channels ?? 2);
|
||||
if (encodingOptions.EnableAudioVbr && vbrParam is not null)
|
||||
if (encodingOptions.EnableAudioVbr && state.EnableAudioVbrEncoding && vbrParam is not null)
|
||||
{
|
||||
audioTranscodeParams.Add(vbrParam);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue