New DVB subtitle filter (TsReader based) (1 Viewer)

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Hi Tourettes

    I experienced a new kind of bug tonight. While watching a TV-show the dvb-subtitle suddently froze about 21.15-21.20 o'clock. The video and audio didn't freeze.

    Watching the same passage again (because I recorded the show) the dvb-subtitles were showing nicely again.

    I have attached my log.

    Filter log didn't show anything unusual. Every subtitle has arrived on time (before the presentation time). Could be that there is some bug on the MP side of the code that causes sometimes subtitles to "stick" for too long time. I'll have to keep eye on this, but currently I haven't noticed myself similar issue.

    If you see the same issue again and I haven't been able to find out anything in the MP side of the code I think we need to make a special MP build for you that contains some additional logging in the subtitle renderer. The logging is currently disabled as it was "spamming" the log pretty efectively.


    UPDATE:

    08-08-2007 21:20:21 CDVBSub:: Pause
    08-08-2007 21:20:21 CDVBSub:: Pause - done
    08-08-2007 21:20:21 SetFirstPcr - media position 0:46:04.220
    ...
    08-08-2007 21:20:21 SetFirstPcr 0:07:07.100
    08-08-2007 21:20:21 SeekDone 0:37:56.633
    08-08-2007 21:20:21 CDVBSub::Run
    08-08-2007 21:20:21 CDVBSub::Run - done
    08-08-2007 21:20:25 Subtitle PTS 0:45:07.615
    ...
    08-08-2007 21:20:25 Too old timestamp! - diff was 426830 ms

    Did you pause / seek the live tv? At least the log shows a pause event just before the subtitles start to get wrong timestamps.
     

    Seidelin

    Retired Team Member
  • Premium Supporter
  • August 14, 2006
    1,755
    652
    Kgs. Lyngby
    Home Country
    Denmark Denmark
    Hi Tourettes

    I experienced a new kind of bug tonight. While watching a TV-show the dvb-subtitle suddently froze about 21.15-21.20 o'clock. The video and audio didn't freeze.

    Watching the same passage again (because I recorded the show) the dvb-subtitles were showing nicely again.

    I have attached my log.

    Filter log didn't show anything unusual. Every subtitle has arrived on time (before the presentation time). Could be that there is some bug on the MP side of the code that causes sometimes subtitles to "stick" for too long time. I'll have to keep eye on this, but currently I haven't noticed myself similar issue.

    If you see the same issue again and I haven't been able to find out anything in the MP side of the code I think we need to make a special MP build for you that contains some additional logging in the subtitle renderer. The logging is currently disabled as it was "spamming" the log pretty efectively.


    UPDATE:

    08-08-2007 21:20:21 CDVBSub:: Pause
    08-08-2007 21:20:21 CDVBSub:: Pause - done
    08-08-2007 21:20:21 SetFirstPcr - media position 0:46:04.220
    ...
    08-08-2007 21:20:21 SetFirstPcr 0:07:07.100
    08-08-2007 21:20:21 SeekDone 0:37:56.633
    08-08-2007 21:20:21 CDVBSub::Run
    08-08-2007 21:20:21 CDVBSub::Run - done
    08-08-2007 21:20:25 Subtitle PTS 0:45:07.615
    ...
    08-08-2007 21:20:25 Too old timestamp! - diff was 426830 ms

    Did you pause / seek the live tv? At least the log shows a pause event just before the subtitles start to get wrong timestamps.

    I see the same issue (at least in multi-seat can't test single seat because of wife hogging the htpc). The issue is related to faulty seeking, I think. It seems the timeline is broken in TsReader, so the dvbsub2 filter believes the video is at a completely different position than it really is. The bug appears after seeking. It can be fixed by seeking to the beginning of the timeshift buffer. Therefore I believe the error is related to TsReader and not dvbsub2 (I posted a bug report on the issue very recently in TsReader thread). As a matter of fact, I have a hard time finding bugs which I don't attribute to TsReader.

    Regards
    Seidelin
     

    Nyll

    Portal Pro
    May 18, 2006
    156
    1
    Home Country
    Denmark Denmark
    Did you pause / seek the live tv? At least the log shows a pause event just before the subtitles start to get wrong timestamps.

    Hi tourettes

    I did not seek or pause the live TV. I was watching the live show and suddently the subtitles just froze. When the show was over (around 21.20 - maybe a little bit later) I went back in the recorded stream and saw the last 2-3 minutes of the show (with the subtitles showing correctly).

    /Nyll
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Did you pause / seek the live tv? At least the log shows a pause event just before the subtitles start to get wrong timestamps.

    Hi tourettes

    I did not seek or pause the live TV. I was watching the live show and suddently the subtitles just froze. When the show was over (around 21.20 - maybe a little bit later) I went back in the recorded stream and saw the last 2-3 minutes of the show (with the subtitles showing correctly).

    Ok, then it's something different that I was thinking of. Are you absolutely sure that the subtitles were correctly displaying after the seeking as the log reports too old timestamps.
     

    Nyll

    Portal Pro
    May 18, 2006
    156
    1
    Home Country
    Denmark Denmark
    Are you absolutely sure that the subtitles were correctly displaying after the seeking as the log reports too old timestamps.

    Yep! absolutely sure. Well, I'll try keeping an eye on this bug if it occurs again. Then I'll send you log and description. It was not so good for this test result, that I went back in the recorded show, that it may be confusing for the log-report.

    I'll let you know if this problem occurs again.

    /Nyll
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Could you upload that .ts file so I could do some debugging with it. Also it would be nice if you could list all the currently open issue that you are having with the subtitle filter (and leave out all issues that are also reproducable with the vanilla TsReader.) Currently the open issues are a little bit all over the thread :)

    I am uploading it as I speak. It is called something like "DR 1_American Cuisine.......ts" (52 MB) - actually I may have posted it before somewhere, as I used it to debug the original dvbsub.ax

    Unfotunately I was unable to get MP freeze with that sample .ts file. I started and stopped the playback at least one hundred times and the freeze just didn't happen.
     

    Seidelin

    Retired Team Member
  • Premium Supporter
  • August 14, 2006
    1,755
    652
    Kgs. Lyngby
    Home Country
    Denmark Denmark
    Unfotunately I was unable to get MP freeze with that sample .ts file. I started and stopped the playback at least one hundred times and the freeze just didn't happen.

    Ok, I will try it again later. If I can't repeat the issue, then I guess we can close that issue.
    Edit: I am able to repeat the issue, however with a different .ts. (which had almost the same name) :oops:

    The file was already available on the ftp: "DR1_3rd_subtitle.ts". The issue is a massive memory leak. When stopping the .ts memory usage increases by ~100 MB. No issues with plain TsReader. I tested the file on two machines running dvbsub2.ax and they both produce the leak.

    Post on first page updated.

    Regards
    Seidelin
     

    pmcguire

    Portal Pro
    November 25, 2006
    213
    0
    52
    Home Country
    Finland Finland
    I just tested this and lo and behold I found subtitled in the YLE channels (A constant bane of mine)

    Anyway I haven't broke the champagne out just yet, but it is on ice. Has anyone here (meaning Scandinavians) got the subtitles working with the Canal+ FILM channels?

    I noticed somebody had some teletext stuff working but it was very Alpha and it seemed to be in TVe2.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Anyway I haven't broke the champagne out just yet, but it is on ice. Has anyone here (meaning Scandinavians) got the subtitles working with the Canal+ FILM channels?

    I noticed somebody had some teletext stuff working but it was very Alpha and it seemed to be in TVe2.

    Assuming Canal+ FILM uses DVB *teletext* subtitles, then you wont find support in this filter currently. However i have already implemented some DVB teletext code for an earlier version of this filter (by partly ripping off an open source teletext filter), and hope to merge with the TSReader based filter within the near future (maybe a month or so, but no promises).
     

    pmcguire

    Portal Pro
    November 25, 2006
    213
    0
    52
    Home Country
    Finland Finland
    Sounds good, must say that the subs are working pretty well over here right now. Looking forward to completing the set :)
     

    Users who are viewing this thread

    Top Bottom