Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 913 Bytes

readme.md

File metadata and controls

40 lines (29 loc) · 913 Bytes

Movie subtitles

Command line interface for creating movie subtitles either as .srt files or by adding them to each movie frame.

Prerequisites

  • Python => 3.10

Installation

Install from git (recommend)

pip install git+https://github.com/mathiasesn/movie-subtitles.git

Install locally

git clone https://github.com/mathiasesn/movie-subtitles.git
cd movie-subtitles
pip install -e .

Usage

movie-subtitles --help
usage: translation-cli <command> [<args>]

options:
  -h, --help            show this help message and exit
  --input INPUT         The input file to transcribe
  --audio-lang AUDIO_LANG
                        The language of the audio in the movie
  --srt-lang SRT_LANG   The language of the srt file
  --whisper-model WHISPER_MODEL
                        The whisper model to use
  --mt-model MT_MODEL   The machine translation model to use