From 7c4bae1e2a28506e694350ae46c9b47dd5da8d2d Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sat, 10 Jan 2026 01:54:47 -0500 Subject: [PATCH] fix(author): remove quotes from scale expression in menu logo filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed FFmpeg filter parsing error by removing unnecessary single quotes from the scale expression in resolveMenuLogoScaleExpr. The Bug: FFmpeg command was failing with "Error parsing filterchain" because the scale expression had quotes around the min() functions: scale=w='min(iw*0.50,180)':h='min(ih*0.50,120)' ^^^^^^^^^^^^ ^^^^^^^^^^^^ FFmpeg's filter parser doesn't expect quotes here and treats them as part of the option value, breaking the parsing. The Fix: Before: scale=w='min(iw*%.2f,%.0f)':h='min(ih*%.2f,%.0f)' After: scale=w=min(iw*%.2f,%.0f):h=min(ih*%.2f,%.0f) Error was: [AVFilterGraph] No option name near ' I Fucked My Best…' [AVFilterGraph] Error parsing filterchain around: ,180)':h='min... exit status 234 Now the scale expression is parsed correctly and menu generation should complete successfully. đŸ¤– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- author_menu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/author_menu.go b/author_menu.go index 7bf6278..c9ba1cb 100644 --- a/author_menu.go +++ b/author_menu.go @@ -593,7 +593,7 @@ func resolveMenuLogoScaleExpr(logo menuLogoOptions, width, height int) string { scale := resolveMenuLogoScale(logo) maxW := float64(width) * 0.25 maxH := float64(height) * 0.25 - return fmt.Sprintf("scale=w='min(iw*%.2f,%.0f)':h='min(ih*%.2f,%.0f)':force_original_aspect_ratio=decrease", scale, maxW, scale, maxH) + return fmt.Sprintf("scale=w=min(iw*%.2f,%.0f):h=min(ih*%.2f,%.0f):force_original_aspect_ratio=decrease", scale, maxW, scale, maxH) } func resolveMenuLogoPosition(logo menuLogoOptions, width, height int) string {