Giter Club home page Giter Club logo

encoderbot's Introduction

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

encoderbot's People

Contributors

ak14k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.