https://github.com/shipurjan/subtitle-to-lrc
Convert a subtitle file (eg. .vtt, .srt files) to an .lrc file
https://github.com/shipurjan/subtitle-to-lrc
cli console convert converter go golang lrc lyrics program srt sub subs subtitle vtt
Last synced: 5 months ago
JSON representation
Convert a subtitle file (eg. .vtt, .srt files) to an .lrc file
- Host: GitHub
- URL: https://github.com/shipurjan/subtitle-to-lrc
- Owner: shipurjan
- License: gpl-3.0
- Created: 2024-01-10T16:27:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T02:57:26.000Z (over 2 years ago)
- Last Synced: 2024-06-21T06:43:42.391Z (about 2 years ago)
- Topics: cli, console, convert, converter, go, golang, lrc, lyrics, program, srt, sub, subs, subtitle, vtt
- Language: Go
- Homepage:
- Size: 4.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# subtitle-to-lrc 0.1.0
[](https://opensource.org/licenses/)
[](https://github.com/shipurjan/subtitle-to-lrc/actions/workflows/go.yml)
A program that converts a subtitle file into an [`.lrc` file](https://en.wikipedia.org/wiki/LRC_(file_format))
Currently supported input formats:
* `.srt`
* `.vtt`
## Why?
One use case is to convert podcast subtitles to the lyrics format (.lrc), which can then be played on various portable music/media players
## Usage
```text
NAME:
subtitle-to-lrc - Convert subtitle files to .lrc format
USAGE:
subtitle-to-lrc [options] [output-file]
- the file must have an allowed subtitle extension (srt, vtt)
[output-file] - if not provided the program will use filename with its extension replaced by .lrc
VERSION:
0.1.0
AUTHOR:
Cyprian Zdebski
GLOBAL OPTIONS:
--separator value, -s value Separator to use to join lines when input subtitle file has multiple lines;
.lrc files can only have one subtitle line for each timestamp (default: " ")
--no-length-limit, -n Disables the length limit of a .lrc file;
by default a .lrc file can only have a maximum length of 59:59.99
(some players may not support longer durations) (default: false)
--help, -h show help
--version, -v print the version
```
## Download
Windows
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_windows-amd64.zip)
[32-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_windows-386.zip)
(ARM:
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_windows-arm64.zip)
[32-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_windows-arm.zip)
)
Linux
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_linux-amd64.zip)
[32-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_linux-386.zip)
(ARM:
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_linux-arm64.zip)
[32-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_linux-arm.zip)
)
MacOS
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_darwin-amd64.zip)
(ARM:
[64-bit](https://github.com/shipurjan/subtitle-to-lrc/releases/latest/download/subtitle-to-lrc_darwin-arm64.zip)
)
## Development
It's recommended that you use [husky](https://github.com/automation-co/husky) script,
so that the versioning is correctly updated before pushing
```console
go install github.com/automation-co/husky@latest
husky init
```