/)(\
@pebble in case it does, this looks okay at pfp scale i think
ffmpeg command: ffmpeg -i mp4.mp4 -vf scale=300:300,fps=30 -vcodec libwebp_anim -lossless 0 -compression_level 6 -quality 60 -loop 0 -preset picture -an b.webp
@pebble otherwise here’s a gif. both are 300x300@30fps, both around 950KB
gifski command: gifski mp4.mp4 -o a.gif -W 300 -H 300 --repeat 0 --fps 30 --extra --motion-quality 50 -Q 60
@pebble ah, well, as i’m beginning to find out, it is very hard to optimize gifs with transparency because gif optimisation heavily relies on not discarding the previous frame (because gif has very basic tools for “only discard pixels in this rectangle please”). ive done everything i can to squeeze it while not losing too much quality. here’s 160x160@25fps for around 1MB
and the commands:
ffmpeg -framerate 25 -i ./frames/%04d.png -c:v libvpx-vp9 -filter_complex "[0]lutrgb=a=val+val*maxval" -crf 15 -b:v 0 -pix_fmt gbrap -strict experimental ./a.webm -y
ffmpeg -c:v libvpx-vp9 -i a.webm ./new-frames/%04d.png -y
gifski ./new-frames/*.png -o a.gif -W 160 -H 160 --fps 25 --repeat 0 -Q 50 --extra
@pebble literally the 2 ffmpeg commands just do the following 2 things: