[mythtv] [mythtv-commits] Ticket #7111: subtitles in mythvideo vanish after 5 minutes

Joe Ripley vitaminjoe at gmail.com
Tue Sep 22 00:17:38 UTC 2009


On Mon, Sep 21, 2009 at 10:41 AM, Robert McNamara
<robert.mcnamara at gmail.com> wrote:
> On Mon, Sep 21, 2009 at 9:38 AM, Joe Ripley <vitaminjoe at gmail.com> wrote:
>> On Mon, Sep 21, 2009 at 3:07 AM, MythTV <mythtv at cvs.mythtv.org> wrote:
>>> #7111: subtitles in mythvideo vanish after 5 minutes
>>> ---------------------------------------+------------------------------------
>>>  Reporter:  simons.philippe at gmail.com  |       Owner:  ijr
>>>     Type:  defect                     |      Status:  new
>>>  Priority:  minor                      |   Milestone:  0.22
>>> Component:  MythTV - General           |     Version:  unknown
>>>  Severity:  medium                     |     Mlocked:  0
>>> ---------------------------------------+------------------------------------
>>>  using latest trunk, i'm gettings issues with subtitles in MythVideo,
>>>
>>>  when enabling subtitles (.srt) for a movie, it get displayed for about
>>>  5min of the movie then they just vanish.
>>>  tried to disable and re enable subtitles doest change
>>>
>>> --
>>> Ticket URL: <http://svn.mythtv.org/trac/ticket/7111>
>>> MythTV <http://www.mythtv.org/>
>>> MythTV
>>
>> I've noticed this problem as well.  I know the subtitle files (.srt)
>> are fine, MPlayer has no problem with them.  I'll do some testing and
>> see if I can isolate the underlying cause.
>>
>> --
>> Joe Ripley
>> vitaminjoe at gmail.com
>
> It is (IMO) possible that the same timing issues that have broken
> bitmapped subtitles in trunk is in some way affecting SRT playback:
>
> http://svn.mythtv.org/trac/ticket/6763

It looks like the code in textsubtitleparser.cpp thinks that we've hit
the end of the video.  It executes this code:

endCode = startCode + INT_MAX;
(http://svn.mythtv.org/trac/browser/trunk/mythtv/libs/libmythtv/textsubtitleparser.cpp#L85)

This seems to happen when two subtitles in a SRT file are very close
to each other (in my test case, about 0.205 seconds).

I'm not sure if this means this problem is on its own, or if it is
indeed related to the bitmapped subtitle issues.

-- 
Joe Ripley
vitaminjoe at gmail.com


More information about the mythtv-dev mailing list