horrible webm edit
here my script that i use to make quick webms with ffmpeg and variables
ffmpeg -threads 4 -y -ss "$1" -to "$2" -i "$5" -vf scale=-2:$3 -c:v libvpx-vp9 -b:v 0 -crf $4 -preset veryfast -pix_fmt yuv420p -pass 1 -an -map_metadata -1 -f null /dev/null && \
ffmpeg -threads 4 -y -ss "$1" -to "$2" -i "$5" -vf scale=-2:$3 -c:v libvpx-vp9 -b:v 0 -crf $4 -preset veryfast -pix_fmt yuv420p -pass 2 -an -map_metadata -1 "$6"
use it like this
this-file.sh start-time end-time resolution crf-quality(usually between 23-30 depends on resolution) input.mp4 output.webm
you can also add crop=?x?:?:? into -vf so it will look like crop=?x?:?:?,scale=?:? to avoid garbage black bars like these