Skip to content

MwK-Noob-Developers/EncoderBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encoder Bot 📯

A Telegram Bot To Encode x265 (HEVC) / x264 (AVC) Via FFMPEG

Added Optimize Settings To Encode x265 :)

Configuration

Add Values In Environment Variables or Add Them In config.env.

  • API_ID - Get It By Creating an App On https://my.telegram.org
  • API_HASH - Get It By Creating an App On https://my.telegram.org
  • BOT_TOKEN - Get It By Creating an Bot On https://t.me/BotFather
  • BOT_USERNAME - Username Of the Bot Without '@'
  • SUDO_USERS - Chat Identifier Of The Sudo Users.
  • UPDATES_CHANNEL - (Optional) Updates Channel ID (eg: -105446648712)
  • DB_CHANNEL - Database Channel ID (eg: -105446648712) Database Channel To Store Files
  • DOWNLOAD_DIR - (Optional) Temporary Download Directory To Keep Downloaded Files.

Configuring Encoding Format

To Change The FFMPEG Profile Edit Them In ffmpeg_utils.py

  • Already Optimized For Some Qualities :)

Installing Requirements

Install The Required Python Modules In Your Machine.

apt-get -qq install ffmpeg
pip3 install -r requirements.txt

Deployment

With Python3.7 or Later.

python3 main.py

Deploying on Heroku

Credits

Thanks to ShannonScott for transcode_h265.py

Copyright & License

About

Encode Files via FFMPEG!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • Shell 2.7%