Teletext subtitles (2 Viewers)

misterd

Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    NOTE: THIS VERSION IS ONLY FOR TVE3 !!!!!!!!!!!!!!!

    Hi @all,
    I have completed the first test version. The stuttering should be almost fixed. Only when you activate the teletext and in some circumstances there is a small stutter.

    If you want to test is, you have to use the latest SVN (rev. 14720) of the server. The zip file contains the updated tv plugin and updated skin files for B2. I recommend that you backup the original files.
    After the update you can define the initial behavior of the teletext module in the setup of the TV plugin like the preferred audio language.
    You have to reconfigure your remote or define keyboard shortcuts in the setup (General->Keys and sounds) for using all functions of the teletext module, because it's now based on actions. The following options are defined in the teletext module:
    - ACTION_REMOTE_RED_BUTTON: Red teletext button
    - ACTION_REMOTE_GREEN_BUTTON: Green teletext button
    - ACTION_REMOTE_YELLOW_BUTTON: Yellow teletext button
    - ACTION_REMOTE_BLUE_BUTTON: Blue teletext button
    - ACTION_REMOTE_SUBPAGE_UP: Next subpage
    - ACTION_REMOTE_SUBPAGE_DOWN: Previous subpage
    - ACTION_NEXT_CHAPTER: Next teletext page
    - ACTION_PREV_CHAPTER: Previous teletext page
    - ACTION_CONTEXT_MENU: Show previous menu
    - ACTION_SHOW_OSD: Switch Hidden mode
    - ACTION_STOP: Show index page
    - ACTION_ASPECT_RATIO: Switch transparent mode

    For the numbers it uses ACTION_KEY_PRESSED.

    In the next version I will modify MP too and create special actions for the teletext module.

    Here's also a small changelog:
    - Changed from key codes to action
    - Modified page renderer, to have a better boxed mode
    - Differ between received page (green) and waiting page (yellow)
    - Added additional options to the setup of the tv plugin
    - Store last selected hidden and transparent mode
    - Removed stuttering
    - Code refactoring
    - Additional options in the teletext module
    - Fixed navigation issue
    - Fixed subtitle recognition
    and some other small changes.

    I will create a patch and commit it to sourceforge, if I get positive feedback from you and I have modified MP. If you find any issue, please describe it exactly what you have done and what's the problem. Also attach a log please with debug level.

    Also if you have any suggestions for the keyboard shortcuts, please post it here.

    MisterD

    NOTE: THIS VERSION IS ONLY FOR TVE3 !!!!!!!!!!!!!!!

    edit: Attachment removed. Patch is in SVN now !!!!
     

    a-jay

    New Member
    March 13, 2007
    3
    0
    Hi mistered. I think you're doing a great job with the teletext engine! Your efforts mean a lot to me.

    I've been updating with your patch (copying the files to the mediaportal directory) and testing this on Norwegian television (NRK1), and it still seemed like there is some significant issues there:

    - The subtitles page seems to change between being black and transparent. On some shows the entire page (except the subtitles background) is transparent most of the time and black a little bit of the time (but if there's no subtitles to view for a while it will go entiretly black). On other shows (typically shows that tends to have live subtitles, like the one that I viewed in the attached log file) the screen is always black, but also have the correct subtitles (but that's no use if you can't see what's going on :p ).

    - On certain "normal" pages which go in a constant loop (not being updated continiously, but at regular intervals with a page number in the corner) large parts of the screen becomes transparent, and significant amounts of the text (but not all text) disappear. (this is pages that are supposed to have a black background).

    - Sometimes when viewing the subtitles page I would suddenly get a completely unrelated page containing sports results (it's normally on teletext page two-hundred-and-something), but it disappears after a while. During the test in the log this happened at teletext timestamps 19:05:02 and 19:05:25. This never happens on regular TVs.

    But I was also testing it with Swedish television (on MediaPortal), and there it was working perfectly. BTW, I also tested with a 10 years old regular CRT TV at the exact same time, and it worked perfectly both with Norwegian and Swedish television.

    I hope this is something you can look into. The mediaportal log file is attached. FYI, on NRK1 television the subtitle page is 777, and 531 is a regular full-screen page which loops through several pages (it's supposed to have a black background and does so on my regular TV, but in MP it shows with transparent background and a lot of text missing).

    I hope I've included enough info for you to debug this. Please tell me if there is any info you're missing.

    And again, thank you a lot for the time and effort you put into this! :)
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi a-jay,
    the new version is currently only for TVE3 and not for the old one included in MP (TVE2), which you are using.
    Most parts of the modifications can be transfered to TVE2, but since I haven't a running installation of TVE2, I think that it make no sense to port the modifications until the TVE3 version is working.
    Anyway thanks for your interest and good "bug report".

    @all: If you make any test, please also activate debug logging in the setup. I need this informations for debugging too.

    MisterD
     

    Throt

    Portal Member
    March 3, 2006
    29
    0
    Home Country
    Sweden Sweden
    Testrun

    Hi MisterD

    Installed last nights TVServer and the latest SVN for MP.
    Copied the files from your zip over the old and started config and marked "Transparent mode in fullscreen" and "Hidden mode"

    Started MP and tuned in to Canal+, activated the subs.

    Each 15s they will update but with that black box. Between texts, the black box sometimes disappear but reappears each 15s sometimes when there's no text.

    Hope you can find something in the logs (I took all logs I could see so there is probably more than what's useful, but just to make sure I got it all ...)

    Thanks!
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi Throt,
    first of all thanks for testing.
    My main problem with your log is that I don't see any log messages that are indicating that you are using my version of the TVPlugin.
    If it is installed and you use the teletext, you should see something like this in your "mediaportal.log":

    Code:
    2007-05-29 11:52:53.015625 [Debug][8]: Newsflash: False
    2007-05-29 11:52:53.015625 [Debug][8]: Subtitle: False
    2007-05-29 11:52:53.015625 [Debug][8]: Boxed: False
    2007-05-29 11:52:53.093750 [Info.][8]: dvb-teletext: select page 100 / subpage 1
    2007-05-29 11:52:53.093750 [Info.][8]: dvb-teletext redraw()
    2007-05-29 11:52:53.093750 [Info.][8]: load from memory:[teletextpage]
    2007-05-29 11:52:53.328125 [Info.][8]:   texturemanager:added: memoryImage   total:11 mem left:402653184
    2007-05-29 11:52:53.328125 [Info.][8]: load from memory:[teletextpage2]
    2007-05-29 11:52:53.437500 [Info.][8]:   texturemanager:added: memoryImage   total:11 mem left:402653184

    The most importing things are the message about the subtitle/newsflash recognition and that there are two images (teletextpage and teletextpage2).

    So please verify that you also have installed the corresponding TVPlugin of the TVServer and then copied my modified version, because there are other dependencies that have to be up to date.
    Also please verify that you copied the updated skin files. The files myteletext.xml and myfsteletext.xml must have a control with id 500 and 501.

    MisterD
     

    Throt

    Portal Member
    March 3, 2006
    29
    0
    Home Country
    Sweden Sweden
    Hi,

    Strange, I could have sworn I did copy all the files from your zip file. But apparently I must have missed something.

    I'll give it another try tonight and make sure those lines appear in the log.
     

    Throt

    Portal Member
    March 3, 2006
    29
    0
    Home Country
    Sweden Sweden
    Hi again

    Could it be that you have zipped the wrong versions of the xml files in your patch?

    They have following default controls:

    BlueTwo
    myfsteletext.xml have <defaultcontrol>500</defaultcontrol>
    myteletext.xml have <defaultcontrol>502</defaultcontrol>

    For BlueTwo Wide
    Both have <defaultcontrol>502</defaultcontrol>

    Cheers

    Throt
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi,
    I have checked the xml of the zip file and they are all ok.
    The defaultcontrol isn't important, it only defines the control which will be selected when the window appears.
    This is the working version of my system for myfsteletext.xml:
    Code:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
      <id>7701</id>
      <defaultcontrol>500</defaultcontrol>
      <allowoverlay>no</allowoverlay>
      <controls>
        <control>
          <description>tele-text rendering image</description>
          <type>image</type>
          <id>500</id>
          <posX>245</posX>
          <posY>97</posY>
          <width>460</width>
          <height>460</height>
          <texture>-</texture>
        </control>
        <control>
          <description>tele-text rendering image 2</description>
          <type>image</type>
          <id>501</id>
          <posX>245</posX>
          <posY>97</posY>
          <width>460</width>
          <height>460</height>
          <texture>-</texture>
        </control>
        <control>
          <description>Current channel</description>
          <type>label</type>
          <id>27</id>
          <posX>146</posX>
          <posY>452</posY>
          <label>-</label>
          <align>left</align>
          <font>font16</font>
          <textcolor>FFFFFFFF</textcolor>
        </control>
      </controls>
    </window>
    I think I will try a new installation on another PC tommorrow and look myself what's going wrong there.

    MisterD
     

    Throt

    Portal Member
    March 3, 2006
    29
    0
    Home Country
    Sweden Sweden
    Repaired the plugin

    After running a repair on the tvplugin, things started to happen. Now my subs are showing beautifully, (every 15s seconds if there are any at that moment of course ;) ).

    From what I saw there was no stuttering at all, so great work so far MisterD!

    Attached the log

    /Throt
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    It's great to hear that the modified version of the plugin is working for you.
    The log is also looking good. I also can't see any problem in your log.

    Could you please check if the boxed mode is also working for you. Therefor you have disable the transparent mode and you should see only a background around the subtitles. The rest of the page should be transparent.

    Thanks again for your testing.

    I also have found a small issue in the subpage rotation algorithm. It doesn't go back to the first subpage when the last subpage has arrived. I will look how this issue can be fixed too.

    MisterD
     

    Users who are viewing this thread

    Similar threads

    Hi mate, As usual, you are always first up with an offer of assistance, and I really appreciate it. So sorry I haven't replied. I'll send you a PM now. Cheers, Steve.
    Hi mate, As usual, you are always first up with an offer of assistance, and I really appreciate it. So sorry I haven't replied...
    It appears that MP somehow caches previously used subtitle files for subsequent use next time the same video is played. My problem...
    Replies
    2
    Views
    1K
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D from the tags. Not that important, so I dont upload any new file. A little sad about the end time, but nothing to do about it.
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D...
    I'm trying to develop a new WebEPG grabber for sweden, but I got a few problem in parsing the html-file to get all programs. In...
    Replies
    9
    Views
    791
    MP1 MP2 Not working anymore DE
    Just enabled podnapisi to test and it did not find any subtitles.
    Just enabled podnapisi to test and it did not find any subtitles.
    MediaPortal 1.34 64bit No matter what movie I try to get subtitles for the result is always 0. Logs attached.
    Replies
    4
    Views
    792
    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    908
    Can't get TV subtitle working on Google Chromecast TV with MPTVScheduler, no problem with PC client. Australia TeleText subtitle here.
    Can't get TV subtitle working on Google Chromecast TV with MPTVScheduler, no problem with PC client. Australia TeleText subtitle here.
    Can't get TV subtitle working on Google Chromecast TV with MPTVScheduler, no problem with PC client. Australia TeleText subtitle here.
    Replies
    0
    Views
    922
    Top Bottom