VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    Hello...

    I'm using the following line on Avisynth (originally both videos are from the same Width, Height and format)

    Stackhorizontal(ReduceBy2(AviSource("C:\test\v2.av i")),AviSource("C:\test\v2.avi"))

    but i'm receiving a msg saying : "Stackhorizontal heights don't match"

    is there anyway to this ?

    the objective here is to have 2 videos, side by side and one with half size.

    something like this :


    Code:
     - - -    - - - - - - 
     |   |    |         |
     - - -    |         |
             - - - - - -
    Quote Quote  
  2. no - they have to be the same dimensions

    one option would be to add blackborders to one so it matches the dimensions of the other
    addborders()
    Quote Quote  
  3. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    thanks poisondeathray

    would be possible pls provide an example ?
    the original video has Width 368 and Height 208
    Quote Quote  
  4. AddBorders(left,top,right,bottom)

    Since you are reducing by 2 , you need to add 184, and 104 somewhere to the x and y dimensions
    Quote Quote  
  5. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    both have the same dimension..
    Quote Quote  
  6. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Code:
    AVISource("v2.avi")
    full=last
    
    ReduceBy2()
    AddBorders(0,0,width,height)
    Stackhorizontal(last,full)
    Quote Quote  
  7. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    i've just realized that adding black borders for the first video, the second one will still have the same size....

    the intention here is to have the first video small so the second video can be larger ....

    is it possible this ?
    Quote Quote  
  8. ^ yes AlanHK's way is a nicer way of doing it
    Quote Quote  
  9. Originally Posted by zsuppguy
    i've just realized that adding black borders for the first video, the second one will still have the same size....

    the intention here is to have the first video small so the second video can be larger ....

    is it possible this ?
    No , they will have the same dimensions, but the 1st will have black borders around it. The active area will be smaller

    I hardcoded this example with values instead of variables, but just to illustrate what's going on. You can adjust where the black borders are, and you could crop away the left black border

    Code:
    colorbars()
    lanczosresize(368,208)
    a=last
    
    colorbars()
    lanczosresize(368,208)
    reduceby2()
    addborders(184,104,0,0)
    b=last
    
    Stackhorizontal(b,a)
    Quote Quote  
  10. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by zsuppguy
    i've just realized that adding black borders for the first video, the second one will still have the same size....
    the intention here is to have the first video small so the second video can be larger ....

    is it possible this ?
    No, because a video always has to be a rectangle. Not two rectangles.

    My script works, try it.
    You can make the colour of the borders white or any other colour if you prefer to the default black.


    A variation: just to pad the bottom:
    Code:
    AVISource("v2.avi") 
    full=last 
    
    ReduceBy2() 
    AddBorders(0,0,0,height) 
    Stackhorizontal(last,full)
    Quote Quote  
  11. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    thanks poisondeathray and AlanHK for the example... i tried and it work pretty well .... but i made a mistake on my first post... there are v1.avi and v2.avi...both from the same size ...

    v1 should be small (should be reduced 50%) ...
    v2 should have its size plus the area freed by v1 ....

    i'm sorry not being so clear since first post ....
    I really appreciate your attention guys !
    Quote Quote  



Similar Threads

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