This project translates subtitles from Russian to Kazakh using OpenAI's ChatGPT API and embeds the translated subtitles into a video using FFmpeg.
Clone the repository to your local machine:
git clone https://github.com/AmankeldinovaMadina/kaz_sub.git
pip install -r requirements.txt
For ubuntu
sudo apt update
sudo apt install ffmpeg
For macOS
brew install ffmpeg
For windows, search in the google and download from the website
In the root directory of the project, create a .env file and add your OpenAI API key.
input_vtt_file = "example_subtitles.vtt"
input_video_file = "example_video.mp4"
python convert.py