<div dir="ltr">On Fri, Sep 13, 2013 at 3:56 PM, Joey Morris <span dir="ltr"><<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jim Stichnoth <<a href="mailto:stichnot@gmail.com">stichnot@gmail.com</a>> wrote on Fri, Sep 13, 2013 at 06:59:52AM -0700:<br>
<div><div class="h5">> On Thu, Sep 12, 2013 at 6:28 PM, Joey Morris <<a href="mailto:rjmorris.list@zoho.com">rjmorris.list@zoho.com</a>> wrote:<br>
><br>
> > I'm playing MKV files that I ripped from my DVDs using Handbrake on<br>
> > Linux. When I enable closed captions, MythTV displays a little empty<br>
> > box at the end of every caption, representing what I assume is a<br>
> > non-printable character. Like maybe the captions end in \n\r and<br>
> > MythTV can't handle the \r. I used mkvextract to export a CC track to<br>
> > an SRT file. When I examined the captions, I didn't see any unusual<br>
> > characters at the end of them, just a 0x0a.<br>
> ><br>
> > Closed captions from OTA recordings do not exhibit this behavior.<br>
> ><br>
> > I'm running 0.26-fixes. Does anyone else have this problem? Any<br>
> > thoughts on what's causing it or additional steps to debug?<br>
> ><br>
> > If you run mythfrontend with "-v vbi", it should produce logs describing<br>
> the text strings it's trying to render, which would hopefully also show any<br>
> unusual characters that may be rendered as an empty rectangle. This is<br>
> unlikely to be whitespace like \r, since all caption text has leading and<br>
> trailing whitespace removed by the QString::trimmed() operation. From the<br>
> QString documentation, "This includes the ASCII characters '\t', '\n',<br>
> '\v', '\f', '\r', and ' '."<br>
<br>
</div></div>I ran mythfrontend with -v vbi, and I've attached the log file. I<br>
don't see any unusual characters, even when viewing in hex mode, but<br>
one thing does look odd: The rendered text strings are missing a<br>
closing quotation mark everywhere the empty rectangle appears. For<br>
example, the first rendered subtitle written to the log is:<br>
<br>
text='FROM ALMOST CERTAIN'<br>
text='TEMPTATION,<br>
<br>
This appears on my screen as two lines of text with an empty<br>
rectangle at the end of the second line.<br><br></blockquote><div>Yes, that seems like there might be a ^H backspace character embedded at the end of the line. In my setup, it results in a rectangle outline with a question mark inside, but the difference between my funny character and yours may be from the font. A backspace character also does weird things to the log message.</div>
<div><br></div><div>You probably want to figure out how to get the external tool to stop adding those extra characters, whatever they are exactly.</div><div><br></div><div>Jim </div></div><br></div></div>