use subtitles instead of drawtext for songs (#510)

This commit is contained in:
Jason Dove
2021-11-26 21:39:10 -06:00
committed by GitHub
parent 2cb5252320
commit 919325033d
6 changed files with 36 additions and 32 deletions
+2 -2
View File
@@ -238,7 +238,7 @@ namespace ErsatzTV.Core.FFmpeg
public async Task<Either<BaseError, string>> GenerateSongImage(
string ffmpegPath,
Option<string> drawtextFile,
Option<string> subtitleFile,
Channel channel,
Option<ChannelWatermark> globalWatermark,
MediaVersion videoVersion,
@@ -273,7 +273,7 @@ namespace ErsatzTV.Core.FFmpeg
.WithFormatFlags(playbackSettings.FormatFlags)
.WithSongInput(videoPath, videoStream.Codec, videoStream.PixelFormat)
.WithWatermark(watermarkOptions, channel.FFmpegProfile.Resolution)
.WithDrawtextFile(videoVersion, drawtextFile);
.WithSubtitleFile(videoVersion, subtitleFile);
foreach (IDisplaySize scaledSize in scalePlaybackSettings.ScaledSize)
{