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
- Host: GitHub
- URL: https://github.com/lll-lll-lll-lll/vtt-formatter
- Owner: lll-lll-lll-lll
- License: mit
- Created: 2022-09-03T03:00:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T21:30:08.000Z (12 months ago)
- Last Synced: 2025-01-26T02:52:30.430Z (4 months ago)
- Topics: portfolio
- Language: Go
- Homepage:
- Size: 327 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: captions00: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 ♪```