Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Blu-ray subtitle conversion tool (sub2bd)
Hi everyone,

First of all, thank you for developing this utility since it is very much useful. I wanted to point out a couple of things.


I tried swapping the old VSfilter with the still-in-development version found at https://github.com/pinterf/xy-VSFilter. I do have Avisynth+ (latest version as of today) installed on my system. The rendered file was unexpected.

[Image: Subtitle-Edit-k-W9o3b-Q1-Kb.jpg]

Not only was the image mirrored and flipped, but the alignment was also changed from the bottom to the up top. I don't know why this happened; it is not a problem linked to sub2bd since the behavior was the same using avs2bdnxml CLI.
Is there any way to fix this?


The latest comments on this thread empathyze using https://github.com/cubicibo/ass2bdnxml instead of the old avs2bnxml as it is much faster; however, I noticed it doesn't crop captions properly. Here is an example:

[Image: Subtitle-Edit-g66tsh00-Q1.jpg]
whereas avs2bdx correctly crops the image to perfectly fit the text inside. Note that this does not happen for all captions but only for some.

Finally, I noticed that when using avs2bdnxml (but I think this applies to ass2bdnxml too) the resulting time codes of subtitle entries are off from the original values by 1/2 frames.
Reply
Thanks given by:
Hmm the problem with the flipped text sounds really familiar, I feel like I ran into it at some point. It must be in the VSFilter DLL. Maybe try using an older version to see if there is any change.

Regarding ass2bdnxml, the developer still seems to be somewhat active, perhaps try reporting that issue on Github and hope it gets fixed.

https://github.com/Masaiki/ass2bdnxml/issues
Reply
Thanks given by:
(2026-05-13, 10:02 PM)bronan Wrote: Hmm the problem with the flipped text sounds really familiar, I feel like I ran into it at some point. It must be in the VSFilter DLL. Maybe try using an older version to see if there is any change.

Adding the following line to the .avs file fixed the flipping:

Code:
FlipVertical()

It looks like I didn't read avs2bdnxml documentation carefully enough as it states:

Quote:If you created an RGBA video, do something like this instead:
Code:
AviSource("subtitles_RGBA.avi")
FlipVertical()
Reply
Thanks given by:
Well, I discovered something strange. There is not one, but two different apps using the name ass2bdnxml! The first that was shared earlier in the thread is an app by cubicibo (https://github.com/cubicibo/ass2bdnxml) that produces bdn+xml output, and then requires another app called SUPer to convert that into a .sup (the sub2bd-ava builds were based on this).

But when I was looking for the github for that, I accidentally ran across another ass2bdnxml by Masaiki (https://github.com/Masaiki/ass2bdnxml). This one is actually the old avs2bdnxml that we all know and love, but instead of using Avisynth to render the graphics it uses libass. So theoretically, same behavior and quality but without the need for Avisynth (or VSFilter DLLs)! I've been testing it a bit and seems to work great. There is a new beta 0.04 using this on the original post.

I also added a built-in SRT to ASS converter so if you are lazy like me, no extra app is required now for that. The styling is hard-coded for now, but I will add an options page for it eventually, as well as the old Batch converter back in.
Reply
Thanks given by:
I've decided to stick with Masaiki's ass2bdnxml since it greatly simplifies things and its still being actively worked on it. The new version is now a mainline release as 0.94, available for download in OP.
Reply
Thanks given by:
0.95 is up on the first post, has some UI polish and an option to show/hide the console window. There's an annoying problem in Avalonia where the file browser will sometimes lock up for a few seconds after clicking the +. I was going to report it but it seems its already fixed and will be in the next release, so in the meantime faster to use the drag/drop.
Reply
Thanks given by:
(2018-03-06, 01:57 AM)Beber Wrote: For SRT to ASS conversion, I just use the oldfashioned Subtitle Workshop. And then I copy/paste my usual style line in the notepad, such as:
Style: Default,Futura STD Medium,19,&H00FFFFFF,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,0,3,2,15,15,43,0

Is this still your default? Do you adjust brightness for HDR films?
Reply
Thanks given by:
Now my defaults are...

for HDR:
Style: Default,Arial,16,&H00A0A0A0,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,15,15,43,0

[Image: The-Good-the-Bad-and-the-Ugly-FULLEST-EX...-DTS-H.jpg]

for SDR:
Style: Default,Arial,16,&H00FFFFFF,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,15,15,43,0

[Image: The-Good-the-Bad-and-the-Ugly-FULLEST-EX...-DTS-H.jpg]

These are for cinemascope movies, hence the 43, with 2 for outline and zero shadow, and pure white for SDR and greyish for HDR that'll turn into white with the HDR boost on display. For 1.85:1, I change height 43 in favor of 23, and size 16 to size 17.
Reply
Thanks given by: bronan
@bronan, as for 1.78:1, my default height is 20, and if I use the Futura STD Medium font, I set its size at 20.

So for SDR:
Style: Default,Futura STD Medium,20,&H00FFFFFF,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,15,15,20,0

And it looks like this, still with 2 for outline and zero for shadow:

[Image: 24-s01e01-1080p-Blu-ray-AC3-PGS-mkv-snap...03-588.jpg]

And if you want the same look for HDR, you just change the color code I put in bold red above to &H00A0A0A0 just like I did for The Good, The Bad and The Ugly.
Reply
Thanks given by:
(2026-06-13, 09:24 PM)Beber Wrote: Now my defaults are...

for HDR:
Style: Default,Arial,16,&H00A0A0A0,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,15,15,43,0

for SDR:
Style: Default,Arial,16,&H00FFFFFF,&H00000000,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,15,15,43,0

These are for cinemascope movies, hence the 43, with 2 for outline and zero shadow, and pure white for SDR and greyish for HDR that'll turn into white with the HDR boost on display. For 1.85:1, I change height 43 in favor of 23, and size 16 to size 17.

Perfect, thanks! I also prefer the outline to the shadow, it looks very clean. I simplified down to just a few options for now, can always expand later. The HDR checkbox will toggle between the white / dim white you posted. 0.96 is out now on main post with this.

https://i.imgur.com/VmTPeIF.png
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  DDVT Tool Mismatched Lengths? X5gb 7 8,940 2023-06-07, 08:47 PM
Last Post: axeyou
  Is there any tool to edit and resynchronize Blu-ray PGS SUP subtitles? Onti 2 6,186 2021-07-18, 06:48 AM
Last Post: BusterD
  [Help] Correct Bad Frame Rate Conversion CSchmidlapp 29 43,156 2019-05-24, 10:17 PM
Last Post: zoidberg
  Subtitle Conversion professorwho 7 11,845 2019-04-28, 05:39 PM
Last Post: bronan
  Lossless conversion from MOV? Serums 2 5,892 2018-12-20, 05:14 AM
Last Post: Serums
  Tool for processing LD DTS: "wav2dts" schorman 0 5,163 2018-08-12, 12:46 PM
Last Post: schorman
  Best option for this conversion ..... Jetrell Fo 9 16,926 2015-12-24, 10:18 PM
Last Post: Jetrell Fo

Forum Jump:


Users browsing this thread: 2 Guest(s)