#parser #subtitle #write #library

subparse

Load, change and write common subtitle formats (srt/ass/idx/sub)

9 releases (breaking)

0.7.0 Apr 11, 2021
0.6.2 Sep 30, 2019
0.6.1 Aug 16, 2019
0.5.0 Feb 28, 2019
0.1.0 Mar 12, 2017

#2056 in Parser implementations

Download history 143/week @ 2024-12-09 47/week @ 2024-12-16 15/week @ 2024-12-23 36/week @ 2024-12-30 56/week @ 2025-01-06 86/week @ 2025-01-13 119/week @ 2025-01-20 63/week @ 2025-01-27 83/week @ 2025-02-03 98/week @ 2025-02-10 72/week @ 2025-02-17 110/week @ 2025-02-24 97/week @ 2025-03-03 62/week @ 2025-03-10 83/week @ 2025-03-17 48/week @ 2025-03-24

309 downloads per month
Used in 8 crates

MPL-2.0 and LGPL-3.0

94KB
2K SLoC

Introduction

subparse is a Rust library that lets use load, change and store subtitle files in various formats. Formatting and other data will be preserved.

You can find an examples how to use this library under examples/.

Currently supported are:

  • SubStationAlpha .ssa/.ass
  • MicroDVD .sub
  • SubRip .srt
  • VobSub .idx and .sub

Documentation

Crates.io

How to use the library

Add this to your Cargo.toml:

[dependencies]
subparse = "0.7.0"

Dependencies

~14–19MB
~342K SLoC