Git Product home page Git Product logo

video-encoder-bot's Introduction

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.template and rename file to 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

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

video-encoder-bot's People

Contributors

viperadnan-git avatar weebzoneindia avatar x-gorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

video-encoder-bot's Issues

Tutorial

Can you make a youtube video or atleast write in detail how to use this repository to work for Noobs who can't understand like me.

sub

how to make it will auto burn in sub and choose resolution 1080 or 720

sub

how to make sub burn in?

-vf subtitles=video.mkv that ffmeg code

for python how to make, it try make -vf subtitles=filepath but failed

No such file or directory

[Errno 2] No such file or directory : 'ffprobe'

expected str, bytes or os.PathLike object, not NoneType

burn in sub

what ffmpeg code work at bot to burn sub,can you teach me🥺

Heroku Logs : File lives in another DC

There seemed to be an empty error in the bot response and this is what appears in the Heroku Logs
2021-08-28 07:52:57,871 - telethon.client.downloads - INFO - File lives in another DC

error in bot after Added to queue... command received

Hi Adnan ,
I'm get an error below after Added to queue... command received in bot :
" expected str, bytes or os.PathLike object, not NoneType "
I'll try to set env var value for DOWNLOAD_DIR is empty & / but in both received eror too.
my application log for allprocess write below :

2021-04-23T07:40:57.420214+00:00 app[worker.1]: Traceback (most recent call last): 2021-04-23T07:40:57.420215+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/client.py", line 509, in handle_download 2021-04-23T07:40:57.420215+00:00 app[worker.1]: shutil.move(temp_file_path, final_file_path) 2021-04-23T07:40:57.420216+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/shutil.py", line 826, in move 2021-04-23T07:40:57.420216+00:00 app[worker.1]: copy_function(src, real_dst) 2021-04-23T07:40:57.420216+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/shutil.py", line 435, in copy2 2021-04-23T07:40:57.420217+00:00 app[worker.1]: copyfile(src, dst, follow_symlinks=follow_symlinks) 2021-04-23T07:40:57.420217+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/shutil.py", line 264, in copyfile 2021-04-23T07:40:57.420217+00:00 app[worker.1]: with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: 2021-04-23T07:40:57.420218+00:00 app[worker.1]: OSError: [Errno 30] Read-only file system: '/video_2021-04-22_09-09-31_6954254937751912448.mp4'

waiting for your response
finest regards

Not working

expected str, bytes or os.PathLike object, not NoneType

👆this Error Coming

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.