wthreex
3rd October 2021, 12:06
Hey, I'm hardcoding subtitles into videos, The problem is the font size is slightly different when the video has black bar (1280x536p).
So i want to tell avisynth to modify .ass file (the font size part) when the video has fewer than 720p height i mean lower than: 1280x720p
I'm using VSFilter for this and my script is:
LoadPlugin("C:\Users\Downloads\Programs\MeGui\tools\avisynth_plugin\VSFilter.dll")
<input>
<resize>
TextSub("C:\Users\Downloads\Programs\MeGui\tag.ass")
.ass file:
[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,Tahoma,20,&H0000FFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,3,1,0.0671642,3,5,5,5,1
As you can see the font size is 20 for all the videos, is it possible to modify this part of file with avisynth on some condition ? Or forget about avisynth can we do this with Aegisub itself ?
So i want to tell avisynth to modify .ass file (the font size part) when the video has fewer than 720p height i mean lower than: 1280x720p
I'm using VSFilter for this and my script is:
LoadPlugin("C:\Users\Downloads\Programs\MeGui\tools\avisynth_plugin\VSFilter.dll")
<input>
<resize>
TextSub("C:\Users\Downloads\Programs\MeGui\tag.ass")
.ass file:
[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,Tahoma,20,&H0000FFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,3,1,0.0671642,3,5,5,5,1
As you can see the font size is 20 for all the videos, is it possible to modify this part of file with avisynth on some condition ? Or forget about avisynth can we do this with Aegisub itself ?