r/SubtitleEdit • • Oct 24 '26

Help Going crazy here

I have been trying to get this working and have been losing sleep quite literally trying to work out the syntax to get this working so if somebody could save my ass I would be very VERY grateful!

I am trying to change a .ass (what an extension) into an ass, only with modified subtitle formatting. I would like to automate this process which is why I am attempting to use the CLI version rather than the GUI. According to the documentation "--custom-format:<NAME.xml>" can be used but I have yet to make it work.

I do not understand what the customtext is referring to, nor an easy way to generate an xml file in order to modify it into what I would like (altering font sizes and line spacings).

Throwing links at me also works.

seconv subs.srt customtext --custom-format:my-template.xml 
1 Upvotes

7 comments sorted by

4

u/Responsible-Love-657 Oct 24 '26

Look I can t help you much but what version of SE are you using ? Version 5. Sucks. I ve been using SE for more than 10 years. Stick with a 4 Version. Can you have an example of what you re trying to do ?

1

u/Scylenthum Oct 24 '26

Thanks for the reply regardless! My SE seems to be ver 5.2, whereas SeConv appears to be 1.0 (but based on SE ver 3.6.9). Can I use SE version 4 as a CLI? Version 5 just opens the program. I have an ass file we shall name Subtitle1.ass with the following styles:

[V4+ Styles]

Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding

Style: Default,MS UI Gothic,90,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,15,0,1,2,2,1,10,10,10,0

I would like to be able to change the text size (to 60) and font spacing (to 3) via this program to be as such:

Style: Default,MS UI Gothic,60,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,3,0,1,2,2,1,10,10,10,0

I used Powershell before but my code will break if the source contains a font other than the one above.

seconv subs.srt customtext --custom-format:my-template.xml 

Do you happen to know what the 'customtext' variable refers to, or have an example 'template.xml' I could experiment with? Or another way around this hodgepodge?

2

u/pigers1986 Oct 24 '26

customtext is SWITCH for program, that expects template file (XML) that will produce OUTPUT line(s) you want
out.

what actually you want to achieve ?

1

u/Scylenthum Oct 24 '26

Then the function I'm trying to use is completely irrelevant to what I am trying to do. That's useful to know. I would like to be able to input .ass subtitle files, and have it output the same .ass file type but with my own preset font sizes and word spacings changed.

2

u/pigers1986 Oct 25 '26 • Diamonds are Forever

under assumption there is only default style in ASSa file:

[Script Info]
ScriptType: v4.00+
PlayResX: 1920
PlayResY: 1080

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,MS UI Gothic,60,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,3,0,1,2,2,1,10,10,10,0

save as mystyle.ass next to seconv.exe, than

./seconv.exe *.ass ass --assa-style-file:mystyle.ass --output-folder:./out 

test on some files before going crazy with whole library ;)

3

u/Scylenthum Oct 25 '26

You absolute ducking madman thank you very much! At first this code didn't work so I did a bit of digging. I tried running SE v.4 instead of SeConv and SE v.5, neither of those options worked. I tried this again after removing the version of SeConv that I had compiled myself and downloaded a pre-built version, then suddenly it started doing things!

After all of this excitement it is time to do my duties/chores, and get to bed (before midnight tonight). Thanks again Pigers!

2

u/pigers1986 Oct 25 '26

now a lot work ahead of you - good luck !