mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Enable Dolby AC-4 decoder (#11486)
This commit is contained in:
parent
d6051d9d7e
commit
8851ace543
@ -1735,6 +1735,13 @@ public class DynamicHlsController : BaseJellyfinApiController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state.AudioStream is not null && state.AudioStream.CodecTag.Equals("ac-4", StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
// ac-4 audio tends to hava a super weird sample rate that will fail most encoders
|
||||||
|
// force resample it to 48KHz
|
||||||
|
args += " -ar 48000";
|
||||||
|
}
|
||||||
|
|
||||||
if (state.OutputAudioSampleRate.HasValue)
|
if (state.OutputAudioSampleRate.HasValue)
|
||||||
{
|
{
|
||||||
args += " -ar " + state.OutputAudioSampleRate.Value.ToString(CultureInfo.InvariantCulture);
|
args += " -ar " + state.OutputAudioSampleRate.Value.ToString(CultureInfo.InvariantCulture);
|
||||||
|
@ -27,6 +27,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"msmpeg4",
|
"msmpeg4",
|
||||||
"dca",
|
"dca",
|
||||||
"ac3",
|
"ac3",
|
||||||
|
"ac4",
|
||||||
"aac",
|
"aac",
|
||||||
"mp3",
|
"mp3",
|
||||||
"flac",
|
"flac",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user