This project is an automatic video subtitles creator that uses Python to process video files, extract audio, transcribe audio, and generate subtitles according to the social media platform you want to publish on.
- Alignment Process: An advanced alignment process to correct speech-to-text (STT) output using the original video script.
- Subtitle Positioning: Allows selection of subtitles position based on the uploading platform (YouTube, Facebook, TikTok, Instagram) to ensure the text fits with their HUD.
- Graphical User Interface (GUI): A user-friendly GUI for easy interaction with the tool.
AISubtitlesCreator_example_lowsize.mp4
This project is a fork of Supertranslate.ai by Ramsri Goutham Golla. Explicit permission was obtained from the original author to use, modify, and distribute the code.
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
You can run the application either through the command line or the GUI.
- Basic Usage
To process a video without a script:
python main.py --video path/to/your/video.mp4
- Full Command
A full example with all options:
python main.py --video path/to/your/video.mp4 --script "Your optional script here" --platform Youtube --text_position low --output_dir path/to/output/directory
Simply run the following command to start the GUI:
python main.py --gui
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.