From 3c47fbd5b1bdd17ceac8228a65cfb701378316b9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 23 Aug 2023 19:15:00 -0700 Subject: [PATCH] aspect ratio adjustment --- generate.sh | 6 +++++- index.html | 2 +- llamigos.webm | Bin 2971621 -> 2967130 bytes 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/generate.sh b/generate.sh index fa33e63..f7286db 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,10 @@ +# 4*0.875 = 3.5 pixel aspect ratio +# 320x180 -> 80x157.5 +# instead scale to 82x160 and crop to 80x160 :D +# note: letterboxing makes it harder to reuse those blocks ffmpeg \ -i 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm' \ - -vf 'format=yuv444p,scale=80:150,pad=h=160:y=5,setsar=1' \ + -vf 'format=yuv444p,scale=82:160,crop=w=80:x=1,setsar=1' \ -an \ -vcodec libvpx-vp9 \ -row-mt 1 \ diff --git a/index.html b/index.html index 59a5515..f394ec7 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@