GitHub - ewwink/python-srt2ass: Python Script to Convert Subtitle formats from .srt to .ass (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Repository files navigation
python-srt2ass
Python script to convert Subtitle formats from .srt
to .ass
. By default it will add black background (opaque box) with yellow font color, useful to hide foreign hardsub from movie
Requirements
- Python 3
- Windows/Linux/Mac/Android
How to use
python srt2ass.py "file"
Sample
using command line
python srt2ass.py file1.srt
or
python srt2ass.py file1.srt file2.srt file3.srt
using as module
from srt2ass import srt2ass
assSub = srt2ass("file.srt") print('ASS subtitle saved as: ' + assSub)