GithubHelp home page GithubHelp logo

zkhan93 / tb-yt-uploader Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 2.18 MB

Telegram bot for converting audio to video, uploading to YouTube

License: MIT License

Dockerfile 3.20% Python 74.08% Shell 0.42% Makefile 0.61% HTML 21.69%
telegram-bot audio-to-video background-jobs celery docker ffmpeg google-auth oauth redis telegram

tb-yt-uploader's Introduction

Telegram Audio to Video Bot

A Telegram bot that can convert a given audio message to a video using FFmpeg and an image. This bot is built on Docker and has background jobs to keep the Google Auth Token alive by refreshing it every hour, using Celery Beat and Celery Task to achieve this. The bot has a web interface where you sign in using Google and give the bot access to manage your YouTube videos.

Features

  • Convert audio messages to videos using FFmpeg
  • Background jobs to keep the Google Auth Token alive
  • Web interface to sign in using Google and give the bot access to manage your YouTube videos
  • Upload videos to YouTube
  • Telegram Bot that can be used to convert audio message into video

Getting Started

Prerequisites

  • Docker
  • Docker Compose
  • Telegram Bot Token
  • Google client secret json file
  • A redirect URI, this can be http://localhost:8000/oauth-callback if you are running the application on your local machine

Installation

  • Clone the repository and navigate into the project directory
  • Copy .env.example to .env and fill in the appropriate secrets
  • Build and start the application by running docker-compose up --build
  • Wait for the containers to start up and the application to initialize, this may take a few minutes

Usage

  • Access the web interface by going to http://localhost:8000/authorize
  • Sign in with your google account
  • You will be prompted to give the bot access to manage your YouTube videos
  • After signing in you can use the bot by sending an audio recording to bot and then reply on that message with "/covert <title of the video>"
  • Bot will create and upload the video to youtube and reply you with the status
  • To stop the application, press CTRL+C in the terminal or run docker-compose down

Contributing

If you want to contribute to the project, please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License

tb-yt-uploader's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

adarshuc nero-bc

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.