Log in

View Full Version : Overlay equivalent?


asarian
31st May 2021, 12:09
In AvySynth, I used to so something like this, to splice separately processed halfs of a video:

displacement = 800 / 2

fore = FFVideoSource("c:\video\test1.mkv")
fore = Crop(fore, 0, 0, 0, -16)
fore = AddBorders(fore, 0, 0, 0, displacement)

back = FFVideoSource("c:\video\test2.mkv")
back = Crop(back, 0, 16, 0, 0)

Overlay(fore, back, x=0, y=displacement)

AssumeFPS(fore)


Can thew same be done with VapourSynth? I found no similarly named functions. Thanks.

Myrsloik
31st May 2021, 12:27
In AvySynth, I used to so something like this, to splice separately processed halfs of a video:

displacement = 800 / 2

fore = FFVideoSource("c:\video\test1.mkv")
fore = Crop(fore, 0, 0, 0, -16)
fore = AddBorders(fore, 0, 0, 0, displacement)

back = FFVideoSource("c:\video\test2.mkv")
back = Crop(back, 0, 16, 0, 0)

Overlay(fore, back, x=0, y=displacement)

AssumeFPS(fore)


Can thew same be done with VapourSynth? I found no similarly named functions. Thanks.

It looks like you actually should be using StackVertical() in both VapourSynth and Avisynth.

asarian
31st May 2021, 12:43
It looks like you actually should be using StackVertical() in both VapourSynth and Avisynth.

Thanks! :)