Loggytronic Forum

VOMP => VOMP General / MVP => Topic started by: kml on January 01, 2006, 20:22:46

Title: DVB Subtitles
Post by: kml on January 01, 2006, 20:22:46
Any plans for supporting DVB titles in VOMP client? It's clear number one in my wish list
for VOMP (even before pausing live TV or managing timers). All foreign language programs
are subtitled in Finland as we don't do any dubbing at all and the national broadcasting company (YLE)
is using DVB subtitles mechanism for that (which is different from teletext subtitles that some countries
are using).

DVB subtitles patch for VDR is here: http://virtanen.org/vdr/subtitles/
And specification is here http://webapp.etsi.org/workprogram/Report_WorkItem.asp?WKI_ID=15155

Thanks,

'' kml
Title: Re: DVB Subtitles
Post by: svalavuo on November 07, 2007, 16:17:00
I'd like to give my vote for subtitles as well.

Suprisingly, I live in Finland too  ;)

Few of our national channels (addition to YLE) are using DVB -subtitles too (I think it's two of MTV3 -channels).
Support for teletext subtitles would be nice too.
Title: Re: DVB Subtitles
Post by: davep on November 07, 2007, 20:45:11
The latest 'experimental' version of vdr (1.5.11) has subtitle support built-in.
Title: Re: DVB Subtitles
Post by: svalavuo on November 08, 2007, 11:38:04
Hi,

I know that DVB subtitles has been builtin from version 1.5.10, but it doesn't help me with my MVP.
I use 1.4.7 and I have subtitles (and ttxtsubs) -plugin so I can see subtitles with VDR, but NOT with my MVP.

Otherwise MVP is workin just like charm.
Ironically I got my vompserver and MVP working yesterday with version 0.2.6 and now there is new version  ;D

Well, I test it today, but support for teletext subtitles and eventually DVB subtitles would be great.
The order should be ttxtsubs first, because that is (for my knowledge) more used type.
Title: Re: DVB Subtitles
Post by: svalavuo on January 23, 2008, 07:48:53
Hello,

Anyone working with subtitles?

I would try to do support for subtitles to MVP, but I can't do anything with C (or C++ or C# or cpp, or...)
With subtitles -support MVP would be a great product to use. Ok, it's great now too, just few recordings and channels are unusable.
WAF (Wife Acceptance Factor) would be MUCH greater with support for subtitles. I could even get to by more of those to our household. :-)

Thanks to everyone working with this project! You are all doing great job!
Title: Re: DVB Subtitles
Post by: svalavuo on February 15, 2008, 10:53:19
Once again  ;D

Almost a month has passed since last message.
Just thought that is there any hope to get subtitles to MVP?  ;)

I changed my VDR to version 1.5.14 just to make sure that it's up-to-date.
DVB subtitles are different in 1.4.x and 1.5.10 ->
Title: Re: DVB Subtitles
Post by: davep on February 15, 2008, 16:28:59
Well there is some news from VDR. Klaus has said that he will release the present development version (which includes subtitle support) as a new stable version 1.6.0. Maybe that will make it easier to apply subtitles to VOMP.
Title: Re: DVB Subtitles
Post by: svalavuo on February 15, 2008, 16:43:43
Yes, I saw that info too.
I hope it helps getting subtitles support to MVP.
As I said in other thread, it would be great to have teletext subtitles first (more common use), after that DVB subtitles.
That's my opinion.
Title: Re: DVB Subtitles
Post by: MarkC on February 15, 2008, 19:24:03
Yes, I'm still interested in doing subtitles. Last night I tested to see whether a simple method of timing the subtitles is good enough, and the results were pretty good.

Marten, if you're following the thread, I know you were concerned about this from the WIndows side, but if you can get your Video object to report the master clock value during both live TV and recordings, at least as accurately as the MVP, then things are looking good.

I hope to start work on adopting the DVB subtitle code from VDR this weekend, and I need to discuss with Chris the best way of passing subtitles to the display system.

