Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd February 2019, 14:10   #1461  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
I agree that the subtitles *should* be read correctly in the first place, but things are much more complicated. BD subs are really complex, with for example, the possibility to display several subtitles at the same time ("multiple ODS"). It is therefore not easy to distinguish when and why a subtitle appears several times in the source stream. Hence the CLI trick to merge them.

Anyway, unfortunately, BDSup2Sub is not developed any more, and we have to live with its limitations and bugs.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 4th February 2019, 05:41   #1462  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by r0lZ View Post
I agree that the subtitles *should* be read correctly in the first place, but things are much more complicated. BD subs are really complex, with for example, the possibility to display several subtitles at the same time ("multiple ODS"). It is therefore not easy to distinguish when and why a subtitle appears several times in the source stream.
Identical subtitles, appearing within miliseconds after each other, at the same screen location, I think anyone writing a subtitle program could safely merge those. But anyway, like you say, the point is moot, as BDSup2Sub++ is apparently no longer maintained.

P.S. Nice write-up on all the bugs. It's appreciated.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 20th March 2019, 14:14   #1463  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
I usually just use BDSup2Sub to shift PGS subtitles into bounds of the movie after black bars have been cropped in a recode.

I noticed the exported PGS always increase in file size, roughly around 10%, compared to the source PGS. Any reason for this?

