Simplify the way we choose our ffmpeg

* no longer search $PATH
* no longer require a full path
* don't fall back
This commit is contained in:
Bond_009
2021-04-04 23:02:28 +02:00
parent 32a11c006d
commit 963ab2dab6
6 changed files with 39 additions and 90 deletions

View File

@@ -12,8 +12,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
{
public class EncoderValidator
{
private const string DefaultEncoderPath = "ffmpeg";
private static readonly string[] _requiredDecoders = new[]
{
"h264",
@@ -106,7 +104,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
private readonly string _encoderPath;
public EncoderValidator(ILogger logger, string encoderPath = DefaultEncoderPath)
public EncoderValidator(ILogger logger, string encoderPath)
{
_logger = logger;
_encoderPath = encoderPath;