Skip to content

niceslimenotbad/video-encoder-bot

 
 

Repository files navigation

Video Encoder Bot

A Telegram bot to convert videos into x265/x264 format via ffmpeg.

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 a bot on https://t.me/BotFather
  • SUDO_USERS - Chat identifier of the sudo user. For multiple users use space as seperator.
  • DOWNLOAD_DIR - (Optional) Temporary download directory to keep downloaded files.

Configuring Encoding Format

To change the ffmpeg profile edit them in ffmpeg_utils.py

Easy Deploy:

Deploy

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 -m bot

Credits

Thanks to ShannonScott for transcode_h265.py

Copyright & License

About

A Telegram bot to encode videos files via ffmpeg.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.1%
  • Shell 6.9%
  • Dockerfile 5.0%