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. |
11th February 2007, 03:32 | #1 | Link |
the batteram battery
Join Date: Nov 2005
Posts: 38
|
Any way to wrap text?
Is there any to add text to a video and have it autowrap to a given area?
This is pretty simple in a desktop app, but I can't seem to find it in SubTitle, SubTitleEx, or in searches I've done. Thanks for any ideas... pg
__________________
1080p content uncompressed for testing purposes |
11th February 2007, 10:11 | #2 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Sorry no autowrap.
From 2.5.7 SubTitle(..., lsp=0) will enable the manual multiline facility, i.e. by defining the lsp parameter. To cause text to wrap include "\n" in your text where you want a line break. lsp values other than 0 increase (+) or decrease (-) the line spacing in approx 12% (font dependant) of line height units. |
11th February 2007, 20:46 | #3 | Link | |
the batteram battery
Join Date: Nov 2005
Posts: 38
|
Quote:
I have found the simplest way to to create tiny title utility that saves out the frame as desired, then it can be manipulated in avisynth in anyway you like. It's a bit of a hassle to have to run a separate app, but GDI+ text support is actually pretty powerful and with just a few lines of code does many more tricks. Regards, PG
__________________
1080p content uncompressed for testing purposes |
|
12th February 2007, 01:20 | #4 | Link | |
ангел смерти
Join Date: Nov 2004
Location: Lost
Posts: 9,558
|
Quote:
|
|
13th February 2007, 00:46 | #5 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
@foxyshadis, I really do try to not change the expected behaviour of Avisynth across versions. Generally to get access to a new feature you will have to explicitly script for it. Old scripts should continue to function as expected.
|
16th May 2019, 13:23 | #6 | Link |
Registered User
Join Date: Dec 2018
Posts: 140
|
I searched for it but did not find, now you can use avs+ http://avisynth.nl/index.php/Internal_functions#LeftStr
to divide in 2 string string you need to use LeftStr, RightStr and StrLen(string)/2 or limit one part to some number Str="AyeZabivЪуъСъука" Length=StrLen(Str) MaxStrWidth=Ceil(float(Length)/2) wtf1=LeftStr(Str,MaxStrWidth) wtf2=RightStr(Str,Length-MaxStrWidth) then subtitle wtf1 and wtf2 Last edited by Dreamject; 16th May 2019 at 13:42. |
Thread Tools | Search this Thread |
Display Modes | |
|
|