Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

words per segment (option missing) #302

Open
gituppro opened this issue Jan 21, 2025 · 10 comments
Open

words per segment (option missing) #302

gituppro opened this issue Jan 21, 2025 · 10 comments

Comments

@gituppro
Copy link

Hello, I just tried to import a .srt file which I had originally for a 16:9 format.
However as people thesedays consume more 9:16 formats I want to change the complete subtitle file to make it fit for that vertical format.
there should be an automation option for this but I can't find it.
how do I change the "word per segment"?

@arch1t3cht
Copy link
Member

If you're referring to the width at which subtitles are automatically broken into multiple lines, this is the left and right margin. They can be changed in the style editor.

However, .srt files should automatically break into newlines to fit whatever video or screen they're being played on. So it's not yet clear to me what you want to adjust about your file. Do you want to set manual line breaks to fit a certain width?

@gituppro
Copy link
Author

Thank you for the quick answer,
unfortunately I couldn't find the style editor .
there is a style manager and a styling assistant but none of those have the left and right margin.

I want to change the words per segment for this .srt file and after that generate a XML file to put into FCP for my vertical videos.

@gituppro
Copy link
Author

found the style edit but changing the margins there doesn't change anything in my .srt file

@EL-File4138
Copy link
Contributor

EL-File4138 commented Jan 21, 2025

Because srt does not carry styles, only (unofficially) very limited markup tag. You'll need to convert to ass to correctly apply styles.

@gituppro
Copy link
Author

maybe another program can do it.. I was hoping aegisub can do it all.
so in this case first .srt to .ass? and then do my segments right and then back to .srt , is that the workaround you mean?

@EL-File4138
Copy link
Contributor

EL-File4138 commented Jan 21, 2025

Not "back to .srt", the added format would be lost again. I'm not aware of the subtitling workflow in FCP, but if it doesn't support ass or even srt directly I would suggest you first do the convert on the supported format, then do the editing directly in FCP.
It not that "Aegisub doesn't support it", SubRip format is mostly being considered as "just text", its implementation does not have the complex formatting option you would require.

@gituppro
Copy link
Author

hmm okay, is there another way to limit the characters per segment on a .srt file then?
I want it to automate it for all.
"turboscribe" has the option for this but doesn't allow to import .srt files directly unfortunately...
maybe I have to edit them in there , that would be a workaround

@arch1t3cht
Copy link
Member

It seems like what you want to do is to manually insert explicit line breaks into your srt file so that they will fit onto a 9:16 video.
I am still somewhat unsure if this is really necessary, since most video players will automatically break lines to fit on screen. How are you playing your subtitles, and on what kind of video (what resolution?)?

Anyway, to my knowledge there doesn't currently exist any script to make automatic line breaks explicit. There is a script to fit justified text into a rectangular clip (https://phoscity.github.io/Aegisub-Scripts/Fit%20Text%20in%20Clip/), but this also does some alignment that you may not want.

@arch1t3cht
Copy link
Member

In theory, you could

  • Apply \an7 and a rectangular clip fitting your display area to all subtitles
  • Run the Fit Text in Clip script
  • Find&Replace + with (with "Use regular expressions" enabled) to turn all spaces into singular spaces
  • Remove the \an7 and the clip again

@gituppro
Copy link
Author

so I edit in FCP on an intel macbook. therefore I don't have the option to auto-cap. so i am using third party apps to create subtitles after exporting the video. the final resolution is vertical which is 2160 x 3840 pixels, but the original video is always horizontal 3840 x 2160 and from the original one I also get the first .srt file. this first .srt file has some mistakes in it so I edit them in the horizontal video first.
they usually have around 6-8 words per segment, but when I use the same file for the vertical one ofc it will not fit it.
I don't want to edit it again for the vertical so I am trying to find a way to make this process quicker.
also in the final I use a converter for .srt to .fcpxml to change the design of the font.

the link you sent unfortunately does not fit the workflow I am looking at..
I am sure there must be an easier way for this, I just can't find it at the moment. and I also think the M-chips from apple which allow auto caps in FCP will leave me to the same problem.

capcut has this easy function when you press enter in the textfield of the segment it automatically makes a new segment. its dividing it. but this little feature is also missing in FCP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants