add optional progress bar to generated song videos (#1945)

* optionally include progress bar in generated song video

* update progress bar size/location

* move everything up 10% when song progress is enabled

* add watermark border to song progress bar

* always show accurate progress bar

* lower progress bar to 90% alpha

* update changelog
This commit is contained in:
Jason Dove
2024-11-20 15:57:00 -06:00
committed by GitHub
parent fbb7a661fb
commit c8ec87b01f
34 changed files with 11798 additions and 39 deletions
@@ -396,7 +396,8 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
hlsSegmentTemplate,
ptsOffset,
playbackSettings.ThreadCount,
qsvExtraHardwareFrames);
qsvExtraHardwareFrames,
videoVersion is BackgroundImageMediaVersion { IsSongWithProgress: true });
_logger.LogDebug("FFmpeg desired state {FrameState}", desiredState);
@@ -547,7 +548,8 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
hlsSegmentTemplate,
ptsOffset,
Option<int>.None,
qsvExtraHardwareFrames);
qsvExtraHardwareFrames,
IsSongWithProgress: false);
var ffmpegSubtitleStream = new ErsatzTV.FFmpeg.MediaStream(0, "ass", StreamKind.Video);
@@ -737,7 +739,8 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
hlsSegmentTemplate,
0,
playbackSettings.ThreadCount,
Optional(channel.FFmpegProfile.QsvExtraHardwareFrames));
Optional(channel.FFmpegProfile.QsvExtraHardwareFrames),
IsSongWithProgress: false);
_logger.LogDebug("FFmpeg desired state {FrameState}", desiredState);