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
|
||||
private static readonly Dictionary<string, int> _audioTranscodeChannelLookup = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
{ "wmav2", 2 },
|
||||
{ "libmp3lame", 2 },
|
||||
{ "libfdk_aac", 6 },
|
||||
{ "ac3", 6 },
|
||||
|
@ -400,16 +399,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
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))
|
||||
{
|
||||
return codec.ToLowerInvariant();
|
||||
|
@ -729,11 +718,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
return "libvorbis";
|
||||
}
|
||||
|
||||
if (string.Equals(codec, "wma", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "wmav2";
|
||||
}
|
||||
|
||||
if (string.Equals(codec, "opus", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "libopus";
|
||||
|
@ -1363,11 +1347,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
// Currently use the same buffer size for all encoders
|
||||
int bufsize = bitrate * 2;
|
||||
|
||||
if (string.Equals(videoCodec, "msmpeg4", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return FormattableString.Invariant($" -b:v {bitrate}");
|
||||
}
|
||||
|
||||
if (string.Equals(videoCodec, "libsvtav1", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return FormattableString.Invariant($" -b:v {bitrate} -bufsize {bufsize}");
|
||||
|
@ -1903,18 +1882,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
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);
|
||||
|
||||
|
|
|
@ -62,8 +62,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
"libx264",
|
||||
"libx265",
|
||||
"libsvtav1",
|
||||
"mpeg4",
|
||||
"msmpeg4",
|
||||
"aac",
|
||||
"aac_at",
|
||||
"libfdk_aac",
|
||||
|
|
Loading…
Reference in New Issue
Block a user