Teletext subtitles will have to wait until later, and then it'll either have to be written and tested by someone with access to a Teletext subtitle service, or I'll need a sample recording.

We're getting there, slowly!
Title: Re: DVB Subtitles
Post by: svalavuo on February 16, 2008, 08:18:26
GREAT NEWS!  8)

I'll be more than happy to betatest your dongle.
Does it work with 0.2.7 or do I need new plugin too?

I'll be glad to test teletext subtitles too and I can supply recording containing teletext subtitles if needed.
Title: Re: DVB Subtitles
Post by: svalavuo on May 19, 2008, 12:35:28
Any progress/news/(hope) getting DVB subtitles to work with vomp?

There's few of us in Finland waiting fingers (and toes) crossed for this feature. :)

As I mentioned previously, I'm more than willing to betatest subtitles -support.
Title: Re: DVB Subtitles
Post by: svalavuo on July 18, 2008, 17:43:39
Any progress/news/(hope)?
Title: Re: DVB Subtitles
Post by: mvisa on August 21, 2008, 09:44:12

Have to say that if DVB subtitles would work, I'd probably buy one of these MediaMVP things tomorrow.

So +1 for DVB subs :)

.m
Title: Re: DVB Subtitles
Post by: MartenR on September 20, 2008, 18:08:39
Teletext subs without synching at live tv:

