Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maxzz/rarsrt

Utility to combine .SRT subtitles with .MP4 files inside specified folders.
https://github.com/maxzz/rarsrt

mp4 srt subtitles typescript utility video

Last synced: about 1 month ago
JSON representation

Utility to combine .SRT subtitles with .MP4 files inside specified folders.

Awesome Lists containing this project

README

        

### About

Utility to combine .SRT subtitles with .MP4 files inside specified folders.

### Installation

```npn -g i rarsrt```

or

```yarn global add rarsrt```

or build an executable file using [pkg](https://www.npmjs.com/package/pkg)

```yarn makebin```

### Usage

```rarsrt ```

### [SRT file format](https://en.wikipedia.org/wiki/SubRip)
```
1
00:02:16,612 --> 00:02:19,376
Senator, we're making
our final approach into Coruscant.

2
00:02:19,482 --> 00:02:21,609
Very good, Lieutenant.

3
00:03:13,336 --> 00:03:15,167
We made it.

4
00:03:18,608 --> 00:03:20,371
I guess I was wrong.

5
00:03:20,476 --> 00:03:22,671
There was no danger at all.
```

[.SRT SubRip file format specification](http://forum.doom9.org/showthread.php?p=470941#post470941)

### [VTT file format](https://en.wikipedia.org/wiki/WebVTT) WebVTT
[WebVTT Standard on GitHub](https://github.com/w3c/webvtt)

```
WEBVTT

00:11.000 --> 00:13.000
We are in New York City

00:13.000 --> 00:16.000
We're actually at the Lucern Hotel, just down the street

00:16.000 --> 00:18.000
from the American Museum of Natural History

00:18.000 --> 00:20.000
And with me is Neil deGrasse Tyson

00:20.000 --> 00:22.000
Astrophysicist, Director of the Hayden Planetarium

00:22.000 --> 00:24.000
at the AMNH.

00:24.000 --> 00:26.000
Thank you for walking down here.

00:27.000 --> 00:30.000
And I want to do a follow-up on the last conversation we did.

00:30.000 --> 00:31.500 align:right size:50%
When we e-mailed—

00:30.500 --> 00:32.500 align:left size:50%
Didn't we talk about enough in that conversation?

00:32.000 --> 00:35.500 align:right size:50%
No! No no no no; 'cos 'cos obviously 'cos

00:32.500 --> 00:33.500 align:left size:50%
Laughs

00:35.500 --> 00:38.000
You know I'm so excited my glasses are falling off here.
```

//G: 'srt file format wiki'
//G: 'vtt file format wiki'