How shaweesh/generate-subtitle-gui works
Project type and purpose
• This is a desktop GUI application (built in Python with tkinter) whose primary purpose is to extract audio from video, generate subtitles via the Whisper model, allow user editing of those subtitles, and merge the final subtitles back into the video file.
File structure
• Top-level Python scripts:
• app.py – launches the GUI and orchestrates workflow
• main.py – handles “Extract Audio” and “Generate Subtitles” steps
• merge_srt.py – handles “Merge Subtitles” step
• Configuration and assets:
• config.json – stores user settings (e.g., target language)
• assets/ – contains static files (project-overview.png for README)
• Dependencies and packaging:
• requirements.txt – lists Python packages (ffmpeg-python, faster-whisper, tkinter, etc.)
• PyInstaller build command referenced in README
README for additional insights
• Workflow described in four phases: Browse → Prepare (extract & transcribe) → Edit SRT → Complete (merge)
• External tools: FFmpeg (via ffmpeg-python), Whisper model (via faster-whisper), PyInstaller for packaging
• Configuration persists user language selection across sessions