Skip to content

Convert video / gif file to Telegram WebM sticker file

License

Notifications You must be signed in to change notification settings

lgc2333/video-to-webm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video To WebM

This is a simple script that converts a video or gif file to Telegram WebM video sticker format using ffmpeg.
这是一个简单的脚本,使用 ffmpeg 将视频或 gif 文件转换为 Telegram WebM 视频贴纸格式。

Requirements / 依赖

  • Python 3.9+ (developed with Python 3.10.10 / 使用 Python 3.10.10 开发)

  • ffmpeg & ffprobe

  • Required Python packages: (install with command below)
    需要的 Python 包:(使用下面的命令安装)

    pip install "cookit[pyd]" ffmpeg-python

Usage / 用法

usage: video-to-webm.py [-h] [-i [INPUT ...]] [-o OUTPUT] [-n | --nearest | --no-nearest] [-y]

options:
  -h, --help
          show this help message and exit

  -i [INPUT ...], --input [INPUT ...]
          input files or folders (prompted if not specified, can be specified multiple times, or specify a folder)
          输入文件或文件夹路径(如果未指定则提示,可指定多项,或 指定一个文件夹)

  -o OUTPUT, --output OUTPUT
          output folder (defaults to "output" folder under current working directory)
          输出文件夹(默认为工作目录下的 output 文件夹)

  -n, --nearest, --no-nearest
          use nearest neighbor scaling
          是否使用最近邻插值缩放

  -y, --yes
          default to all prompts (overwrite output file, etc.)
          默认使用所有提示的默认值(覆盖输出文件等)

Contact / 联系方式

Sponsor Me / 赞助我

Click here for more information
点击这里获取更多信息

Thanks for your support! Your support will make me continue to create contents!
感谢大家的赞助!你们的赞助将是我继续创作的动力!

License / 许可证

This project is licensed under the terms of the MIT license. See LICENSE for more information.
本项目使用 MIT 许可证授权。有关更多信息,请参见 LICENSE

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages