Skip to content

Instantly share code, notes, and snippets.

@dhayab
Created March 15, 2022 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhayab/60527172749f86ab33fc5fff261d4088 to your computer and use it in GitHub Desktop.
Save dhayab/60527172749f86ab33fc5fff261d4088 to your computer and use it in GitHub Desktop.
Convert all gif in current directory to Telegram video stickers (webm)
for FILE in *.gif; do
docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg:4.1 -i $FILE -c vp9 -b:v 0 -crf 40 -vf scale=512:-1 ${FILE/gif/webm}
; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment