Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoTrans

License Next.js TypeScript

Video subtitle generation, translation, and multi-format export — browser-based, no CLI required.

Upload a video or audio file. ASR transcribes speech with timestamps. MT translates segments. Export SRT, VTT, ASS, or TXT — with optional bilingual mode.


Features

  • 🎬 Video / audio upload — MP4, MOV, AVI, MKV, WebM, MP3, WAV
  • 🎙️ Multi-provider ASR — OpenAI Whisper, DashScope Paraformer, Groq Whisper
  • 🌐 Multi-provider MT — OpenAI-compatible APIs, DashScope, Anthropic Claude
  • 🔊 Optional TTS dubbing — OpenAI TTS or DashScope CosyVoice
  • ✏️ Inline segment editor — fix transcription or translation before export
  • 📥 Multi-format export — SRT / VTT / ASS / TXT
  • 🈯 Bilingual subtitle mode — source + translation in one file
  • 🌍 12 languages — ZH, EN, JA, KO, FR, DE, ES, PT, RU, AR, TH, VI

Pipeline

Upload → [ASR] Transcribe → [MT] Translate → [Edit] → Export
                                         ↓
                                    [TTS] Dub (optional)

Quick Start

git clone https://github.com/Grayson0130/videotrans.git
cd videotrans
npm install
npm run dev
# → http://localhost:3002

Supported Providers

ASR

Provider Model Notes
OpenAI Whisper whisper-1 Standard accuracy
DashScope paraformer-realtime-v2 Excellent for Chinese
Groq Whisper whisper-large-v3-turbo Fastest

MT

Provider Example model
OpenAI / DashScope / Groq / DeepSeek gpt-4o-mini, qwen-plus
Anthropic Claude claude-3-5-haiku-20241022

TTS (optional)

Provider Voices
OpenAI TTS alloy, echo, fable, onyx, nova, shimmer
DashScope CosyVoice longxiaochun, longwan, longfei

Export Formats

Format Use case
.srt Most video players, YouTube
.vtt Web players, HTML5 video
.ass Advanced styling, fansubs
.txt Plain transcript, no timecodes

Tech Stack

Next.js 14 · TypeScript · openai SDK · @anthropic-ai/sdk

License

MIT © Jinhui Zhao

About

Video subtitle generation, translation, and multi-format export — browser-based

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages