Log in

View Full Version : Making sample file with avisynth


OverZerg
26th March 2020, 20:26
In a guide for encoding I found info that if i put strings

selectTotal1=framecount()/100
selectTotal2=selectTotal1*2
selectrangeevery(selectTotal2,50)

at the end of avisynth script, then it gives an output file containing frames from different parts of source file, so I could encode resulting file with different parameters and see how it goes. But the problem is I completely new to avisynth, so I read that I can do a text file with strings in it and rename it to .avs, but what to do with it and is everything should go before those strings? How to make it work as intended?

StainlessS
26th March 2020, 21:26
You can just play in a video clip player (not usually VLC, it dont work), eg MPC-HC or PotPlayer, or load into Virtualdub2.
Can just use like you would use an Avi File.

You might have to use "Open With".


Colorbars(Pixel_type="YV12") # Test clip
#AviSource("D:\Parade.avi") # Some video clip loaded via a source filter.
# Above assigns clip to special variable Last (as not explicitly assigned to anything else)
ShowFrameNumber # Can Comment out (ie precede with '#' character)

selectTotal1=framecount()/100
selectTotal2=selectTotal1*2
selectrangeevery(selectTotal2,50)

return last