mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Fix apple audio codecs (#11315)
This commit is contained in:
parent
3a8e658932
commit
6b6aab04ce
@ -107,7 +107,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{ "wmav2", 2 },
|
{ "wmav2", 2 },
|
||||||
{ "libmp3lame", 2 },
|
{ "libmp3lame", 2 },
|
||||||
{ "libfdk_aac", 6 },
|
{ "libfdk_aac", 6 },
|
||||||
{ "aac_at", 6 },
|
|
||||||
{ "ac3", 6 },
|
{ "ac3", 6 },
|
||||||
{ "eac3", 6 },
|
{ "eac3", 6 },
|
||||||
{ "dca", 6 },
|
{ "dca", 6 },
|
||||||
@ -752,6 +751,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
return "dca";
|
return "dca";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (string.Equals(codec, "alac", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
// The ffmpeg upstream breaks the AudioToolbox ALAC encoder in version 6.1 but fixes it in version 7.0.
|
||||||
|
// Since ALAC is lossless in quality and the AudioToolbox encoder is not faster,
|
||||||
|
// its only benefit is a smaller file size.
|
||||||
|
// To prevent problems, use the ffmpeg native encoder instead.
|
||||||
|
return "alac";
|
||||||
|
}
|
||||||
|
|
||||||
return codec.ToLowerInvariant();
|
return codec.ToLowerInvariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"aac_at",
|
"aac_at",
|
||||||
"libfdk_aac",
|
"libfdk_aac",
|
||||||
"ac3",
|
"ac3",
|
||||||
|
"alac",
|
||||||
"dca",
|
"dca",
|
||||||
"libmp3lame",
|
"libmp3lame",
|
||||||
"libopus",
|
"libopus",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user