Skip to content

Instantly share code, notes, and snippets.

@parkanaur
parkanaur / script.py
Created Mar 20, 2022
Telegram animated stickers helper (GIF -> WEBM; ffmpeg-python)
View script.py
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"