Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.54 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.54 KB

Video Subtitle Extractor Bot

A simple Telegram bot to extract hard-coded subtitle from videos using FFmpeg & Tesseract.

Note that the recognition accuracy depends on the subtitle font and its visibility.

Deploy to Heroku

Deploy

Local Deploying

  1. Make sure you have Tesseract and FFmpeg.

  2. Clone the repo

    git clone https://github.com/samadii/VidSubExtract-Bot
    
  3. Go to this line and add the PATH where Tesseract is installed.

  4. Also fill this path with the path of the tessdata folder.

  5. Enter the directory

    cd VidSubExtract-Bot
    
  6. Install all requirements using pip.

    pip3 install -r requirements.txt
    
  7. Run the file

    python3 main.py
    

Environment Variables

Devs: