Help needed with DVB subtitles (1 Viewer)

ziphnor

Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    I would suggest checking out the MP source code (not tvserver) and taking a look at the code. You will find the DVBSub filter code in Filters\DVBSubtitle. Other relevant code is the C# code that handles playback and filter setup, such as \Core\Player\BaseTStreamBufferPlayer and TStreamBufferPlayer9.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Subtitles is a big issue for me (and my wife) - so much that we probably will be switcing to the server/client as soon as it's implemented even though we currently use MP 0.2.2.0 for stability issues...

    Its a good idea to switch to the client/server. As mentioned earlier you can get DVB subtitles there by using an alternative player, BUT more importantly DVB subtitles will probably only be available for recordings in the TV servers client player and not in the standalone MP's internal player, even in the long term. This is due to the fact that the standalone MP records in DVR-MS which discards the DVB subtitles, whereas the server can record the Transport Stream (.ts).
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I am unable to get the same graph as you descripe in http://day2.no-ip.org/pictures/graph.png? The MPEG-2 Demultiplexer only gives 2 output pins (Audio and Video). So I am stille missing something basic :confused:

    The graph has been changed quite a lot. Currently MP is able to create that graph for you if you add <entry name="dvbsubtitles">yes</entry> in MediaPortal.xml under the mytv section. After that playing a .ts file under my videos should add the subtitle filter to the graph automaticaly. Of cource you need to still have the compiled DVBSub.ax filter, as I haven't added it to SVN yet as it's not yet ready for the public.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    ...also the current SVN filter codes are needing a patched version of TSFileSource.ax ,so if possible to not update code from SVN yet as it will propable cause the MP to crash as there are some new methods added to the ITSFileSource interface.
     

    Hildebrandt

    Portal Pro
    June 9, 2006
    154
    2
    Home Country
    Denmark Denmark
    I've been looking through this thread (and others) and it looks like theres work being done on supporting DVB subtitles in the form they're being transmitted in in Denmark, and i'll need the tv-server to do it... Correct???

    Any idea when this will be possible?? Wife is really bugging me about this....

    Thx for all the great work!!
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Unfortunately I can't make any good estimates as I don't have that much free time that I can devote to the coding and biggest issue that is left is the subtitle timing... and looks like it's not going to be an easy task...
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Those timing problems are most likely only directshow related (and I have hopefully managed to fix at least some of them when ussing TSFileSource.ax)

    Here's the first public test version of the DVB subtitle filter:
    http://day2.no-ip.org/DVBSub_test_01.zip

    Some facts about the filter:

    1) Seeking is most likely broken -> missing subtitles after seeking (works most of the time for me, but still fails sometimes)
    2) PCR rollover is not handled in any way -> missing subtitles if the recording has a PCR rollover

    Installing the filter:
    1) unzip both .ax files to MP folder.
    2) regsrv32 DVBSub_debug.ax (if some debug DLLs is missing from your system then use the DVBSub_release.ax)
    3) put following setting in the MediaPortal.xml in MyTv section

    <entry name="dvbsubtitles">yes</entry>

    4a) Get some .ts recording that has subtitles (verify first with VLC)

    Currently the TVEngine3 has a bug that causes .ts recordings not to have subtitle data. Timeshifting buffer has correct data, so copying a .ts file should do the trick.

    4b) Use tv engine3 in single seat and you should have valid subtitles from the engine

    - When using the debug version of the filter it's writing a log to C:\ folder
    - I haven't tested for months if the subtitles work with the tv engine streams (not sure if all the needed code is even there... possibly not).
    - Use the latest SVN MP version
    - Subtitles seem to be sometimes too large

    I really hope that someone would have some free time to fix those remaining bugs in the filter as I don't have that much free time available and banning the head against wall isn't not so nice...
     

    risu

    MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    Had to regsvr32 DVBSub_release.ax, debug version didn't work (that DLL-issue I suppose).

    Timing works mostly ok, pretty well actually. Sometimes subs just flash (I think at the time when that particular sub is supposed to go away but haven't even been displayd), nebulas DigiTV used to do that before too, now they have pretty solid dvbsub. VLC works well with the same ts-stream. Sometimes it seems like subs are displayed little too early and sometimes late but can't judge just from watching two shows. Overall it works alot better I was expecting, seems totally watchable even in first public beta form. You guys should include this in SVN and add on/off -option to mp setup.

    Would be nice if eventually subs would show when tv-screen is shrinked (EPG, tv-menu). Also there seems to be green outmost color at least on finnish dvbsubs I can't see in VLC or other programs (white center, black border and then there's narrow green).

    Thanks for all the work so far!
     

    Users who are viewing this thread

    Top Bottom