mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 13:44:22 -04:00
Remove legacy encoders
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
1f819d3382
commit
058a3dcc6a
@ -107,7 +107,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
// AAC, FLAC, ALAC, libopus, libvorbis encoders all support at least 8 channels
|
// AAC, FLAC, ALAC, libopus, libvorbis encoders all support at least 8 channels
|
||||||
private static readonly Dictionary<string, int> _audioTranscodeChannelLookup = new(StringComparer.OrdinalIgnoreCase)
|
private static readonly Dictionary<string, int> _audioTranscodeChannelLookup = new(StringComparer.OrdinalIgnoreCase)
|
||||||
{
|
{
|
||||||
{ "wmav2", 2 },
|
|
||||||
{ "libmp3lame", 2 },
|
{ "libmp3lame", 2 },
|
||||||
{ "libfdk_aac", 6 },
|
{ "libfdk_aac", 6 },
|
||||||
{ "ac3", 6 },
|
{ "ac3", 6 },
|
||||||
@ -400,16 +399,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
return GetMjpegEncoder(state, encodingOptions);
|
return GetMjpegEncoder(state, encodingOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.Equals(codec, "wmv", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return "wmv2";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.Equals(codec, "theora", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return "libtheora";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_validationRegex.IsMatch(codec))
|
if (_validationRegex.IsMatch(codec))
|
||||||
{
|
{
|
||||||
return codec.ToLowerInvariant();
|
return codec.ToLowerInvariant();
|
||||||
@ -729,11 +718,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
return "libvorbis";
|
return "libvorbis";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.Equals(codec, "wma", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return "wmav2";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.Equals(codec, "opus", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(codec, "opus", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
return "libopus";
|
return "libopus";
|
||||||
@ -1363,11 +1347,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
// Currently use the same buffer size for all encoders
|
// Currently use the same buffer size for all encoders
|
||||||
int bufsize = bitrate * 2;
|
int bufsize = bitrate * 2;
|
||||||
|
|
||||||
if (string.Equals(videoCodec, "msmpeg4", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return FormattableString.Invariant($" -b:v {bitrate}");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.Equals(videoCodec, "libsvtav1", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(videoCodec, "libsvtav1", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
return FormattableString.Invariant($" -b:v {bitrate} -bufsize {bufsize}");
|
return FormattableString.Invariant($" -b:v {bitrate} -bufsize {bufsize}");
|
||||||
@ -1903,18 +1882,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (string.Equals(videoEncoder, "mpeg4", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
param += " -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -bf 2";
|
|
||||||
}
|
|
||||||
else if (string.Equals(videoEncoder, "wmv2", StringComparison.OrdinalIgnoreCase)) // asf/wmv
|
|
||||||
{
|
|
||||||
param += " -qmin 2";
|
|
||||||
}
|
|
||||||
else if (string.Equals(videoEncoder, "msmpeg4", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
param += " -mbd 2";
|
|
||||||
}
|
|
||||||
|
|
||||||
param += GetVideoBitrateParam(state, videoEncoder);
|
param += GetVideoBitrateParam(state, videoEncoder);
|
||||||
|
|
||||||
|
@ -62,8 +62,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"libx264",
|
"libx264",
|
||||||
"libx265",
|
"libx265",
|
||||||
"libsvtav1",
|
"libsvtav1",
|
||||||
"mpeg4",
|
|
||||||
"msmpeg4",
|
|
||||||
"aac",
|
"aac",
|
||||||
"aac_at",
|
"aac_at",
|
||||||
"libfdk_aac",
|
"libfdk_aac",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user