Log in

View Full Version : Inserting/Overlaying text in cool ways


Kayaker
12th June 2006, 16:17
I'm trying to insert text into a video, but in some cool way.

No just using subtitle, but some way so the text appears with a fade in, maybe rotating, and dissapear with a fadde out or dissolving.

I was trying to use, blankclip, then subtitle with this blanked clip and the ovelaying this over the original one.

But I can't seem to get it working.

I was wondering if somebody can point me to script examples of cool ways to add text to a video.

Thanks.

Wilbert
12th June 2006, 16:27
Have a look at the plugin SubtitleEx.

Daodan
12th June 2006, 16:43
Also don't forget about ass/ssa subtitle format. You can do there a lot of fancy stuff (I wonder if there is a good tutotrial for that around..).

DryFire
12th June 2006, 18:19
Aegisub's help section has a nice run down of what the .ass overrides do.

Kayaker
12th June 2006, 18:37
Thank you all.

SubtitleEx seems a god candidate because it seems to have a lot of fancy options on its own.

But anyway, my idea is not simply use a subtitle filter.
But to build it in a different clip (so i can rotate it or do another things applying any avisynth fucntion on it) and then overlaying it over the original.

That way It's a lot more flexible.
It's like avisynth gives you bricks and you can arrange the simple bricks to build up whatever you want.

I don't know if I make myself clear, it seems to me more powerful, build a "animated text clip" on its own ( so I'm no restrained ) and then overlaying it over the original one.

Anyway I'm having troubles with the overlaying part.
But I guess I'm making some mistake.

I'll keep fighting with this overlaying thing and I'll report back.

matrix
15th June 2006, 00:33
You can do what you want with overlay and conditional reader, move it, fade it in and out, even rotate it using it in conbination with zoom filter.
An example can look like this:

loadplugin("C:\Unzipped\Zoom\zoom.dll")
text=imagereader("C:\movie\text.bmp", 0, 300, 29.97)
mask=imagereader("C:\movie\text_mask.bmp")
top=overlay(blankclip(length=300,width=720,height=480,fps=29.970,color=$000000), text, x=0, y=0, mask=mask)
base=blankclip(length=300,width=720,height=480,fps=29.970,color=$0000ff)
overlay(base, top.trim(0,100)+top.trim(101,0).zoom(angle="n<41 ? 9*n : 0"), x=0, y=0, mode="lighten", opacity=0, pc_range=true)
ConditionalReader("c:\movie\opacity.txt", "ol_opacity_offset", false)

and the opacity.txt:

Type float
Default 0.0

I 40 60 0.0 1.0
R 60 100 1.0
I 100 140 1.0 0.0

You can try this example, by writing some simple text on any background, and for the mask, use the same text, this time white, on black background.
Give this a try, and see if it helps.

Zoom filter can be found here.
http://www.avisynth.org/warpenterprises/

Kayaker
15th June 2006, 12:20
Thanks, this is the sort of thing I was trying to do.
However I didn't have the time to fool around enough to make it work.
With this example you give me you pointed to the right direction.

With this base script I have something to base on.

Thanks a lot.