SRT-NORMALISE(1)

πŸ“¦
version 3.5.3 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– SRT-NORMALISE πŸ’–

okay so bestie, this is the manual page for srt-normalise, and it lives in section 1 of the manual (iykyk, that's the user commands girlies). it's literally an SRT subtitle processing tool and i'm obsessed πŸ’…


✨ NAME ✨

srt-normalise β€” the SRT subtitle processing tool that fixes your messy subs, no cap πŸŽ€


🌸 DESCRIPTION 🌸

here's the whole vibe, fr fr:

usage: srt normalise [-h] [--input FILE] [--output FILE] [--inplace]
       [--debug]

       [--ignore-parsing-errors] [--encoding ENCODING]

so what does it actually do? it takes a badly formatted SRT file and outputs a strictly valid one. that's it. that's the glow-up. you hand it chaos, it hands you back a valid subtitle file. main character energy βœ¨πŸ¦‹


🫢 options: 🫢

  • -h, --help β€” show this help message and exit. the classic. whenever you're lost, she's there πŸ’–
  • --input FILE, -i FILE β€” the file to process. default is stdin, so if you don't say anything she'll just read from stdin, periodt.
  • --output FILE, -o FILE β€” the file to write to. default is stdout, so she'll just yeet it out to stdout unless you tell her otherwise 🌈
  • --inplace, -p β€” modify file in place. careful bestie, she's editing the actual file πŸ‘€
  • --debug β€” enable debug logging. turn this on when you wanna see everything going on πŸ”₯
  • --ignore-parsing-errors, -c β€” try to keep going, even if there are parsing errors. she's resilient like that πŸ’ͺ
  • --encoding ENCODING, -e ENCODING β€” the encoding to read/write files in. default is utf8 🧚

πŸŽ€ examples: πŸŽ€

normalise a subtitle, like so:

$ srt normalise -i bad.srt -o good.srt

bad in, good out. iconic behaviour honestly ⭐


that's the whole page bestie, go forth and normalise πŸ’œ

lowkey a tiny note: this was srt-normalise version 3.5.3, dated June 2023 β€” so if your copy is a different version, check her again πŸ™ˆ

bye bye, slay, and may all your subtitles be strictly valid βœ¨πŸ’–πŸ‘‘

πŸ“¦ where this page comes from