Skip to content

Instantly share code, notes, and snippets.

@parkanaur
parkanaur / script.py
Created March 20, 2022 19:18
Telegram animated stickers helper (GIF -> WEBM; ffmpeg-python)
import os
import glob
from pathlib import Path
import ffmpeg
DEFAULT_FPS = 30
DEFAULT_SMART_DURATION_LIMIT = "2.9"
DEFAULT_SPEED_ADJUST_MODE = "smart"
DEFAULT_FALLBACK_PTS = "1.0"