This is a simple PyQt5 application that allows you to translate subtitles of a video file and add the translated subtitles to the video. It uses Google Translate for translation and FFmpeg for subtitle manipulation.
- Select a video file and extract subtitle tracks.
- Translate desired subtitles to various languages.
- Add translated subtitles to the original video.
- Supports popular languages like English, French, Spanish, Hindi, Telugu, and Tamil.
- Python 3.x
- PyQt5
- googletrans
- FFmpeg
-
Clone this repository:
git clone https://github.com/VishnuSrivatsava/TransPEG.git
-
Install the required dependencies:
pip install pyqt5 googletrans ffmpeg-python
-
Run the application:
python subtitle_translator.py
- Make sure you have
ffmpeg
properly installed on your system. - The application uses Google Translate for translation.
- Translated subtitles are saved as
translated_subtitles.srt
.
This project is licensed under the MIT License.