SRT-DEDUPLICATE(1)

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

✨ 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