INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: 6233638 on April 10, 2013, 04:12:12 pm

Title: Resizing DVD Subtitles
Post by: 6233638 on April 10, 2013, 04:12:12 pm
When watching 4:3 content and resizing the subtitles, they are getting cut off at the sides.
I don't know how subtitles are rendered, but would it be possible to have them displayed in a 16:9 area, even if the video is 4:3?

Example: (contains swearing)
(http://www.abload.de/thumb/smallt0pte.jpg) (http://www.abload.de/img/smallt0pte.jpg) (http://www.abload.de/thumb/bige6oqq.jpg) (http://www.abload.de/img/bige6oqq.jpg)

I'm not sure about the horizontal position of the subtitles either. With longer subtitles like that example, they're being pushed off to the right rather than being centered, but shorter subtitles (e.g. a single word on its own line) do stay properly centered.

Is there some way of overriding the horizontal position so that all subtitles are displayed centrally?
Title: Re: Resizing DVD Subtitles
Post by: Hendrik on April 10, 2013, 04:18:27 pm
And i thought MC was using LAV for DVD decoding now, which would print the subtitles directly onto the video image, directly in the position as defined in the bitstream, no matter how its resized/scaled/cropped.
Or is that a ripped MKV, not an actual disc via the DVD Navigator?
Title: Re: Resizing DVD Subtitles
Post by: 6233638 on April 10, 2013, 04:22:36 pm
And i thought MC was using LAV for DVD decoding now, which would print the subtitles directly onto the video image, directly in the position as defined in the bitstream, no matter how its resized/scaled/cropped.
Or is that a ripped MKV, not an actual disc via the DVD Navigator?
I ripped it to MKV. (it's a TV show (http://yabb.jriver.com/interact/index.php?topic=79189.msg538201#msg538201) - The Wire)
Title: Re: Resizing DVD Subtitles
Post by: Hendrik on April 10, 2013, 04:24:25 pm
I see, ripped MKVs use MC18's subtitle engine, so back to Matt the ball goes.  ;D
Title: Re: Resizing DVD Subtitles
Post by: 6233638 on April 10, 2013, 04:31:32 pm
Just checked, and you don't get the option to resize subtitles at all when playing off the disc:

(http://www.abload.de/img/subtitlesw9q43.png)

A shame, as it's a useful feature.
Title: Re: Resizing DVD Subtitles
Post by: Matt on April 10, 2013, 04:34:53 pm
Well, I didn't even remember that we support sizing of image based subtitles.  That's neat.

Looking at the code, the placement tries to preserve the center point of the rectangle.  So a centered subtitle will stay centered, a subtitle under a certain character will stay there, etc.

Also, the code limits the amount of sizing so that it never grows outside the video.  So I can't explain why it's falling off the edge in your screenshot.  Would it be easy to provide a sample?

One note is that if the subtitle gets enlarged and was off center, it could get pushed to the center so it will fit.

As for putting subtitles outside the video, we're sometimes limited by the renderer.  With EVR, it's almost impossible unless we switched subtitles to a floating window (instead of an overlay in the renderer), and that would hurt performance.
Title: Re: Resizing DVD Subtitles
Post by: 6233638 on April 10, 2013, 05:06:36 pm
Well, I didn't even remember that we support sizing of image based subtitles.  That's neat.
I thought so too - I was bothered by how small some of the subtitles for this were, and was pleasantly surprised when I found the option to increase the size. I can only go to 110% without it cutting off subtitles though. (there were some in an earlier episode that were even wider than than example - I had to make the size larger for it to happen this time)

Looking at the code, the placement tries to preserve the center point of the rectangle.  So a centered subtitle will stay centered, a subtitle under a certain character will stay there, etc.

Also, the code limits the amount of sizing so that it never grows outside the video.  So I can't explain why it's falling off the edge in your screenshot.  Would it be easy to provide a sample?
Here you go: http://www1.datafilehost.com/d/19d45459 (http://www1.datafilehost.com/d/19d45459) (just untick the "use our file manager" option to download directly)

As for putting subtitles outside the video, we're sometimes limited by the renderer.  With EVR, it's almost impossible unless we switched subtitles to a floating window (instead of an overlay in the renderer), and that would hurt performance.
I'm using madVR (ROHQ) which I think has a subtitle interface that would support this, but I really don't know.
Title: Re: Resizing DVD Subtitles
Post by: Matt on April 11, 2013, 03:48:30 pm
Thanks for the sample.

Next build:
Fixed: When increasing the size of image-based subtitles using the 'Size' setting, a subtitle could get too large to fit on the video and get truncated (now the subtitle will not be sized beyond the point of filling the video).
Title: Re: Resizing DVD Subtitles
Post by: 6233638 on April 11, 2013, 04:18:39 pm
No problem, thanks for the quick fix.

I take it there's no easy way to extend subtitles to fill the screen then?
Title: Re: Resizing DVD Subtitles
Post by: Matt on April 11, 2013, 04:28:29 pm
I take it there's no easy way to extend subtitles to fill the screen then?

Not an easy way.

The subtitle engine targets the lowest-common-denominator for rendering, and EVR won't work with subtitles outside the video area.

Someday we may make the engine switch modes based on the renderer.
Title: Re: Resizing DVD Subtitles
Post by: 6233638 on April 11, 2013, 04:35:09 pm
OK, well thank you for this fix anyway. I'm constantly impressed by the pace of MC's development.