summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-22 10:27:34 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-22 10:27:34 +0200
commit2998ad0e37e0f8c26706ef2af68ec09f14ceae15 (patch)
tree59d3d3be45eef787f557ee4c51f6fcd6f5ad880f /bin
parentc128623ad30481a86c38bd697122fc1da71520da (diff)
Avoid uneven width when resizing.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream2
1 files changed, 1 insertions, 1 deletions
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