Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garret1317/make-softsub
quick and dirty script to OCR hardsubs into softsubs with videosubfinder. isn't good, but works.
https://github.com/garret1317/make-softsub
aegisub ass ocr ocr-hardsubs srt subtitle-conversion subtitles videosubfinder
Last synced: 3 months ago
JSON representation
quick and dirty script to OCR hardsubs into softsubs with videosubfinder. isn't good, but works.
- Host: GitHub
- URL: https://github.com/garret1317/make-softsub
- Owner: garret1317
- License: unlicense
- Archived: true
- Created: 2020-12-29T10:17:50.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T19:02:20.000Z (over 3 years ago)
- Last Synced: 2024-07-18T15:29:47.177Z (4 months ago)
- Topics: aegisub, ass, ocr, ocr-hardsubs, srt, subtitle-conversion, subtitles, videosubfinder
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# make-softsub
quick'n dirty script to OCR hardsubs into softsubs.## Requirements
* [VideoSubFinder](https://sourceforge.net/projects/videosubfinder/) (unfortunately windows-only) in PATH
* Tesseract OCR - [windows builds](https://github.com/UB-Mannheim/tesseract/wiki)## Usage
`./make-softsub.sh input.mkv output.ass`
The powershell script and the bash script both do the same things in the same ways, so it doesn't matter which one you use.
The only real difference is the bash script was written first because that's what I'm more comfortable with.Outputs to SRT and ASS.
ASS is reccomended due to more accurate timing, and the fact that it's probably what you use anyway.New directories will be created in your current working directory by VideoSubFinder.
Don't run multiple instances of the script at the same time in the same directory, or they'll conflict with each other.Border for VideoSubFinder to detect in is hardcoded because I can't be asked to add a flag for it.
**WARNING:** THERE IS NO ERROR HANDLING IN THIS SCRIPT. IT WILL NOT COMPLAIN IF ONE OF THE ARGUMENTS IS MISSING, SO MAKE DAMN SURE YOU GOT THE COMMAND RIGHT.
Also, beware of OCR errors. Do a full QC pass
todo: make it good (will happen the next time i need to ocr something)