<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 5, 2016 at 5:20 PM, Kingsley Turner <span dir="ltr"><<a href="mailto:krt@krt.com.au" target="_blank">krt@krt.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">G'day,<br>
<br>
I've a few minor things with the way mythtv handles subtitles I want to have a look at.<br>
   #1 existing subtitles disappearing before time - then re-appearing, when a new subtitle is added (results in flashing subtitles)<br>
   #2 pre-rendering subtitles before playback for slow frontends and/or heavy karaoke-style subtitle streams<br>
<br>
I'm having trouble finding the subtitle handling code in mythfrontend.<br>
Is there a video player module where the video is decompressed and the subtitles added ?<br>
<br>
I've been recursively searching the code base for things like "subtitle", "srt", "ass", etc.  But only finding meta-data handling.<br><br></blockquote><div>Most of the caption/subtitle layout is handled in libs/libmythtv/subtitlescreen.cpp .  The main entry point into this code is SubtitleScreen::Pulse().  Depending on the kind of subtitles being displayed, this code consumes caption data that has been decoded by the the video decoder thread.  See for example the cc608*.cpp and cc708*.cpp files.</div><div><br></div><div>If you're looking for teletext subtitles, those are handled separately in teletextscreen.cpp.</div><div><br></div><div>For your pre-rendering use case, you might want to look at the mythccextractor application.</div><div><br></div><div>Jim</div></div><br></div></div>