https://github.com/dvhcoding/srtconverterjson
SrtConverterJson is a Python tool designed to convert SubRip Subtitle (SRT) files into JSON format.
https://github.com/dvhcoding/srtconverterjson
Last synced: about 1 year ago
JSON representation
SrtConverterJson is a Python tool designed to convert SubRip Subtitle (SRT) files into JSON format.
- Host: GitHub
- URL: https://github.com/dvhcoding/srtconverterjson
- Owner: DVHcoding
- License: mit
- Created: 2024-09-17T07:36:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T16:48:43.000Z (over 1 year ago)
- Last Synced: 2025-05-08T17:55:36.933Z (about 1 year ago)
- Language: Python
- Homepage: https://dvhtools.vercel.app
- Size: 372 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SRT to JSON Subtitle Converter
This Python script converts subtitle files in SRT (SubRip Subtitle) format into JSON format with an additional Vietnamese translation of the subtitle text.
## Features
- Converts SRT subtitles into JSON format.
- Translates English subtitles into Vietnamese.
- Outputs JSON file with start time, duration, English text, and Vietnamese translation.
## Prerequisites
Before running the script, ensure you have the following Python packages installed:
- `googletrans==4.0.0-rc1` (or any compatible version for translation)
- `re` (comes with Python standard library, no need to install separately)
You can install the required package using pip:
```sh
pip install googletrans==4.0.0-rc1
```