Metadata-Version: 2.5
Name: movie-subtitles
Version: 0.0.1
Summary: Command line interface to transcribe movies
Project-URL: Homepage, https://github.com/mathiasesn/movie-subtitles
Project-URL: Repository, https://github.com/mathiasesn/movie-subtitles
Author-email: mathiasesn <mathiasesn1@gmail.com>
License: MIT License
        
        Copyright (c) 2023 Mathias Nielsen
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: faster-whisper
Requires-Dist: torch
Requires-Dist: tqdm
Requires-Dist: transformers
Description-Content-Type: text/markdown

# 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
- [uv](https://docs.astral.sh/uv/getting-started/installation/)

## Installation

Run without installing (recommended)

```shell
uvx --from git+https://github.com/mathiasesn/movie-subtitles.git movie-subtitles --help
```

Install as a tool

```shell
uv tool install git+https://github.com/mathiasesn/movie-subtitles.git
```

Develop locally

```shell
git clone https://github.com/mathiasesn/movie-subtitles.git
cd movie-subtitles
uv sync
uv run movie-subtitles --help
```

## Usage

```shell
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
```
