Log in

View Full Version : load avs in script as video?


jriker1
12th December 2014, 17:46
I want to step thru my source video and the AVS file I created to enhance the video and obviously Virtualdub only shows the final output when it loads in an AVS file. Would be nice if it could load a separate video as the preview.

Anyway I was thinking I could use StackHorizontal(video1,video2) to view the two side by side, but not sure if you can load an avs as a source video or not. So video1 would be the original avi in my case, and video2 would be the avs file so like:

video1=AVISource("OriginalVideo.avi")
video2=AVSSource("OriginalVideo.avs") #AVSSource made up
StackHorizontal(video1,video2)

Thoughts?

Thanks.

JR

feisty2
12th December 2014, 17:54
2 ways
1.
xxxsource ("clip")
sclip=last
filter1 ()
filter2 ()
...
stackhorizontal (sclip, last)

2.
Video=xxxsource ("clip")
Avs=import ("xxx.avs")
stackhorizontal (video, avs)

Midzuki
12th December 2014, 17:55
From the documentation (http://avisynth.nl/index.php/AviSource):

This filter can read any file for which there's an AVIFile handler. This includes not only AVI files but also WAV files, AVS (AviSynth script) files, and VDR (VirtualDub frameserver) files. If you give multiple filenames as arguments, the clips will be spliced together with UnalignedSplice.

creaothceann
12th December 2014, 18:11
StackHorizontal
http://forum.doom9.org/showthread.php?p=1683804#post1683804