I'm not talking about PGS with multiple PDS/ODS which may explain the increase. It happens even with simple PGS I created with SubtitleEdit.
LeXXuz is offline   Reply With Quote
Old 20th March 2019, 14:29   #1464  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
I have noticed the same thing, and me too, I wonder why. Since the bitmaps of the PGS subtitles are compressed, the compression ratio may be less efficient when BDSup2Sub saves the stream, but modifying only the Y position should not require to recompress the bitmap (except if the subtitle is in a full-screen mainly transparent bitmap that must be cropped, but it's rarely the case). I guess BDSup2Sub recompresses it anyway.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 20th March 2019, 14:41   #1465  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Maybe the increase isn't due to the bitmaps themselves but other parts of the bitstream? What format are the bitmaps? Does it make a difference if you only move by mod4 or mod2?

Can you upload source+output as example?
sneaker_ger is offline   Reply With Quote
Old 20th March 2019, 14:45   #1466  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
I think r0lZ thoughts about different compression efficiency may be correct.

Even if you don't touch the stream at all, meaning simply load and export again, you'll get a bigger file with almost any PGS.

EDIT: Okay I'm not sure about the compression anymore. As the export of an export gets even bigger in file size. Something seems to produce an overhead. But what?

Last edited by LeXXuz; 20th March 2019 at 15:12.
LeXXuz is offline   Reply With Quote
Old 20th March 2019, 15:14   #1467  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Quote:
Originally Posted by sneaker_ger View Post
Can you upload source+output as example?
I don't have the source.

My program BD3D2MK3D uses BDSup2Sub to convert the subtitles to 3D, and it saves also a 2D version of the same stream, without real modifications, and usually it is around 10% larger than the original file, extracted from the BD with tsMuxeR 3D.

I think (but I'm not sure) that the PGS bitmaps are compressed with the LZH algorithm, like the PNG images. LZH can compress very well, but that requires much time. Maybe BDSup2Sub compresses faster, and therefore less.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 20th March 2019, 15:16   #1468  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
See my edited post. Shouldn't the resulting file size stay the same in that scenario?
LeXXuz is offline   Reply With Quote
Old 20th March 2019, 15:20   #1469  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Quote:
Originally Posted by LeXXuz View Post
EDIT: Okay I'm not sure about the compression anymore. As the export of an export gets even bigger in file size. Something seems to produce an overhead. But what?
Just did the test, and indeed, when BDSup2Sub++ re-saves the same stream, there is an additional increase of the file size. But that doesn't happen with the Java version.
So, it seems that the ++ version has an additional bug... :-(

[EDIT] I've added that little bug as bug #10 in the bugs list here.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 20th March 2019 at 15:31.
r0lZ is offline   Reply With Quote
Old 21st March 2019, 00:20   #1470  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
Many thanks for finding this bug. I know what you both mean and I thought this is OK, but now I know it is a bug.
The Java versions seams to be the better one.
hubblec4 is offline   Reply With Quote
Old 29th May 2019, 10:53   #1471  |  Link
Ditleg
Registered User
 
Join Date: Jan 2013
Posts: 8
Quote:
Originally Posted by SquallMX View Post
Yes, some Bluray titles don't have subtitles that the DVD versión does have, and sometimes de DVD version is better placed or have better font (Warner BR subtitles are placed in the black bars if the movie is 2.35, some of us hate that, and right now there's no way to change the position, the DVD subtitles can be placed inside the 2.35 image itself).

Another petition, an option to resize BR subs from 1080p to 720p, currently it's not possible to have BD5 at 720 with subtitles because no program exist that converts the subs from 1080p to 720p.

Yes, you can't convert the subs from 1080p to 720p, cuz it's none of video resolution business.
Ditleg is offline   Reply With Quote
Old 12th August 2019, 01:47   #1472  |  Link
Arbie
Registered User
 
Join Date: Jul 2011
Posts: 9
I'm sure this has been asked and answered, but the forum doesn't seem to let me search only one thread and it's 73 pages now...

--> Is there a Windows version?

Thx
Arbie is offline   Reply With Quote
Old 12th August 2019, 07:35   #1473  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,746
This is a Java application. If you install a Java Runtime Environment to your Windows, it runs under Windows.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 16th August 2019, 09:06   #1474  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
There is also a Windows version written in C++ that doesn't require Java: BDSup2Sub++. It has some bugs, but no more than the Java version.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 16th August 2019, 10:29   #1475  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Quote:
Originally Posted by r0lZ View Post
There is also a Windows version written in C++ that doesn't require Java: BDSup2Sub++. It has some bugs, but no more than the Java version.
It looks like he's created a new account and has more updates here:
https://github.com/amichaeltm/BDSup2SubPlusPlus
This branch is 78 commits ahead of amichaelt:master.

https://github.com/amichaeltm/BDSup2...sPlus/releases
1.0.3
513f6c4
amichaeltm released this on May 9, 2018
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 16th August 2019, 15:30   #1476  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,746
@Arbie: My mistake, sorry didn't notice that the VideoHelp software list leads to the same page for both editions, and read "requires Java runtime" on both...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 22nd September 2019, 10:28   #1477  |  Link
ehudik
Registered User
 
Join Date: Sep 2019
Posts: 1
יש מדריך גם בעברית לבניית כתוביות?
ehudik is offline   Reply With Quote
Old 23rd September 2019, 10:56   #1478  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
Quote:
Originally Posted by ehudik View Post
יש מדריך גם בעברית לבניית כתוביות?
No, I don't think so.

Welcome to Doom9. Please use English.
hubblec4 is offline   Reply With Quote
Old 10th February 2020, 23:09   #1479  |  Link
markfilipak
Registered User
 
markfilipak's Avatar
 
Join Date: Jul 2016
Location: Mansfield, Ohio (formerly San Jose, California)
Posts: 277
BDSup2Sub++ 1.0.3 appears to work well. The problem I'm having is with creation of the SUP file(s) for BDSup2Sub and hence, import into MKVToolNix GUI 41.0.0 64-bit. I seek help/advice here because I don't know of anywhere else I can ask. :-(

The problem is that beginning at 1:13:21 of the video, and thereafter, the subtitles are displayed 10 seconds early. The following is from DVDSubEdit:
Code:
Subpic#                       | StreamID | LBA      | V/CID | PTS             | Duration | TimeCode                     
1494 (735 in stream) | 0x20        | 375776 | 1/20  | 395840034 | 1.968s   | 01:13:13,633 --> 01:13:15,601
1496 (736 in stream) | 0x20        | 376538 | 1/20  | 396026220 | 3.236s   | 01:13:15,699 --> 01:13:18,936
1498 (737 in stream) | 0x20        | 380791 | 2/1     | 17607         | 0.033s   | 01:13:15,500 --> 01:13:15,533
1502 (738 in stream) | 0x20        | 380792 | 2/1     | 110700       | 3.703s   | 01:13:16,533 --> 01:13:20,236

Bottom Line: I assume Subpic# 1498 is at a layer change that is throwing PTS off. Does anyone know of a SUP subtitle exporter that will handle it?

SubRip 1.57.1:
SubRip will save SUP subtitles, but it has no setting to select only the widescreen (16:9) subtitles. It has a "Enable this box if time restarts in the middle of the DVD" check box, but the extra (letterbox) subtitles are screwing up the export.

DVDSubEdit 1.52:
This will save SUP subtitles, but it has no setting to fix the errors at the layer change. It can retime individual subtitles, and it can retime entire streams, but it apparently can't retime a subtitle and than propagate that delta-time to the remainder of the stream (least not for SUP subtitles).

SRT textual subtitles are out of the question.

Thanks for any help you can provide, and again, I appologize for posting this here. Regards,
Mark.
markfilipak is offline   Reply With Quote
Old 2nd July 2020, 13:06   #1480  |  Link
Peter_A
Registered User
 
Join Date: Feb 2014
Posts: 23
Quote:
Originally Posted by r0lZ View Post
I have had the same problem with ++ and a specific BD (I don't remember which one). However, the Java version doesn't have that problem.

Also, note that the two versions have a CLI option to control the merging of the identical subtitles. It defines the maximum duration between two identical subtitles before they should be considered as two different subtitles. The option is -x <time_in_ms> or --merge-time <time_in_ms> and the default value is 200 ms for both versions. I don't know if that option is available in the GUI. And I don't know why that option doesn't work with BDSup2Sub++ and some specific subtitle streams.

Again, I suggest to keep the two versions of BDSup2Sbb and use the one that works best for each case.

(I have updated the list of bugs of the two versions here.)
Regarding "duplicate" subtitles, I found a different issue. On at least one title, there were consecutive subtitles, where the second began at the same timestamp as the first ended, but the captions were not the same (the first one was actually blank and very long in duration, so it probably shouldn't have been there in the first place, but it was, and the second one was a real caption). The Java-based BDSup2Sub merged them (dropped the second one and extended the time of the first, which was blank, to cover the time for both subtitles). So, the second subtitle (with a real caption) was lost completely. For the same title, BDSup2Sub++ maintained them both correctly. This may be a rare occurrence, but dropping a subtitle completely is much worse, in my opinion, than having duplicates, especially if the duplicates are there to begin with (i.e., not introduced by the program one is using).
Peter_A is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +1. The time now is 04:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.