VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date
    Dec 2003
    Location
    north america
    Search Comp PM
    i know i can stack vertically and horizontally with avisynth but am looking for a little more nuance than i've seen so far.

    i have three files, each 1440x1080p, that i want to compare. i want to stack them with the first two side by side. i know i can use stack horizontal for that. what i haven't seen yet is a way to stack the third in the center below the first two. how can i do that? i guess what i'd ideally like is more control over the exact positioning within a defined frame size.

    thanks,
    babag
    Quote Quote  
  2. Code:
    a=whateversource
    b=whateversource
    c=whateversource
    
    stackvertical(stackhorizontal(a,b) , c.addborders(c.width/2,0,c.width/2),0)
    Or if you want more flexible over the x-position, enter the value

    Code:
    xpos = 200
    a=whateversource
    b=whateversource
    c=whateversource
    d=blankclip(width=c.width*2)
    
    stackvertical(stackhorizontal(a,b) , overlay(d,c, x=xpos))
    Last edited by poisondeathray; 11th Dec 2022 at 15:27.
    Quote Quote  
  3. Member
    Join Date
    Dec 2003
    Location
    north america
    Search Comp PM
    thanks, pdr! never would have thought of that on my own. makes perfect sense now that i see it, though.

    the xpos version is even better!

    thanks again,
    babag
    Last edited by BabaG; 11th Dec 2022 at 15:37.
    Quote Quote  
  4. Member
    Join Date
    Dec 2003
    Location
    north america
    Search Comp PM
    just getting to trying this as my renders have taken a couple of days.

    getting errors with the suggested code and my files.

    first was easy to solve. just a misplaced parentheses in this line:
    Code:
    stackvertical(stackhorizontal(a,b) , c.addborders(c.width/2,0,c.width/2),0)
    changing the next to last parentheses position allows script to load:
    Code:
    stackvertical(stackhorizontal(a,b) , c.addborders(c.width/2,0,c.width/2,0))
    second example is beyond my ability to find the error:
    Overlay: input and overlay clips must have the same bit depths!
    i'm guessing it may be in this line:
    Code:
    d=blankclip(width=c.width*2)
    i believe this creates a dummy clip that has twice the width of clip c. all of the files i'm compositing here are 10bit x264. i'm guessing that the dummy or blank clip is not? if that's right, i don't know how to change it to match the other clips.

    thanks,
    babag
    Quote Quote  
  5. Sorry, it should be d=blankclip(c, width=c.width*2)

    blankclip(x) makes a blankclip the characteristics of clip "x", including dimensions, pixel type, fps etc...
    Quote Quote  
  6. Member
    Join Date
    Dec 2003
    Location
    north america
    Search Comp PM
    yeah! very cool. thanks so much! works a charm!

    babag
    Quote Quote  



Similar Threads

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