https://github.com/ewwink/python-srt2ass
Python Script to Convert Subtitle formats from .srt to .ass
https://github.com/ewwink/python-srt2ass
kodi kodi-addon python python-script subtitles xbmc
Last synced: about 1 month ago
JSON representation
Python Script to Convert Subtitle formats from .srt to .ass
- Host: GitHub
- URL: https://github.com/ewwink/python-srt2ass
- Owner: ewwink
- Created: 2017-05-07T03:06:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T20:15:05.000Z (almost 4 years ago)
- Last Synced: 2024-11-29T07:37:06.645Z (over 1 year ago)
- Topics: kodi, kodi-addon, python, python-script, subtitles, xbmc
- Language: Python
- Size: 9.77 KB
- Stars: 30
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.python.org/downloads/)
* 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
```python
from srt2ass import srt2ass
assSub = srt2ass("file.srt")
print('ASS subtitle saved as: ' + assSub)
# ASS subtitle saved as: file.ass
```