A Telegram bot to convert videos into x265/x264 format via ffmpeg.
Add values in environment variables or add them in .env.sample and rename file to .env
.
BOT_TOKEN
- Get it by creating a bot on @BotFather.MONGO_URL
- Mongo Database URL.API_ID
- your telegram api id.API_HASH
- your telegram api hash.
To change the ffmpeg profile edit them in ffmpeg_utils.py
Install the required Python Modules in your machine.
apt-get -qq install ffmpeg
pip3 install -r requirements.txt
With python3.7 or later.
python3 -m VideoEncoder
Thanks to ShannonScott for transcode_h265.py.
Original work by viperadnan.
- Copyright © 2021 — Adnan Ahmad; xditya.
- Licensed under the terms of the GNU General Public License Version 3 ‐ 29 June 2007