a telegram bot for compressing/encoding videos in h264 format.
Add values in environment variables or add them in config.env.example and rename file to config.env
.
Basics
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 a bot on https://t.me/BotFather
Authorization
SUDO_USERS
- Chat identifier of the sudo user. For multiple users use space as seperator.
Encode Settings
RESOLUTION
- Click HerePRESET
- Click HereTUNE
- Click HereAUDIO
- Click HereCRF
- Click Here
Optional
DOC_THUMB
- (Optional) Thumbnail for documentUPLOAD_AS_DOC
- (Optional) Uploads Video as doc if1
else0
.DOWNLOAD_DIR
- (Optional) Temporary download directory to keep downloaded files.ENCODE_DIR
- (Optional) Temporary encode directory to keep encoded files.
To change the ffmpeg profile edit them in ffmpeg.py
With python3.7 or later.
pip3 install --no-cache-dir -r requirements.txt
bash run.sh
- ShannonScott for transcode_h265.py
- viperadnan-git for queue etc.
- for thumbnail etc.
- Copyright ยฉ 2021 โ WeebTime
- Licensed under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE