VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. I have 4 video clips that I want to show at the same time so they each take up a quater of the screen, can anyone tell me how to do this.

    Craig
    Quote Quote  
  2. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    For example you can use Avisynth. Here is a sample script:

    Code:
    clip1=AVISource("e:\dir\filename1.avi")
      \  .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8) 
    clip2=AVISource("e:\dir\filename2.avi")
      \  .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8) 
    clip3=AVISource("e:\dir\filename3.avi")
      \  .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8) 
    clip4=AVISource("e:\dir\filename4.avi")
      \  .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8) 
    v1=StackVertical(clip1,clip2) 
    v2=StackVertical(clip3,clip4) 
    StackHorizontal(v1,v2)
    Quote Quote  
  3. Hey Truman,

    that was cool.
    Any more fancy avisynth examples up your sleeve?
    Quote Quote  
  4. Trueman,

    I have put the dll file in the windows/system folder and ran the install file. But media player wont open the *.avs files I create. I am using notepad as my text editor. Any suggestions.

    Craig
    Quote Quote  
  5. I notice that notepad still gives a txt extension eg TEMP.AVS.TXT, could this be the problem

    Craig
    Quote Quote  
  6. That was the problem I enclosed the filename in quotes - "temp.avs" and it works.

    Thanks Truman.

    Craig
    Quote Quote  
  7. Truman
    Although it appears to be working now if I use your script I get the error

    Unexpected character "\"

    This is my script

    clip1=AVISource("c:\welbeck\capture01.avi")
    \ .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip2=AVISource("c:\welbeck\capture02.avi")
    \ .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip3=AVISource("c:\welbeck\capture03.avi")
    \ .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip4=AVISource("c:\welbeck\capture04.avi")
    \ .BicubicResize(160,128,0,0.5).AddBorders(8,8,8,8)
    v1=StackVertical(clip1,clip2)
    v2=StackVertical(clip3,clip4)
    StackHorizontal(v1,v2)

    Craig
    Quote Quote  
  8. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    Yes, it is quite difficult to post a script with long lines here, that's why I used the backslash. Actually you could copy the sample script and edit the filenames.
    I try it once again.

    clip1=AVISource("e:\dir\filename1.avi").BicubicRes ize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip2=AVISource("e:\dir\filename2.avi").BicubicRes ize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip3=AVISource("e:\dir\filename3.avi").BicubicRes ize(160,128,0,0.5).AddBorders(8,8,8,8)
    clip4=AVISource("e:\dir\filename4.avi").BicubicRes ize(160,128,0,0.5).AddBorders(8,8,8,8)
    v1=StackVertical(clip1,clip2)
    v2=StackVertical(clip3,clip4)
    StackHorizontal(v1,v2)

    This is the same as the script above and the same as
    clip1=AVISource("e:\dir\filename1.avi")
    BicubicResize(clip1,160,128,0,0.5)
    AddBorders(clip1,8,8,8,8)
    clip2=AVISource("e:\dir\filename2.avi")
    BicubicResize(clip2,160,128,0,0.5)
    AddBorders(clip2,8,8,8,8)
    clip3 etc.etc
    v1=StackVertical(clip1,clip2)
    v2=StackVertical(clip3,clip4)
    StackHorizontal(v1,v2)

    as long as there is no audio source in the script. If an audio source and AudioDub comes into the game I recommend to use one line for each clip (track). I noticed, that Avisynth ignores some filters if the order is wrong.
    Quote Quote  
  9. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    Originally Posted by offline
    Hey Truman,

    that was cool.
    Any more fancy avisynth examples up your sleeve?
    Avisynth is a video editor, so I could post hundreds of scripts. You should tell me, what you need. Or even better, read (and try to understand) the scripting language. Using Avisynth is much easier than most people believe. And once you got it, you will see, it is a great piece of software.
    Quote Quote  
  10. It worked, thanks a lot Truman, I'll get some brownie points for this one.

    Cheers
    Craig
    Quote Quote  
  11. Originally Posted by Truman
    it is a great piece of software.
    It sure is. I have been using it semi-seriously for 12 months
    but my problem with the manual is (and this is the same with
    any scripting/programing language) is that I get lost too easily
    just reading it. I'm one of those ppl that need to reverse engineer
    someone else's applied efforts in order to kick my brain cells
    into some sort of life.

    So if you have any scripts you consider to be unusual or
    of particular use, I'd be interested and others would be
    as well, I should think.
    Quote Quote  
  12. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    You may search the forum for "Avisynth script" and "Truman" to view some simple scripts or visit Doom9's Avisynth forum for more advanced scripts.
    Quote Quote  



Similar Threads

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