All Projects → tkarabela → pysubs2

tkarabela / pysubs2

Licence: MIT license
A Python library for editing subtitle files

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pysubs2

ttml2srt
convert TTML subtitles to SRT subtitles
Stars: ✭ 46 (-73.56%)
Mutual labels:  subtitles, srt, subtitles-parsing
youtube-vtt
▶️ Extract and save WebVTT closed caption tracks from YouTube videos
Stars: ✭ 32 (-81.61%)
Mutual labels:  subtitles, webvtt, closed-captions
ccaptioner
An extension to assign a text track to a video element in a web page
Stars: ✭ 45 (-74.14%)
Mutual labels:  subtitles, srt
CCAligner
🔮 Word by word audio subtitle synchronisation tool and API. Developed under GSoC 2017 with CCExtractor.
Stars: ✭ 131 (-24.71%)
Mutual labels:  subtitles, closed-captions
Ffsubsync
Automagically synchronize subtitles with video.
Stars: ✭ 5,167 (+2869.54%)
Mutual labels:  subtitles, srt
Srt
A simple library for parsing, modifying, and composing SRT files.
Stars: ✭ 210 (+20.69%)
Mutual labels:  subtitles, srt
subed
Subtitle editor for Emacs
Stars: ✭ 143 (-17.82%)
Mutual labels:  subtitles, srt
Netflix To Srt
Rip, extract and convert subtitles to .srt closed captions from .xml/dfxp/ttml and .vtt/WebVTT (e.g. Netflix, YouTube)
Stars: ✭ 387 (+122.41%)
Mutual labels:  subtitles, srt
video-subtitle-extractor
视频硬字幕提取,生成srt文件。无需申请第三方API,本地实现文本识别。基于深度学习的视频字幕提取框架,包含字幕区域检测、字幕内容提取。A GUI tool for extracting hard-coded subtitle (hardsub) from videos and generating srt files.
Stars: ✭ 1,763 (+913.22%)
Mutual labels:  subtitles, srt
Subed
Subtitle editor for Emacs
Stars: ✭ 77 (-55.75%)
Mutual labels:  subtitles, srt
Parsing With Haskell Parser Combinators
🔍 A step-by-step guide to parsing using Haskell parser combinators.
Stars: ✭ 72 (-58.62%)
Mutual labels:  subtitles, srt
SABRE.js
Substation Alpha suBtitles REnderer -- A Gpu Accelerated Javascript Advanced SubStation (ASS) Alpha Subtitles Renderer. Renders .ass and .ssa files.
Stars: ✭ 58 (-66.67%)
Mutual labels:  subtitles, substation-alpha
Elgindy-VTT-to-SRT-Subtitle-Converter
A tool for converting Web Video Text Tracks Format (WebVTT) subtitle to srt one. As most of video players support srt subtitles and can't open vtt subtitles, We should convert vtt to srt or sub subtitles but it's not easy to do that.
Stars: ✭ 68 (-60.92%)
Mutual labels:  subtitles, webvtt
libgosubs
golang library to read and write various subtitle formats
Stars: ✭ 20 (-88.51%)
Mutual labels:  subtitles, srt
Subtitle.js
Stream-based library for parsing and manipulating subtitle files
Stars: ✭ 234 (+34.48%)
Mutual labels:  subtitles, srt
nekocap
Browser extension for creating & uploading community captions for YouTube, niconico and other video sharing sites.
Stars: ✭ 27 (-84.48%)
Mutual labels:  subtitles, substation-alpha
ttml2srt
Convert TTML subtitles used by Netflix, HBO, CMore and others to SRT format
Stars: ✭ 51 (-70.69%)
Mutual labels:  subtitles, srt
pysub-parser
Library for extracting text and timestamps from multiple subtitle files (.ass, .ssa, .srt, .sub, .txt).
Stars: ✭ 40 (-77.01%)
Mutual labels:  subtitles, srt
Pgstosrt
PGS to Srt converter
Stars: ✭ 21 (-87.93%)
Mutual labels:  subtitles, srt
Submerger
SRT Subtitles Merger
Stars: ✭ 92 (-47.13%)
Mutual labels:  subtitles, srt

pysubs2

pysubs2 build master branch pysubs2 test code coverage MyPy checked PyPI - Version PyPI - Status PyPI - Python Version PyPI - License

pysubs2 is a Python library for editing subtitle files. It’s based on SubStation Alpha, the native format of Aegisub; it also supports SubRip (SRT), MicroDVD, MPL2, TMP and WebVTT formats and OpenAI Whisper captions.

There is a small CLI tool for batch conversion and retiming.

$ pip install pysubs2
$ pysubs2 --shift 0.3s *.srt
$ pysubs2 --to srt *.ass
import pysubs2
subs = pysubs2.load("my_subtitles.ass", encoding="utf-8")
subs.shift(s=2.5)
for line in subs:
    line.text = "{\\be1}" + line.text
subs.save("my_subtitles_edited.ass")

To learn more, please see the documentation. If you'd like to contribute, see CONTRIBUTING.md.

pysubs2 is licensed under the MIT license (see LICENSE.txt).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].