Version 1

This commit is contained in:
MrEidam
2026-03-17 09:37:09 +01:00
commit f8a79ca654
2 changed files with 83 additions and 0 deletions

55
README.md Normal file
View File

@@ -0,0 +1,55 @@
# 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
```sh
./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 is `1` (no speedup).
### Help
To display help information, run:
```sh
./gif2webm.sh --h
```
### Examples
1. **Convert a GIF without speedup**:
```sh
./gif2webm.sh input.gif
```
2. **Convert with a specified speedup factor**:
```sh
./gif2webm.sh input.gif 0.5
```
3. **Display usage information**:
```sh
./gif2webm.sh --h
```