MaKTaiL/gemini-srt-translator — reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python tool for translating subtitle files with Google Gemini.

I want to be able to give it an SRT file and a target language, and have it output a translated SRT that keeps the original timing and basic subtitle formatting intact. It should also be able to transcribe audio or video files into SRT subtitles, and if I give it a video file it should be able to pull subtitles out of the video and translate them. If possible, let it use audio from the video as extra context to improve the translation.

Please make it easy to use from the command line, with clear commands for translate, transcribe, and listing available Gemini models. It should support passing an API key or reading it from environment variables, let me resume interrupted jobs, choose model and batch settings, add a short description for context, and optionally save progress or reasoning logs. If video or audio extraction needs FFmpeg, handle that cleanly and document it. Look up current Gemini docs online if you need to.

Want more depth? Deep Reverse