PDA

View Full Version : Add Logo while using Gordian Knot


danjx
7th September 2002, 23:36
After reading this forum and links it pointed to, I would like to experiment by adding a logo to a Gordian Knot project. I think I have to do the following steps. Please advise if I have missed something (or a lot).

1. Got VirtualDub Filters file from http://www.avisynth.org/index.php?page=VirtualDubFilters. Saved as VDub_Filters.avs

2. Create Gordian Knot project and proceed according to Doom9 guide until the encoder tab has the job steps (audio conversion, movie first pass, movie second pass, credits, merge) in it. Do not start the job.

3. Edit the AVS file, adding following near the end of the file:
Import("vdub_filters.avs")
ConvertToRGB()
VD_Logo(xb=0,tolerance=30,filename="c:\Mylogo.bmp",start=10,duration=100)
VD_Logo(xb=0,tolerance=30,filename="c:\MyOtherlogo.bmp",start=200,duration=100)
ConvertToYUY2()

4. Go back to Gordian Knot and start the job.

Does that sound right?

-Dan

danjx
8th September 2002, 19:59
Yes, that seems about right. I did have to edit the VDub_Filters.avs file to set the VirtualDub plugins directory.

-Dan

Tikkanen
15th January 2004, 23:30
I realize this post is old (mid-2002), and some programs have changed. The logo plugin appears to be integrated into VirtualDub(Mod) now, and is no longer an external plugin. Thus, the script fails when it tries to find LOGO.VDF.

How have you guys been able to adapt to this change? Thanks in advance.

TWAIN
6th February 2005, 09:15
Hi!
I also interested in previous answer!

TWAIN
6th February 2005, 11:26
And more: how can we do it without ConvertToRGB()?
I'd like to use only YUY2!

manono
6th February 2005, 13:40
Hi-

I don't know if this will help or not. Using a combination of MPEGSource (or AVISource), ImageSource (or ImageReader), and the Layer command, you should be able to do what you want. I think it'll be easier if you first convert the logo to an AVI, and then layer it in. Here's a sample script for layering in an AVI of the logo, to create a sort of picture-in-picture effect:

main=avisource("tango.avi").ConvertToYUY2()
pip=avisource("spider.avi").bicubicresize(120,80)
Layer(main,pip,"add",255,20,20)

You need to get the clips into the same color space and so use convert calls as needed. Resize the PIP as needed and use the last two Layer() parameters to position the PIP.

To convert a BMP to an AVI:

ImageReader("D:\Shaolin2\SVCD Stuff\ShaolinSoccerCover.bmp")
Trim(0,100)#for length
LanczosResize(120,80)
AssumeFPS(23.976)
ConvertToYUY2()

ImageSource (http://www.avisynth.org/ImageSource)
Layer (http://www.avisynth.org/Layer)

TWAIN
6th February 2005, 15:29
Hi!
Thanks, but i read through some topics and...
I decided not to do a lot and use text logo
(alsow because i don't have some catchy graphic logo).

Subtitle("www.AltMusic.Ru",width-140,18,1,199,"Arial",18,$62CE00,0,4,0)