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 > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st January 2010, 02:50   #1  |  Link
photoguy123
the batteram battery
 
Join Date: Nov 2005
Posts: 38
No way to wrap text?

Can it really be possible there is no easy way to display text that automatically wraps within a rectangle?

If there is no easy way to do this I'm immediately writing a plug-in.

Thanks for any ideas,
Lee
photoguy123 is offline   Reply With Quote
Old 1st January 2010, 03:19   #2  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Aegisub?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 1st January 2010, 03:59   #3  |  Link
photoguy123
the batteram battery
 
Join Date: Nov 2005
Posts: 38
Quote:
Originally Posted by thetoof View Post
Aegisub?
The problem with Aegisub is that it feels like trying to kill a fly with a sledgehammer. It looks very powerful, but also relies on external files using specialized captioning formats and requires some learning (shudder).

Why can't there be a simple plug with script like this that can wrap text within the rectangle (pretend the text is long)?

clip.Title("Hello World", "Arial", size=48, 100,100,600,600)


Does anyone think it could be useful? If so - as I said I'm willing to volunteer.
photoguy123 is offline   Reply With Quote
Old 1st January 2010, 04:33   #4  |  Link
DarkT
Registered User
 
Join Date: Dec 2006
Posts: 280
mhmhmh, to be honest aegisubs is not complicated to learn... But yes, I too wish there were some basic functions which could be drawn upon without having to resort to aegisubs... Then again... Aegisubs is REALLLLY not that difficult to learn... *shrugs*
DarkT is offline   Reply With Quote
Old 1st January 2010, 05:02   #5  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
well, in aegisub this is uber easy to do, especially since they added assdraw3 (misleading name... ass = aegisub styled script or Advanced SubStation Alpha Subtitle File ^^) to the main core.

took me a few seconds and I hadn't touched it for months...

This what the .ass (opened with notepad) looks like:
Code:
[Script Info]
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 640
PlayResY: 480
ScaledBorderAndShadow: yes
Last Style Storage: Default
Video File: G:\Anime\Gundam\[Jeff] Gundam Evolve 1-15\[Jeff] Gundam Evolve 01.mkv
Video Aspect Ratio: 0
Video Zoom: 8
Video Position: 0

[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,Arial,48,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,,{\p1}m 0 0 l 1 -100 l 600 -100 l 600 0 {p}
Dialogue: 0,0:00:00.00,0:00:02.00,Default,,0000,0000,0000,,Hello World
Dialogue: 0,0:00:02.00,0:00:04.00,Default,,0000,0000,0000,,
All I had to do was draw a 100x600x100x600 rectangle in assdraw3, copy paste the resulting vectorial drawing command with {\p1}{p} around, add a line with the text you wanted and set Arial 48 in the styles manager. Then, save as and add textsub("file.ass") at the end of my avs script. You can also time by frame if you want.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 1st January 2010, 05:15   #6  |  Link
photoguy123
the batteram battery
 
Join Date: Nov 2005
Posts: 38
Thanks Toof and Dark for the education - I agree it's not rocket science, and I like the fact it's called AssDraw.

Still I wish it didn't require a separate file outside of the script for simple things.

I think I'll go ahead and write a plug-in - and besides saving the external file, there will not be any new syntax or external tools required.

For people doing captioning it will be no help - but I think it could help people who:

1) Want to do things more like titling instead of captioning
2) Want a plain ol' avisynth command and nothing else for simplicity

If there are any requests for parameters I'm open to ideas, otherwise I'll followup with what I come up with.

Happy new year -
photoguy123 is offline   Reply With Quote
Old 14th April 2011, 17:13   #7  |  Link
pbristow
Registered User
 
pbristow's Avatar
 
Join Date: Jun 2009
Location: UK
Posts: 263
Hey photoguy123, did this plugin idea get anywhere? I would find it useful.
pbristow is offline   Reply With Quote
Reply


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 03:09.


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