Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gil/622990bc2915dff7b65b8d7357ad3069 to your computer and use it in GitHub Desktop.

Select an option

Save gil/622990bc2915dff7b65b8d7357ad3069 to your computer and use it in GitHub Desktop.
Telegram - Create Video Sticker (.WEBM) with FFMPEG

Command

ffmpeg -y -i animated_sticker.mov -r 30 -t 2.99 -an -c:v libvpx-vp9 -pix_fmt yuva420p -vf 'scale=512:512:force_original_aspect_ratio=decrease' -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

Telegram Sticker Command

  • Go to @Stickers and type "/newvideo"
  • Type a name for sticker pack.
  • Send your .webm file, then type any emoji.
  • Follow bot's directions.

Note: video sticker pack and regular sticker pack are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment