BedirT / PolySub

Video Transcribing for Subtitles and Translating

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo


PolySub is a simple yet powerful GUI-based application that allows you to generate and translate subtitles for any video content. The application leverages the power of the state-of-the-art `SubsAI` module, using machine learning to perform transcription and translation.

Features

  • Transcribes and generates subtitles from video files in various formats (e.g., .mp4, .mkv, .avi, .mov, .flv, .wmv)
  • Translates generated subtitles from one language to another
  • Option to save translated subtitles in a custom output directory

Prerequisites

  • Python 3.6 or later

Installation

This project requires additional dependencies besides Python packages. It is suggested to use a virtual environment to install the dependencies:

python3 -m venv venv
source venv/bin/activate

FFmpeg

SubtitleApp requires FFmpeg to process video files.

macOS

On macOS, you can install FFmpeg with Homebrew:

brew install ffmpeg

Windows

On Windows, you can download FFmpeg from the official website. After downloading, extract the files and add the bin directory to your PATH. You can find instructions on how to do this here.

Linux

On Linux, you can install FFmpeg with your package manager. For example, on Ubuntu, you can run:

sudo apt install ffmpeg

tkinker

Sometimes tkinker is not installed by default in your system. You may need to install it manually.

macOS

brew install python-tk

Linux (Ubuntu)

sudo apt-get install python3-tk

Python Packages

You will also need to install several Python packages.

pip install -r requirements.txt
pip install git+https://github.com/abdeladim-s/subsai

Usage

After starting the application:

  1. Click on "Select Video Files" to choose one or multiple video files you want to process.
  2. Choose the input language (the language the video content is in).
  3. Choose the output language (the language you want the subtitles translated to).
  4. (Optional) Click on "Select Output File Location" to choose a custom directory to save the translated subtitle files. If you skip this step, the subtitle files will be saved in the same directory as the video files.
  5. Click on "Start Process" to start the transcription and translation process.

The progress of the process will be displayed on the progress bar and in the status label, and detailed logs will be shown in the log text box.

Contributing

Contributions are welcome! Please read our Contributing Guide for more information.

License

This project is licensed under the terms of the MIT license. See the LICENSE file.


Support

For any questions or issues, please refer to our Issue Tracker or contact us directly.


Feel free to use this README.md as a template for your project and replace "yourname", "yourrepo", and "yourproject" with the appropriate values.

About

Video Transcribing for Subtitles and Translating

License:MIT License


Languages

Language:Python 100.0%