A telegram bot for compressing/encoding videos in h264 format.

Overview

Video-Encoder-Bot

a telegram bot for compressing/encoding videos in h264 format.

Configuration

Add values in environment variables or add them in config.env.example and rename file to config.env.

Basics

Authorization

  • SUDO_USERS - Chat identifier of the sudo user. For multiple users use space as seperator.

Encode Settings

Optional

  • UPLOAD_AS_DOC - (Optional) Uploads Video as doc if True else False.
  • DOWNLOAD_DIR - (Optional) Temporary download directory to keep downloaded files.
  • ENCODE_DIR -(Optional) Temporary encode directory to keep encoded files.

Configuring Encoding Format

To change the ffmpeg profile edit them in ffmpeg.py

Deployment

With python3.7 or later.

pip3 install --no-cache-dir -r requirements.txt
python3 -m VideoEncoder

Credits

Copyright & License

You might also like...
goal: render videos on eu4's timeline function
goal: render videos on eu4's timeline function

Rendering Videos on the EU4 Time Line This repository contains code to create an eu4-savefile that plays back a video in question.

Youtube as covert-channel - Control systems remotely and execute commands by uploading videos to Youtube
Youtube as covert-channel - Control systems remotely and execute commands by uploading videos to Youtube

covert-tube A program to control systems remotely by uploading videos to Youtube using Python to create the videos and the listener, emulating some ma

Text2Video's purpose is to help people create videos quickly and easily by simply typing out the video’s script and a description of images to include in the video.
Text2Video's purpose is to help people create videos quickly and easily by simply typing out the video’s script and a description of images to include in the video.

Text2Video Text2Video's purpose is to help people create videos quickly and easily by simply typing out the video’s script and a description of images

Script simples para baixar vídeos/áudios/playlist do YouTube

🔗 VilelaTube ▶️ Script simples para baixar vídeos/áudios/playlist do YouTube Requisitos • Como usar • Melhorias futuras ⚠️ Atenção! ⚠️ Lembre-se de a

A GUI based datamoshing apllication for everyone! Apply this glitch to your videos and gifs. Supports all video formats!
A GUI based datamoshing apllication for everyone! Apply this glitch to your videos and gifs. Supports all video formats!

A GUI based datamoshing apllication for everyone! Apply this glitch to your videos and gifs. Supports all video formats!

DICexport is a GUI (PyQt5) to export digital image correlation videos

DIC Video Exporter DICexport is a GUI (PyQt5) to export digital image correlation videos. It offers the flexibility to choose a selected range of a vi

Add the dislike count back to my YouTube videos via a comment containing that information.

YouTube Dislikes Forrest Knight Python Version 3.0+ Only use if you know what the code actually does. I'm not responsible for your use of this code in

Program to play videos with props in Apex Legends

R5Fresh A video player for the Apex Legends mod R5Reloaded

This will help you study and avoid moving mouse coz u dont need mouse for watching youtube videos

This will help you study and avoid moving mouse coz u dont need mouse for watching youtube videos. Neither u need it for pdfs just use your keyboard

