1 | initial version |
You can sort of do this by using subprocess to spawn FFmpeg to extract an "SRT" stream, then read the set file.
FFmpeg command is something like this:
ffmpeg i MyVideo.mp4 -map 0:1 A.srt if subs are in the 2nd stream or ffmpeg -i MyVideo.mp4 -vn -an -c:s:0 text FirstSubStreamWithOutFontStuff.srt