MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-02-24, 10:39   #71 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

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 is offline   Reply With Quote
Old 2007-02-24, 10:46   #72 (permalink)
Portal Developer
 
ziphnor's Avatar
 
Join Date: Aug 2005
Location: Copenhagen
Age: 29
Posts: 709
Thanks: 0
Thanked 9 Times in 6 Posts

Country:

My System

Default

Quote:
Originally Posted by Hojou View Post
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).
ziphnor is offline   Reply With Quote
Old 2007-02-24, 11:41   #73 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

Quote:
Originally Posted by elacris View Post
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
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.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"

Last edited by tourettes; 2007-02-25 at 07:47.
tourettes is online now   Reply With Quote
Old 2007-02-25, 07:39   #74 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

...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.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is online now   Reply With Quote
Old 2007-02-27, 19:05   #75 (permalink)
Portal Member
 
Join Date: Jun 2006
Posts: 78
Thanks: 0
Thanked 1 Time in 1 Post


Default

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!!
Hildebrandt is offline   Reply With Quote
Old 2007-02-28, 06:48   #76 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

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...
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is online now   Reply With Quote
Old 2007-03-02, 22:35   #77 (permalink)
Portal Member
 
Join Date: Dec 2005
Age: 33
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Tourettes, could this be related to your problem:

http://www.progdigy.com/modules.php?...ming+subtitles
LiMiT is offline   Reply With Quote
Old 2007-03-06, 12:42   #78 (permalink)
Portal User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


Default ProjectX

Take a look at ProjectX - an open source project - which can, among other things, extract subtitles from a .ts file, and render them to a .SUP file.

The source is freely available - it's java - maybe you can find the solution to the timing problems in there.


http://sourceforge.net/projects/project-x
kyllingen is offline   Reply With Quote
Old 2007-03-13, 16:27   #79 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 2,646
Thanks: 69
Thanked 66 Times in 55 Posts


Default

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...
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"

Last edited by tourettes; 2007-03-13 at 17:37.
tourettes is online now   Reply With Quote
Old 2007-03-14, 13:13   #80 (permalink)
Portal Member
 
risu's Avatar
 
Join Date: Sep 2006
Posts: 254
Thanks: 17
Thanked 16 Times in 15 Posts

Country:

My System

Default

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!
risu is offline   Reply With Quote
Reply

Bookmarks

Tags
dvb, needed, subtitles

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to play external subtitles in MP? patonzon General Support 7 2006-12-18 20:13
is there a hot key to turn on subtitles in mp? dreadycarpenter General Support 1 2006-11-14 19:21
Enabling subtitles when they are needed only spyder_steve Codecs, External Players 2 2006-10-27 03:49
Problem with subtitles - freezes MP Nyll General Support 0 2006-10-18 00:16
DVD Subtitles size problem Asmo General Support 8 2005-10-19 16:22


All times are GMT +1. The time now is 19:39.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress