1017 B
1017 B
GIF to WebM Converter
This script converts an animated GIF into a WebM format that's fully compatable with telegram animated stickers with options to adjust the playback speed (max allowed telegram animated sticker lenght is 3s).
Features
- Converts GIF files into transparent WebM animations.
- Adjustable speed for the output animation.
Prerequisites
- ffmpeg
Usage
Don't forget to chmod +x it
Command Syntax
./gif2webm.sh input.gif [speedup_factor]
Parameters
input.gif: The path to the input GIF file you want to convert.[speedup_factor]: (Optional) A factor to speed up the animation. Default is1(no speedup).
Help
To display help information, run:
./gif2webm.sh --h
Examples
-
Convert a GIF without speedup:
./gif2webm.sh input.gif -
Convert with a specified speedup factor:
./gif2webm.sh input.gif 0.5 -
Display usage information:
./gif2webm.sh --h