diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-22 10:27:34 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-22 10:27:34 +0200 |
commit | 2998ad0e37e0f8c26706ef2af68ec09f14ceae15 (patch) | |
tree | 59d3d3be45eef787f557ee4c51f6fcd6f5ad880f /bin/stream | |
parent | c128623ad30481a86c38bd697122fc1da71520da (diff) |
Avoid uneven width when resizing.
Diffstat (limited to 'bin/stream')
-rwxr-xr-x | bin/stream | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |