|
|
@ -86,20 +86,28 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|
|
|
"libvorbis",
|
|
|
|
"libvorbis",
|
|
|
|
"srt",
|
|
|
|
"srt",
|
|
|
|
"h264_nvenc",
|
|
|
|
"h264_nvenc",
|
|
|
|
"h264_qsv"
|
|
|
|
"h264_qsv",
|
|
|
|
|
|
|
|
"ac3"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
output = output ?? string.Empty;
|
|
|
|
output = output ?? string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var index = 0;
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var codec in required)
|
|
|
|
foreach (var codec in required)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var srch = " " + codec + " ";
|
|
|
|
var srch = " " + codec + " ";
|
|
|
|
|
|
|
|
|
|
|
|
if (output.IndexOf(srch, StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
if (output.IndexOf(srch, StringComparison.OrdinalIgnoreCase) != -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (index < required.Length - 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.Info("Encoder available: " + codec);
|
|
|
|
_logger.Info("Encoder available: " + codec);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
found.Add(codec);
|
|
|
|
found.Add(codec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
index++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return found;
|
|
|
|
return found;
|
|
|
|