VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Aug 2002
    Location
    Behind the wheel of a R34
    Search Comp PM
    Dear friends, Users, and Frustrated AviSynth users of VCDHelp.com

    Hi All… I am having problems with adding a layer function to AVIsynth
    I want to achieve a PIP effect but with 2 videos ( I plan on doing the second later but I want to get this one done now).

    Lets get started…

    I have a base clip with music on it… and I have 2 music videos that share the same song.. what I want to do is make them both play at the same time so it would look kinda cool 
    But I am having some problems with the Layer filter in AviSynth….

    Here Is an edit (on photoshop) of what I want to do…


    As you can see… the picture in the background will be the base clip and I plan to add one video at first and then the other later on… (note this is not how the base clip that I want will look like…but the concept is the same)

    My scripts are:

    For the background

    AviSource("C:\Windows\Desktop\AviSynth Hell\002.avi")
    BicubicResize(720,480)

    For the first Music Video

    AviSource("C:\windows\Desktop\Video Project ver. 2.35\Cowboy Bebop\001.avi")
    KillAudio
    BicubicResize(320,214)
    Pretty straight forward…

    Now this is when it gets tricky..

    I combine the 2 video files into a single AVS script like so;

    a = AVISource("C:\WINDOWS\Desktop\AVIsynth Hell\001.avs")
    b = AVISource("C:\WINDOWS\Desktop\AVIsynth Hell\003.avi")
    Layer(b,a,"add",255,24,119,20,true)

    What I get is only the background clip….



    And when I reverse it….(a,b) instead of (b,a) I get the clip with vegeta, like so;



    Now I can get it to work but only on the "fast" string and it gives me this result…..


    now… if I were to use a white background.. the video will be too bright…. Also I know that the music video is out of its “box” and I will correct that as soon as I can get a solid overlay (not blended) over the base clip…

    can anyone suggest how do I go about to do this… I did it before but that was a long time ago…

    All my videos are in the YUY2 color space..

    and by the way.. I am open to any script suggestions or any programs that any of u may say....
    Quote Quote  
  2. Well I got something very similar to work ok. Basically I created a 1 minute avi from a jpg photo using the avisynth imagereader parameter. I then overlayed (using Layer) a 1 minute extract of Dire Straits Sultans of Swing from Live Aid. I then overlayed the same extract again (I know - but the avi was already there) with different x y positions, grabbed the audio from a wav file I'd previously created and ran the result through Virtualdub. Worked fine and a very nice effect too (except the photo I chose as a test background was of my car - so a little out of context!).

    The only thing is my script doesn't look that much different from yours so I don't know why yours isnt working? Go figure.

    Anyway here is the script and I hope it helps a bit.

    a=avisource("C:\My Vids\sultans of swing (live Aid).avi").bicubicresize(352,288).converttoyuy2
    trim(a,0,1499)
    b=avisource("D:\Capture 1\image1.avi").converttoyuy2
    c=Layer(b,a,"add",255,5,120,20,true)
    d=layer(c,a,"add",255,365,120,20,true)
    aud=wavsource("D:\Capture 1\sultans.wav")
    audiodub(d,aud)
    Quote Quote  
  3. Member
    Join Date
    Aug 2002
    Location
    Behind the wheel of a R34
    Search Comp PM
    Well aparently the thing fixed it self.. But I think that adding "ConvertToYUY2" function to both AVS (base and Overlay) clips and then loading them onto a 3rd AVS file with the following script:

    a = AviSource("C:\windows\Desktop\MasterMenu1.avs")
    b = Avisource("C:\windows\Desktop\Avisynth Hell\002.avs")
    Layer(a,b,"add",255,375,207,255,true)

    I got this pretty result
    and its going to be a pretty cool menu

    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!