detect nvidia capabilities (#853)
* fallback to software codecs for old nvidia cards * update dependencies
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
using ErsatzTV.FFmpeg.Format;
|
||||
using ErsatzTV.FFmpeg.Filter;
|
||||
using ErsatzTV.FFmpeg.Format;
|
||||
|
||||
namespace ErsatzTV.FFmpeg.Encoder;
|
||||
|
||||
public class EncoderLibx265 : EncoderBase
|
||||
{
|
||||
private readonly FrameState _currentState;
|
||||
|
||||
public EncoderLibx265(FrameState currentState) => _currentState = currentState;
|
||||
|
||||
public override string Filter => new HardwareDownloadFilter(_currentState).Filter;
|
||||
|
||||
// TODO: is tag:v needed for mpegts?
|
||||
public override IList<string> OutputOptions => new List<string>
|
||||
{ "-c:v", Name, "-tag:v", "hvc1", "-x265-params", "log-level=error" };
|
||||
|
||||
Reference in New Issue
Block a user