A Telegram bot to convert videos into x265/x264 format via ffmpeg.
Add values in environment variables or add them in config.env.template and rename file to config.env
.
API_ID
- Get it by creating an app on https://my.telegram.orgAPI_HASH
- Get it by creating an app on https://my.telegram.orgBOT_TOKEN
- Get it by creating a bot on https://t.me/BotFatherSUDO_USERS
- Chat identifier of the sudo user. For multiple users use space as seperator.DOWNLOAD_DIR
- (Optional) Temporary download directory to keep downloaded files.
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 main.py
Deploy on Heroku
- Samir Jana for nothing just adding some features & a lit bit modifications.
- Adnan Ahmad for base repo
- Thanks to ShannonScott for transcode_h265.py
- Copyright © 2021 — Samir Jana
- Copyright © 2021 — Adnan Ahmad
- Licensed under the terms of the GNU General Public License Version 3 ‐ 29 June 2007