donno2048 / mp4-to-subs

Turn mp4 input into subtitles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mp4-to-subs

Turn mp4 input into subtitles

There is also a unicode-art version (not captions) with high resolution here

Usage

Run python3 main.py > badapple.srt

(Use another file with the name video.mp4 to convert it, you can use another output name too (other then badapple))

Install dependencies

pip3 install opencv-python Pillow

(on Linux you may need to run sudo apt-get install ffmpeg libsm6 libxext6 -y to use opencv)

There is also a branch compatible with youtube and a demo

There is also a branch compatible with vtt for youtube with higher resolution and a demo

There is also a branch compatible with braille for youtube and a demo

About

Turn mp4 input into subtitles

License:MIT License


Languages

Language:Python 100.0%