View Full Version : how to use xlogo?
yzj_dnv2
3rd September 2003, 09:00
this days i want to add some image into my project,i just want to try.and i used xlogo plugin,but it didn't work!i've installed avisynth2.5 and downloaded xlogo,goldenknot0.28 is also installed.
here are my scripts:
# PLUGINS
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\Convolution3d.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\FluxSmooth.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\VSFilter.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\ac3source.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpasource.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\xlogo.dll")
# SOURCE
v1=mpeg2source("G:\rw\rw.d2v")
a1=DelayAudio(mpaSource("G:\rw\vbr.mp3"),-0.033)
Audiodub(v1,a1)
# TRIM
trim(0,175760)
# IVTC
Telecide(guide=1).Decimate(5)
ConvertToRGB32
Xlogo("h:\coolk.bmp",300,200,180) error occured here!
ConvertToYUY2
# CROPPING
crop(6,6,702,472)
# SUBTITLES
textSub("G:\rw\lw2.ssa")
# RESIZING
LanczosResize(640,472)
Temporalsoften(2,3,3,mode=2,scenechange=6)
Convolution3d ("animeHQ")
FluxSmooth(5,7)
# BORDERS
AddBorders(0,4,0,4)
in fact,i've looked through the readme for xlogo!Any expert could guide me to modify the scripts?if there is some mistake in the scripts,please point them out and correct them.Thank you !
:rolleyes:
Wilbert
3rd September 2003, 12:31
I assume you actually downloaded xlogo for AviSynth v2.5. What error does it give?
yzj_dnv2
4th September 2003, 07:09
Originally posted by Wilbert
I assume you actually downloaded xlogo for AviSynth v2.5. What error does it give?
Yeah!I've correctly downloaded xlogo for AviSynth v2.5.Every time I open my avs file with windows media player,the following error occured:
AviSynth open failure:
Xlogo: can't load bitmaps
(d:\docume~1\admini~1\locals~1\temp\preview.avs,line 9)
(d:\docume~1\admini~1\locals~1\temp\temp.avs,line 1)
And here is my source scripts:
LoadPlugin("D:\PROGRA~1\GORDIA~1\xlogo.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\mpasource.dll") didn't use durning the test
#loadplugin("e:\downloads\vsfilter_20030711\Release\VSFilter.dll") didn't use durning the test
v1=AVISource("h:\hades8.avi")
a1=wavSource("h:\andy.wav")
Audiodub(v1,a1)
ConvertToRGB()
Xlogo("h:\coolk.bmp",300,200,180)
ConvertToYUY2()
#TextSub("g:\rw\rw.ssa") didn't use durning the test
I hope anyone could tell me the sytax error in the GK scripts,that could be better!Thanks first;)
:D
Wilbert
4th September 2003, 20:10
I don't know why it doesn't work. Could you upload a small part of the avi + bmp somewhere?
You can also try Dekafka: http://www.avisynth.org/index.php?page=ShareFunctions
Leuf
6th September 2003, 22:02
Make sure you have the latest version (0.5.2) which gives better error messages. The page was down for a while, isp was having some problems with an upgrade apparently, but it seems to be working now. They've also changed our urls, though the old one still works, I have no idea for how long though.
http://mysite.verizon.net/vze3kkvm/filters.html
yzj_dnv2
8th September 2003, 05:59
Dear Leuf,thanks for your reply,but the address now is lost!If possible,you could send the xlogo dll to my mailbox(yzj_dnv2@hotmail.com).If you could attach some example scrpits in the package(just like readme.txt in the zip package),that could be better;)
The plugins here(http://www.avisynth.org/~warpenterprises ) are the latest,aren't they?
I downloaded xLogo from this page,the link(http://www.avisynth.org/users/warpenterprises/files/xlogo_25_dll_20030630.zip )is latest?
And I want to know what is the valid video source!Could you tell me?
Since I'm probable to use mpg(or d2v)+mp3,Mpegdecoder(Mpeg2dec2)+MPASource,these plugins is necessary!
In this case,I want to use xlogo at the same time!Isn't it availible?
Here is my scripts:
1.
# PLUGINS
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\Convolution3d.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\FluxSmooth.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\VSFilter.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\ac3source.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpasource.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\xlogo.dll")
# SOURCE
v1=mpeg2source("G:\rw\rw.d2v")
a1=DelayAudio(mpaSource("G:\rw\vbr.mp3"),-0.033)
Audiodub(v1,a1)
# TRIM
trim(0,175760)
# IVTC
Telecide(guide=1).Decimate(5)
ConvertToRGB32
Xlogo("h:\coolk.bmp",300,200,180) error occured here!
ConvertToYUY2
# CROPPING
crop(6,6,702,472)
# SUBTITLES
textSub("G:\rw\lw2.ssa")
# RESIZING
LanczosResize(640,472)
Temporalsoften(2,3,3,mode=2,scenechange=6)
Convolution3d ("animeHQ")
FluxSmooth(5,7)
# BORDERS
AddBorders(0,4,0,4)
Instead of d2v,I tried avi!But still didn't work.
I tried my script like this:
2.
LoadPlugin("D:\PROGRA~1\GORDIA~1\xlogo.dll")
v1=AVISource("h:\hades8.avi")
a1=wavSource("h:\andy.wav")
Audiodub(v1,a1)
ConvertToRGB()
Xlogo("h:\coolk.bmp",300,200,180)
ConvertToYUY2()
Could you point out my sytax error in my scripts?What is the valid video source format to use xlogo?
:o
yzj_dnv2
8th September 2003, 06:10
I'm also eager to upload the project!But I have no right to do here.Only one picture is mine here!(http://www.c2club.com/UploadFile/20039812315196983.bmp )
Anyone would like to try can use your own video source and this image.
I want to know if gif(motional) and png(with alpha channel)is availible when using xlogo.
Wilbert
8th September 2003, 13:06
this days i want to add some image into my project
Doh! Stupid that I didn't notice that earlier. Xlogo is for _removing_ logos, while you want to add one.
Simply use ImageReader (http://www.avisynth.org/index.php?page=Image) to read the bmp, and Layer (http://www.avisynth.org/index.php?page=Layer) to put it onto your clip.
yzj_dnv2
9th September 2003, 09:55
Originally posted by Wilbert
Doh! Stupid that I didn't notice that earlier. Xlogo is for _removing_ logos, while you want to add one.
Simply use ImageReader (http://www.avisynth.org/index.php?page=Image) to read the bmp, and Layer (http://www.avisynth.org/index.php?page=Layer) to put it onto your clip.
Maybe I'm stupid!Because I don't know the real use for xlogo.Could you give me some scripts for using image and layer?
You will probably say:they are detailed described in the related page!But I'm still have some questions like this:
Examples:
# Writes frame 100 to "D:\000000.BMP":
1.ImageWriter("c:\", 100, 100, "BMP")
# Reads pictures in the range 0-1000 (at 24 fps);
2.ImageReader("c:\", 0, 1000, 24, false)
Which bmp will the programme read?From c:\?Which file?(or it's just c:\bmp.bmp?)
What do the false mean in the second sentence?
Wilbert
9th September 2003, 11:20
You have to set that parameter to true, when reading a different picture format. See the corresponding docs for more info.
ImageReader("c:\", 0, 1000, 24, false)
will read the sequence c:\000000.bmp, c:\000001.bmp, ...
Just use
# SOURCE
v1=mpeg2source("G:\rw\rw.d2v")
a1=DelayAudio(mpaSource("G:\rw\vbr.mp3"),-0.033)
c1=Audiodub(v1,a1)
# TRIM
c1 = trim(c1,0,175760)
# IVTC
c1 = Telecide(c1, guide=1).Decimate(5)
c2 = ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.framecount)
layer(c1, c2, "add", 255, 300, 200)
or something like that ...
yzj_dnv2
10th September 2003, 10:04
Originally posted by Wilbert
# SOURCE
v1=mpeg2source("G:\rw\rw.d2v")
a1=DelayAudio(mpaSource("G:\rw\vbr.mp3"),-0.033)
c1=Audiodub(v1,a1)
# TRIM
c1 = trim(c1,0,175760)
# IVTC
c1 = Telecide(c1, guide=1).Decimate(5)
c2 = ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.framecount)
layer(c1, c2, "add", 255, 300, 200)
It didn't work!Error mode!So I tried the following scrpits!
I found it's invalid using this sentence:
v1=mpeg2source("G:\rw\rw.d2v").ConvertToYUY2!
And I tried the following scrpits:
LoadPlugin("D:\PROGRA~1\GORDIA~1\VSFilter.dll")
v1=AVISource("h:\hades81.avi")
a1=wavSource("h:\andy.wav")
c1=Audiodub(v1,a1).ConvertToYUY2
#Audiodub(v1,a1).ConvertToYUY2
c2=ImageReader("h:\coolk.bmp",0,100,24,false).ConvertToYUY2
layer(c1, c2, "add", 255, 300, 200)
textSub("G:\rw\lw.ssa")
Filter Error Filter attempted to create VideoFrame with invalid pixel_type!!!——this error appeared!
Then I tried this:
v1=AVISource("h:\hades81.avi")
a1=wavSource("h:\andy.wav")
c1=Audiodub(v1,a1).ConvertToYUY2
c2=ImageReader("h:\coolk.bmp",0,100,24,false).ConvertToYUY2
layer(c1, c2, "add", 255, 300, 200)
Still no function!If anyone have succeeded in using imagereader and layer,I hope you could write your scrpits here;)Thanks!
Wilbert
10th September 2003, 12:43
1) You are right that c1 and c2 must be both converted to YUY2 for use in layer (they must be in the same color format).
2) You should put the loop back (otherwise you will see the logo only on the first frame).
3) Problem might be that the resolution of the bmp is not even. What is the width/height given in the following script:
ImageReader("h:\coolk.bmp",0,100,24,false)
If one of them is odd, crop them to an even resolution.
yzj_dnv2
11th September 2003, 04:16
It works!I'm very glad I've learned how to use layer!I tried the following scripts:
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\Convolution3d.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\FluxSmooth.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\VSFilter.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\mpasource.dll")
v1=mpeg2source("G:\rw\rw.d2v")
a1=DelayAudio(mpaSource("G:\rw\vbr.mp3"),-0.033)
c1=Audiodub(v1,a1).trim(0,175760).Telecide(guide=1).Decimate(5).crop(6,6,702,472).textSub("G:\rw\lw.ssa").LanczosResize(640,472).Temporalsoften(2,3,3,mode=2,scenechange=6).Convolution3d ("animeHQ").FluxSmooth(5,7).AddBorders(0,4,0,4).ConvertToYUY2
c2=AVIsource("h:\hades81.avi",false).ConvertToYUY2
layer(c1,c2,"add",255,300,200)
With this scrpit,I could add some clips into the source D2V;)That's supernatural!I've been a bit surprise at the following sentence:
c1=Audiodub(v1,a1).trim(0,175760).Telecide(guide=1).Decimate(5).crop(6,6,702,472).textSub("G:\rw\lw.ssa").LanczosResize(640,472).Temporalsoften(2,3,3,mode=2,scenechange=6).Convolution3d ("animeHQ").FluxSmooth(5,7).AddBorders(0,4,0,4).ConvertToYUY2
This is a so long sentence,but it did work!Above all,we must add colour change at the end of the sentence!
Though I still haven't succeeded in using imagereader,I'm a bit excited now!Thank you very much!
By the way,I want to use imagereader like this:
c2=ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.framecount).ConvertToYUY2
Here is my question:
1.framecount must be one integer for which you want the clip to last?
2.So this sentence is ok?
c2=ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.500).ConvertToYUY2
Last for 500 frames??
Hope your reply;)
Wilbert
11th September 2003, 09:30
Here is my question:
1.framecount must be one integer for which you want the clip to last?
2.So this sentence is ok?
c2=ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.500).ConvertToYUY2
Last for 500 frames??
I still don't know if your bmp has even resolution?
Framecount is a clip property (a predefined fucntion in AviSynth, see http://www.avisynth.org/index.php?page=ClipProperties).
c1.Framecount, or what is the same Framecount(c1) gives the number of frames of c1. To see how it works, try this:
mpeg2source("G:\rw\rw.d2v").Framecount
Try the following script:
c1=mpeg2source("G:\rw\rw.d2v")
ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.framecount).info
If the width/height is even (if not you have to use crop), the following should also work:
c1=mpeg2source("G:\rw\rw.d2v")
ImageReader("h:\coolk.bmp", 0, 0, 24, false).loop(c1.framecount).ConvertToYUY2
yzj_dnv2
12th September 2003, 05:18
It works now!But I still have many problems!
1.The image must be bmp format?(I know that many image formats are support.)Every time I tried other format like png(alpha channel,really useful to me),one fault appears!
Since I want to use transparent image,I tried different overlap modes!
But the clip couldn't be played when using brighten mode while it was correctly in others modes.Why?If possible,how can I change normal bmp to ebmp?(which software to use?)
2.Since I want to use transparent image,I tried bmp(RBG24)+ColorKeyMask().How can I do that?I tried the following script:
c1=AVIsource("h:\hades81.avi",false).ConvertToYUY2
c2=ColorKeyMask(ImageReader("h:\coolk\coolk.bmp",0,0, 24,false),white,1).loop(c1.framecount).ConvertToYUY2
layer(c1,c2,"add",255,120,80)
I think the red sentence must be wrong!
ColorKeyMask(clip clip, int color, int tolerance)
Because I don't know tolerance(I know the meaning!).So I tried 1 insted of tolerance;)
bmp(RBG24)+ColorKeyMask()=transparent image??
If possible,how to modify the scripts?
3.If I want to read many continuous images,imagereader is availible?
So I tried:
c1=ImageReader("h:\coolk\coolk1.bmp",0,100, 24,false).ConvertToYUY2
c2=ImageReader("h:\coolk\coolk2.bmp",100,200, 24,false).ConvertToYUY2
layer(c1,c2,"add",255,120,80)
No function!
c1=AVIsource("h:\hades81.avi",false).ConvertToYUY2
c2=ImageReader("h:\coolk\coolk.bmp,coolk1.bmp,coolk2.bmp,coolk3.bmp,coolk4.bmp",0,0, 24,false).ConvertToYUY2
layer(c1,c2,"add",255,120,80)
Still no fuction!The sentence with blue colour is only my imagine,that's very incredible!
Could you tell me the way to read continous images?
4.One uncontrollable problem is present here!
See this sentence:
ImageReader("h:\coolk\coolk2.bmp",0,96, 24,false).ConvertToYUY2
This sentence means the image(coolk2.bmp) will appear and last for 4 seconds!
But when I use imagereader and layer in the same script,the situation changes!
Here is the script:
c1=AVIsource("h:\hades81.avi",false).ConvertToYUY2
c2=ImageReader("h:\coolk\coolk.bmp",0,96,24,false).ConvertToYUY2
layer(c1,c2,"add",255,120,80)
Now the clip2 will never only last for 4 seconds,what's wrong?
I found the sentence with orange colour is the same use as this sentence:c2=ImageReader("h:\coolk\coolk.bmp",0,0, 4,false).loop(c1.framecount).ConvertToYUY2
Could you tell me the reason?
nicksteel
28th November 2003, 13:09
Trying to use xlogo. Runs fine in virtualdub-mpeg if I load mpg or avi file, use xlogo04.vdf and load bitmap.
When I try to use avisynth 2.5 script I get "Avisynth open failure: Crop: you cannot use crop to enlarge or 'shift' a clip"
## DLL Section ##
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")
LoadPlugin("c:\video\dlls\gripfit_yv12.dll")
LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dll")
LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilter.dll")
LoadPlugin("c:\video\dlls\asharp.dll")
LoadPlugin("c:\video\dlls\undot.dll")
LoadPlugin("c:\video\dlls\decomb510.dll")
LoadPlugin("c:\video\dlls\xlogo.dll")
MaxTreshold = 1.50
nf = 0 # Current frame.
#mpegsource("h:\testtibb\test.d2v")
avisource("h:\testtibb\test.avi")
Telecide(order=1,guide=1,post=2,vthresh=25)
decimate()
Xlogo("h:\testtibb\test_x_518_y_358_2.bmp",518,358)
Wilbert
28th November 2003, 16:55
What is the resolution of test_x_518_y_358_2.bmp? What is the resolution of the avi?
Leuf
28th November 2003, 17:10
I'm not sure if the build available for download checks the bitmap width and height, but make sure that they are both even, and that the bitmap doesn't extend over the edges of the clip. Otherwise something weird is going on, putting a converttorgb32() before it will avoid the internal cropping/conversion.
Shayne
29th November 2003, 15:45
I remember in my uses of this we could only get this to work with converted grey shade bmp's
color RGB didn't seem to load is this correct?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.