MKV Files with HDMV/PGS (bitmapped) to 'burned in' subtitles
Recently ripped a movie that was in a language I do not speak, but it had English subtitles. Not a problem...until the Roku media player wouldn't display the subtitles. It was a Matroska (.MKV) file, and instead of text subtitles in .srt format, it had HDMV/PGS subtitles. Not words, per se, but bitmapped images OF text.
There are processes that you can use in conjunction with Tesseract to OCR the bitmaps and generate an srt, but this seemed a bit much. After some experimentation, I came up with: Code:
ffmpeg -i <INPUT MKV FILE NAME> -filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:a -c:a libmp3lame <OUTPUT FILE NAME.MP4> |
All times are GMT -5. The time now is 09:35 AM. |