WeebZoneIndia / Video-Encoder-Bot

a telegram bot for compressing/encoding videos in h264 format.
GNU Affero General Public License v3.0
74 stars 197 forks source link

Video Encoder Bot

A telegram bot to convert and compress videos into x265/x264 format via ffmpeg.

Configuration

Basics

Authorization Every Var can have space as seperator for multiple user/chat.

Log Channel

Database

Google Drive

Optional

Configuring Encoding Format

To change the ffmpeg profile edit them in ffmpeg.py

Installing Requirements

Install the required Python Modules and Latest FFMPEG in your machine.

apt update && apt-get install software-properties-common -y && apt-get update && add-apt-repository -y ppa:savoury1/ffmpeg4 && apt-get install -y ffmpeg && add-apt-repository -y ppa:savoury1/ffmpeg5 && apt-get install -y ffmpeg && pip3 install -r requirements.txt

Deployment

With python 3.9.2 or later. first make repo folder workdir then

apt update && apt install -y --no-install-recommends git wget aria2 curl busybox python3 python3-pip p7zip-full p7zip-rar unzip mkvtoolnix ffmpeg
pip3 install --no-cache-dir -r requirements.txt
chmod +x extract
bash run.sh

For Drive

Place token.pickle and credentials.json on workdir

Deployment via Docker

Install docker

sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic nightly" && apt-cache policy docker-ce && sudo apt install docker-ce -y

Start docker build

Stop Docker for Major Change

Credits

Copyright & License