aspect ratio adjustment
This commit is contained in:
parent
ef48084c1f
commit
3c47fbd5b1
3 changed files with 6 additions and 2 deletions
|
@ -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 \
|
ffmpeg \
|
||||||
-i 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm' \
|
-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 \
|
-an \
|
||||||
-vcodec libvpx-vp9 \
|
-vcodec libvpx-vp9 \
|
||||||
-row-mt 1 \
|
-row-mt 1 \
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.stretchy {
|
.stretchy {
|
||||||
width: 320px;
|
width: 320px;
|
||||||
height: 192px;
|
height: 185px;
|
||||||
object-fit: fill;
|
object-fit: fill;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
}
|
}
|
||||||
|
|
BIN
llamigos.webm
BIN
llamigos.webm
Binary file not shown.
Loading…
Reference in a new issue