A Telegram Bot To Encode x265 (HEVC) / x264 (AVC) Via FFMPEG
Added Optimize Settings To Encode x265 :)
Add Values In Environment Variables or Add Them In 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 an Bot On https://t.me/BotFatherSUDO_USERS
- Chat Identifier Of The Sudo Users.DOWNLOAD_DIR
- (Optional) Temporary Download Directory To Keep Downloaded Files.
To Change The FFMPEG Profile Edit Them In ffmpeg_utils.py
- Already Optimized For Some Qualities :)
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
- Fork The Repository
- Create an App On Heroku Add The FFMPEG Buildpack
- Fill In config.env
- Deploy
Thanks to ShannonScott for transcode_h265.py
- Copyright © 2021 — Adnan Ahmad
- Licensed Under The Terms Of The GNU General Public License Version 3 ‐ 29 June 2007