https://github.com/sudoskys/subtitle_utils
Subtilte Convert Utils - ass2srt vtt2bcc srt2bcc ass2bcc and more | 字幕格式转换
https://github.com/sudoskys/subtitle_utils
ass ass2srt bcc srt srt2vtt subtitles subtitles-parsing vtt vtt-subtitles vtt2bcc
Last synced: about 1 year ago
JSON representation
Subtilte Convert Utils - ass2srt vtt2bcc srt2bcc ass2bcc and more | 字幕格式转换
- Host: GitHub
- URL: https://github.com/sudoskys/subtitle_utils
- Owner: sudoskys
- License: bsd-2-clause
- Created: 2023-01-02T02:15:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T16:19:43.000Z (over 2 years ago)
- Last Synced: 2025-03-24T17:21:56.476Z (about 1 year ago)
- Topics: ass, ass2srt, bcc, srt, srt2vtt, subtitles, subtitles-parsing, vtt, vtt-subtitles, vtt2bcc
- Language: Python
- Homepage:
- Size: 357 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# subtitle_utils

Subtilte Conversion Utils - ass2srt vtt2bcc srt2bcc ass2bcc and more!
## Install 🥽
```
pip install -U subtitle_utils
```
## Usage ☕️
```python
from subtitle_utils import get_method, show_available, srt2bcc
print("Available methods:")
print(show_available())
with open("test.srt", 'r') as file_io:
test_result = get_method(method="srt2bcc")(content=file_io)
print(test_result)
_result = srt2bcc(content="1\n00:00:00,000 --> 00:00:01,000\nHello World")
print(_result)
```