From 2998ad0e37e0f8c26706ef2af68ec09f14ceae15 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 May 2017 10:27:34 +0200 Subject: Avoid uneven width when resizing. --- bin/stream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index 7a68f4b..c350ce7 100755 --- a/bin/stream +++ b/bin/stream @@ -197,7 +197,7 @@ filters_compose() { logo=$1; printf_each '[s%s]' "$HEIGHTS" echo_n ';' for height in $HEIGHTS; do - echo_n "[s$height]scale=iw*sar*$height/ih:$height,setsar=1" + echo_n "[s$height]scale=trunc(iw*sar*$height/ih/2)*2:$height,setsar=1" [ -z "$logo" ] || echo_n "[bg$height];[bg$height][$logo:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" echo_n "[v$height]" done -- cgit v1.2.3