INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: DVB Subtitiles not diplayed correctly  (Read 2696 times)

dejwi

  • Recent member
  • *
  • Posts: 17
DVB Subtitiles not diplayed correctly
« on: November 21, 2013, 12:44:38 am »

Hi,

I have an issue with HD recordings from set top box containing DVB Subtitles. They are displayed in wrong place and too small when played in JRiver. There is no problem when played in VLC or on set top box itself.

My wild guess is that dvb subtitles are pixel rendered the same way for SD and HD channels. And while set top box and vlc scale subtitles "display space" to movie "display space", the JRiver display them "pixel perfect".



Is there anything that I can do on my side to fix it? Or you can patch it in the application?

regards,
David

ps.: JRiver version 19.0.67
Logged

dejwi

  • Recent member
  • *
  • Posts: 17
Re: DVB Subtitiles not diplayed correctly
« Reply #1 on: November 22, 2013, 06:17:30 am »

Bump.

I've checked on the net that DVB subtitles are prerendered as a bitmap and included in Transport Stream (.TS) from DVB source. Now It would be nice if somebody from JRiver would check what method they use to got them aligned (centered & at the bottom) in the display window.

And probably corrected it? :)

red,
D>
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #2 on: November 22, 2013, 07:40:30 am »

Can you provide a small sample video that demonstrates the problem? That would make it so much easier for us!
Logged
~ nevcairiel
~ Author of LAV Filters

dejwi

  • Recent member
  • *
  • Posts: 17
Re: DVB Subtitiles not diplayed correctly
« Reply #3 on: November 29, 2013, 12:35:00 pm »

Here is a link to 16 MB sample:  https://app.box.com/s/8pkomxow5pmmsvf8nkua

I hope it's something simple :)
Logged

dejwi

  • Recent member
  • *
  • Posts: 17
Re: DVB Subtitiles not diplayed correctly
« Reply #4 on: December 05, 2013, 12:19:28 pm »

bump.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: DVB Subtitiles not diplayed correctly
« Reply #5 on: December 05, 2013, 12:33:25 pm »

Are you using 19.0.87?
Logged

dejwi

  • Recent member
  • *
  • Posts: 17
Re: DVB Subtitiles not diplayed correctly
« Reply #6 on: December 05, 2013, 01:21:22 pm »

I was using 19.0.67 . I've just upgraded to 19.0.87, but the problem is still there.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #7 on: December 05, 2013, 01:48:55 pm »

Thanks for the sample, I'll look at it soon. Maybe Matt will also chime in, he wrote the original DVB Subtitle support, iirc. :)
Logged
~ nevcairiel
~ Author of LAV Filters

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: DVB Subtitiles not diplayed correctly
« Reply #8 on: December 05, 2013, 02:11:50 pm »

Thanks for the sample, I'll look at it soon. Maybe Matt will also chime in, he wrote the original DVB Subtitle support, iirc. :)

I was just pulling it up in the debugger when I saw your post.  It's like you're in another country!

The first subtitle starts 505 pixels down, and is 720x46.

The video is 1920x1080, but the subtitles coordinates seem like they're for a much smaller size video.

Sometimes the header for subtitles will say "pretend the source video is this size" but I'm not aware of a way to do that with embedded DVB?
Logged
Matt Ashland, JRiver Media Center

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #9 on: December 05, 2013, 03:01:25 pm »

DVB subs have something called a "display definition segment", which defines the canvas size the subs were authored for.
They should probably be drawn on that size, and then scaled to video size.

I haven't actually checked if its contained in this particular video, though.
Logged
~ nevcairiel
~ Author of LAV Filters

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: DVB Subtitiles not diplayed correctly
« Reply #10 on: December 05, 2013, 03:03:41 pm »

DVB subs have something called a "display definition segment", which defines the canvas size the subs were authored for.

I think that means that CSubtitleFormatDVB::RenderPage(...) just needs to set pItem->m_sizeSourceVideo with the "display definition segment".

So we just need to figure out where to get the "display definition segment" from.  Is it in each packet, or once at the start of the file?
Logged
Matt Ashland, JRiver Media Center

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #11 on: December 05, 2013, 03:05:20 pm »

It should be the thing called "DISPLAY" with the TODO block in the dvb parser.... :)
Logged
~ nevcairiel
~ Author of LAV Filters

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: DVB Subtitiles not diplayed correctly
« Reply #12 on: December 05, 2013, 03:16:38 pm »

It should be the thing called "DISPLAY" with the TODO block in the dvb parser.... :)

Ah!

7.2.1:
http://www.etsi.org/deliver/etsi_en/300700_300799/300743/01.03.01_60/en_300743v010301p.pdf

Care to take a crack at it?  I think you could just parse the stuff into m_Page, then use it in RenderPage like I mentioned above.
Logged
Matt Ashland, JRiver Media Center

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #13 on: December 05, 2013, 03:34:11 pm »

Yeah i'll take care of it, no problem. Hoping that there is actually such a segment in the stream, but if not i'll come up with other ideas!
Logged
~ nevcairiel
~ Author of LAV Filters

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #14 on: December 07, 2013, 02:16:52 pm »

In the next version:
Fixed: DVB Subtitles could render with an incorrect size and position
Logged
~ nevcairiel
~ Author of LAV Filters

dejwi

  • Recent member
  • *
  • Posts: 17
Re: DVB Subtitiles not diplayed correctly
« Reply #15 on: December 18, 2013, 12:31:38 am »

I've downloaded the latest version of MC and it works great for most of the channels. While I was browsing through recorded movies I've found that movies from Canal+ still have the same issues. So whatever worked for HBO, doesn't work for C+.

Here is a link to fresh sample: https://app.box.com/s/z30qipoym4s3hao9v2vt
I am using 19.0.91

TIA :)
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #16 on: December 18, 2013, 09:24:45 am »

Leave it to the TV Networks to find new ways to screw with us.  ;D

I'll have a look. Thanks for providing the sample!
Logged
~ nevcairiel
~ Author of LAV Filters

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10945
Re: DVB Subtitiles not diplayed correctly
« Reply #17 on: December 19, 2013, 06:59:36 am »

In an upcoming version:
1. Fixed: DVB subtitles on certain TV channels could still render with incorrect size and position.

Turns out that the DVB spec has a implicit default subtitle size, if none is specifically designated in the subtitle stream, which was not applied to the subtitles, but that is now rectified.
Logged
~ nevcairiel
~ Author of LAV Filters
Pages: [1]   Go Up