Skip to content

Convert a subtitle file (eg. .vtt, .srt files) to an .lrc file

License

Notifications You must be signed in to change notification settings

shipurjan/subtitle-to-lrc

Repository files navigation

subtitle-to-lrc 0.1.0

GPLv3 License Build and release

A program that converts a subtitle file into an .lrc file

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

NAME:
   subtitle-to-lrc - Convert subtitle files to .lrc format

USAGE:
   subtitle-to-lrc [options] <input-file> [output-file]

   <input-file> - the file must have an allowed subtitle extension (srt, vtt)
   [output-file] - if not provided the program will use <input-file> filename with its extension replaced by .lrc

VERSION:
   0.1.0

AUTHOR:
   Cyprian Zdebski <cyprianz5mail@gmail.com>

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 32-bit (ARM: 64-bit 32-bit )

Linux 64-bit 32-bit (ARM: 64-bit 32-bit )

MacOS 64-bit (ARM: 64-bit )

Development

It's recommended that you use husky script, so that the versioning is correctly updated before pushing

go install github.com/automation-co/husky@latest
husky init