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 16th November 2024, 15:08   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 277
Aegisub: Set Resolution

I have a bunch of 640x360 subtitles, and I want to use them for 1920x1080 videos. How do I them to that resolution at once using Aegisub?

I'm talking about this, but I want to put it in a batch process or something like that.

https://imgur.com/gjmMJhr
jay123210599 is offline   Reply With Quote
Old 16th November 2024, 17:25   #2  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 219
I stand to be corrected but think it should work without changing them because the aspect ratio is the same.
GeoffreyA is offline   Reply With Quote
Old 16th November 2024, 22:30   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 277
Quote:
Originally Posted by GeoffreyA View Post
I stand to be corrected but think it should work without changing them because the aspect ratio is the same.
I want the subtitles to be different. From this to this.
jay123210599 is offline   Reply With Quote
Old 17th November 2024, 05:37   #4  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 308
You don't
You enable scale border and shadow
But dude that thick border is ugly
Up your aesthetics

Last edited by Z2697; 17th November 2024 at 05:41.
Z2697 is offline   Reply With Quote
Old 17th November 2024, 06:33   #5  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 219
The thick border is terrible. The original looks better. Try increasing it a little till it's just visible and leave it at that. I think you'll be able to do that in the Styling Assistant.

Last edited by GeoffreyA; 17th November 2024 at 06:41.
GeoffreyA is offline   Reply With Quote
Old 17th November 2024, 08:20   #6  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,145
Quote:
Originally Posted by GeoffreyA View Post
I stand to be corrected but think it should work without changing them because the aspect ratio is the same.
You're exactly right.
Both AssRender() and TextSub() will scale the subtitles accordingly and automatically, so there's no reason to do anything.

@Geoffrey, when it asks you about scaling and changing the resolution to make it match the one of the video, hit cancel.

It's very common to work with low resolution and quality proxies and then encode at high resolution starting from the original master.

For instance, I generally work at 848x480, so all the subtitles, styles, font sizes etc are for that resolution. When that very same subtitle is applied to the original FULL HD source via AssRender() it's automatically scaled and everything works perfectly. The important thing is that the aspect ratio has to be the same, in my case 16:9 so 1.77 for both the proxy and the actual source. Nothing stops you from working with 1.85, 2.35 etc as long as they're the same. Obviously the same applies to 4:3 1.33, so you can't mix and match aspect ratios but you can mix and match resolutions and vsfilter will adjust the subtitles for you automatically.

Last edited by FranceBB; 17th November 2024 at 08:22.
FranceBB is offline   Reply With Quote
Old 17th November 2024, 14:41   #7  |  Link
hellgauss
Registered User
 
hellgauss's Avatar
 
Join Date: Sep 2002
Location: Italy
Posts: 115
Quote:
Originally Posted by jay123210599 View Post
I want the subtitles to be different. From this to this.
Add the command

Code:
ScaledBorderAndShadow: yes
in the [Script Info] header of the .ass

You can do it with notepad. Keep resolution 640 x 360.

I also prefer the thick subtitles since at full hd are more readable. And actually, if rendered at original resolution 640x360, they appears thicker indeed.
hellgauss is offline   Reply With Quote
Old 18th November 2024, 18:33   #8  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 277
Quote:
Originally Posted by hellgauss View Post
Add the command

Code:
ScaledBorderAndShadow: yes
in the [Script Info] header of the .ass
How do I do that to multiple subtitle files at once?
jay123210599 is offline   Reply With Quote
Old 18th November 2024, 19:39   #9  |  Link
hellgauss
Registered User
 
hellgauss's Avatar
 
Join Date: Sep 2002
Location: Italy
Posts: 115
I managed to do that easily with a c++ script. Any other language would be ok.

You can do it via windows bat file, but it is somewhat an hack and a bit slow. For example this .bat accepts 2 arguments: input_file (%1) and output_file (%2). You can call it in a for cycle through your .ass files.

Quote:
echo off
for /F "tokens=*" %%A in (%1) do (
echo %%A >> %2
if "%%A" == "[Script Info]" (
echo ScaledBorderAndShadow: yes >> %2
echo OK - String found in %1
)
)
The .bat looks for the line "[Script Info]" and add the command after. Note that it will not work if the line is even a little bit different, e.g. if there are space after the "]". I also inserted a check log to the script. Note that you may want to delete previous output %2 before starting the script, since text will be added.
hellgauss is offline   Reply With Quote
Reply

Tags
aegisub, subtitle conversion, subtitles

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 07:21.


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