qsv and vaapi scaling fixes (#966)
* add qsv device option to ffmpeg profile * fix vaapi scaling * cleanup
This commit is contained in:
@@ -623,7 +623,10 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
|
||||
}
|
||||
|
||||
private static Option<string> VaapiDeviceName(HardwareAccelerationMode accelerationMode, string vaapiDevice) =>
|
||||
accelerationMode == HardwareAccelerationMode.Vaapi ? vaapiDevice : Option<string>.None;
|
||||
accelerationMode == HardwareAccelerationMode.Vaapi ||
|
||||
OperatingSystem.IsLinux() && accelerationMode == HardwareAccelerationMode.Qsv
|
||||
? vaapiDevice
|
||||
: Option<string>.None;
|
||||
|
||||
private static string GetVideoFormat(FFmpegPlaybackSettings playbackSettings) =>
|
||||
playbackSettings.VideoFormat switch
|
||||
|
||||
Reference in New Issue
Block a user