(http://forum.loggytronic.com/index.php?action=dlattach;topic=83.0;attach=155)

Teletxt:

(http://forum.loggytronic.com/index.php?action=dlattach;topic=83.0;attach=157)
Title: Re: DVB Subtitles
Post by: Lutz on September 20, 2008, 19:46:15
Cool!
Title: Re: DVB Subtitles
Post by: svalavuo on September 20, 2008, 20:46:35
Really Cool!!!!
Same for MediaMVP please :)
And DVB -subtitles too.
Title: Re: DVB Subtitles
Post by: Lutz on September 23, 2008, 14:18:45
Hi Marten,
is your solution related to windows or should it also directly work on the MVP???
Cheers
Lutz
Title: Re: DVB Subtitles
Post by: MartenR on September 24, 2008, 07:03:14
Hi,
it is written in the abstract code part, so no special dependence on windows, so it should work also on the mvp, but is not tested yet.

Marten
Title: Re: DVB Subtitles
Post by: svalavuo on September 24, 2008, 08:57:50
Is there any resemblance with DVB subtitles?
It's great news, that there is hope to get subtitles to MVP.
As I have mentioned earlier, in Finland they dub only programs for children. "Normal programs" are subtitled with DVB or teletext.
Title: Re: DVB Subtitles
Post by: Lutz on September 25, 2008, 07:20:02
Thats good news, Marten!
Title: Re: DVB Subtitles
Post by: svalavuo on November 24, 2008, 14:19:51
What is the status for subtitles?
I volunteer to betatest dongle with subtitle -support (either one).  ;D
Title: Re: DVB Subtitles
Post by: MarkC on November 24, 2008, 20:01:29
What is the status for subtitles?
I volunteer to betatest dongle with subtitle -support (either one).  ;D

Here you go then, but it's more alpha than beta:

http://www.zen50618.zen.co.uk/vomp/vomp-dongle-cvs20081123-subtitles-a1

You asked just at the right time! I spent most of the weekend on this.

Some notes:

1. It only works with recordings at the moment. So the recordings have to be made with vdr 1.6 (or 1.5.something). svalavuo, I see you're running 1.6, so that's not a problem for you.
Live TV shouldn't be hard to do; I just haven't bothered with it yet.

2. This dongle will always show subtitles. You can't switch them off.

3. Skipping / fast foward / fast backward aren't handled properly yet. The client shouldn't crash, but subtitles might not work properly if you skip around.

4. If the recording contains more than one subtitle service, this dongle will only show the first one it sees.

I'm particularly interested in the last point. If anyone has any recordings of programmes with more than one subtitle service (for example, more than one language), I'd like to get a sample to see how VDR deals with it.

Sorry it's taken so long! Please report any successes, crashes, comments, etc...
Title: Re: DVB Subtitles
Post by: svalavuo on November 25, 2008, 06:50:11
GREAT!
I'll test it today when I get home.

I'll try to find out if my recordings have more than one subtitles... I think there should be in some recordings.
If there is, they will be finnish and swedish. I hope it's not a problem to you :)

- Samuli
Title: Re: DVB Subtitles
Post by: MartenR on November 25, 2008, 07:11:21
@MarkC
Excerpt from vdr man page
Quote
Audio/Video Data
The files 001.vdr...255.vdr are the actual recorded MPEG data files. In order to keep the size of an individual file below a given limit, a recording is split into several files. The contents of these files is Packetized Elementary Stream (PES) and contains ES packets with ids 0xE0...0xEF for video (only one of these may actually occur in a file), 0xC0...0xDF for audio 1...32 (up to 32 audio tracks may occur). Dolby Digital data is stored in packets with ids 0xBD ("Private Stream 1") and substream ids 0x80...0x87. DVB subtitle data is stored in packets with ids 0xBD ("Private Stream 1") and substream ids 0x20...0x27.
and the names of the different subtitle tracks should be stored in the same way the different audio tracks are stored, except for a different id. So in Vaudioselector, recInfo->streams  should be a 3 instead of a 2 and so on. So you can recycle the audio selector code...

For me it would be interesting, how you choose to do the synching...

Marten

Title: Re: DVB Subtitles
Post by: MarkC on November 25, 2008, 13:30:53
Thanks, Marten. So in the case where there are multiple TS PIDs for subtitles, I guess VDR renumbers the substreams 0x20, 0x21, etc... because in the TS source they should all be 0x20. As you say, it will be very similar to the audio selection.

But it is also possible to carry several languages in a single TS PID, by using more than one subtitle page ID. I need to read again about where in the TS stream the page information is transmitted, but it doesn't look like VDR stores it anywhere, not in recordings at least.

It might be that broadcasters don't use this feature anyway, and prefer to use separate PIDs, which is much easier. Both methods are mentioned in the DVB subtitles standard.

For synching, the demuxer adds each subtitle to a list, with its PTS value, and signals a separate subtitle display thread. This thread checks the work list, uses Video::getCurrentTimeStamp() to calculate how long to wait for, and then sends the graphics to the display (via a new OSD interface implemented by VVideoRec). If there is no work to do, it just waits for another signal from the demuxer.

I can probably commit all this to CVS as soon as I've implemented some way of switching subtitles on and off.
Title: Re: DVB Subtitles
Post by: svalavuo on November 25, 2008, 14:57:28
hmmmm
MVP loads dongle, but screen stays black :(
Title: Re: DVB Subtitles
Post by: svalavuo on November 25, 2008, 15:09:12
Here is what happens:
Code: [Select]
17:07:36.846771 [debug]  TftpClient - Client handler started
17:07:36.846946 [debug]  Tftpd - Starting wait
17:07:36.847017 [debug]  TftpClient - RRQ received for dongle.bin.ver
17:07:36.847070 [info]   TftpClient - File: '/tftpboot/dongle.bin.ver'
17:07:36.849637 [debug]  Tftpd - Wait finished
17:07:36.849727 [debug]  TftpClient - Client handler started
17:07:36.849873 [debug]  Tftpd - Starting wait
17:07:36.849945 [debug]  TftpClient - RRQ received for dongle.bin
17:07:36.849998 [info]   TftpClient - File: '/tftpboot/dongle.bin'
17:07:39.046868 [debug]  TftpClient - Retransmitting buffer
17:07:40.146707 [debug]  TftpClient - Retransmitting buffer
17:07:41.246541 [debug]  TftpClient - Retransmitting buffer
17:07:41.790463 [debug]  TftpClient - Retransmitting buffer
17:07:42.346376 [debug]  TftpClient - Retransmitting buffer
17:07:42.890322 [debug]  TftpClient - Retransmitting buffer
17:07:43.446209 [debug]  TftpClient - Retransmitting buffer
17:07:43.990129 [debug]  TftpClient - Retransmitting buffer
17:07:44.546047 [debug]  TftpClient - Retransmitting buffer
17:07:45.089964 [debug]  TftpClient - Retransmitting buffer
17:07:45.645881 [debug]  TftpClient - Retransmitting buffer
17:07:46.189798 [debug]  TftpClient - Retransmitting buffer
17:07:46.745712 [debug]  TftpClient - Retransmitting buffer
17:07:47.289630 [debug]  TftpClient - Retransmitting buffer
17:07:47.845637 [debug]  TftpClient - Retransmitting buffer
17:07:47.845835 [debug]  TftpClient - Lost connection, exiting
17:07:48.389461 [debug]  TftpClient - Retransmitting buffer
17:07:49.489297 [debug]  TftpClient - Retransmitting buffer
17:07:49.489669 [debug]  TftpClient - Lost connection, exiting
17:07:50.718152 [debug]  BOOTPD - Wait finished
17:07:50.718292 [debug]  BOOTPD - Got request
Title: Re: DVB Subtitles
Post by: MarkC on November 25, 2008, 19:20:00
Sorry, I'm an idiot. I uploaded my test dongle, where the client doesn't start automatically.

I've replaced the dongle, so please try the download again. Or you can telnet to the MVP and run /vompclient
Title: Re: DVB Subtitles
Post by: svalavuo on November 26, 2008, 16:40:43
\o/ IT WORKS!!!!!

Now the same for live TV please :)

I didn't have any recordings with more than one subtitle. :(
And pre 1.6 recordings didn't show subtitles, but that's not so bad.

Great work. Wife will be a bit happier :)
Title: Re: DVB Subtitles
Post by: MarkC on November 26, 2008, 17:20:08
Excellent news! Before I do live TV I want to get everything working properly with recordings, so I can get the code into CVS. Apart from multiple language selection... that can come later.

