Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/franciscop/add-subs

Add subtitles to an MP4 from a SRT file
https://github.com/franciscop/add-subs

Last synced: 13 days ago
JSON representation

Add subtitles to an MP4 from a SRT file

Awesome Lists containing this project

README

        

# Add Subs

You have a `~/Movies/file.mp4` (or `.mkv`), and a `~/Movies/file.srt`. You want to merge them into one. Easy, just run:

```bash
npx add-subs "~/Movies/file.mp4"
npx add-subs "~/Movies/another.mkv"
```

> You need to have `ffmpeg` installed in your terminal

add-subs will then merge both into a single `file.mp4` and remove `file.srt`.

By default they will be filled under "English", but just pass a flag to add them in a different language:

```bash
npx add-subs "~/Movies/file.mp4" --lang Spanish
```

> Warning: interrupting this process might cause `file.mp4` to become corrupt or even be removed!