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

https://github.com/lll-lll-lll-lll/vtt-formatter

Format youtube subtitle text in vtt file
https://github.com/lll-lll-lll-lll/vtt-formatter

portfolio

Last synced: about 2 months ago
JSON representation

Format youtube subtitle text in vtt file

Awesome Lists containing this project

README

        

# Specification
https://www.w3.org/TR/webvtt1/

This is a tool for formatting VTT (Video Text Tracks) files. It follows the specification provided by W3C, which can be found [here](https://www.w3.org/TR/webvtt1/).

## Installation

To install `vtt-formatter`, you need to tap into our Homebrew repository and then install the package. Run the following commands in your terminal:

```sh
brew tap lll-lll-lll-lll/vtt-formatter
brew install vtt-formatter
```

## Usage
You can use VTT Formatter from the command line with the following options:

Options:

- `-h` or `--help`: Display help information
- `-v` or `--version`: Display the current version of VTT Formatter
- `-i` or `--input=`: Specify the VTT file to be formatted
- `-o` or `--output=`: Specify the destination file for the formatted VTT
- `-p` or `--print`: Print the formatted VTT to the console

## CLI Example

```sh
vtt-formatter --input example.vtt --print --output formattedfile.vtt

### CLI Example

```sh
vtt-formatter -filepath example.vtt -pj -path shapedfile.vtt
```

```
WEBVTT
Kind: captions

00:00:00.350 --> 00:00:02.770 position:63% line:0%
- Yo what is going on guys, welcome back to the channel.

00:00:02.770 --> 00:00:08.840 position:63% line:0%
My name's Sonny and todayI'm gonna teach you all about the useEffect Hook and why it has transformed.

00:00:08.840 --> 00:00:12.158 position:63% line:0%
the way that we usefunctional components and why you need to know it.♪ I know ♪

```