https://github.com/mitmul/burn-captions
Burn captions (.srt) into videos
https://github.com/mitmul/burn-captions
Last synced: about 1 year ago
JSON representation
Burn captions (.srt) into videos
- Host: GitHub
- URL: https://github.com/mitmul/burn-captions
- Owner: mitmul
- Created: 2020-03-28T09:47:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T22:35:11.000Z (over 2 years ago)
- Last Synced: 2025-03-25T03:41:37.509Z (about 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Burn Captions
=============
Burn a given SRT file into a video.
## Requirements
- Python 3.7+
Please install required packages by the following command:
```bash
pip install -r requirements.txt
```
## Usage
```bash
usage: burn.py [-h] [--video VIDEO] [--srt SRT] [--font FONT]
[--font-size FONT_SIZE] [--bottom-space BOTTOM_SPACE]
[--skip-first]
optional arguments:
-h, --help show this help message and exit
--video VIDEO
--srt SRT
--font FONT
--font-size FONT_SIZE
--bottom-space BOTTOM_SPACE
--skip-first
```
### Example
```bash
python burn.py \
--video sample.mp4 \
--srt sample.srt
```