Recordings made with VDR before 1.6 don't actually contain any subtitle data, so there's nothing VOMP can do about those.
Title: Re: DVB Subtitles
Post by: MartenR on November 27, 2008, 07:22:14
@MarkC
Ok, then I wait until you submit to cvs in order to adapt it to the windows port and to integrate the teletext stuff into your presentation mechanism.
Btw, did Chris forward my teletext patch to you?

Marten
Title: Re: DVB Subtitles
Post by: svalavuo on November 27, 2008, 08:00:14
MartenR: Does your teletext -patch include both (teletext and subtitles)?
That would be great to have on MVP as well! :)

You guys ROCK!
Title: Re: DVB Subtitles
Post by: MarkC on November 27, 2008, 13:22:24
@Marten: I've made an initial attempt at the Windows code myself, but I can't compile it so it'll need checking. There isn't much: just mutex code and a new surface function for drawing bitmaps instead of plotting one pixel at a time. I'll send you a mail or a PM via the forum covering all the new Windows code when I commit to CVS.

Yes, I have seen your teletext patch... looks good. I think using a new view for teletext (as you have done) is the right way to go, rather than using my OSD interface, because it's the easiest way to accept page number input from the user, and it just seems to make more sense when you're showing a full screen of text. By the way, I think the patch Chris sent to me was missing the teletext font definition files: could you send those across?
Title: Re: DVB Subtitles
Post by: MartenR on November 28, 2008, 07:06:20
@MarkC
The font files are on their way to you via email.

@savlavuo
My patch is teletext at live tv only and is only a predevelopment stage, which had to be put together with the subtitle stuff.

