mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
add cuda format converter
This commit is contained in:
parent
09b9fa3ce1
commit
b0e0e19468
4 changed files with 133 additions and 49 deletions
|
|
@ -295,6 +295,17 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return _hwaccels.Contains(hwaccel, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public bool SupportsFilter(string filter, string option)
|
||||
{
|
||||
if (_ffmpegPath != null)
|
||||
{
|
||||
var validator = new EncoderValidator(_logger, _ffmpegPath);
|
||||
return validator.CheckFilter(filter, option);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool CanEncodeToAudioCodec(string codec)
|
||||
{
|
||||
if (string.Equals(codec, "opus", StringComparison.OrdinalIgnoreCase))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue