Functions Index :: S :: Stack
Module:
Definition:
Stack(string clips, int nrows, int ncols)
Description:
Stacks the clips contained in clips array to a nrows times ncols matrix [1].
Notes and conditions on arguments relations:
1] If the number of clips array elements is less than the product of nrows with ncols the filter fills the remaining cells with black clips.
2] If the number of clips array elements is greater than the product of nrows with ncols the filter discards the last excess elements of clips array.
Examples:
c1 = AVISource(…)
c2 = AVISource(…)
c3 = AVISource(…)
c4 = AVISource(…)
a = ArrayCreate(c1,c2,c3,c4, c2,c1,c4,c3, c3,c4,c1,c2, c4,c3,c2,c1)
return Stack(a, 4, 4)
"
[1]: All clips must have same properties (width, height, fps, etc.) else a related Avisynth error will be thrown.