New DVB subtitle filter (TsReader based) (3 Viewers)

mbb

Portal Pro
November 20, 2004
374
15
Home Country
France France
I would like to fix wrong french characters in teletext subtitle, but I didnt find where I can do that in the code.
Is somebody can point me on the good part of code?

mediaportal\Core\Player\TeletextSubtitles

Thanks tourettes.

I did some tests.
The problem is not in character table. :)( It would have been too simple)
In fact my teletext page have no language information.
I tried to force it. Now the auto function works in the selector.
But I didnt understand the teletext part based on an int value.

It would be great to implement something like: "if language doesnt exist in page, it use the 1st prefered language to match the good character table"

Thanks

mbb

PS: All channels (at least the dozen I tested) have the same problem.
 

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    When viewing a still ongoing recording dvb subtitles are not working.
    Nothing is rendered.

    If I instead tune to the channel that is currently recording, then subtitles work - since it is normal live TV.
    using multiseat.

    Never tried this scenario before now actually.

    /gibman
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    When viewing a still ongoing recording dvb subtitles are not working.
    Nothing is rendered.

    If I instead tune to the channel that is currently recording, then subtitles work - since it is normal live TV.
    using multiseat.

    Never tried this scenario before now actually.

    Hmm... sounds pretty odd. Could you check subtitle and MP logs to get some more info? Most likely the timeline of the recordings is behaving differently when MP views the ongoing recording, hopefully not as it might not be easy to fix in that case.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    It would be great to implement something like: "if language doesnt exist in page, it use the 1st prefered language to match the good character table"

    Sounds like a good sollution, hopefully Ziphnor has a little bit free time to check that.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Today I tried to playback the recording (castaway with tom hanks) and the subs are absent.
    cycling the subtitles button on the remote does nothing but showing me that subs are indeed available.
    vlcplayer shows the subs nice on the affected TS recording though.

    I will try and upload a sample of the movie.
    It starts off with no subs since (pre-recording is set to 5min).

    /gibman

    When viewing a still ongoing recording dvb subtitles are not working.
    Nothing is rendered.

    If I instead tune to the channel that is currently recording, then subtitles work - since it is normal live TV.
    using multiseat.

    Never tried this scenario before now actually.

    Hmm... sounds pretty odd. Could you check subtitle and MP logs to get some more info? Most likely the timeline of the recordings is behaving differently when MP views the ongoing recording, hopefully not as it might not be easy to fix in that case.
     

    Seidelin

    Retired Team Member
  • Premium Supporter
  • August 14, 2006
    1,755
    652
    Kgs. Lyngby
    Home Country
    Denmark Denmark
    Today I tried to playback the recording (castaway with tom hanks) and the subs are absent.

    Coincidentally, I recorded the same show (also from danish tv2 DVB-T Saturday evening I presume). At first I had no subs, but then I went into MediaPortal configuration and activated subs, and then it worked just fine :oops:

    What I am saying is, maybe you just did a clean install (of the upcoming RC1) and simply forgot to enable subtitles? That's what I did :)

    Regards
    Seidelin
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Ok I've spent some more time on this issue.

    Ive upped the TS file to the FTP;
    /tsdumps/gibman/dvb subs not showing

    To make it more true to my case it would be a good idea to import the recording in tvsetup.

    Then access and play it back using mytv-tvrecordings (tvplugin) in multiseat.
    I have no idea if it is happening in singleseat.

    About the TS clip.
    It contains, dvb subs, 2 audio langs.
    It starts off with a weather forecast (no dvb subs).
    Then 5 min later, the movie starts (with dvb subs).

    If I start the clip from scratch then video and audio is ok.
    If I resume the clip from any location within the file then video is black and no audio (until I do a manual seek).

    I've done this 100s of times in multiseat, but somehow the "resume" functionality is f*cked.
    Also when changing audio lang. when playing back recorded TV causes the same problem. No A/V until manual seek is carried out.

    Now to the subs problem - it might be related to the above diagnosis.

    Seems like dvb subs on that clip is indeed being rendered OK ... but only if I DO NOT DO a manual seek.

    ex. if I start the clip from position 0, then I use the skip forward 5 min option into the movie or even 15 mins. then no subs are rendered.

    If I resume the clip at 15 min ex. and avoid using skip steps, then subs are ok.

    my GF spotted this behavior for me :)

    Logs attached of a simple case where I do the following.

    start playback of Rec TV (TV2 cast away)
    I chose to resume playback some 13 mins. into the clip.
    black screen and no audio - so I do 1 manual +5sec seek (A/V fine again.)
    we are now 13 mins. into the movie - subs are rendered fine.
    I do a manual seek (+5 sec)
    NOW no subs are rendered even though the actors are talking :(
    MP closed manually.
    logs saved.

    I have repro'ed this issue 5 times in the same manner.

    I want to try this scenario 2nite without using rtsp.

    /gibman
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    I did some tests.
    The problem is not in character table. :)( It would have been too simple)
    In fact my teletext page have no language information.

    There are two kinds of teletext language related information. One is the character table number and the other is any information that might be contained in the DVB Service Information. The former is not optional, but the latter is.

    So while you might have no DVB Service Info for your subtitles (blame your provider :) the character table used must be indicated.

    Note that the character table does not uniquely identify the language of a page. For example, danish subtitle pages are transmitted using the swedish table. Additionally some broadcasters actually alternate character tables on the same page (for example using alternately german and swedish table for swedish subtitles).

    I tried to force it. Now the auto function works in the selector.
    But I didnt understand the teletext part based on an int value.

    It would be great to implement something like: "if language doesnt exist in page, it use the 1st prefered language to match the good character table"

    Do i understand it correctly that you want unidentified pages to automatically be identified as the primary preferred language? Such behavior would be problematic as some providers do not intend the unidentified subtitles for display, they might broadcast say Swedish and Danish subs and then some leftover Russian (or something else :) subs without language identification. But i suppose it could be implemented as an option.

    My original plan was to add channel based mappings, ie you would be able to specify that "Page X on channel Y is language Z", but this is not implemented yet.
     

    Users who are viewing this thread

    Top Bottom