Convert videos to webm on the fly in bash webm () { ffmpeg -i "${1}" -c:v libvpx-vp9 -b:v 2M "$(basename "${1}").webm" }