add qsv extra hardware frames setting (#950)

* wip add qsv extra_hw_frames setting

* fix ffmpeg profile editor

* update changelog
This commit is contained in:
Jason Dove
2022-09-04 18:07:03 -05:00
committed by GitHub
parent 9a4f772f53
commit f1be945423
19 changed files with 4372 additions and 11 deletions
@@ -63,6 +63,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
Option<ChannelWatermark> globalWatermark,
VaapiDriver vaapiDriver,
string vaapiDevice,
Option<int> qsvExtraHardwareFrames,
bool hlsRealtime,
FillerKind fillerKind,
TimeSpan inPoint,
@@ -240,7 +241,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
hlsSegmentTemplate,
ptsOffset,
playbackSettings.ThreadCount,
128);
qsvExtraHardwareFrames);
_logger.LogDebug("FFmpeg desired state {FrameState}", desiredState);
@@ -268,7 +269,8 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
bool hlsRealtime,
long ptsOffset,
VaapiDriver vaapiDriver,
string vaapiDevice)
string vaapiDevice,
Option<int> qsvExtraHardwareFrames)
{
FFmpegPlaybackSettings playbackSettings = _playbackSettingsCalculator.CalculateErrorSettings(
channel.StreamingMode,
@@ -365,7 +367,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
hlsSegmentTemplate,
ptsOffset,
Option<int>.None,
128);
qsvExtraHardwareFrames);
var ffmpegSubtitleStream = new ErsatzTV.FFmpeg.MediaStream(0, "ass", StreamKind.Video);