Skip to content

donno2048/mp4-to-subs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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