LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 06-10-2021, 01:12 PM   #1
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
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>
...which transcoded the file into an MP4, with burned-in subtitles. May not be 100% lossless, but it still looks pretty good, and was only a single-step process.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transcoding MKV files with embedded subtitles to MP4's with 'burned in' subtitles TB0ne LinuxQuestions.org Member Success Stories 0 09-17-2014 11:45 AM
web browsers work once then stop working on some pgs like linuxmint.com rtfn Linux - Newbie 8 04-10-2009 08:00 AM
Ubuntu (7.10) -VLC media player will not play Nero 7 burned Data DVDs (mkv files) spiritsongtress Linux - Newbie 6 03-15-2008 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration