Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhnvrm/SubScribe
:video_camera: Convert your video files to images transcribed with their subtitles
https://github.com/rhnvrm/SubScribe
Last synced: 2 days ago
JSON representation
:video_camera: Convert your video files to images transcribed with their subtitles
- Host: GitHub
- URL: https://github.com/rhnvrm/SubScribe
- Owner: rhnvrm
- License: mit
- Created: 2015-11-15T12:16:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2015-11-26T16:47:40.000Z (over 8 years ago)
- Last Synced: 2024-05-02T06:06:03.137Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 17.2 MB
- Stars: 29
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - SubScribe
README
# SubScribe
Python Utility to convert your video files to images transcribed with their subtitles.##The Idea
1. Download a video using `youtube-dl https://www.youtube.com/watch?v=PTmCxbcRXs4 --write-auto-sub`
2. Run a script that uses the mp4 file and the srt file to generate an image (or a set of images) like this:
![Image](https://scontent-hkg3-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/11139985_643154262493379_4766804901696677874_n.jpg?oh=97e2bc0a211442c11167744906e197de&oe=56C052AE)## Usage
1. Download a video using `youtube-dl https://www.youtube.com/watch?v=PTmCxbcRXs4 --write-auto-sub` or just have a video file with a corresponding srt file ready.
2. How to use:```
python script.py --help
usage: script.py [-h] video subpositional arguments:
video path to video file
sub path to sub fileoptional arguments:
-h, --help show this help message and exit
```3. Examples:
`python script.py samples/a/a.webm samples/a/a.srt`## Sample Outputs
###Moon Movie
![Image](samples/moon/selected/frame0577.jpg)
![Image](samples/moon/selected/frame0631.jpg)
![Image](samples/moon/selected/frame4188.jpg)
![Image](samples/moon/selected/frame5041.jpg)###Sample Youtube Videos
![Image](samples/a/output/frame0034.jpg)
![Image](samples/b/output/frame0055.jpg)## Todo
- [ ] Think of a cool name for the repo.
- [ ] Add an optional youtube-dl wrapper
- [ ] Add to pip
- [ ] Improve text overlay, make it more visible and allow it to be modified using CLI
- [x] Add demos to readme.
- [ ] Add contributing.md## Contributing
Post issues and send PRs.