update recording dialogs

This commit is contained in:
Luke Pulverenti
2016-09-22 02:57:31 -04:00
parent 6999017bc9
commit eee9c0e048
5 changed files with 64 additions and 35 deletions

View File

@@ -26,6 +26,30 @@ namespace MediaBrowser.MediaEncoding.Encoder
return new Tuple<List<string>, List<string>>(decoders, encoders);
}
public bool ValidateVersion(string encoderAppPath)
{
string output = string.Empty;
try
{
output = GetProcessOutput(encoderAppPath, "-version");
}
catch
{
}
if (string.IsNullOrWhiteSpace(output))
{
return false;
}
if (output.IndexOf("Libav developers", StringComparison.OrdinalIgnoreCase) != -1)
{
return false;
}
return true;
}
private List<string> GetDecoders(string encoderAppPath)
{
string output = string.Empty;