From 603674b7879408aa9118b6eb445391298fa77068 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Mon, 10 Mar 2025 10:02:46 -0400 Subject: [PATCH] Add support for textfile to ffmpeg drawtext --- internal/ffmpeg/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ffmpeg/ffmpeg.go b/internal/ffmpeg/ffmpeg.go index 25d61e4b0..484617b5f 100644 --- a/internal/ffmpeg/ffmpeg.go +++ b/internal/ffmpeg/ffmpeg.go @@ -295,7 +295,7 @@ func parseArgs(s string) *ffmpeg.Args { drawtext = configTemplate(drawtext) // support default timestamp format - if !strings.Contains(drawtext, "text=") { + if !(strings.Contains(drawtext, "text=") || strings.Contains(drawtext, "textfile=")) { drawtext += `:text='%{localtime\:%Y-%m-%d %X}'` }