Comments
  • can't start the bot

    can't start the bot

    Hi , i deployed the bot in vps. after running the bot , i send /start. then i got this error. any idea ? it worked perfectly before.

    09-May-22 07:09:24 - pyrogram.dispatcher - ERROR - Invalid parse mode "html" Traceback (most recent call last): File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/root/Video-Encoder-Bot/VideoEncoder/plugins/start.py", line 30, in start_message await message.reply(text=text, reply_markup=start) File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/types/messages_and_media/message.py", line 959, in reply_text return await self._client.send_message( File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/methods/messages/send_message.py", line 122, in send_message message, entities = (await utils.parse_text_entities(self, text, parse_mode, entities)).values() File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/utils.py", line 343, in parse_text_entities text, entities = (await client.parser.parse(text, parse_mode)).values() File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/parser/parser.py", line 54, in parse raise ValueError(f'Invalid parse mode "{mode}"') ValueError: Invalid parse mode "html"

    opened by irabro1992 1
  • can't set thumbnail

    can't set thumbnail

    when i try to set thumbnail , i got this error message . little help ?

    13-May-22 16:17:19 - pyrogram.dispatcher - ERROR - [Errno 2] No such file or directory: 'file' Traceback (most recent call last): File "/root/Video-Encoder-Bot/venv/lib/python3.8/site-packages/pyrogram/dispatcher.py", line 222, in handler_worker await handler.callback(self.client, *args) File "/root/Video-Encoder-Bot/VideoEncoder/plugins/thumbnail.py", line 54, in savethumbnail mimetype = await get_file_mimetype(tempthumb.name) File "/root/Video-Encoder-Bot/VideoEncoder/utils/utils.py", line 55, in get_file_mimetype proc = await asyncio.create_subprocess_exec('file', '--brief', '--mime-type', filename, stdout=asyncio.subprocess.PIPE) File "/usr/lib/python3.8/asyncio/subprocess.py", line 236, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "/usr/lib/python3.8/asyncio/base_events.py", line 1630, in subprocess_exec transport = await self._make_subprocess_transport( File "/usr/lib/python3.8/asyncio/unix_events.py", line 197, in _make_subprocess_transport transp = _UnixSubprocessTransport(self, protocol, args, shell, File "/usr/lib/python3.8/asyncio/base_subprocess.py", line 36, in init self._start(args=args, shell=shell, stdin=stdin, stdout=stdout, File "/usr/lib/python3.8/asyncio/unix_events.py", line 789, in _start self._proc = subprocess.Popen( File "/usr/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'file'

    opened by irabro1992 5
Owner
Weeb >.<
ab mai itna bhi kuch khas nahi :D
Weeb >.<
Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding

Av1an A cross-platform framework to streamline encoding Easy, Fast, Efficient and Feature Rich An easy way to start using AV1 / HEVC / H264 / VP9 / VP

Zen 947 Jan 1, 2023
A Telegram bot to convert videos into x265/x264 format via ffmpeg.

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

Adnan Ahmad 82 Jan 3, 2023
A Telegram bot to convert videos into x265/x264 format via ffmpeg.

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

null 1 Mar 8, 2022
Convert lecture videos to slides in one line. Takes an input of a directory containing your lecture videos and outputs a directory containing .PDF files containing the slides of each lecture.

Convert lecture videos to slides in one line. Takes an input of a directory containing your lecture videos and outputs a directory containing .PDF files containing the slides of each lecture.

Sidharth Anand 12 Sep 10, 2022
A simple Telegram bot to extract hard-coded subtitle from videos using FFmpeg & Tesseract.

Video Subtitle Extractor Bot A simple Telegram bot to extract hard-coded subtitle from videos using FFmpeg & Tesseract. Note that the accuracy of reco

null 14 Oct 28, 2022
It is a simple python package to play videos in the terminal using characters as pixels

It is a simple python package to play videos in the terminal using characters as pixels

Joel Ibaceta 1.4k Jan 7, 2023
Python Script for Streaming YouTube Videos in VLC Media Player.

Short Description Use this Simple Script to stream YouTube Video to VLC

Sijey 6 May 27, 2021
pygamevideo module helps developer to embed videos into their Pygame display

pygamevideo module helps developer to embed videos into their Pygame display. Audio playback doesn't use pygame.mixer.

Kadir Aksoy 10 Dec 28, 2022
Playing videos through S3 buckets (Wasabi, AWS, etc.) through client-side VideoJS player

Playing videos through S3 buckets (Wasabi, AWS, etc.) through client-side VideoJS player without incurring ingress/egree traffic on EC2 Instance.

Syed Umar Arfeen 8 Mar 28, 2022
A python generator that converts youtube videos to ascii art in your console.

Video To ASCII A python generator that converts youtube videos to ascii art in your console. This has not been tested for windows! Example Normal mode

Julian Jones 24 Nov 2, 2022