ffmpeg -y -i animated_sticker.mov -r 30 -t 2.99 -an -c:v libvpx-vp9 -pix_fmt yuva420p -s 512x512 -b:v 400K output.webm
- If .webm file size greater than 256 KB, you should reduce "-b:v 400K"
- .mov video file may has alpha channel but not required.
- My video sticker pack for example: https://t.me/addstickers/msn_animations
- Go to @Stickers and type "/newvideo"
- Type a name for sticker pack.
- Send your .webm file, then type any emoji.
- Follow bot's directions.
If the video has non 1:1 aspect ratio this command will make the resulting video stretched. Here's a fix: