How weifeng2333/videocaptioner works
VideoCaptioner is a desktop and command-line video-captioning application. Its principal workflow turns media into timed subtitles, splits and optimizes subtitle text, translates it, then renders subtitles into video; separate features download media and generate dubbed audio/video. The GUI pipeline thread explicitly sequences transcription, subtitle processing, and synthesis. README documents the broader workflow and supported capabilities; unsampled command handlers and core implementations limit certainty about their exact call wiring.
Main entry points: main.py CLI dispatcher · process.py Process command · subtitle_pipeline_thread.py GUI full pipeline · translate Subtitle translation
Components 26
User interfaces
- CLI dispatcher
videocaptioner/cli/main.py - Desktop app
videocaptioner/ui/main.py - GUI full pipeline
videocaptioner/ui/thread/subtitle_pipeline_thread.py - Transcribe command
videocaptioner/cli/commands/transcribe.py - Subtitle command
videocaptioner/cli/commands/subtitle.py - Process command
videocaptioner/cli/commands/process.py - Synthesize command
videocaptioner/cli/commands/synthesize.py - Download command
videocaptioner/cli/commands/download.py - Dub command
videocaptioner/cli/commands/dub.py
Subtitle processing
- Subtitle splitting
videocaptioner/core/split - Subtitle optimization
videocaptioner/core/optimize/optimize.py - Subtitle translation
videocaptioner/core/translate
Media and speech
- Speech recognition
videocaptioner/core/asr - Subtitle rendering
videocaptioner/core/subtitle - Dubbing pipeline
videocaptioner/core/dubbing/pipeline.py
External integrations
- Speech synthesis
videocaptioner/core/speech - LLM client
videocaptioner/core/llm/client.py - LLM API
- Translation services
videocaptioner/core/translate - ASR providers
videocaptioner/core/asr - TTS providers
videocaptioner/core/tts - Video tools
- Video platforms
Configuration
- Application config
videocaptioner/config.py
Other components
- CLI user
- Desktop user
Connections 34
- CLI user → CLI dispatcher: runs commands
- Desktop user → Desktop app: opens app
- CLI dispatcher → Transcribe command: dispatches
- CLI dispatcher → Subtitle command: dispatches
- CLI dispatcher → Process command: dispatches
- CLI dispatcher → Synthesize command: dispatches
- CLI dispatcher → Download command: dispatches
- CLI dispatcher → Dub command: dispatches
- Desktop app → GUI full pipeline: starts workflow
- GUI full pipeline → Speech recognition: transcribes media
- GUI full pipeline → Subtitle optimization: processes subtitles
- GUI full pipeline → Subtitle rendering: synthesizes video
- Transcribe command → Speech recognition: transcribes media
- Subtitle command → Subtitle optimization: optimizes text
- Subtitle command → Subtitle translation: translates text
- Process command → Speech recognition: starts workflow
- Process command → Subtitle optimization: processes subtitles
- Process command → Subtitle translation: translates text
- Process command → Subtitle rendering: synthesizes video
- Synthesize command → Subtitle rendering: renders subtitles
- Download command → Video platforms: downloads media
- Dub command → Dubbing pipeline: creates dub
- Speech recognition → ASR providers: requests recognition
- Subtitle splitting → LLM client: requests sentence splits
- Subtitle optimization → LLM client: requests optimization
- Subtitle translation → Translation services: selects translator
- LLM client → LLM API: sends requests
- Dubbing pipeline → Speech synthesis: synthesizes segments
- Speech synthesis → TTS providers: requests speech
- Dubbing pipeline → Video tools: muxes dubbed video
- Subtitle rendering → Video tools: renders video
- CLI dispatcher → Application config: reads options
- Desktop app → Application config: loads settings
- Subtitle translation → LLM client: requests LLM translation