Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/franciscop/add-subs
- Owner: franciscop
- License: mit
- Created: 2022-04-27T05:48:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-27T05:51:22.000Z (over 2 years ago)
- Last Synced: 2024-09-06T20:32:17.409Z (2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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!