SRT-NORMALISE(1)
π 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 isstdin, so if you don't say anything she'll just read from stdin, periodt.--output FILE,-o FILEβ the file to write to. default isstdout, 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 isutf8π§
π 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 wassrt-normaliseversion3.5.3, datedJune 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
- debian trixie: python3-srt 3.5.3-1 Β· MIT
- ubuntu noble: python3-srt 3.5.3-1 Β· MIT
- ubuntu questing: python3-srt 3.5.3-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms