Log in

View Full Version : how to add text?


JediYamuna
4th April 2002, 13:03
Hi!

I want to add some text to my .avi file. The text(in red) should appear on the left corner for just a few seconds at the beginning and at the end of the file. I'm using GK for my encoding, so before the enconding starts I just have to edit my .avs file right? But I don't know what exactly to write there! :( Could someone please give me an example? Oh and this is how my .avs file looks like:
#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
LoadPlugin("C:\WINDOWS\SYSTEM\vobsub.dll")
#
# SOURCE
mpeg2source("D:\vob\kenshin.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
InverseTelecine(40,10,15)
# or use
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(8,0,701,478)
#
# DEINTERLACING
#SmartDeinterlace(2,15,true,true,true)
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# SUBTITLES
VobSub("D:\vob\vts_01_0")
#
# RESIZING
BilinearResize(576,432)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !Snip Size has to be 13 for use in GKnot!
#SelectRangeEvery(260,13)
#
# FOOL CCEnc
#ResampleAudio(44100)

Thanks
Yam

yosemite
20th April 2002, 08:42
hmm.. nobody knows an answer for that question?

would be very interesting -> *push* ;)

manono
21st April 2002, 22:51
Hi-
Well, I can give a partial answer to the question. If you know how to create a .bmp with the text you want, then you can use the Logo filter for VDub-NanDub to place it in the video during encoding. You'll be able to specify where on the frame it's located, what frame it starts, how many frames it lasts, fade-in, fade-out, transparent or solid background, that sort of thing. You would use the filter twice to put it at the beginning and then again at the end of the .avi.

I don't know for sure, but I don't believe you can do it in an AviSynth script. Perhaps you could find out in the AviSynth Forum.