SRT-DEDUPLICATE(1)
β¨ NAME β¨
okay so bestie, welcome to srt-deduplicate β it's the SRT subtitle processing tool, and it's literally here to make your subtitles stop saying the same thing twice π
this whole page is the man page for it, and it lives in the User Commands section, iykyk.
πΈ DESCRIPTION πΈ
here's the vibe β usage, fr fr:
usage: srt deduplicate [-h] [--input FILE] [--output FILE] [--inplace]
[--no-strict] [--debug] [--ignore-parsing-errors]
[--encoding ENCODING] [-t MILLISECONDS]
and what it does? Deduplicate repeated subtitles. that's it, that's the whole main character moment. it finds the duplicates and it removes them. iconic. β¨
π options:
-h,--helpβ shows you this help message and then dips. show this help message and exit, periodt.--input FILE,-i FILEβ the file to process, bestie. and lowkey if you don't give it one, it defaults to stdin. (default: stdin)--output FILE,-o FILEβ the file it writes to. no file? no problem, it defaults to stdout. (default: stdout)--inplace,-pβ modify file in place. it just goes in and edits the file itself, no separate output file needed π«Ά--no-strictβ allow blank lines in output. and listen, the manpage is being so real about this: your media player may explode π so like, know what you're doing.--debugβ enable debug logging. turn it on when you wanna see everything that's happening π¦--ignore-parsing-errors,-cβ try to keep going, even if there are parsing errors. it's giving resilience, it's giving "we move" β¨--encoding ENCODING,-e ENCODINGβ the encoding to read/write files in. (default: utf8) π-t MILLISECONDS,--ms MILLISECONDSβ how many milliseconds distance a subtitle start time must be within of another to be considered a duplicate. (default: 5000ms) so basically the closeness threshold, and yeah it's in ms β
π§ examples:
Remove duplicated subtitles within 5 seconds of each other
$ srt deduplicate -i duplicated.srt
Remove duplicated subtitles within 500 milliseconds of each other
$ srt deduplicate -t 500 -i duplicated.srt
Remove duplicated subtitles regardless of temporal proximity
$ srt deduplicate -t 0 -i duplicated.srt
π heads up bestie β that --no-strict flag allowing blank lines? the manpage straight up says your media player may explode. so like, dramatic but also fr fr.
and that's the whole page, we ate and left no crumbs π this was srt-deduplicate version 3.5.3, from back in June 2023 π thanks for reading, ily, go dedupe something πππΈ
π¦ 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