Page 1 of 1

Subtitle lines collapsing? (SRT)

Posted: 24 Sep 2013 01:27
by Devore
I've done a bit of searching around for this, and haven't found anything similar, so either I am doing something wrong, repeatedly, or other's don't mind/care.

Using latest version of VLC, on Windows, with no special settings or other weird uses. This problem is not version specific, I've noticed it happening for a while. If memory serves me right, this did not used to happen, once upon a time, but my memory is hazy.

I am using SRT subtitles, and noticed a couple odd behaviours.

When a subtitle entry has 3 lines, they will sometimes get collapsed into 2 lines. Not sure why, or what the criteria might be. It's not a huge deal, but often a separate line means it is a separate piece of dialogue, spoken by a different character. So this is a problem, but the actual problem is that when this collapsing happens on a subtitle that is in italics, there will be no space inserted between the two collapsed lines, whereas when there is no markup, there is a space. This makes the subtitles look like a real mistake.

The second problem is alignment. I have the subtitles positioned at "bottom", which is the default setting. Create a simple SRT file with one entry consisting of 3 identical lines, when displayed (assuming they don't get collapsed), the first 2 will be perfectly aligned vertically, but the last line will be noticeably offset to the right a few pixels.

Mostly, I'd just like to know what I am doing or not doing that is causing the concatenating of that 3rd line sometimes.

Re: Subtitle lines collapsing? (SRT)

Posted: 27 Sep 2013 18:41
by Jean-Baptiste Kempf
Please share a sample.

Re: Subtitle lines collapsing? (SRT)

Posted: 28 Sep 2013 03:58
by Devore
Ok, I've been doing some more checking on this, it seems the "line collapsing" thing is something Handbrake might be doing when encoding the mkv file. I'm supplying an .srt file as a subtitles input. When I extract the subtitle stream from the mkv, the lines are actually collapsed, vs the original source where they are as intended. I will just have to mux in the subtitles afterwards using other tools that will not mangle the lines.

However, this does not explain the removal of a space.

Here is what a "collapsed" subtitle entry looks like:

Code: Select all

968 00:59:00,737 --> 00:59:04,606 - I, um, I was wondering. <i>- ♪ Just remember, darling</i> <i>all the while ♪</i>
There is a space between the two italics markup tags, but during playback no space is apparent between "darling" and "all".

Re: Subtitle lines collapsing? (SRT)

Posted: 28 Sep 2013 11:51
by Jean-Baptiste Kempf
That should be registered in the bug tracker.

Re: Subtitle lines collapsing? (SRT)

Posted: 30 Sep 2013 11:48
by Lotesdelere
Here is what a "collapsed" subtitle entry looks like:

Code: Select all

968 00:59:00,737 --> 00:59:04,606 - I, um, I was wondering. <i>- ♪ Just remember, darling</i> <i>all the while ♪</i>
There is a space between the two italics markup tags, but during playback no space is apparent between "darling" and "all".
You should create a new ticket on the VLC Trac with your sample file and the link to this thread.

Re: Subtitle lines collapsing? (SRT)

Posted: 30 Sep 2013 12:37
by Devore