Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)