/subtrans

translate subtitle from video with LLM service

Primary LanguagePythonApache License 2.0Apache-2.0

Subtitle Translator

What's this?

subtrans can help you to extract embedded subtitle from movies or TV series and use OpenAI API to translate from any language to your native language. Or translate srt file directly.

Requirements

Usage

export OPENAI_API_KEY=your_api_key # optional. you can input in next step
python subtrans.py -f video_or_srt_file

run python subtrans.py -h to get more details.