aspect ratio adjustment

This commit is contained in:
Brooke Vibber 2023-08-23 19:15:00 -07:00
parent ef48084c1f
commit 3c47fbd5b1
3 changed files with 6 additions and 2 deletions

View file

@ -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 \

View file

@ -6,7 +6,7 @@
<style type="text/css">
.stretchy {
width: 320px;
height: 192px;
height: 185px;
object-fit: fill;
image-rendering: pixelated;
}

Binary file not shown.