Giter Club home page Giter Club logo

video-to-webm's Introduction

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.6+ (developed with Python 3.10.10 / 使用 Python 3.10.10 开发)

  • ffmpeg & ffprobe

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

    pip install pydantic ffmpeg-python

Usage / 用法

usage / 用法: video-to-webm.py [-h] [-i INPUT] [-o OUTPUT] [-n] [-y]

options / 参数:
  -h, --help            show this help message and exit / 显示此帮助消息并退出
  -i INPUT, --input INPUT
                        input file / 输入文件路径(如果未指定则提示)
  -o OUTPUT, --output OUTPUT
                        output file / 输出文件路径(默认为输入文件名)
  -n, --nearest         use nearest neighbor scaling / 使用最近邻插值缩放
  -y, --yes             default to all prompts (overwrite output file, etc.) / 默认使用所有提示的默认值(覆盖输出文件等)

Contact / 联系方式

Sponsor Me / 赞助我

License / 许可证

This project is licensed under the terms of the MIT license. See LICENSE for more information.

本项目使用 MIT 许可证授权。有关更多信息,请参见 LICENSE

video-to-webm's People

Contributors

lgc2333 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.