Marten
Title: DVB Subtitles in CVS
Post by: MarkC on November 30, 2008, 00:11:37
I have committed the DVB subtitles code to CVS. A dongle is also available at
http://www.zen50618.zen.co.uk/vomp/vomp-dongle-cvs20081129

Use the Record button to switch subtitles on and off. Of course this makes no sense and will be changed once we've decided which button to use!

Here are some things that still need to be done or considered:

If you see any problems or have any ideas that aren't on this list, please post a message.
Title: Re: DVB Subtitles
Post by: MartenR on November 30, 2008, 13:43:36
What do you think about the following UI.
A selector, which appears after pressing a button like the record button yellow button, where you can select:
1) No subtitles/teletext
2) Teletext
3) DVB sub 1
4) DVB sub 2
...

Marten
Title: Re: DVB Subtitles
Post by: MartenR on November 30, 2008, 15:20:45
@user of teletext subtitles
I am adding the teletext feature now to recordings, but I am currently to stupid to generate recordings with teletext subtitles.
Can someone please point out, what I have to do?
Have so far installed the vdr-plugin-ttextsubs, but it is never displaying subtitles and the recordings seems not to contain any teletext data...
So what do I have to do?

Marten
Title: Re: DVB Subtitles
Post by: svalavuo on November 30, 2008, 21:04:35
@MartenR

Did you make settings to that plugin  with VDR?
There should be some settings, I can't remember just now what they are and wife is using VDR so I can't access to setup -menu  ;)
These are settings in my setup.conf
Code: [Select]
ttxtsubs.BgColor = 8
ttxtsubs.BottomAdj = 0
ttxtsubs.BottomLB = 0
ttxtsubs.CustomColor = -1154272461
ttxtsubs.Display = 1
ttxtsubs.DvbSources = 0
ttxtsubs.FgColor = 1
ttxtsubs.FontSize = 27
ttxtsubs.FrenchSpecial = 0
ttxtsubs.HearingImpaireds = 0000000000
ttxtsubs.Languages = fin,suo,,,,,,,,
ttxtsubs.LineSpacing = 0
ttxtsubs.LiveDelay = 0
ttxtsubs.MainMenuEntry = 1
ttxtsubs.Record = 1
ttxtsubs.ReplayDelay = 0
ttxtsubs.TextPos = 0
Languages -line tells that I'm in Finland :P

Hope that helps.
Title: Re: DVB Subtitles
Post by: MarkC on December 06, 2008, 15:22:10
DVB Subtitles are now supported on Live TV. Code is in CVS, and there is a dongle here:

http://www.zen50618.zen.co.uk/vomp/vomp-dongle-cvs20081206

The "record" button is still used for switching subtitles on or off.

Marten, I agree with putting Teletext and DVB subtitles in the same menu, as you suggested. If possible, I think we will combine it all with audio selection, on the green button.
Title: Re: DVB Subtitles
Post by: MartenR on December 06, 2008, 15:25:10
Ok, if we put it on the green button, may be we add at the end an entry Subtitles+Teletxt and after this a new menu with teletext + subtitle languages?

Marten
Title: Re: DVB Subtitles
Post by: svalavuo on December 14, 2008, 21:03:55
Excellent!
I have been testing this dongle for a while now.
It's working like charm. DVB subtitles works almost better than in VDR!
Ttxtsubs and mediaplayer to that same dongle and it's killer app. :-)

thanks guys!
Title: Re: DVB Subtitles
Post by: Schnurps on January 03, 2009, 02:19:16
Hej Marten,

is there any progress on the teletext-function? :-)
I am hoping for a next version with an updated mediaplayer, DVB-Subtitles and Teletext - that's a functionality my family is really missing...

Happy new year everybody!

André
Title: Re: DVB Subtitles
Post by: MartenR on January 03, 2009, 09:46:32
It is finished on windows, I am now waiting, that Chris requests an patch file for an integration in cvs.

Marten